6. I/O ports
A96G150 User's manual
58
6.4
P2 port
6.4.1
P2 port description
P2 is an 8-bit I/O port. P2 control registers consist of P2 data register (P2), P2 direction register (P2IO),
P2 pull-up resistor selection register (P2PU) andP2 open-drain selection register (P2OD). Refer to the
port function selection registers for the P2 function selection.
6.4.2
Register description for P2
P2 (P2 Data Register): 90H
7
6
5
4
3
2
1
0
P27
P26
P25
P24
P23
P22
P21
P20
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P2[7:0]
I/O Data
P2IO (P2 Direction Register): B9H
7
6
5
4
3
2
1
0
P27IO
P26IO
P25IO
P24IO
P23IO
P22IO
P21IO
P20IO
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P2IO[7:0]
P2 Data I/O Direction
0
Input
1
Output
NOTE:
EC0 (P25) function possible when input.
P2PU (P2 Pull-up Resistor Selection Register): AEH
7
6
5
4
3
2
1
0
P27PU
P26PU
P25PU
P24PU
P23PU
P22PU
P21PU
P20PU
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P2PU[7:0]
Configure Pull-up Resistor of P2 Port
0
Disable
1
Enable
P2OD (P2 Open-drain Selection Register): 93H
7
6
5
4
3
2
1
0
P27OD
P26OD
P25OD
P24OD
P23OD
P22OD
P21OD
P20OD
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P2OD[7:0]
Configure Open-drain of P2 Port
0
Push-pull output
1
Open-drain output
Содержание A96G150
Страница 126: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 126 Figure 43 16 bit Timer Counter Mode Operation Example...
Страница 136: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 136 Figure 51 16 bit Timer Counter Mode Operation Example...
Страница 147: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 147 Figure 59 16 bit Timer Counter Mode Operation Example...
Страница 157: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 157 Figure 67 16 bit Timer Counter Mode Operation Example...
Страница 171: ...A96G150 User s manual 14 12 bit ADC 171 Figure 79 ADC Operation Flow Sequence...
Страница 333: ...A96G150 User s manual Revision history 333 Revision history Revision Date Notes 1 00 2022 06 22 First creation...