English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (160/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 4 PORT FUNCTIONS
4.2.5 Port 4
<R>
P40/TOOL0
P41/TOOL1
78K0R/LF3
(80 pins: μ PD78F15x0A,
78F1501A, 78F15x2A)
78K0R/LG3
(100 pins: μ PD78F15x3A,
78F1504A, 78F15x5A)
√
√
78K0R/LH3
(128 pins: μ PD78F15x6A,
78F1507A, 78F15x8A)
Port 4 is an I/O port with an output latch. Port 4 can be set to the input mode or output mode in 1-bit units using port
mode register 4 (PM4). When the P40 and P41 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 2 (PU2)Note.
This port can also be used for flash memory programmer/debugger data I/O and debugger clock output.
Reset signal generation sets port 4 to input mode.
Figure 4-11 shows a block diagram of port 4.
Note When a tool is connected, the P40 and P41 pins cannot be connected to a pull-up resistor.
Caution When a tool is connected, the P40 pin cannot be used as a port pin.
When the on-chip debug function is used, P41 pin can be used as follows by the mode setting on the
debugger.
• 1-line mode: can be used as a port (P41).
• 2-line mode: used as a TOOL1 pin and cannot be used as a port (P41).
R01UH0004EJ0501 Rev.5.01
144
Jun 20, 2011