Table of Contents
3/105
3
7 POWER SAVING MODES . . . . . . . . . . ...........................................32
7.1 INTRODUCTION . ...................................................... 32
7.2 WAIT MODE . . . . . . . . . . . ............................................... 33
7.3 STOP MODE . . . . . . .................................................... 34
7.4 NOTES RELATED TO WAIT AND STOP MODES .............................36
7.4.1 Exit from Wait and Stop Modes . . . . ....................................36
7.4.2 Recommended MCU Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ........ 36
8 I/O PORTS . . . . . . . . . . . . . . . . . . . . . . . . . . ........................................ 37
8.1 INTRODUCTION . ...................................................... 37
8.2 FUNCTIONAL DESCRIPTION . . . . ........................................37
8.2.1 Digital input modes . . . . . . ........................................... 37
8.2.2 Analog inputs . . . . . . . ...............................................37
8.2.3 Output modes . . . . . . ............................................... 37
8.2.4 Alternate functions . . . ...............................................37
8.2.5 Instructions NOT to be used to access Port Data registers (SET, RES, INC and DEC) 39
8.2.6 Recommendations . . . . . . . ...........................................39
8.3 LOW POWER MODES . . . . . . . . . . ........................................39
8.4 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . ................................. 39
8.5 REGISTER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ........ 41
9 ON-CHIP PERIPHERALS . . . . . . . . . . . ........................................... 42
9.1 WATCHDOG TIMER (WDG) . . . . . . . . . . . . . . . . . . . ........................... 42
9.1.1 Introduction . . . .................................................... 42
9.1.2 Main Features . . . . . . ...............................................42
9.1.3 Functional Description . . . . ...........................................43
9.1.4 Recommendations . . . . . . . ...........................................43
9.1.5 Low Power Modes . . . ............................................... 44
9.1.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . ................................. 44
9.1.7 Register Description . . . . . . ........................................... 45
9.2 8-BIT TIMER . . . . ...................................................... 46
9.2.1 Introduction . . . .................................................... 46
9.2.2 Main Features . . . . . . ...............................................46
9.2.3 Counter/Prescaler Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ........ 47
9.2.4 Functional Description . . . . ...........................................48
9.2.5 Low Power Modes . . . ............................................... 50
9.2.6 Interrupts . . . . . .................................................... 50
9.2.7 Register Description . . . . . . ........................................... 51
9.3 A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . . . . ........................... 52
9.3.1 Introduction . . . .................................................... 52
9.3.2 Main Features . . . . . . ...............................................52
9.3.3 Functional description . . . . . . . . . . . . . . . . . . . . ........................... 53
9.3.4 Recommendations . . . . . . . ...........................................54
9.3.5 Low power modes . . . . . . . . . . . . . . . . . . ................................55
9.3.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . ................................. 55
9.3.7 Register description . . . . . . ...........................................55