English
Language : 

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