Datasheet
RL78/L12 CHAPTER 18 KEY INTERRUPT FUNCTION
R01UH0330EJ0200 Rev.2.00 728
Dec 13, 2013
18.3.4 Port mode registers 1, 3, 7, 14 (PM1, PM3, PM7, PM14)
These registers set the input and output of port 1, 3, 7, 14 in 1-bit units.
The presence or absence of key input pins depends on the product. When using the key interrupt function, set the
following port mode registers according to the product used.
32, 44-pin products: PM1, PM14
48, 52-pin products: PM3, PM7
64-pin products: PM7
When using P10/KR2 to P12/KR0, P140/KR3, P30/KR3 to P32/KR1, or P70/KR0 to P73/KR3 as a key input pin, set the
bit of the port mode registers (PM1, PM3, PM7, PM14) corresponding to the port pin to 1.
The PM1, PM3, PM7, and PM14 registers can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears these registers to FFH.
Figure 18-5. Format of Port Mode Register 7 (PM7) (64-pin products)
Address: FFF27H After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 0
PM7 1 1 1 PM74 PM73 PM72 PM71 PM70
PM7n I/O mode selection for P7n pin (n = 0 to 4)
0 Output mode (output buffer on)
1 Input mode (output buffer off)
Remark The figure shown above presents the format of port mode register 7 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.