P40 (Port 4) - Renesas RL78/G1P Hardware User Manual

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
(h) TI02
This is a pin for inputting an external count clock/capture trigger to 16-bit timer 02.
(i)
TO02
This is a timer output pin from 16-bit timer 02.
(j)
TOOLTxD
This is the UART serial data output pin for the external device connection used during flash memory
programming.
(k) TOOLRxD
This is the UART serial data input pin for the external device connection used during flash memory programming.

2.3.4 P40 (port 4)

P40 functions as an I/O port. This pin also functions as data I/O for a flash memory programmer/debugger, serial
interface data I/O.
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).
The following operation modes can be specified in 1-bit units.
(1) Port mode
P40 functions as an I/O port. P40 can be set to input or output port in 1-bit units using port mode register 4 (PM4).
(2) Control mode
P40 functions as data I/O for a flash memory programmer/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).
Caution For the relationship between the voltage on P40/TOOL0 and the operating mode after release
from the reset state, see Table 2-2.
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
CHAPTER 2 PIN FUNCTIONS
19

Advertisement

Table of Contents
loading

Table of Contents