HMS87C5216
HMS87C5216
CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
FOR UR(Universal Remocon) & WIRELESS KEYBOARD
1. OVERVIEW
1.1 Description
The HMS87C5216 is an advanced CMOS 8-bit microcontroller with 16K bytes of ROM. The device is one of GMS800 family. The Mag-
naChip Semicon HMS87C5216 is a powerful microcontroller which provides a highly flexible and cost effective solution to many UR &
Keyboard applications. The HMS87C5216 provides the following standard features: 16K bytes of ROM, 320 bytes of RAM, 8-bit timer/
counter, on-chip oscillator,clock circuitry and RC wake up function. 4 chanel ADC, In addition, the HMS87C5216 Series supports power
saving modes to reduce power consumption
Device name
ROM Size
EPROM Size
RAM Size
Operatind
Voltage
Package
28 SOP
40 PDIP
44 PLCC
44 QFP
HMS87C5216
-
16K byte
320bytes
2.0 ~ 5.5V
1.2 Features
• Instruction Cycle Time:
- 1us at 4MHz
• Programmable I/O pins
• 8 Interrupt sources
* Nested Interrupt control is available.
- External input: 2
- Keyscan input
- Basic Interval Timer
- Watchdog timer
- Timer : 3
• Power On Reset
• Power saving Operation Modes
- STOP
- SLEEP
• Low Voltage Detection Circuit
• Watch Dog Timer Auto Start (During 1second
after Power on Reset)
• 4 CHANEL ADC
• RC TIMER WAKE UP
28 PIN
INPUT
OUTPUT
I/O
2
2
22
40 PIN
2
2
34
44 PIN
2
2
38
• Operating Voltage
- 2.0 ~ 5.5 V @ 4MHz
• Timer
- Timer / Counter
......... 16Bit * 1ch
........ 16Bit * 2ch
- Basic Interval Timer ...... 8Bit * 1ch
- Watch Dog Timer ............ 6Bit * 1ch
SEP. 2004 Ver 1.01
HMS87C5216
1.3 Development Tools
The
HMS87C5216
and
HMS87C5216
are supported by a full-
featured macro assembler, an in-circuit emulator CHOICE-
Dr
TM
.
In Circuit Emulators
Assembler
OTP Writer
OTP Devices
CHOICE-Dr.
HME Macro Assembler
Single Writer : Sigma
4-Gang Writer : Dr.Gang
HMS87C5216
SEP. 2004 Ver 1.01
HMS87C5216
2. BLOCK DIAGRAM
PSW
ALU
Accumulator
Stack Pointer
Data
Memory
PC
RESET
System controller
System
Clock Controller
Timing generator
8-bit Basic
Interval
Timer
Interrupt Controller
Program
Memory
Data Table
Xin
Xout
Clock Generator
Instruction
Decoder
Watch-dog
Key Wake up
8-bit
A/D
Converter
8-bit
Timer/
Counter
Carrier
Generator
RC Watch
Timer
LVD/POR
V
DD
V
SS
Power
Supply
R0
R1
R2
R3
R4
R00 / KS0
R01 / KS1
R02 / KS2
R03 / KS3
R04 / KS4
R05 / KS5
R06 / KS6
R07 / KS7
R10 / INT1
R11 / INT2
R12 / T0
R13 / T1
R14 / AN0
R15 / AN1
R16 / AN2
R17 / AN3
R20
R21
R22
R23
R24 /T2
R25 / EC0
R26
R27
REMOUT
R30
R31
R32
R33
R34
R35
R36
R37
R40
R41
R42
R43
R44
SEP. 2004 Ver 1.01
HMS87C5216
3. PIN ASSIGNMENT
VSS
R22
R21
R20
R33
R32
R42
R31
42
R30
41
R23
44
43
R01
R02
R03
R04
R05
R06
R07
VDD
XOUT
XIN
R10
R11
R12
R13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
R00
REMOUT
R25
R24
R23
R22
R21
R20
VSS
R17
R16
R15
R14
RESETB
40
6
5
4
3
2
1
R17
R24
R25
R26
R27
R43
REMOUT
R00
R01
R02
R03
R04
7
8
9
10
11
12
13
14
15
16
17
39
38
37
36
35
R16
R40
R15
R14
RESETB
R45
R41
R13
R12
R11
R10
28PIN
44PLCC
34
33
32
31
30
29
R05
18
R06
19
R07
20
R34
21
R35
22
R44
23
VDD
24
R36
25
R37
26
R31
25
XOUT
27
R30
24
R22
R21
R20
R33
R01
R02
R03
R04
R05
R06
R07
R34
R35
VDD
R36
R37
XOUT
XIN
R10
R11
R12
R13
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
39
38
37
36
35
34
33
32
31
30
28
27
26
25
R27
R26
R25
R24
R23
R22
R21
R20
R33
R32
R31
R30
R17
R16
R24
R25
R26
R27
R43
REMOUT
R00
R01
R02
R03
R04
34
35
36
37
38
39
40
41
42
43
44
26
VSS
33
R23
28
R32
27
R42
32
31
30
29
23
R17
R00
1
40
REMOUT
XIN
28
22
R16
21
R40
20
R15
19
R14
18
40PDIP
RESETB
R45
R41
R13
R12
R11
R10
44QFP
17
16
15
14
13
12
29
VSS
24 R40
XOUT
10
22
21
R14
RESETB
XIN
11
1
2
3
4
5
6
7
8
9
23 R15
R05
R06
R34
R36
R41 20
VDD
R07
R35
R44
R37
SEP. 2004 Ver 1.01
HMS87C5216
4. PIN DIAGRAM
SEP. 2004 Ver 1.01