Datasheet
78K0/Kx2-L CHAPTER 4 PORT FUNCTIONS
R01UH0028EJ0400 Rev.4.00 169
Sep 27, 2010
Figure 4-32. Format of Port Mode Register (78K0/KA2-L (25-pin and 32-pin products)
7
1
Symbol
PM0
6
1
5
1
4
1
3
1
2
PM02
1
PM01
Note 4
0
PM00
Note 1
Address
FF20H
After reset
FFH
R/W
R/W
PM27
Notes 2, 3
PM2
PM26
Note 3
PM25
Note 3
PM24
Note 3
PM23
Note 3
PM22
Note 3
PM21
Note 3
PM20
Note 3
FF22H FFH R/W
PM37
PM3
PM36 PM35 PM34 PM33 PM32 PM31
PM30
Notes 4, 5
FF23H FFH R/W
1
PM6
1 1 1 1 1 PM61 PM60
FF26H FFH R/W
1
PM7
Note 2
1111
PM72
Notes 2, 3
PM71
Notes 2, 3
PM70
Notes 2, 3
FF27H FFH R/W
PMmn
Pmn pin I/O mode selection
(m = 0, 2, 3, 6, 7; n = 0 to 7)
0 Output mode (output buffer on)
1 Input mode (output buffer off)
Notes 1. 25-pin products only
2. 32-pin products only
3. If this pin is set as an analog input by using the ADPC0 and ADPC1 registers, be sure to set it to
input mode.
4. For 25-pin products, clear it to 0.
5. For 32-pin products, clear it to 0.
Cautions 1. For 25-pin products, be sure to set bits 1 and 3 to 7 of PM0, bit 7 of PM2, and bits 2 to 7 of
PM6 to 1. Set P30 and P01 to output mode (PM30 = PM01 = 0) by using software after release
of reset.
2. For 32-pin products, be sure to set bits 0 and 3 to 7 of PM0, bits 2 to 7 of PM6, and bits 3 to 7
of PM7 to 1. Set P30 to output mode (PM30 = 0) by using software after release of reset.
<R>