jrioInit must be called first.
參數(shù)資料
型號(hào): 20-101-0358
廠商: Rabbit Semiconductor
文件頁(yè)數(shù): 52/94頁(yè)
文件大?。?/td> 0K
描述: COMPUTER SINGLE-BOARD BL1820
標(biāo)準(zhǔn)包裝: 1
系列: Jackrabbit
模塊/板類型: 單板計(jì)算機(jī)模塊
適用于相關(guān)產(chǎn)品: BL1820
產(chǎn)品目錄頁(yè)面: 618 (CN2011-ZH PDF)
其它名稱: 316-1081
52
Jackrabbit (BL1800)
sets the state of a digital output bit.
jrioInit must be called first.
channel is the output channel number (0-3 on the Jackrabbit).
value is the output value (0 or 1).
sets the state of a digital output bit to on (1).
jrioInit must be called first.
channel is the output channel number (0–3 on the Jackrabbit).
sets the state of a digital output bit to off (0).
jrioInit must be called first.
channel is the output channel number (0–3 on the Jackrabbit).
NOTE: See the sample program JRIOTEST.C for an example of using the digital out-
put functions.
4.4.1.3 Analog Output
The two analog output channels on the Jackrabbit (DA0 and DA1 on header J5) are con-
trolled by a pulse-width modulation (PWM) driver. This requires the use of some fraction
of the CPU cycles when the driver is running (up to 20% when both D/A channels are
used). A voltage is selected by giving a value from 0 to 1024 to the driver, corresponding
roughly to 0.1 V to 3.5 V on DA0. Because of the PWM interrupt frequency, the PWM
driver can provide a continuous range of voltage output in the range from 0.1 V to 3.0 V
for DA0, and 0.6 V to 3.6 V for DA1. These ranges can be specified with the constants
PWM_MIN
, PWM_MAX0, and PWM_MAX1. In other words, setting channel DA0 to the value
PWM_MIN
will output 0.1 V, and setting it to PWM_MAX0 will output 3.0 V. Similarly, set-
ting DA1 to PWM_MIN will output 0.6 V, and setting it to PWM_MAX1 will output 3.6 V. Val-
ues below PWM_MIN will be rounded down to 0, and values above PWM_MAX0 (PWM_MAX1
for DA1) will be rounded up to 1024.
The output channels can also be set in an “always on” or “always off” mode, which does
not require CPU cycles. The “always on” mode is set by requesting an output value of
1024, and will provide about 3.4 V on channel DA0, and 3.6 V on DA1. The “always off”
mode is selected by asking for a value of 0, and provides an output of around 0.1 V on
DA0 and 0.0 V on DA1.
See Table 5 for a summary of the possible analog output voltages corresponding to values
given in the anaOut function.
void digOut(int channel, int value);
void digOn(int channel);
void digOff(int channel);
相關(guān)PDF資料
PDF描述
20-101-0446 MODULE RABBITCORE RCM2130
AT25256-10PI-2.7 IC EEPROM 256KBIT 3MHZ 8DIP
345-030-524-801 CARDEDGE 30POS DUAL .100 GREEN
345-030-524-204 CARDEDGE 30POS DUAL .100 GREEN
345-030-524-202 CARDEDGE 30POS DUAL .100 GREEN
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
20-101-0383 功能描述:模塊化系統(tǒng) - SOM RCM2020 RabbitCore RoHS:否 制造商:Digi International 外觀尺寸:ConnectCore 9P 處理器類型:ARM926EJ-S 頻率:150 MHz 存儲(chǔ)容量:8 MB, 16 MB 存儲(chǔ)類型:NOR Flash, SDRAM 接口類型:I2C, SPI, UART 工作電源電壓:3.3 V 最大工作溫度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
20-101-0389 功能描述:子卡和OEM板 SR9200 16IN/8OUT RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-0390 功能描述:子卡和OEM板 SR9210 8 in/ 16 out RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-0391 功能描述:子卡和OEM板 SR9220 DIG I/O 8IN 8OUT RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-0392 功能描述:子卡和OEM板 SR9300 A/D 0-10V RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit