2/100
Table of Contents
100
1 GENERAL DESCRIPTION . . . . . . ................................................ 4
1.1 INTRODUCTION . . . . . . . . . . . . . ............................................4
1.2 PIN DESCRIPTION . . ..................................................... 5
1.3 EXTERNAL CONNECTIONS . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . ......... 9
1.4 MEMORY MAP . . . .. . . . . . ............................................... 10
1.5 OPTION BYTE . . . . .. .................................................... 13
2 CENTRAL PROCESSING UNIT . . ............................................... 14
2.1 INTRODUCTION . . . . . . . . . . . . . ...........................................14
2.2 MAIN FEATURES . . . .. . . . . . . . . . . .. .. . . . . . . .............................. 14
2.3 CPU REGISTERS . . . .................................................... 14
3 CLOCKS, RESET, INTERRUPTS & POWER SAVING MODES . . . . . . . . . . . . . ...........17
3.1 CLOCK SYSTEM . . . . . .. . . . . . ............................................17
3.1.1 General Description . . . .. ............................................17
3.1.2 External Clock . . . . . . . . . . . . . ........................................17
3.2 RESET . . . . .. . . . . . . .. . . . . . . . . . . . . .. . . . .. ............................... 18
3.2.1 Introduction . . . .................................................... 18
3.2.2 External Reset . . . . . . ...............................................18
3.2.3 Reset Operation . . . . . . . . . . . . . . .. . . . .. . . . . ........................... 18
3.2.4 Low Voltage DetectorReset . . . . . .. . . . . . . . . . . . . . . . . . . . . . . .. . . . .. .. . . . . 19
3.3 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4 POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . ........ 23
3.4.1 Introduction . . . .................................................... 23
3.4.2 Slow Mode . . .. . . . . . . . . . . . . . . . . . . . ................................. 23
3.4.3 Wait Mode . . . . . . . . . . . . . . . . ........................................23
3.4.4 Halt Mode . . . . . .................................................... 24
3.5 MISCELLANEOUS REGISTER . . . . . . . . . . . ..................................25
4 ON-CHIP PERIPHERALS . . . . . . . . . . . ........................................... 26
4.1 I/O PORTS . . . . . . . . . . .. . . . . . . ........................................... 26
4.1.1 Introduction . . . .................................................... 26
4.1.2 Functional Description . . . . ........................................... 26
4.1.3 I/O Port Implementation . . . . . . . . . . . . . . . . . . . ........................... 27
4.1.4 Register Description . . . . . . ........................................... 30
4.2 WATCHDOG TIMER (WDG) . . . . . . . . .. . . . . . . . . . . . . . . . . .. . . . . .. .. . . . . . . . . . . . 32
4.2.1 Introduction . . . .................................................... 32
4.2.2 Main Features . .. . . . ...............................................32
4.2.3 Functional Description . . . . ........................................... 32
4.2.4 Hardware Watchdog Option . .. . . . . . . . ................................. 33
4.2.5 Low Power Modes . . . ............................................... 33
4.2.6 Interrupts . . . . . .. . . . . . . . . . . . .. . . . . ................................. 33
4.2.7 Register Description . . . . . . ........................................... 33
4.3 16-BIT TIMER . . . . . . . .. . . . .. . . . . ........................................ 35
4.3.1 Introduction . . . .................................................... 35
4.3.2 Main Features . .. . . . ...............................................35
4.3.3 Functional Description . . . . ........................................... 35
4.3.4 Low Power Modes . . ............................................... 46
4.3.5 Interrupts . . .. . ....................................................46
4.3.6 Register Description . . . . . . ........................................... 47
4.4 SERIAL COMMUNICATIONS INTERFACE (SCI) . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . 52
4.4.1 Introduction . . . .................................................... 52
2