MC96F6432
78 June 22, 2018 Ver. 2.9
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) 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
Initial value : 00H
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(P20) → if(P2 & 0x01)
P2IO (P2 Direction Register) : B9H
Initial value : 00H
NOTE: SS1 function possible when input