MC96F6432
80
June 22, 2018 Ver. 2.9
9.6 P3 Port
9.6.1 P3 Port Description
P3 is 8-bit I/O port. P3 control registers consist of P3 data register (P3), P3 direction register (P3IO) and P3
pull-up resistor selection register (P3PU). Refer to the port function selection registers for the P3 function
selection.
9.6.2 Register description for P3
P3 (P3 Data Register) : 98H
7
6
5
4
3
2
1
0
P37
P36
P35
P34
P33
P32
P31
P30
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value : 00H
P3[7:0]
I/O Data
Note) Do not use the
“direct bit test and branch” instruction for input port, more detail information is at
Appendix B.
Example) Avoid direct input port bit test and branch condition as below
If(P30)
→
if(P3 & 0x01)
P3IO (P3 Direction Register) : C1H
7
6
5
4
3
2
1
0
P37IO
P36IO
P35IO
P34IO
P33IO
P32IO
P31IO
P30IO
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value : 00H
P3IO[7:0]
P3 Data I/O Direction
0
Input
1
Output
P3PU (P3 Pull-up Resistor Selection Register) : AFH
7
6
5
4
3
2
1
0
P37PU
P36PU
P35PU
P34PU
P33PU
P32PU
P31PU
P30PU
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value : 00H
P3PU[7:0]
Configure Pull-up Resistor of P3 Port
0
Disable
1
Enable
Summary of Contents for MC96F6432 Series
Page 24: ...MC96F6432 24 June 22 2018 Ver 2 9 4 Package Diagram Figure 4 1 48 Pin LQFP 0707 Package...
Page 25: ...MC96F6432 June 22 2018 Ver 2 9 25 Figure 4 2 44 Pin MQFP Package...
Page 26: ...MC96F6432 26 June 22 2018 Ver 2 9 Figure 4 3 32 Pin LQFP Package...
Page 27: ...MC96F6432 June 22 2018 Ver 2 9 27 Figure 4 4 32 Pin SOP Package...
Page 28: ...MC96F6432 28 June 22 2018 Ver 2 9 Figure 4 5 28 Pin SOP Package...