57
μ
PD17072,17073
10. GENERAL-PURPOSE PORT
The general-purpose ports output high or low floating signals to external circuits, and reads high or low level signals
from external circuits.
10.1 General
Table 10-1 shows the relations between each port and port register.
The general-purpose ports are classified into I/O ports, input ports, and output ports.
The I/O port is the bit I/O ports, which can be set in the input or output mode in 1-bit (1-pin) units.
Table 10-1. Relations between Each Port (Pin) and Port Register
Port
Pin
Data setting method
No.
Symbol
I/O
Port register (data memory)
Remarks
56-pin
64-pin
Bank
Address
Symbol
Bit symbol
QFP
TQFP
(reserved word)
Port 0A
Output
BANK0
70H
P0A
2
2
P0A0
b
0
P0A0
Port 0B
I/O
71H
P0B
(bit I/O)
53
61
P0B0
b
0
P0B0
Port 0C No pin
72H
P0C
Fixed to “0”
I/O
14
16
P0C0
(bit I/O)
b
0
P0C0
Port 0D
I/O
73H
P0D
No pin
Fixed to “0”
b
0
–
Port 1A
Input
BANK1
70H
P1A
10
11
P1A0
b
0
P1A0
Port 1B
Output
71H
P1B
b
3
P1B3
2
1
6
7
P1B0
0
Port 1C No pin
72H
P1C
b
3
–
2
Fixed to “0”
1
0
73H
–
–
Test mode area. Do not write
“1” to this area.
b
0
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – –
– – – – –
– – – – –
– – – – – – – – – – – –
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – –
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – -
– – – – – – – – – – – – – – – – – – – – – – – – – – – –
– – – – – – – – – – – – – – – – – – –-
– – – – – – – – – – – – – – – – – – –-
– – – – – – – – – – – – – – – – – – – – – – – – – – – –
– – – – – – – – – – – – – – – – – – – – – – – – – – – –