2/99
Table of Contents
95
2
1 GENERAL DESCRIPTION . . . . . . ................................................ 5
1.1 INTRODUCTION . . . . . . . . . . . . . ............................................ 5
1.2 PIN DESCRIPTION . . ..................................................... 6
1.3 EXTERNAL CONNECTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ......... 8
1.4 MEMORY MAP . . . . . .. . . . ................................................ 9
2 CENTRAL PROCESSING UNIT . . ............................................... 12
2.1 INTRODUCTION . . . . . . . . . . . . . ...........................................12
2.2 MAIN FEATURES . . . .. . . . . . . . . . . . . . . . . . . . . .............................. 12
2.3 CPU REGISTERS . . . .................................................... 12
3 CLOCKS, RESET, INTERRUPTS & POWER SAVING MODES . . . . . .. . . . . . . ...........15
3.1 CLOCK SYSTEM . . . . . .. . . . . . . ...........................................15
3.1.1 General Description . . . .. . ...........................................15
3.2 RESET . . . . . . . . . . . . . . . . . . . .. . . . . . .. . . . . . . .............................. 16
3.2.1 Introduction . . . .................................................... 16
3.2.2 External Reset . . . . . . ...............................................16
3.2.3 Reset Operation . . . . . . . . . . . . . . . . . . . . . . . . . ........................... 16
3.2.4 Power-on Reset .................................................... 16
3.3 INTERRUPTS . . . .. . . . . . . . . . . . . . . . . .. . . . . . . . . . .. . . . . . . . . .. . . . . . . .. . . . . . . 17
3.4 POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . .. . . . . . . ........ 20
3.4.1 Introduction . . . .................................................... 20
3.4.2 Slow Mode . . .. . . . . . . . . . . . . . . . . . . . ................................. 20
3.4.3 Wait Mode . . . . . . . . . . . . . . .. ........................................ 20
3.4.4 Halt Mode . . . . . .................................................... 21
3.5 MISCELLANEOUS REGISTER . . . . . . . . . . . .................................. 22
4 ON-CHIP PERIPHERALS . . . . . . . . . . . ...........................................23
4.1 I/O PORTS . . . . . . . . . . . . . . . . . . ........................................... 23
4.1.1 Introduction . . . .................................................... 23
4.1.2 Functional Description . . . . ...........................................23
4.1.3 I/O Port Implementation . . . . . . . . . . . . . . . . . . . ........................... 24
4.1.4 Register Description . . . . . . ...........................................27
4.2 WATCHDOG TIMER (WDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . 29
4.2.1 Introduction . . . .................................................... 29
4.2.2 Main Features . .. . . . ...............................................29
4.2.3 Functional Description . . . . ...........................................30
4.2.4 Low Power Modes . . . ............................................... 30
4.2.5 Interrupts . . . . . .. . . . . . . . . . .. . . . . . . ................................. 30
4.2.6 Register Description . . . . . . ...........................................30
4.3 16-BIT TIMER . . . . . . . . . . . . . .. . . . ........................................ 31
4.3.1 Introduction . . . .................................................... 31
4.3.2 Main Features . .. . . . ...............................................31
4.3.3 Functional Description . . . . ...........................................31
4.3.4 Low Power Modes . . ............................................... 42
4.3.5 Interrupts . . .. . .................................................... 42
4.3.6 Register Description . . . . . . ...........................................43
4.4 I2C BUSINTERFACE (I2C) . . . . . ...........................................48