Datasheet
78K0/Kx2-L CHAPTER 2 PIN FUNCTIONS
R01UH0028EJ0400 Rev.4.00 47
Sep 27, 2010
2.2.5 P40 to P42 (port 4)
P40 to P42 function as an I/O port. These pins also function as pins for external interrupt request input, real-time
counter clock output, real-time counter correction clock output, and chip select input of serial interface.
The clock I/O and data input of the serial interface can be assigned to P40 and P41 of the 78K0/KC2-L (44-pin and 48-
pin products) respectively by setting the port alternate switch control register (MUXSEL).
78K0/KY2-L
(
μ
PD78F057x)
78K0/KA2-L
(
μ
PD78F056x)
78K0/KB2-L
(
μ
PD78F057x)
78K0/KC2-L
(
μ
PD78F058x)
16 Pins 20, 25, 32 Pins 30 Pins 40 Pins 44 Pins 48 Pins
− − − −
P40/RTCCL/
RTCDIV(/SCK11)
P40/RTCCL/
RTCDIV(/SCK11)
− − − −
P41/RTC1HZ
(/SI11)
P41/RTC1HZ
(/SI11)
− − − − −
P42/PCL/SSI11/
INTP6
Remark Functions in parentheses ( ) can be assigned by setting the port alternate switch control register (MUXSEL).
The following operation modes can be specified in 1-bit units.
(1) Port mode
P40 to P42 function as an I/O port. P40 to P42 can be set to input or output port in 1-bit units using port mode
register 4 (PM4). Use of an on-chip pull-up resistor can be specified by pull-up resistor option register 4 (PU4).
(2) Control mode
P40 to P42 function as external interrupt request input, real-time counter clock output, real-time counter correction
clock output, and serial interface clock I/O, data input, and chip select input.
(a) RTCDIV
This is the real-time counter clock (32 kHz division) output pin.
(b) RTCCL
This is the real-time counter clock (32 kHz original oscillation) output pin.
(c) RTC1HZ
This is the real-time counter correction clock (1 Hz) output pin.
(d) INTP6
This is an external interrupt request input pin for which the valid edge (rising edge, falling edge, or both rising and
falling edges) can be specified.
(e) PCL
This is a clock output pin.
(f) SCK11
This is a serial clock I/O pin of serial interface CSI11.
(g) SI11
This is a serial data input pin of serial interface CSI11.
<R>