English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (64/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 2 PIN FUNCTIONS
Cautions 1.
2.
3.
4.
To use P30/TO00/TI03/RTC1HZ/INTP1 as a general-purpose port, set bit 5 (RCLOE1) of real-time
counter control register 0 (RTCC0), bit 0 (TO00) of timer output register 0 (TO0) and bit 0 (TOE00)
of timer output enable register 0 (TOE0) to “0”, which is the same as their default status setting.
To use P31/TO03/TI00/RTCDIV/RTCCL/PCLBUZ1/INTP2 as a general-purpose port, set bit 4
(RCLOE0) of real-time counter control register 0 (RTCC0), bit 6 (RCLOE2) of real-time counter
control register 2 (RTCC2), bit 3 (TO03) of timer output register 0 (TO0), bit 3 (TOE03) of timer
output enable register 0 (TOE0) and bit 7 of clock output select register 1 (CKS1) to “0”, which is
the same as their default status setting.
To use P32/TO01/TI01/INTP5/PCLBUZ0 as a general-purpose port, set bit 1 (TO01) of timer output
register 0 (TO0), bit 1 (TOE01) of timer output enable register 0 (TOE0) and bit 7 of clock output
select register 0 (CKS0) to “0”, which is the same as their default status setting.
To use P33/TO07/TI07/INTP3 and P34/TO06/TI06/INTP8 as a general-purpose port, set bit 7, 6
(TO07, TO06) of timer output register 0 (TO0), and bit 7, 6 (TOE07, TOE06) of timer output enable
register 0 (TOE0) to “0”, which is the same as their default status setting.
2.2.5 P40, P41
P40 and P41 function as an I/O port. These pins also function as data I/O for a flash memory programmer/debugger
and clock output for a debugger.
<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)
The following operation modes can be specified in 1-bit units.
(1) Port mode
P40 and P41 function as an I/O port. P40 and P41 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).
Be sure to connect an external pull-up resistor to P40 when on-chip debugging is enabled (by using an option byte).
(2) Control mode
P40 and P41 function as data I/O for a flash memory programmer/debugger and clock output for a debugger.
(a) TOOL0
This is a data I/O pin for a flash memory programmer/debugger.
Be sure to pull up this pin externally when on-chip debugging is enabled (pulling it down is prohibited).
R01UH0004EJ0501 Rev.5.01
48
Jun 20, 2011