Datasheet
RL78/L12 CHAPTER 14 LCD CONTROLLER/DRIVER
R01UH0330EJ0200 Rev.2.00 624
Dec 13, 2013
14.3.9 Port mode registers 1, 3 to 7, 12, 14 (PM1, PM3 to PM7, PM12, PM14)
These registers specify input/output of ports 1, 3 to 7, 12, and 14 in 1-bit units.
When using the ports (such as P10/SCK00/SEG28, P120/ANI17/SEG25) to be shared with the segment output pin for
segment output, set the port mode register (PMxx) bit and port register (Pxx) bit corresponding to each port to 0.
Example: When using P10/SCK00/SEG28 for segment output
Set the PM10 bit of port mode register 1 to “0”.
Set the P10 bit of port register 1 to “0”.
These registers are set by using a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to FFH.
Figure 14-14. Format of Port Mode Registers 1, 3 to 7, 12, 14 (PM1, PM3 to PM7, PM12, PM14) (64-pin Products)
Symbol 7 6 5 4 3 2 1 0 Address After reset R/W
PM1 PM17 PM16 PM15 PM14 PM13 PM12 PM11 PM10 FFF21H FFH R/W
PM3 1 1 1 1 1 PM32 PM31 PM30 FFF23H FFH R/W
PM4 1 1 1 1 PM43 PM42 PM41 PM40 FFF24H FFH R/W
PM5 1 1 1 PM54 PM53 PM52 PM51 PM50 FFF25H FFH R/W
PM6 1 1 1 1 1 1 PM61 PM60 FFF26H FFH R/W
PM7 1 1 1 PM74 PM73 PM72 PM71 PM70 FFF27H FFH R/W
PM12 PM127 PM126 PM125 1 1 1 1 PM120 FFF2CH FFH R/W
PM14 PM147 PM146 PM145 PM144 PM143 PM142 PM141 PM140 FFF2EH FFH R/W
PMmn Pmn pin I/O mode selection
(m = 1, 3 to 7, 12, 14; n = 0 to 7)
0 Output mode (output buffer on)
1 Input mode (output buffer off)
Remark The figure shown above presents the format of port mode registers 1, 3 to 7, 12, and 14 of the 64-pin
products. The format of the port mode register of other products, see Table 4-3 PMxx, Pxx, PUxx,
PIMxx, POMxx, PMCxx registers and the bits mounted on each product.