SM5964B
8-Bit Micro-controller
64KB with ISP Flash
& 1KB RAM embedded
5. GPIO
Port 0 ~ Port 4 are the general purpose IO of this controller. Most of the ports are multiplexed with the other
outputs, e.g., Port 3[0] is also used as RXD in the UART application. Port 0 is open-drain in the input and output
high condition, so external pull-up resistors are required. As for the other ports, the pull-up resistors are built
internally.
For general purpose applications, every pin can be assigned to either high or low independently because their
SFRs are bit addressable as given below:
Mnemonic: P0
7
6
P0.7
P0.6
Address: 80h
0
Reset
P0.0
FFh
5
P0.5
4
P0.4
3
P0.3
2
P0.2
1
P0.1
P0.7~ 0: Port0 [7] ~ Port0[0]
Mnemonic: P1
7
6
P1.7
P1.6
Address: 90h
0
Reset
P1.0
FFh
5
P1.5
4
P1.4
3
P1.3
2
P1.2
1
P1.1
P1.7~ 0: Port1 [7] ~ Port1 [0]
Mnemonic: P2
7
6
P2.7
P2.6
Address: A0h
0
Reset
P2.0
FFh
5
P2.5
4
P2.4
3
P2.3
2
P2.2
1
P2.1
P2.7~ 0: Port2 [7] ~ Port2 [0]
Mnemonic: P3
7
6
P3.7
P3.6
Address: B0h
0
Reset
P3.0
FFh
5
P3.5
4
P3.4
3
P3.3
2
P3.2
1
P3.1
P3.7~ 0: Port3 [7] ~ Port3 [0]
Mnemonic: P4
7
6
5
-
-
-
P4.3~ 0: Port4 [3] ~ Port4 [0]
4
-
3
P4.3
2
P4.2
1
P4.1
Address: D8h
0
Reset
P4.0
xFh
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M081
Ver A SM5964B 3/7/2014
- 24 -