Datasheet

DS_6612_001 78M6612 Data Sheet
Rev 2 15
Table 3: DIO_DIR Control Bit
DIO_DIR [n]
0 1
DIO Pin n Function
Input Output
Additionally, if DIO6 and DIO7 are declared outputs, they can be configured as dedicated pulse outputs
(WPULSE = DIO6, VARPULSE = DIO7) using DIO_PW and DIO_PV registers. In this case, DIO6 and
DIO7 are under CE control. DIO4 and DIO5 can be configured to implement the EEPROM Interface.
If the optical UART is not used, TX1 and RX1 can be configured as dedicated DIO pins (DIO1, DIO2, see
Section 1.5.6 Optical Interface).
A 3-bit configuration word, I/O RAM register, DIO_Rx (0x2009[2:0] through 0x200E[6:4]) can be used for
certain pins, when configured as DIO, to individually assign an internal resource such as an interrupt or a
timer control (see Table 2 for DIO pins available for this option). This way, DIO pins can be tracked even
if they are configured as outputs.
Tracking DIO pins configured as outputs is useful for pulse counting without external
hardware.
When driving LEDs, relay coils etc., the DIO pins should sink the current into ground (as
shown in
Figure 3, right), not source it from V3P3D (as shown in Figure 3, left). This is due
to the resistance of the internal switch that connects V3P3D to either V3P3SYS or VBAT.
When configured as inputs, the dual-function (DIO/SEG) pins should not be pulled above
V3P3SYS in MISSION and above VBAT in LCD and BROWNOUT modes. Doing so will
distort the LCD waveforms of the other pins. This limitation applies to any pin that can be
configured as a LCD driver.
The control resources selectable for the DIO pins are listed in Table 4. If more than one input is
connected to the same resource, the resources are combined using a logical OR.
Figure 3: Connecting an External Load to DIO Pins
Not recommended
78M6612
DIO
1
R
V3P3
D
LE
D
V3P3SYS
3.3V
DGN
D
VBA
T
DIO1
R
V3P3D
LED
V3P3SYS
3.3V
DGND
VBAT
Recommended
R
LE
D
DIO
1
V3P3
D
V3P3SYS
DGN
D
VBA
T
3.3V
Recommended
R
LED
DIO1
V3P3D
78M6612
V3P3SYS
DGND
VBA
T
3.3V