MC96FM204/FM214
60
April 7, 2016 Ver. 1.8
9.4 P1 Port
9.4.1 P1 Port Description
P1 is 7-bit I/O port. P1 control registers consist of P1 data register (P1), P1 direction register (P1IO), debounce
enable register (P1DB), P1 pull-up resistor selection register (P1PU), and P1 open-drain selection register
(P1OD) . Refer to the port function selection registers for the P1 function selection.
9.4.2 Register description for P1
P1 (P1 Data Register) : 88H
7
6
5
4
3
2
1
0
–
P16
P15
P14
P13
P12
P11
P10
–
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value : 78H
P1[6: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(P10)
→
if(P1 & 0x01)
P1IO (P1 Direction Register) : 94H
7
6
5
4
3
2
1
0
–
P16IO
P15IO
P14IO
P13IO
P12IO
P11IO
P10IO
–
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value : 78H
P1IO[6][4][2:0]
P1 Data I/O Direction
0
Input
1
Output
P1IO[5]
P1IO[3]
P15 Data I/O Direction
P13 Data I/O Direction
0
0
Input
Input
0
1
Not available
1
0
Not available
1
1
Output
Output
NOTE) EINT0/EINT1/EINT2/EINT3/EINT12/EC2 function possible when input
Summary of Contents for MC96FM204
Page 17: ...MC96FM204 FM214 April 7 2016 Ver 1 8 17 4 Package Diagram Figure 4 1 20 Pin SOP Package ...
Page 18: ...MC96FM204 FM214 18 April 7 2016 Ver 1 8 Figure 4 2 20 Pin TSSOP Package ...
Page 19: ...MC96FM204 FM214 April 7 2016 Ver 1 8 19 Figure 4 3 16 Pin SOP Package ...
Page 20: ...MC96FM204 FM214 20 April 7 2016 Ver 1 8 Figure 4 4 16 Pin TSSOP Package ...