Datasheet

78K0/Ix2 CHAPTER 4 PORT FUNCTIONS
R01UH0010EJ0500 Rev.5.00 116
Feb 28, 2012
4.2.3 Port 3
78K0/IY2 78K0/IA2 78K0/IB2
16 Pins 20 Pins 30 Pins 32 Pins
P30/TOH1/TI51/INTP1
P31/TOX00/INTP2/TOOLC1 P31/TOX00/INTP2/TOOLC1 P31/TOX00/INTP2/TOOLC1 P31/TOX00/INTP2/TOOLC1
P32/TOX01/INTP3/TOOLD1 P32/TOX01/INTP3/TOOLD1 P32/TOX01/INTP3/TOOLD1 P32/TOX01/INTP3/TOOLD1
P33/TOX10 P33/TOX10 P33/TOX10 P33/TOX10
P34/TOX11/INTP4/<TOH1>/
<TI51>
P34/TOX11/INTP4/<TOH1>/
<TI51>
P34/TOX11/INTP4
P34/TOX11/INTP4/<TOH1>/
<TI51>
P35/SCK11 P35/SCK11
P36/SI11 P36/SI11
P37/SO11 P37/SO11
Remark Functions in angle brackets < > can be assigned by setting the input switch control register (MUXSEL).
Port 3 is an I/O port with an output latch. Port 3 can be set to the input mode or output mode in 1-bit units using port
mode register 3 (PM3). When the P30 to P37 pins are used as an input port, use of an on-chip pull-up resistor can be
specified in 1-bit units by pull-up resistor option register 3 (PU3).
This port can also be used for external interrupt request input, timer I/O, clock I/O and data I/O for serial interface, and
clock input and data I/O for flash memory programmer/on-chip debugger.
The timer input or timer output can be assigned to P34 of 78K0/IY2, 78K0/IA2, and 78K0/IB2 (32 Pins) by setting the
port alternate switch control register (MUXSEL).
Reset signal generation sets port 3 to input mode.
Figures 4-12 to 4-19 show block diagrams of port 3.
Cautions 1. To use P35/SCK11 and P37/SO11 of 78K0/IB2 as general-purpose ports, set serial operation mode
register 11 (CSIM11) and serial clock selection register 11 (CSIC11) to the default status (00H).
2. When using the 78K0/IB2 (32 pins), be sure to clear bit 0 of port mode register 3 (PM3) to 0 after
the reset status is released.
Remark For how to connect a flash memory programmer using TOOLC1/P31, TOOLD1/P32, refer to CHAPTER 25
FLASH MEMORY. For how to connect TOOLC1/P31, TOOLD1/P32 and an on-chip debug emulator, refer
to CHAPTER 26 ON-CHIP DEBUG FUNCTION.