
CHAPTER 4 PORT FUNCTIONS
User’s Manual U17894EJ9V0UD
114
4.2.2 Port 1
Port 1 is an 8-bit I/O port with an output latch. Port 1 can be set to the input mode or output mode in 1-bit units
using port mode register 1 (PM1). When the P10 to P17 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 1 (PU1).
This port can also be used for external interrupt request input, serial interface data I/O, clock I/O, timer I/O, real-
time counter clock output, and external expansion output (address bus).
Reset signal generation sets port 1 to input mode.
Figures 4-8 to 4-12 show block diagrams of port 1.
Cautions 1. To use P10/SCK00/EX24, P11/SI00/RxD0/EX25, P12/SO00/TxD0/EX26, P13/TxD3/EX27, or
P14/RxD3/EX28 as a general-purpose port, note the serial array unit setting. For details, refer
to the following tables.
Table 13-5 Relationship Between Register Settings and Pins (Channel 0 of Unit 0: CSI00,
UART0 Transmission)
Table 13-6 Relationship Between Register Settings and Pins (Channel 1 of Unit 0: CSI01,
UART0 Reception)
Table 13-11 Relationship Between Register Settings and Pins (Channel 2 of Unit 1: UART3
Transmission)
Table 13-12 Relationship Between Register Settings and Pins (Channel 3 of Unit 1: UART3
Reception)
2. To use P16/TI01/TO01/INTP5/EX30 or P17/TI02/TO02/EX31 as a general-purpose port, set bits
1 and 2 (TO01, TO02) of timer output register 0 (TO0) and bits 1 and 2 (TOE01, TOE02) of
timer output enable register 0 (TOE0) to “0”, which is the same as their default status setting.
3. To use P15/RTCDIV/RTCCL/EX29 as a general-purpose port, set bit 4 (RCLOE0) of real-time
counter control register 0 (RTCC0) and bit 6 (RCLOE2) of real-time counter control register 2
(RTCC2) to “0”, which is the same as their default status settings.
4. Do not enable outputting other alternate functions when the external expansion output
(address bus) function is used.