CHAPTER 4 PORT FUNCTIONS
User’s Manual U17446EJ3V1UD
60
Figure 4-11. Block Diagram of P43
P43/TxD6/INTP1
WR
PU
RD
WR
PORT
WR
PM
PU43
Output latch
(P43)
PM43
Alternate
function
V
DD
P-ch
PU4
PM4
Internal bus
Selector
Alternate
function
P4
PU4:
Pull-up resistor option register 4
P4:
Port register 4
PM4:
Port mode register 4
RD:
Read signal
WR
××
: Write signal
4.2.5 Port
12
Port 12 is a 4-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 12 (PM12). When the P120 and P123 pins are used as an input port, an on-chip pull-up resistor
can be connected by using pull-up resistor option register 12 (PU12).
The P121 and P122 pins are also used as the X1 and X2 pins of the system clock oscillator. The functions of the
P121 and P122 pins differ, therefore, depending on the selected system clock oscillator. The following three system
clock oscillators can be used.
(1) High-speed internal oscillator
The P121 and P122 pins can be used as I/O port pins.
(2) Crystal/ceramic oscillator
The P121 and P122 pins cannot be used as I/O port pins because they are used as the X1 and X2 pins.