CHAPTER 14 PORT FUNCTION
User’s Manual U13850EJ4V0UM
397
(1) Function of P6 pins
Port 6 is a 6-bit I/O port for which I/O settings can be controlled in 1-bit units. I/O settings are controlled via the
port 6 mode register (PM6).
In output mode, the values set to each bit are output to the port 6 register (P6).
When using this port in input mode, the pin statuses can be read by reading the P6 register. Also, the P6
register (output latch) values can be read by reading the P6 register while in output mode.
A software pull-up function is not implemented.
When using the alternate function as A16 to A21, set the pin functions via the memory expansion register (MM).
This does not affect the PM6 register.
When a reset is input, the settings are initialized to input mode.
(2) Control register
(a) Port 6 mode register (PM6)
PM6 can be read/written in 8-/1-bit units.
Figure 14-29. Port 6 Mode Register (PM6)
After reset:
3FH
R/W
Address: FFFFF02CH
7
6
5
4
3
2
1
0
PM6
0
0
PM65
PM64
PM63
PM62
PM61
PM60
PM6n
Control of I/O mode (n = 0 to 5)
0
Output mode
1
Input mode
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...