RL78/G13 CHAPTER 4 PORT FUNCTIONS
R01UH0146EJ0100 Rev.1.00 278
Sep 22, 2011
Notes 1. The functions of the ANI16/P03, ANI17/P02, ANI18/P147, ANI19/P120, ANI20/P100, ANI21/P37 to
ANI23/P35, and ANI24/P117 to ANI26/P115 pins can be selected by using the port mode control registers 0,
3, 10, 11, 12, 14 (PMC0, PMC3, PMC10, PMC11, PMC12, PMC14), analog input channel specification
register (ADS), and port mode registers 0, 3, 10, 11, 12, 14 (PM0, PM3, PM10, PM11, PM12, PM14).
Table 4-24. Setting Functions of ANI16/P03, ANI17/P02, ANI18/P147, ANI19/P120, ANI20/P100,
ANI21/P37 to ANI23/P35, and ANI24/P117 to ANI26/P115 pins
PMC0, PMC3, PMC10,
PMC11, PMC12, PMC14
Registers
PM0, PM3, PM10,
PM11, PM12,
PM14 Registers
ADS Register ANI16/P03, ANI17/P02,
ANI18/P147, ANI19/P120,
ANI20/P100, ANI21/P37 to
ANI23/P35, ANI24/P117 to
ANI26/P115 Pins
Input mode
×
Digital input Digital I/O selection
Output mode
×
Digital output
Selects ANI. Analog input (to be converted) Input mode
Does not select ANI. Analog input (not to be converted)
Selects ANI.
Analog input selection
Output mode
Does not select ANI.
Setting prohibited
2. The functions of the ANI0/P20 to ANI7/P27, ANI8/P150 to ANI14/P156 pins can be selected by using the
A/D port configuration register (ADPC), analog input channel specification register (ADS), and port mode
registers 2, 15 (PM2, PM15).
Table 4-25. Setting Functions of ANI0/P20 to ANI7/P27, ANI8/P150 to ANI14/P156 pins
ADPC Register PM2, PM5
Register
ADS Register ANI0/P20 to ANI7/P27, ANI8/P150
to ANI14/P156 Pins
Input mode
×
Digital input Digital I/O selection
Output mode
×
Digital output
Selects ANI. Analog input (to be converted) Input mode
Does not select ANI. Analog input (not to be converted)
Selects ANI.
Analog input selection
Output mode
Does not select ANI.
Setting prohibited
3. In the products other than 128-pin products, multiple alternate output functions are assigned to the pins. In
such cases, the output from the alternate functions that are not used in any settings except the one
indicated in table 4-23 must be set to the same value as the one in the initial status. For more detail about
the targets and the method of processing, refer to the section 4.6.2.
Remark ×: don’t care
<R>