English
Language : 

HMS87C5216 Datasheet, PDF (30/76 Pages) List of Unclassifed Manufacturers – CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER FOR UR(Universal Remocon) & WIRELESS KEYBOARD
HMS87C5216
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
1: Without pull-up
0: 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
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 corresponding PMR1
bit is selected as ``0``.
Pin Name
-
-
EC0
T2
T1
T0
INT2
INT1
PMR1
0
1
0
1
0
1
0
1
0
1
0
1
Selection
Mode
R25(I/O)
EC0(I)
R24(I/O)
T2(O)
R13 (I/O)
T1(O)
R12 (I/O)
T0(O)
R11 (I/O)
INT2(I)
R10(I/O)
INT1(I)
Remarks
-
EVENT COUNT0
-
TIMER2
-
TIMER1
-
TIMER0
-
EXT INT2
-
EXT INT1
Table 10-1 Selection mode of PMR1
(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 re-
set 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 written in R1,
data is outputted into R1 pin. When set as the input 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
(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 se-
lected 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 automati-
cally disabled, if corresponding port is selected as output.
10.3 R2 Port
R2 is an 8-bit CMOS bidirectional I/O port (address 0C4H). Each
I/O pin can independently used as an input or an output through
the R2DD register (address 0C5H).
R2 has internal pujll-ups that is independently connected or dis-
connected by R2PC (address 0FAH). The control registers for R2
are shown as below.
SEP. 2004 Ver 1.01