Datasheet

78K0/Ix2 CHAPTER 4 PORT FUNCTIONS
R01UH0010EJ0500 Rev.5.00 135
Feb 28, 2012
Figure 4-26. Format of Port Mode Register (78K0/IA2)
7
1
Symbol
PM0
6
1
5
1
4
1
3
1
2
1
1
1
0
PM00
Address
FF20H
After reset
FFH
R/W
R/W
1
PM2
1 PM25
Note
PM24
Note
PM23
Note
PM22
Note
PM21
Note
PM20
Note
FF22H FFH R/W
1
PM3
1 1 PM34 PM33 PM32 PM31 1
FF23H FFH R/W
1
PM6
1 1 1 1 1 PM61 PM60
FF26H FFH R/W
PMmn
Pmn pin I/O mode selection
(m = 0, 2, 3, 6; n = 0 to 5)
0 Output mode (output buffer on)
1 Input mode (output buffer off)
Note If this pin is set as an analog input by using the ADPC0 register, be sure to set it to input mode.
Caution Be sure to set bits 1 to 7 of PM0, bits 6, 7 of PM2, bits 1, 5 to 7 of PM3, bits 2 to 7 of PM6 to 1.
Figure 4-27. Format of Port Mode Register (78K0/IB2)
7
1
Symbol
PM0
6
1
5
1
4
1
3
1
2
PM02
1
PM01
Note 1
0
PM00
Address
FF20H
After reset
FFH
R/W
R/W
PM27
Note 2
PM2
PM26
Note 2
PM25
Note 2
PM24
Note 2
PM23
Note 2
PM22
Note 2
PM21
Note 2
PM20
Note 2
FF22H FFH R/W
PM37
PM3
PM36 PM35 PM34 PM33 PM32 PM31
PM30
Note 1
FF23H FFH R/W
1
PM6
1 1 1 1 1 PM61 PM60
FF26H FFH R/W
1
PM7
111111
PM70
Note 2
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. 78K0/IB2 (30 pins) only
2. If this pin is set as an analog input by using the ADPC1 or ADPC0 register, be sure to set it to input
mode.
Cautions 1. Be sure to set bits 3 to 7 of PM0, bits 2 to 7 of PM6, bits 1 to 7 of PM7 to 1.
2. When using the 78K0/IB2 (32 pins), be sure to clear bit 1 of PM0 and bit 0 of PM3 to 0.