76
MC96F6432S
ABOV Semiconductor Co., Ltd.
9.7
P4 Port
9.7.1
P4 Port Description
P4 is 4-bit I/O port. P4 control registers consist of P4 data register (P4), P4 direction register (P4IO), P4 pull-up resistor
selection register (P4PU) andP4 open-drain selection register (P4OD).Refer to the port function selection registers for
the P4 function selection.
9.7.2
Register description for P4
P4 (P4 Data Register): A0H
7
6
5
4
3
2
1
0
–
–
–
–
P43
P42
P41
P40
–
–
–
–
R/W
R/W
R/W
R/W
Initial value: 00H
P4[3: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(P40)
→
if(P4 & 0x01)
P4IO (P4 Direction Register): C9H
7
6
5
4
3
2
1
0
–
–
–
–
P43IO
P42IO
P41IO
P40IO
–
–
–
–
R/W
R/W
R/W
R/W
Initial value: 00H
P4IO[3:0]
P4 Data I/O Direction
0
Input
1
Output
NOTE)
1.
SS0 function possible when input
P4PU (P4 Pull-up Resistor Selection Register): A3H
7
6
5
4
3
2
1
0
–
–
–
–
P43PU
P42PU
P41PU
P40PU
–
–
–
–
R/W
R/W
R/W
R/W
Initial value: 00H
P4PU[3:0]
Configure Pull-up Resistor of P4 Port
0
Disable
1
Enable
Содержание MC96F6432S Series
Страница 15: ...15 MC96F6432S ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 44 Pin MQFP Package...
Страница 16: ...16 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 2 32 Pin LQFP Package...
Страница 17: ...17 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 3 32 Pin SOP Package...
Страница 18: ...18 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 4 28 Pin SOP Package...
Страница 19: ...19 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 5 28 Pin TSSOP Package...