參數(shù)資料
型號: 20-101-0556
廠商: Rabbit Semiconductor
文件頁數(shù): 43/94頁
文件大?。?/td> 0K
描述: COMPUTER SNGL BD BL2000 IDC HDR
標(biāo)準(zhǔn)包裝: 1
系列: SBC
模塊/板類型: 單板計算機(jī)模塊
適用于相關(guān)產(chǎn)品: BL2000
44
Wildcat (BL2000)
4.4.2 Digital I/O
Reads the state of an input channel:
IN0–IN10—standard digital inputs, ± 36 V DC
IN11–IN14—pseudo digital inputs using A/D converter inputs ADC0–ADC3, ± 10 V DC
IN15–IN19—pseudo digital inputs using A/D converter inputs ADC4–ADC8, 0 V to 48 V DC
IN20–IN21—pseudo digital inputs using A/D converter inputs DAC0–DAC1, 0 V to 48 V DC
(BL2010 and BL2030)
The threshold is fixed at 2.40 V for channels IN0–IN10. Anything below 2.40 V is a logic 0, and any-
thing higher than or equal to 2.40 V is a logic 1.
The default threshold for channels IN11–IN21 is also set to 2.40 V. The threshold for these channels may
be changed by adding the following two lines to your program.
#undef
THRESHOLD
#define
THRESHOLD xx.xx
where xx.xx is the desired threshold voltage. Anything below the threshold value is a logic 0, and any-
thing higher than or equal to the threshold value is a logic 1.
PARAMETER
channel is the input channel number (0–21)
RETURN VALUE
The state of the input (0 or 1).
SEE ALSO
brdInit, digOut
Sets the state of a digital output (
OUT0–OUT9).
The default setting for the function is for current-sinking outputs. To change from sinking to sourcing
outputs, add the following two lines at the beginning of your program.
#undef
OUTPUT_DRIVE
#define
OUTPUT_DRIVE
SOURCING
The relay is driven by PA0, which is the same Rabbit 2000 parallel port that drives OUT0 and LED DS4.
OUT0 therefore works in parallel with the relay output. Rabbit therefore recommends that you do not use
OUT0 for a digital output when you are using the relay.
PARAMETERS
channel is the output channel number (0–9).
value is the output value (0 or 1).
SEE ALSO
brdInit, digIn
int digIn(int channel);
void digOut(int channel, int value);
相關(guān)PDF資料
PDF描述
20-101-0654 INTERFACE OP6800 512K FLASH&SRAM
20-101-0788 COMPUTER SGL-BOARD OP6600 W/SRAM
20-101-1068 MODULE RABBITCORE RCM3315
20-101-1131 MODULE RCM4200 RABBITCORE
20-101-1139 RCM4310 RABBITCORE
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
20-101-0561 功能描述:模塊化系統(tǒng) - SOM RCM3400 Rabbit Core 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
20-101-0562 功能描述:模塊化系統(tǒng) - SOM RCM3410 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
20-101-0563 功能描述:模塊配件 RCM3400 PROTOTYPING BOARD RoHS:否 制造商:Lantronix 產(chǎn)品: 用于:
20-101-0565 功能描述:模塊配件 BL2100 W/BTM MNT SOCKETS RoHS:否 制造商:Lantronix 產(chǎn)品: 用于:
20-101-0566 功能描述:模塊配件 BL2100 Friction Lock RoHS:否 制造商:Lantronix 產(chǎn)品: 用于: