38
CHAPTER 2 PIN FUNCTION
Preliminary User’s Manual U16035EJ1V0UM
2.2.5 P40 to P47 (Port 4)
These are 8-bit I/O ports.
The interrupt request flag (KRIF) can be set to 1 by detecting a falling edge.
The following operating mode can be specified in 1-bit units.
Caution
When using the falling edge detection interrupt (INTKR), be sure to set the memory expansion
mode register (MEM) to 01H.
(1) Port mode
These ports function as 8-bit I/O ports. They can be specified as input or output ports in 1-bit units with port mode
register 4 (PM4). On-chip pull-up resistors can be used by setting pull-up resistor option register 4 (PU4).
2.2.6 P50 to P57 (Port 5)
These are 8-bit I/O ports.
Port 5 can drive LEDs directly.
The following operating modes can be specified in 1-bit units.
(1) Port mode
These ports function as 8-bit I/O ports. They can be specified as input or output ports in 1-bit units with port mode
register 5 (PM5). On-chip pull-up resistors can be used by setting pull-up resistor option register 5 (PU5).