English
Language : 

GMS81C50 Datasheet, PDF (38/99 Pages) Hynix Semiconductor – 8-BIT SINGLE CHIP MICROCONTROLLERS
HYUNDAI
GMS81C50 Series
R1 Data Register (R/W)
ADDRESS : 0C2H
RESET VALUE : Undefined
R1
R17 R16 R15 R14 R13 R12 R11 R10
R1 Direction Register (W)
R1DD
ADDRESS : 0C3H
RESET VALUE : 00H
Port Direction
0: Input
1: Output
R1 Pull-up Selection Register (W)
R1PC
ADDRESS : 0F9H
RESET VALUE : 00H
Pull-up select
0: Without pull-up
1: With pull-up
R1 Open drain Assign Register (W)
ADDRESS : 0DEH
RESET VALUE : 00H
P1ODC
Open drain select
0: Push-pull
1: Open drain
R1 Port Mode Register (W)
PMR1
ADDRESS : 0C9H
RESET VALUE : 00H
Mode select
0: Port R1 selection
1: Function selection
(1) R1 I/O Data Direction Register (R1DD)
R1 I/O Data Direction Register (R1DD) is 8-bit register,
and can assign input state or output state to each bit. If
R1DD is ``1``, port R1 is in the output state, and if ``0``, it
is in the input state. R1DD is write-only register. Since
R1DD is initialized as ``00 h`` in reset state, the whole port
R1 becomes input state.
(2) R1 Data Register (R1)
R1 data register (R1) is 8-bit register to store data of port
R1. When set as the output state by R1DD, and data is writ-
ten in R1, data is outputted into R1 pin. When set as the in-
put state, input state of pin is read. The initial value of R1
is unknown in reset state.
(3) R1 Mode Register (PMR1)
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.
PMR1 is write-only register and initialized as ``00 h`` in
reset state. Therefore, becomes Port selection mode. Port
R1 can be I/O port by manipulating each R1DD bit, if cor-
responding PMR1 bit is selected as ``0``.
Pin Name
T0S
T1S
T2S
ECS
PMR1
0
1
0
1
0
1
0
1
Selection
Mode
R17 (I/O)
T0 (O)
R16 (I/O)
T1 (O)
R15 (I/O)
T2 (O)
R14 (I/O)
/EC (I)
Remarks
-
Timer0
-
Timer1
-
Timer2
-
Timer0 Event
INT2S
INT1S
0
R12 (I/O)
1
INT2 (I)
Timer0 Input
Capture
0
R11 (I/O)
1
INT1 (I)
Table 9-1 Selection mode of PMR1
(4) R1 Pull-up Resistor Control Register (R1PC)
R1 pull-up resistor control register (R1PC) is 8-bit register
and can control pull-up on or off each bit, if corresponding
port is selected as input. If R1PC is selected as ``1``, pull-
up ia disabled and if selected as ``0``, it is enabled. R1PC
is write-only register and initialized as ``00 h`` in reset
state. The pull-up is automatically disabled, if correspond-
ing port is selected as output.
35