RL78/G13    CHAPTER  4   PORT  FUNCTIONS 
R01UH0146EJ0100  Rev.1.00      192  
Sep 22, 2011 
4.2.5  Port 4 
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 to P47 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 4 (PU4).   
Input to the P43 and P44 pins can be specified through a normal input buffer or a TTL input buffer in 1-bit units using 
port input mode register 4 (PIM4). 
Output from the P430 to P45 pins can be specified as N-ch open-drain output (V
DD tolerance) in 1-bit units using port 
output mode register 4 (POM4). 
This port can also be used for data I/O for a flash memory programmer/debugger, timer I/O, serial interface data I/O, 
clock I/O, and external interrupt request input. 
Reset signal generation sets port 4 to input mode.