SN8P275X Series
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 77
Version 0.7
7
7
7
I/O PORT
7.1 I/O PORT MODE
The port direction is programmed by PnM register. All I/O ports can select input or output direction.
0B8H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P0M
- - - - -
P02M
P01M
P00M
Read/Write
- - - - -
R/W
R/W
R/W
After
reset
- - - - - 0 0 0
0C1H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P1M
P17M P16M P15M P14M P13M P12M P11M P10M
Read/Write R/W
R/W
R/W R/W R/W R/W R/W R/W
After
reset
0 0 0 0 0 0 0 0
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
Read/Write R/W
R/W
R/W R/W R/W R/W R/W R/W
After
reset
0 0 0 0 0 0 0 0
0C3H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P3M
- - - - -
P32M
P31M
P30M
Read/Write
- - - - -
R/W
R/W
R/W
After
reset
- - - - - 0 0 0
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
Read/Write R/W
R/W
R/W R/W R/W R/W R/W R/W
After
reset
0 0 0 0 0 0 0 0
0C5H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P5M
P57M P56M P55M P54M P53M P52M P51M P50M
Read/Write R/W
R/W
R/W R/W R/W R/W R/W R/W
After
reset
0 0 0 0 0 0 0 0
Bit[7:0]
PnM[7:0]:
Pn mode control bits. (n = 0~5).
0 = Pn is input mode.
1 = Pn is output mode.
Note: Users can program them by bit control instructions (B0BSET, B0BCLR).
Note: If not used ADC function, AVDD must be connect with VDD, otherwise P4 I/O maybe ERROR.