![](http://datasheet.mmic.net.cn/390000/PD784976A_datasheet_16826985/PD784976A_88.png)
88
CHAPTER 4 PORT FUNCTIONS
User
’
s Manual U15017EJ2V0UD
4.2.6 Port 6
Port 6 is an 8-bit I/O port with output latch. Input/output mode can be specified for the P60 to P67 pins in 1-bit
units using port 6 mode register (PM6). Use of the on-chip pull-up resistor can be specified for the P60 to P67 pins
per port using bit 6 (PUO6) of the pull-up option register (PUO) only when the pins are used as an input port.
Port 6 functions alternately as a serial interface data input/output, serial clock input/output, timer input/output, and
external interrupt request input.
RESET input sets port 6 to input mode.
Figures 4-12 to 4-14 show a block diagram of port 6.
Caution Pins P64, P65, and P67 also function as external interrupt request inputs. If they are not used
as interrupt input pins, set the external interrupt rising edge enable register (EGP0) and external
interrupt falling edge enable register (EGN0) to “Interrupt Disable.” Or, set the interrupt mask
flags (PMKn where n = 0 to 2) to 1. Otherwise, the interrupt request flag is set when the port
function is placed in output mode and its output level is changed, leading to inadvertent interrupt
servicing.
Figure 4-12. Block Diagram of P60, P64, P65, and P67
PUO:
PM6:
RD:
WR:
Pull-up resistor option register
Port 6 mode register
Port 6 read signal
Port 6 write signal
Note
The Schmitt input buffer of P60, P64, P65 and P67 pins is turned off in the STOP and IDLE modes (Schmitt
output is fixed to
“
L
”
.)
RD
I
P60/SI1,
P64/INTP0,
P65/INTP1,
P67/INTP2
P-ch
WR
PUO
WR
PORT
WR
PM
PUO6
Output latch
(P60, P64, P65, P67)
PM60, PM64,
PM65, PM67
Selector
Alternate
function
V
DD0
Note