4.2 BL1810 Function Calls
4.2.1 I/O Drivers
The BL1810 contains four high-power digital output channels, two D/A converter output
channels, and one A/D converter input channel. These I/O channels can be accessed using
the functions found in the JRIO.LIB library.
4.2.1.1 Initialization
The function jrioInit() must be called before any other function from the JRIO.LIB
library. This function initializes the digital outputs and sets up the driver for the analog
input/outputs. The digital outputs correspond to the Rabbit processor ’s port E bits 0–3, and
the analog I/O uses timer B; bits 1, 2, and 4 of port D; and bits 6 and 7 of port E.
The function void jrioInit() initializes the I/O drivers for BL1810. In particular, it sets
up parallel port D bits 1, 2, and 4 for analog output, port E bits 0–3 for digital output, and
starts up the pulse-width modulation routines for the A/D and D/A channels. Note that
these routines can consume up to 20% of the CPU’s processing power; the routines use
timer B and the B1 and B2 match registers.
4.2.1.2 Digital Output
The BL1810 contains four high-power digital output drivers, HV0–HV3, on header J4.
These can be turned on and off with the following functions from the library JRIO.LIB .
HV0, HV1, and HV2 are open-collector sinking outputs, and are able to sink up to 1 A
(200 mA for the BL1810 and BL1820) from a 30 V source connected to the K line on
header J4. HV3 is a sourcing output that is able to source up to 500 mA (100 mA for the
BL1810 and BL1820) from a 30 V source connected to the K line.
CAUTION: Remember to cut the trace
between K and Vcc inside the outline
for header JP2 on the top side of the
Prototyping Board if you are supplying
K from a separate power supply. An
exacto knife, a precision grinder tool,
or a screwdriver may be used to cut
through the traces as shown in
Cut gray trace
as shown
Cut
NOTE: Failure to do this could lead to
the destruction of the Rabbit 2000
microprocessor and other components
once the BL1810 is connected to the
Top Side
Prototyping
Board
Buzzer
HV0 +RAW
+
PD0
Prototyping Board.
Figure 7. Cut Trace on Prototyping Board
When Vcc and K Are Different
34
Rabbit 2000 Development Kit
相关PDF资料
101-0523 KIT DEV RABBIT3000/RCM3000
101-1109 KIT EMBEDDED PLC APPLICATION
101-1147 KIT RIO PROGRAM I/O
101-606 CONN SOCKET IDC 60POS W/KEY GOLD
10113616-01531LF CONN MOD JACK 8PORT 8/8 R/A PCB
10117863-5036010LF CONN MOD JACK 8/8 R/A PCB
10118061-5005010LF CONN MOD JACK 2PORT 8/8 R/A PCB
10118062-5001310LF CONN MOD JACK 4PORT 8/8 R/A PCB
相关代理商/技术参数
101-0359-000 制造商:ITT Interconnect Solutions 功能描述:1010359000 / 101-0359-000 / Circular
10103592 制造商:FCI-CONNECTOR 制造商全称:FCI connector 功能描述:MICRO-USB B-TYPE REVERSE
10103592-0001LF 功能描述:USB接头 5P Quick Connect Micro USB TypeB Plug RoHS:否 制造商:FCI 产品:USB Type A Connectors 标准:USB 3.0 端口数量: 位置/触点数量:9 型式:Female 电流额定值:1.8 A 安装风格:Through Hole 端接类型:Solder Pin 连接器类型:USB 3.0 Receptacle
10103593 制造商:FCI-CONNECTOR 制造商全称:FCI connector 功能描述:MICRO-USB B-TYPE MID-MOUNT
10103593-0001LF 功能描述:USB接头 5P Quick Connect Micro USB TypeB RCPT RoHS:否 制造商:FCI 产品:USB Type A Connectors 标准:USB 3.0 端口数量: 位置/触点数量:9 型式:Female 电流额定值:1.8 A 安装风格:Through Hole 端接类型:Solder Pin 连接器类型:USB 3.0 Receptacle
10103593-0001LF 制造商:FCI 功能描述:MICRO USB B, RECEPTACLE, 5POS, SMT RT AN
10103594 制造商:FCI-CONNECTOR 制造商全称:FCI connector 功能描述:MICRO-USB B-TYPE RECEP.
10103594-0001LF 功能描述:USB接头 5P Quick Connect Micro USB TypeB Rcpt RoHS:否 制造商:FCI 产品:USB Type A Connectors 标准:USB 3.0 端口数量: 位置/触点数量:9 型式:Female 电流额定值:1.8 A 安装风格:Through Hole 端接类型:Solder Pin 连接器类型:USB 3.0 Receptacle