English
Language : 

SM8958B Datasheet, PDF (24/49 Pages) SyncMOS Technologies,Inc – 256 bytes SRAM as standard 8052
SM8958B
8-Bit Micro-controller
32KB 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. Port0 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
5
P0.5
4
P0.4
3
P0.3
2
P0.2
1
P0.1
Address: 80h
0
Reset
P0.0 FFh
P0.7~ 0: Port0 [7] ~ Port0[0]
Mnemonic: P1
7
6
P1.7 P1.6
5
P1.5
4
P1.4
3
P1.3
2
P1.2
1
P1.1
Address: 90h
0 Reset
P1.0 FFh
P1.7~ 0: Port1 [7] ~ Port1 [0]
Mnemonic: P2
7
6
P2.7 P2.6
5
P2.5
4
P2.4
3
P2.3
2
P2.2
1
P2.1
Address: A0h
0 Reset
P2.0 FFh
P2.7~ 0: Port2 [7] ~ Port2 [0]
Mnemonic: P3
7
6
P3.7 P3.6
5
P3.5
4
P3.4
3
P3.3
2
P3.2
1
P3.1
Address: B0h
0 Reset
P3.0 FFh
P3.7~ 0: Port3 [7] ~ Port3 [0]
Mnemonic: P4
7
6
5
4
-
-
-
-
3
P4.3
2
P4.2
1
P4.1
Address: D8h
0 Reset
P4.0 xFh
P4.3~ 0: Port4 [3] ~ Port4 [0]
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M085
Ver D SM8958B 08/07/2015
- 24 -