TS-5300 User’s Manual
Technologic Systems
05/21/09
10
6 Digital I/O
There are 39 Digital Input/Output (DIO) lines available on the TS-5300. These are available on 3
headers labeled DIO1, DIO2, LCD. In addition to the DIO signals, each header also has 5 Volt power
and Ground available. The header labeled LCD can be used as 11 DIO lines or as an alphanumeric
LCD interface (See Section 7). 24 of the DIO lines are arranged as three byte-wide ports that can be
programmed as either inputs or outputs in groups of 4-bits. 8 more of the DIO lines can also be
programmed as either inputs or outputs (in groups of 4-bits also). The remaining 8 lines have a fixed
configuration of 7 inputs and 1 output. Three of the DIO lines can be programmed to cause interrupts.
6.1 DIO1 Header
The DIO1 port pr5V, GND, and 14 digital I/O lines that may
be used to interface the TS-5300 with a wide range of external
devices. DIO lines DIO1_0 thru DIO1_7 are a byte-wide port
accessed at I/O location Hex 7B, while the 6 other DIO lines
DIO1_8 thru DIO1_13 are accessed in the lower 6 bits of I/O
location Hex 7C. I/O location Hex 7A is a control port for DIO1. The
direction of DIO lines DIO1_0 thru DIO1_3 is controlled by bit 0 of
I/O location Hex 7A, and the direction of DIO1_4 thru DIO1_7 is
controlled by bit 1 of I/O location Hex 7A. The direction of DIO1_8
thru DIO1_11 is controlled by bit 5 of I/O location Hex 7A, while
DIO1_12 and DIO1_13 are always inputs. In all cases, when a control bit is a “1”, it is setting the
corresponding DIO lines to be Outputs, while a “0” sets them to be Inputs. All control bits at I/O location
Hex 7A are initialized at reset to be “0”. When bit 7 of I/O location Hex 7A is a “1”, DIO1_13 is connected
to IRQ7 allowing this port to trigger an interrupt.
All digital outputs on this port can source 4 mA or sink 8 mA and the digital inputs have standard TTL
level thresholds and must not be driven below 0 Volts or above 5.0 Volts. DIO lines DIO1_0 thru
DIO1_7 have 4.7K
Ω
pull-up resistors biasing these signals to a logic”1”.
6.2 DIO2 Header
The DIO2 port pr5V, GND, and 14 digital I/O lines. DIO
lines DIO2_0 thru DIO2_7 are a byte-wide port accessed at I/O
location Hex 7E, while the 6 other DIO lines DIO2_8 thru DIO2_13
are accessed in the lower 6 bits of I/O location Hex 7F. I/O
location Hex 7D is a control port for DIO2. The direction of DIO
lines DIO2_0 thru DIO2_3 is controlled by bit 0 of I/O location Hex
7D, and the direction of DIO2_4 thru DIO2_7 is controlled by bit 1
of I/O location Hex 7D. The direction of DIO2_8 thru DIO2_11 is
controlled by bit 5 of I/O location Hex 7D, while DIO2_12 and
DIO2_13 are always inputs. In all cases, when a control bit is a
“1”, it is setting the corresponding DIO lines to be Outputs, while a
“0” sets them to be Inputs. All control bits at I/O location Hex 7D are initialized at reset to be “0”. When
bit 7 of I/O location Hex 7D is a “1”, DIO2_13 is connected to IRQ5 allowing this port to trigger an
interrupt.
All digital outputs on this port can source 4 mA or sink 8 mA and the digital inputs have standard TTL
level thresholds and must not be driven below 0 Volts or above 5.0 Volts. DIO lines DIO2_0 thru
DIO2_3 have 4.7K
Ω
pull-up resistors biasing these signals to a logic”1”.
DIO2_8 can be programmed to indicate the state of the TS-5300 LED. When bit 0 of I/O location Hex
79 is set, DIO2_8 will be a logic “1” when the LED is on. Setting bit 0 of I/O location Hex 79, forces
DIO2_8 to be an output regardless of the state of bit 5 at I/O location Hex 7D.
5 V 16 15 DIO1_7
DIO1_13 14 13 DIO1_6
DIO1_12 12 11 DIO1_5
DIO1_11 10 9 DIO1_4
DIO1_10 8 7 DIO1_3
DIO1_9 6 5 DIO1_2
DIO1_8 4 3 DIO1_1
GND 2 1 DIO1_0
Figure 2 – DIO1 Header Pinout
5 V 16 15 DIO2_7
DIO2_13 14 13 DIO2_6
DIO2_12 12 11 DIO2_5
DIO2_11 10 9 DIO2_4
DIO2_10 8 7 DIO2_3
DIO2_9 6 5 DIO2_2
DIO2_8 4 3 DIO2_1
GND 2 1 DIO2_0
Figure 4 – DIO2 Header Pinout
Summary of Contents for TS-5300
Page 1: ...TS 5300 User s Manual...