71
MC96F6432S
ABOV Semiconductor Co., Ltd.
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), 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.
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
NOTE)
1.
Do not use the “direct bit test and branch” instruction for input port. More detail information is at chapter
17.2 Instructions on how to use the input port.
Example) Avoid direct input port bit test and branch condition as below
if(P20)
→
if(P2 & 0x01)
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)
1.
SS1 function possible when input
Summary of Contents for MC96F6432S Series
Page 15: ...15 MC96F6432S ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 44 Pin MQFP Package...
Page 16: ...16 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 2 32 Pin LQFP Package...
Page 17: ...17 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 3 32 Pin SOP Package...
Page 18: ...18 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 4 28 Pin SOP Package...
Page 19: ...19 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 5 28 Pin TSSOP Package...