
DIGITAL LINES BASIC SECTION 6
Page 6-1
Figure 6-1 Digital Input - Output connectors
INTRODUCTION
DIGITAL LINES SECTION 6
Digital I/O lines ar e used to inter face with opto-module
racks, switches, low current LED’s, and other TTL
Digital I/O lines ar e used to inter face with opto-module
racks, switches, low current LED’s, and other TTL
devices. The RP C-210 has 37 of these lines. 24 go to 26
pin connector J3. The remaining lines go to J5 and J7.
Some of the lines may be used for multiple uses. These
uses include:
LCD display at J4 (shared with J3)
Keypad at J5. Inputs only at J7
Keypad column outputs 1-4 are dedicated to the keypad.
This is because keypad scanning automatic in RPBASIC-
52. However, keypad row inputs m ay be used fo r inputs
at J7.
J7-17 is used for autorun detect. When this line is low,
RPBASIC-52 automatically executes the first BASIC
program on power up, reset, or CALL 0 command.
Three RPBASIC-52 commands are used to access lines
at J3: LINE, LINEB, and LINE #. Two event-driven
commands, ON LIN E and ON C OUNT, monitor the
lines. Lines at J3 ar e configured for inputs and outputs
using the CONFIG LINE command. L ines at the other
ports are accessed u sing LI NE B.
RPBASIC-52 Programming Manual difference
The syntax for LINEB is slightly different than shown in
the RPBA SIC-52 m anual.
A = LIN EB(address) Read from I/O area
LINEB, address, data Write to I/O area
There is no i/o bank param eter as shown in the m anual.
The Programming Manual states that lines are checked
every 5 mSec for ON COUNT and ON LINE. Lines are
checked every 10 mSec on the RPC-210. Maximum
counting frequency is effectively 45 Hz. Lines must be
stable for 10 mSec or longer to ensure detection.
ELECTRICAL CHARACTERISTICS
Digital output ports sink and source a limited amount of
current. Each por t is different as shown in the table
below:
Ports Current @ condition
J3 20 mA sink @ 1V (low)
20 mA source @ 3.6V (high)
J5 & J7 10 mA sink @ 1V (low)
10 mA source @ 3.6V (high)
Digital inputs at J3 have 100K resistor pull ups. Inputs
at J5 and J7 have 10K pull ups. For a m ore noise
immunity, add a lower value pull up r esistor to the inp ut.
NOTE: The 82C55 inputs at port A are latched.
Komentarze do niniejszej Instrukcji