![](http://datasheet.mmic.net.cn/170000/UPD78F0537GB-A--GAH-AX_datasheet_10141110/UPD78F0537GB-A--GAH-AX_39.png)
CHAPTER 2 PIN FUNCTIONS
User’s Manual U17260EJ6V0UD
39
Remarks 1. For the product ranks, consult an NEC Electronics sales representative.
2. Only for the
PD78F0537D, P31 and P32 can be used as on-chip debug mode setting pins
(OCD1A, OCD1B) when the on-chip debug function is used. For how to connect an in-circuit
emulator supporting on-chip debugging (QB-78K0MINI or QB-MINI2), see CHAPTER 27 ON-
CHIP DEBUG FUNCTION (
PD78F0537D ONLY).
2.2.5 P40 to P43 (port 4)
P40 to P43 function as a 4-bit I/O port. P40 to P43 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.2.6 P50 to P53 (port 5)
P50 to P53 function as a 4-bit I/O port. P50 to P53 can be set to input or output port in 1-bit units using port mode
register 5 (PM5). Use of an on-chip pull-up resistor can be specified by pull-up resistor option register 5 (PU5).
2.2.7 P60 to P63 (port 6)
P60 to P63 function as a 4-bit I/O port. These pins also function as pins for serial interface data I/O, clock I/O, and
external clock input.
The following operation modes can be specified in 1-bit units.
(1) Port mode
P60 to P63 function as a 4-bit I/O port. P60 to P63 can be set to input port or output port in 1-bit units using port
mode register 6 (PM6).
Output of P60 to P63 is N-ch open-drain output (6 V tolerance).
(2) Control mode
P60 to P63 function as serial interface data I/O, clock I/O, and external clock input.
(a) SDA0
This is a serial data I/O pin for serial interface IIC0.
(b) SCL0
This is a serial clock I/O pin for serial interface IIC0.
(c) EXSCL0
This is an external clock input pin to serial interface IIC0. To input an external clock, input a clock of 6.4 MHz.
2.2.8 P70 to P77 (port 7)
P70 to P77 function as an 8-bit I/O port. These pins also function as key interrupt input pins.
The following operation modes can be specified in 1-bit units.
(1) Port mode
P70 to P77 function as an 8-bit I/O port. P70 to P77 can be set to input or output port in 1-bit units using port
mode register 7 (PM7). Use of an on-chip pull-up resistor can be specified by pull-up resistor option register 7
(PU7).
(2) Control mode
P70 to P77 function as key interrupt input pins.
<R>