jrioInit
參數(shù)資料
型號: 101-0558
廠商: Rabbit Semiconductor
文件頁數(shù): 53/94頁
文件大?。?/td> 0K
描述: COMPUTER SNG BD BL1800 512K SRAM
標(biāo)準(zhǔn)包裝: 10
系列: SBC
模塊/板類型: 單板計算機模塊
適用于相關(guān)產(chǎn)品: BL1800
User’s Manual
53
The output value is set using the following function.
sets the state of an analog output channel.
jrioInit must be called first.
channel is the output channel number (0 or 1 on the Jackrabbit).
value is an integer from 0–1024 that corresponds to an output voltage as shown in Table 5.
NOTE: See the sample program JRIOTEST.C for examples of using the anaOut func-
tion.
Effect of Interrupts on Analog I/O
The stability of the voltage output (and hence the voltage input determination as well)
depends on the ability of the driver to respond quickly to interrupt requests. Dynamic C
debugging, use of the printf function, or any serial communications can disrupt the
pulse-width modulation utilized by the driver and cause fluctuations in the voltage out-
puts. Avoid using serial communications or printf statements during portions of your
program where the voltage must remain steady. Also be aware that debugging and running
Dynamic C in polling mode will cause fluctuations. Finally, be certain to disable the PWM
drivers by setting the output values to 0 or 1024 when you are done using them to free up
the CPU.
Calibration of Values to Voltages
The analog output channels on the Jackrabbit can be more accurately calibrated for each
individual Jackrabbit in the following manner (calibration of DA0 is assumed in this
example, calibration of DA1 would proceed similarly):
Set desired channel output to PWM_MIN.
Measure voltage Vmin on DA0.
Set desired channel output to PWM_MAX0.
Measure voltage Vmax on DA0.
A linear relation between input value and voltage can now be calculated:
Table 5. Typical Analog Output Voltages Corresponding
to Values in anaOut Function
Channel
0
PWM_MIN
PWM_MAX
1024
DA0
0.08 V
2.875 V
3.4 V
DA1
0.004 V
0.63 V
3.6 V
void anaOut(int channel, int value);
bVmax
m
PWM_MAX0
×
=
相關(guān)PDF資料
PDF描述
396-036-526-204 CARD EDGE 36POS DL .125X.250 BLK
396-036-526-202 CARD EDGE 36POS DL .125X.250 BLK
101-0411 INTERFACE 12KEYDISP ETHNT OP6700
AT24C02A-10PI-2.7 IC EEPROM 2KBIT 400KHZ 8DIP
AT24C02A-10PI-1.8 IC EEPROM 2KBIT 400KHZ 8DIP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
10105584 制造商:Amphenol Corporation 功能描述:10-341374-222 - Bulk
101055OO 制造商:TE Connectivity 功能描述:
101056084S 制造商:Amphenol Aerospace 功能描述:CONNECTOR
101-0561 功能描述:模塊化系統(tǒng) - SOM RCM3400 RABBITCORE RoHS:否 制造商:Digi International 外觀尺寸:ConnectCore 9P 處理器類型:ARM926EJ-S 頻率:150 MHz 存儲容量:8 MB, 16 MB 存儲類型:NOR Flash, SDRAM 接口類型:I2C, SPI, UART 工作電源電壓:3.3 V 最大工作溫度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
10-105610-02S 制造商:Amphenol Aerospace 功能描述:PLUG