71M6403
Electronic Trip Unit
SEPTEMBER 2006
Page: 35 of 75
©
2006 TERIDIAN Semiconductor Corporation
REV 1.0
On-Chip Resources
DIO Ports
The 71M6402 includes up to 22 pins of general purpose digital I/O. 18 of these pins are dual function and can alternatively be
used as LCD drivers. Figure 6 shows a block diagram of the DIO section.
On reset or power-up, all DIO pins are inputs until they are configured for the desired direction. The pins are configured and con-
trolled by the
DIO
and
DIO_DIR
registers (SFRs) and by the five bits of the I/O register
LCD_NUM
(0x2020[4:0]). See the
description for
LCD_NUM
in the I/O RAM Section for a table listing the available segment pins versus DIO pins, depending on
the selection for
LCD_NUM
. Generally, increasing the value for
LCD_NUM
will configure an increasing number of general
purpose pins to be LCD segment pins, starting at the higher pin numbers.
COM0..3
LCD DISPLAY
DRIVER
DIGITAL I/O
LCD_CLK
LCD_MODE
DIO_GP
SEG20..23
DIO_0..3
SEG28/DIO8 ..
SEG31/DIO11
LCD_FS
LCD_MODE
LCD_EN
LCD_NUM
DIO_OUT
DIO_IN
LCD_NUM
STROBE
SEG24/DIO4 ..
SEG27/DIO7
SEG32/DIO12 ..
SEG41/DIO21
SEG0..2, SEG3/SCLK,
SEG4/SSDATA,
SEG5/SFR, SEG7..19
DIO_EEX
SEG6/SRDY
FAULT_PULSE
Figure 6: DIO Ports Block Diagram
Each pin declared as DIO can be configured independently as an input or output with the bits of the
DIO_DIRn
registers. Table
51 lists the direction registers and configurability associated with each group of DIO pins. Table 52 shows the configuration for a
DIO pin through its associated bit in its
DIO_DIR
register.
DIO Pin Group
Type
MPU
Port
Direction
Register
Name
Direction
Register
(SFR)
Location
Data
Register
Name
Data Re-
gister
(SFR)
Location
Internal resources
selectable when
configured as DIO
DIO_0…DIO_3 DIO
only P0
0xA2 [3:0]
0x80 [3:0]
Yes
DIO 4…DIO7
Multi-use
P0
DIR0
0xA2 [7:4]
P0
0x80 [7:4]
Yes
DIO 8…DIO11
Multi-use
P1
0x91 [3:0]
0x90 [3:0]
Yes
DIO 12…DIO15
Multi-use
P1
DIR1
0x91[7:4]
P1
0x90[7:4] No
DIO 16…DIO21
Multi-use
P2
DIR2
0xA1[5:0]
P2
0xA0[5:0] No
Table 51: Direction Registers and Internal Resources for DIO Pin Groups
DIO_DIR
bit
0
1
DIO Pin Function
input
output
Table 52:
DIO_DIR
Control Bit
electronic components distributor