CHAPTER 4 PORT FUNCTIONS
User’s Manual U16898EJ3V0UD
51
4.2.2 Port
3
Pins P30 and P31 constitute a 2-bit I/O port with an output latch. Each bit of this port can be set to the input or
output mode by using port mode register 3 (PM3). When the P30 to P31 pins are used as an input port, an on-chip
pull-up resistor can be connected in 1-bit units by using pull-up resistor option register 3 (PU3). This port is also used
for both timer I/O and external interrupt request input pin functions.
Reset signal generation sets port 3 to the input mode.
P34 is a 1-bit input-only port. This pin is also used as a RESET pin, and when the power is turned on, this is the
reset function. For the setting method for pin functions, see
CHAPTER 17 OPTION BYTE
.
When P34 is used as an input port pin, connect the pull-up resistor.
Figures 4-3 to 4-5 show the block diagrams of port 3.
Figure 4-3. Block Diagram of P30
P30/TI000/INTP0
WR
PU
RD
WR
PORT
WR
PM
PU30
Output latch
(P30)
PM30
V
DD
P-ch
PU3
PM3
Internal bus
Selector
Alternate
function
P3
P3:
Port register 3
PU3:
Pull-up resistor option register 3
PM3: Port mode register 3
RD:
Read signal
WR
××
: Write signal