Renesas g1a Answering Machine User Manual


  Open as PDF
of 1004
 
RL78/G1A CHAPTER 4 PORT FUNCTIONS
R01UH0305EJ0200 Rev.2.00 100
Jul 04, 2013
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 P41 to P43 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).
The P41 pin can be specified as digital input/output or analog input, using port mode control register 4 (PMC4).
This port can also be used for A/D converter analog input, timer I/O, data I/O for a flash memory programmer/debugger.
Reset signal generation sets port 4 to input mode.
4.2.6 Port 5
Port 5 is an I/O port with an output latch. Port 5 can be set to the input mode or output mode in 1-bit units using port
mode register 5 (PM5). When the P50, P51 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 5 (PU5).
Output from the P50 pin can be set as N-ch open-drain output (V
DD tolerance
Note 1
/EVDD tolerance
Note 2
) in 1-bit units using
port output mode register 5 (POM5).
The P50 and 51 pins can be specified as digital input/output or analog input in 1-bit units, using port mode control
register 5 (PMC5).
This port can also be used for A/D converter analog input, external interrupt request input, serial interface data I/O.
Reset signal generation sets port 5 to input mode.
Notes 1. For 25- to 48-pin products
2. For 64-pin products
4.2.7 Port 6
Port 6 is an I/O port with an output latch. Port 6 can be set to the input mode or output mode in 1-bit units using port
mode register 6 (PM6).
The output of the P60 to P63 pins is N-ch open-drain output (6 V tolerance).
This port can also be used for serial interface data I/O and clock I/O.
Reset signal generation sets port 6 to input mode.
<R>
<R>