89
Chapter 5 Port Functions
5
Cautions 1. To use P60 through P63 as an output port, it is necessary to reset the PM60 through PM63 bits to 0. If they are not 0, the in-
circuit emulator may not work.
2. To use the P66/WAIT pin as the WAIT pin, it is necessary to put P66 in the input mode using the PM6 register.
Fig. 5-38 Port 6 Mode Register Format
Note When the MM6 bit of the memory expansion mode register (MM) is set to 1, these bits function as a bank specification register used
to execute memory reference instructions without &. When the 1M-byte expansion function is not used, reset PM63 through PM60
to all 0s.
Caution To use analog inputs AN6 and AN7, put PM66 and PM67 in the input mode.
Remark The lower four bits (P60 through P63) of port 6 are an output-only port.
PM67
7
PM66
6
PM65
5
PM64
4
PM63
3
PM62
2
PM61
1
PM60
0
PM6
PM63 PM62 PM61 PM60 Memory bank
specificationNote
(F× H when RESET is input)
0
0
0
0
0
0
0
1
Bank 0
Bank 1
0010 Bank 2
0011 Bank 3
0100 Bank 4
0101 Bank 5
0110 Bank 6
0111 Bank 7
1000 Bank 8
1001 Bank 9
1010 Bank A
1011 Bank B
1100 Bank C
1101 Bank D
1110 Bank E
1111 Bank F
PM6n
Input mode (output buffer OFF)
Output mode (output buffer ON)
Specifies I/O mode of pin PM6n (n = 4 to 7)
0
1