Port 1 - NEC 78K0R/KE3 User Manual

16-bit single-chip microcontrollers
Table of Contents

Advertisement

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, and
real-time counter clock output.
Reset signal generation sets port 1 to input mode.
Figures 4-7 to 4-11 show block diagrams of port 1.
Cautions 1. To use P10/SCK00 P11/SI00/RxD0 P12/SO00/TxD0, P13/TxD3, or P14/RxD3 as a general-
purpose port, note the serial array unit setting. For details, refer to the following tables.
• Table 11-5 Relationship Between Register Settings and Pins (Channel 0 of Unit 0: CSI00,
UART0 Transmission)
• Table 11-6 Relationship Between Register Settings and Pins (Channel 1 of Unit 0: UART0
Reception)
• Table 11-9 Relationship Between Register Settings and Pins (Channel 2 of Unit 1: UART3
Transmission)
• Table 11-10 Relationship Between Register Settings and Pins (Channel 3 of Unit 1: UART3
Reception)
2. To use P16/TI01/TO01/INTP5 or P17/TI02/TO02 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 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.
CHAPTER 4 PORT FUNCTIONS
User's Manual U17854EJ9V0UD
101

Advertisement

Table of Contents
loading

Table of Contents