RL78/G1A CHAPTER 4 PORT FUNCTIONS
R01UH0305EJ0200 Rev.2.00 110
Jul 04, 2013
4.3.6 Port mode control registers (PMCxx)
These registers set the digital I/O/analog input in 1-bit units.
Port mode control 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
Symbol 7 6 5 4 3 2 1 0 Address After reset R/W
PMC0 1 1 1 1 PMC03 PMC02 1 1 F0060H FFH R/W
PMC1 1 1 PMC15 PMC14 PMC13 PMC12 PMC11 PMC10 F0061H FFH R/W
PMC3 1 1 1 1 1 1 PMC31 PMC30 F0063H FFH R/W
PMC4 1 1 1 1 1 1 PMC41 1 F0064H FFH R/W
PMC5 1 1 1 1 1 1 PMC51 PMC50 F0065H FFH R/W
PMC7 1 1 1 1 1 1 1 PMC70 F0067H FFH R/W
PMC12 1 1 1 1 1 1 1 PMC120 F006CH FFH R/W
PMCmn
Pmn pin digital I/O/analog input selection
(m = 0, 1, 3 to 5, 7, 12; 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 0, 1, 3 to 5, 7, 12 (PM0, PM1, PM3 to PM5, PM7,
PM12) for the ports which are set by the PMCxx register as analog input.
2. Do not set the pin set by the PMCxx 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>