SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 92
V1.4
I/O PORT MODE
The port direction is programmed by PnM register. Port 0 is always input mode. Port 1,2,3,4 and 5 can select input or
output direction.
P2M initial value = 0000 0000
0C2H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P2M
P27M P26M P25M P24M P23M P22M P21M P20M
R/W R/W R/W R/W R/W R/W R/W R/W
Bit [7:0]
P2 [7:0] M:
P2.0~P2.7 I/O direction control bit.
0 = Set P2 as input mode
1 = Set P2 as output mode
P4M initial value = 0000 0000
0C4H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P4M
P47M P46M P45M P44M P43M P42M P41M P40M
R/W R/W R/W R/W R/W R/W R/W R/W
Bit [7:0]
P4 [7:0] M:
P4.0~P4.7 I/O direction control bit.
0 = Set P4 as input mode
1 = Set P4 as output mode
P5M initial value = x000 0000
0C5H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P5M
P56M P55M P54M P53M P52M P51M P50M
R/W R/W R/W R/W R/W R/W R/W
Bit [6:0]
P5 [6:0] M:
P5.0~P5.6 I/O direction control bit.
0 = Set P5 as input mode
1 = Set P5 as output mode