Datasheet

27. Analog Comparator (AC).......................................................................................308
27.1. Overview.................................................................................................................................. 308
27.2. Analog Comparator Multiplexed Input...................................................................................... 308
27.3. Register Description................................................................................................................. 309
28. Analog-to-Digital Converter (ADC)........................................................................ 313
28.1. Features................................................................................................................................... 313
28.2. Overview.................................................................................................................................. 313
28.3. Starting a Conversion...............................................................................................................315
28.4. Prescaling and Conversion Timing...........................................................................................316
28.5. Changing Channel or Reference Selection.............................................................................. 318
28.6. ADC Noise Canceler................................................................................................................ 320
28.7. ADC Conversion Result........................................................................................................... 323
28.8. Temperature Measurement...................................................................................................... 324
28.9. Register Description................................................................................................................. 324
29. debugWIRE On-chip Debug System.....................................................................333
29.1. Features................................................................................................................................... 333
29.2. Overview.................................................................................................................................. 333
29.3. Physical Interface.....................................................................................................................333
29.4. Software Breakpoints............................................................................................................... 334
29.5. Limitations of debugWIRE........................................................................................................334
29.6. Register Description................................................................................................................. 334
30. Self-Programming the Flash..................................................................................336
30.1. Overview.................................................................................................................................. 336
30.2. Addressing the Flash During Self-Programming...................................................................... 337
30.3. Register Description................................................................................................................. 342
31. Boot Loader Support – Read-While-Write Self-programming (BTLDR)................ 345
31.1. Features................................................................................................................................... 345
31.2. Overview.................................................................................................................................. 345
31.3. Application and Boot Loader Flash Sections............................................................................345
31.4. Read-While-Write and No Read-While-Write Flash Sections...................................................346
31.5. Boot Loader Lock Bits.............................................................................................................. 348
31.6. Entering the Boot Loader Program...........................................................................................350
31.7. Addressing the Flash During Self-Programming...................................................................... 350
31.8. Self-Programming the Flash.....................................................................................................351
31.9. Register Description................................................................................................................. 360
32. Memory Programming (MEMPROG).....................................................................363
32.1. Program And Data Memory Lock Bits...................................................................................... 363
32.2. Fuse Bits.................................................................................................................................. 364
32.3. Signature Bytes........................................................................................................................367
32.4. Calibration Byte........................................................................................................................367
32.5. Serial Number.......................................................................................................................... 367
32.6. Page Size.................................................................................................................................368
ATmega48A/88A/168A
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40002007A-page 7