RL78/G1A CHAPTER 4 PORT FUNCTIONS
R01UH0305EJ0200 Rev.2.00 105
Jul 04, 2013
4.3.1 Port mode registers (PMxx)
These registers specify input or output mode for the port in 1-bit units.
These registers can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to FFH.
When port pins are used as alternate-function pins, set the port mode register by referencing 4.5 Register Settings
When Using Alternate Function.
Figure 4-1. Format of Port Mode Register
Symbol 7 6 5 4 3 2 1 0 Address After reset R/W
PM0 1 PM06 PM05 PM04 PM03 PM02 PM01 PM00 FFF20H FFH R/W
PM1 1 PM16 PM15 PM14 PM13 PM12 PM11 PM10 FFF21H FFH R/W
PM2 PM27 PM26 PM25 PM24 PM23 PM22 PM21 PM20 FFF22H FFH R/W
PM3 1 1 1 1 1 1 PM31 PM30 FFF23H FFH R/W
PM4 1 1 1 1 PM43 PM42 PM41 PM40 FFF24H FFH R/W
PM5 1 1 1 1 1 1 PM51 PM50 FFF25H FFH R/W
PM6 1 1 1 1 PM63 PM62 PM61 PM60 FFF26H FFH R/W
PM7 PM77 PM76 PM75 PM74 PM73 PM72 PM71 PM70 FFF27H FFH R/W
PM12 1 1 1 1 1 1 1 PM120 FFF2CH FFH R/W
PM14 1 1 1 1 1 1 PM141 PM140 FFF2EH FFH R/W
PM15 1 1 1 PM154 PM153 PM152 PM151 PM150 FFF2FH FFH R/W
PMmn
Pmn pin I/O mode selection
(m = 0 to 7, 12, 14, 15; n = 0 to 7)
0 Output mode (output buffer on)
1 Input mode (output buffer off)
Caution Be sure to set bits that are not mounted to their initial values.
<R>
<R>