Datasheet
RL78/L12 CHAPTER 4 PORT FUNCTIONS
R01UH0330EJ0200 Rev.2.00 110
Dec 13, 2013
4.3.6 Port mode control registers (PMCxx)
These registers set the P13, P14, P41, P120, and P142 to P145 digital I/O/analog input in 1-bit units.
These registers can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears these registers to FFH.
Figure 4-6. Format of Port Mode Control Register (64-pin products)
Symbol 7 6 5 4 3 2 1 0 Address After reset R/W
PMC1 1 1 1 PMC14 PMC13 1 1 1 F0061H FFH R/W
PMC4 1 1 1 1 1 1 PMC41 1 F0064H FFH R/W
PMC12 1 1 1 1 1 1 1 PMC120 F006CH FFH R/W
PMC14 1 1 PMC145 PMC144 PMC143 PMC142 1 1 F006EH FFH R/W
PMCmn
Pmn pin digital I/O/analog input selection
(m = 1, 4, 12, 14; n = 0 to 5)
0 Digital I/O (alternate function other than analog input)
1 Analog input
Cautions 1. Select input mode by using port mode registers 1, 4, 12, 14 (PM1, PM4, PM12, PM14) for the
ports which are set by the PMCxx register as analog input.
2. Do not set the pin set by the PMC register as digital I/O by the analog input channel
specification register (ADS).
3. Be sure to set bits that are not mounted to their initial values.
<R>
<R>