
CHAPTER 14 PORT FUNCTION
343
(2) Control registers
(a) Port 4 mode register and port 5 mode register (PM4 and PM5)
Read and write in 8-bit units and bitwise are enabled.
Figure 14-18. Format of Port 4 Mode Register, Port 5 Mode Register (PM4, PM5)
After reset:
FF
H
R/W
Address: FFFFF028H, FFFFF02AH
7
6
5
4
3
2
1
0
PMn
PMn7
PMn6
PMn5
PMn4
PMn3
PMn2
PMn1
PMn0
(n = 4, 5)
PMnx
Control of I/O Mode
0
Output mode
1
Input mode
14.2.6 Port 6
Port 6 is a 6-bit I/O port for which I/O settings can be controlled bitwise.
Figure 14-19. Format of Port 6 (P6)
After reset:
00H
R/W
Address: FFFFF00CH
7
6
5
4
3
2
1
0
P6
0
0
P65
P64
P63
P62
P61
P60
P6n
Control of Output Data (during output mode)
0
Output “0”
1
Output “1”
Remark
During input mode
: When the P6 register is read, the pin levels at that time are read. Writing to P6
writes the current pin levels to that register. This does not affect the input pins.
During output mode : When the P6 register is read, the P6 register’s values are read. Writing to P6
writes values to that register, and those values are immediately output.
Port 6 includes the following alternate-function pins.
Содержание V850/SA1 mPD703015
Страница 2: ...2 MEMO ...
Страница 100: ...100 MEMO ...
Страница 144: ...144 MEMO ...
Страница 200: ...200 MEMO ...
Страница 328: ...328 MEMO ...
Страница 356: ...356 MEMO ...
Страница 358: ...358 MEMO ...
Страница 368: ...368 MEMO ...
Страница 374: ...374 MEMO ...
Страница 382: ...382 MEMO ...