HMS87C5216 ETC1 [List of Unclassifed Manufacturers], HMS87C5216 Datasheet - Page 30

no-image

HMS87C5216

Manufacturer Part Number
HMS87C5216
Description
CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER FOR UR(Universal Remocon) & WIRELESS KEYBOARD
Manufacturer
ETC1 [List of Unclassifed Manufacturers]
Datasheet
HMS87C5216
(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
R1 Data Register (R/W)
R1
R1 Direction Register (W)
R1DD
R1 Pull-up Selection Register (W)
R1PC
R1 Open drain Assign Register (W)
P1ODC
R1 Port Mode Register (W)
PMR1
R17 R16 R15 R14 R13 R12 R11 R10
ADDRESS : 0C2
RESET VALUE : Undefined
ADDRESS : 0C3
RESET VALUE : 00
ADDRESS : 0F9
RESET VALUE : 00
ADDRESS : 0DE
RESET VALUE : 00
ADDRESS : 0C9
RESET VALUE : 00
Port Direction
0: Input
1: Output
Pull-up select
1: Without pull-up
0: With pull-up
Open drain select
0: Push-pull
1: Open drain
Mode select
0: Port R1 selection
1: Function selection
H
H
H
H
H
H
H
H
H
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``.
(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 0C4
I/O pin can independently used as an input or an output through
the R2DD register (address 0C5
R2 has internal pujll-ups that is independently connected or dis-
connected by R2PC (address 0FA
are shown as below.
Pin Name
INT2
INT1
EC0
T2
T1
T0
-
-
Table 10-1 Selection mode of PMR1
PMR1
0
1
0
1
0
1
0
1
0
1
0
1
Selection
R13 (I/O)
R12 (I/O)
R11 (I/O)
R25(I/O)
R24(I/O)
R10(I/O)
INT2(I)
INT1(I)
EC0(I)
Mode
T2(O)
T1(O)
T0(O)
H
).
H
). The control registers for R2
SEP. 2004 Ver 1.01
EVENT COUNT0
EXT INT2
EXT INT1
Remarks
TIMER2
TIMER1
TIMER0
-
-
-
-
-
-
H
). Each

Related parts for HMS87C5216