HMS81C2012A/2020A
SEP. 2004 Ver 2.00
Table of Contents
1. 1. OVERVIEW......................................................1
Description .........................................................1
Features .............................................................1
Development Tools ............................................2
Ordering Information
........................................2
2. 2. BLOCK DIAGRAM..........................................3
3. 3. PIN ASSIGNMENT..........................................4
4. 4. PACKAGE DIAGRAM.....................................6
5. 5. PIN FUNCTION................................................8
6. 6. PORT STRUCTURES....................................11
7. 7. ELECTRICAL CHARACTERISTICS.............14
Absolute Maximum Ratings .............................14
Recommended Operating Conditions ..............14
A/D Converter Characteristics .........................14
DC Electrical Characteristics for Standard
Pins(5V) ...........................................................15
DC Electrical Characteristics for High-Voltage
Pins ..................................................................16
AC Characteristics ...........................................17
AC Characteristics ...........................................18
Typical Characteristics .....................................19
8. 8. MEMORY ORGANIZATION..........................21
Registers ..........................................................21
Program Memory .............................................24
Data Memory ...................................................27
Addressing Mode .............................................31
9. 9. I/O PORTS.....................................................35
10. 10. BASIC INTERVAL TIMER.........................39
11. 11. WATCHDOG TIMER .................................41
12. 12. TIMER/EVENT COUNTER........................44
8-bit Timer / Counter Mode ..............................46
16-bit Timer / Counter Mode ............................50
8-bit Compare Output (16-bit) ..........................51
8-bit Capture Mode ......................................... 51
16-bit Capture Mode ....................................... 54
PWM Mode ..................................................... 55
13. 13. ANALOG DIGITAL CONVERTER............ 58
14. 14. SERIAL PERIPHERAL INTERFACE ....... 61
Transmission/Receiving Timing ...................... 63
The method of Serial I/O ................................. 64
The Method to Test Correct Transmission ...... 64
15. 15. BUZZER FUNCTION................................ 65
16. 16. INTERRUPTS ........................................... 67
Interrupt Sequence .......................................... 69
Multi Interrupt .................................................. 71
External Interrupt ............................................. 72
17. 17. Power Saving Mode ................................ 74
Operating Mode .............................................. 75
Stop Mode ....................................................... 76
Wake-up Timer Mode ...................................... 77
Internal RC-Oscillated Watchdog Timer Mode 78
Minimizing Current Consumption .................... 79
18. 18. OSCILLATOR CIRCUIT ........................... 81
19. 19. RESET ...................................................... 82
External Reset Input ........................................ 82
Watchdog Timer Reset ................................... 82
20. 20. POWER FAIL PROCESSOR.................... 83
21. 21. OTP PROGRAMMING.............................. 85
DEVICE CONFIGURATION AREA ................. 85
22. A. CONTROL REGISTER LIST......................... i
23. B. INSTRUCTION............................................ iii
Terminology List ................................................iii
Instruction Map ..................................................iv
Instruction Set ....................................................v
24. C. MASK ORDER SHEET............................... xi