Chapter 3. I/O PORT
3.2.5 Port R1 Mode Register (PMR1)
bit
7
6
5
4
3
-
2
1
0
-
T0S
T1S
T2S
ECS
INT2S
INT1S
PMR1
<00C9H>
initial value
R/W
0
W
0
0
0
0
0
0
0
W
W
W
W
W
W
W
R1 Port Mode Register(PMR1) is 8-bit register, and can assign the selection mode for
¡ È ¡ È
each bit. When set as , corresponding bit of PMR1 acts as port R1 selection mode,
0
¡ È ¡ È
and when set as , it becomes function selection mode.
1
BIT NAME
PMR1
Selection Mode
R17 Sel(I/O)
Remarks
0
1
0
1
0
1
0
1
0
1
0
1
0
1
-
T0S
T0 Sel (Output)
R16 Sel (I/O)
T1 Sel (Output)
R15 Sel (I/O)
T2 Sel (Output)
R14 Sel (I/O)
EC Sel (Input)
Output Port of Timer0
-
T1S
T2S
ECS
-
Output Port of Timer1
-
Output Port of Timer2
-
Input Port of Timer0 Event Input
R12 sel (I/O)
-
INT2S
INT1S
-
INT2 Sel (Input)
R11 Sel (I/O)
Input Port of Timer0 Input capture
-
-
INT1 Sel (Input)
Table 3.3 Selection Mode of PMR1
¡ È
¡ È
00H in reset state. Therefore,
PMR1 is write-only register and initialized as
becomes Port selection mode. Port R1 can be I/O port by manipulating each R1DD bit,
¡ È ¡ È
if corresponding PMR1 bit is selected as
0
.
3 - 4