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