MC97F2664
78
April 11, 2014 Ver. 1.4
9.5 P2 Port
9.5.1 P2 Port Description
P2 is 8-bit I/O port. P2 control registers consist of P2 data register (P2), P2 direction register (P2IO), debounce
enable register (P2DB), P2 pull-up resistor selection register (P2PU) and P2 open-drain selection register
(P2OD). Refer to the port function selection registers for the P2 function selection.
9.5.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) : B1H
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) EINT8/EINT9/EINTA/EINT17/EINT18/EINT19/RXD4
function possible when input
P2PU (P2 Pull-up Resistor Selection Register) : 100AH (XSFR)
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) : 1002H (XSFR)
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
Содержание MC97F2664
Страница 20: ...MC97F2664 20 April 11 2014 Ver 1 4 4 Package Diagram Figure 4 1 64 Pin LQFP 1010 Package...
Страница 21: ...MC97F2664 April 11 2014 Ver 1 4 21 Figure 4 2 64 Pin LQFP 1414 Package...
Страница 22: ...MC97F2664 22 April 11 2014 Ver 1 4 Figure 4 3 64 Pin QFN Package...
Страница 23: ...MC97F2664 April 11 2014 Ver 1 4 23 Figure 4 4 44 Pin MQFP 1010 Package...