Datasheet
27. Analog Comparator (AC).......................................................................................309
27.1. Overview.................................................................................................................................. 309
27.2. Analog Comparator Multiplexed Input...................................................................................... 309
27.3. Register Description................................................................................................................. 310
28. Analog-to-Digital Converter (ADC)........................................................................ 314
28.1. Features................................................................................................................................... 314
28.2. Overview.................................................................................................................................. 314
28.3. Starting a Conversion...............................................................................................................316
28.4. Prescaling and Conversion Timing...........................................................................................317
28.5. Changing Channel or Reference Selection.............................................................................. 319
28.6. ADC Noise Canceler................................................................................................................ 321
28.7. ADC Conversion Result........................................................................................................... 324
28.8. Temperature Measurement...................................................................................................... 325
28.9. Register Description................................................................................................................. 325
29. debugWIRE On-chip Debug System.....................................................................334
29.1. Features................................................................................................................................... 334
29.2. Overview.................................................................................................................................. 334
29.3. Physical Interface.....................................................................................................................334
29.4. Software Breakpoints............................................................................................................... 335
29.5. Limitations of debugWIRE........................................................................................................335
29.6. Register Description................................................................................................................. 335
30. Self-Programming the Flash..................................................................................337
30.1. Overview.................................................................................................................................. 337
30.2. Addressing the Flash During Self-Programming...................................................................... 338
30.3. Register Description................................................................................................................. 343
31. Boot Loader Support – Read-While-Write Self-programming (BTLDR)................ 346
31.1. Features................................................................................................................................... 346
31.2. Overview.................................................................................................................................. 346
31.3. Application and Boot Loader Flash Sections............................................................................346
31.4. Read-While-Write and No Read-While-Write Flash Sections...................................................347
31.5. Boot Loader Lock Bits.............................................................................................................. 349
31.6. Entering the Boot Loader Program...........................................................................................351
31.7. Addressing the Flash During Self-Programming...................................................................... 351
31.8. Self-Programming the Flash.....................................................................................................352
31.9. Register Description................................................................................................................. 361
32. Memory Programming (MEMPROG).....................................................................364
32.1. Program And Data Memory Lock Bits...................................................................................... 364
32.2. Fuse Bits.................................................................................................................................. 365
32.3. Signature Bytes........................................................................................................................368
32.4. Calibration Byte........................................................................................................................368
32.5. Serial Number.......................................................................................................................... 368
32.6. Page Size.................................................................................................................................369
ATmega48PA/88PA/168PA
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40002011A-page 7