Datasheet
2018 Microchip Technology Inc. Data Sheet Complete DS40002061A-page 7
ATmega48A/PA/88A/PA/168A/PA/328/P
21.7 AVR USART MSPIM vs. AVR SPI ................................................................ 211
21.8 Register Description ...................................................................................... 212
22 2-wire Serial Interface ..................................................................................................... 215
22.1 Features ........................................................................................................ 215
22.2 2-wire Serial Interface Bus Definition ............................................................ 215
22.3 Data Transfer and Frame Format.................................................................. 216
22.4 Multi-master Bus Systems, Arbitration and Synchronization ......................... 219
22.5 Overview of the TWI Module ......................................................................... 221
22.6 Using the TWI................................................................................................ 223
22.7 Transmission Modes ..................................................................................... 225
22.8 Multi-master Systems and Arbitration............................................................ 238
22.9 Register Description ...................................................................................... 239
23 Analog Comparator .......................................................................................................... 243
23.1 Overview........................................................................................................ 243
23.2 Analog Comparator Multiplexed Input ........................................................... 243
23.3 Register Description ...................................................................................... 244
24 Analog-to-Digital Converter ........................................................................................ 246
24.1 Features ........................................................................................................ 246
24.2 Overview........................................................................................................ 246
24.3 Starting a Conversion .................................................................................... 248
24.4 Prescaling and Conversion Timing................................................................ 249
24.5 Changing Channel or Reference Selection ................................................... 251
24.6 ADC Noise Canceler ..................................................................................... 252
24.7 ADC Conversion Result................................................................................. 256
24.8 Temperature Measurement ........................................................................... 256
24.9 Register Description ...................................................................................... 257
25 debugWIRE On-chip Debug System ...................................................................... 262
25.1 Features ........................................................................................................ 262
25.2 Overview........................................................................................................ 262
25.3 Physical Interface .......................................................................................... 262
25.4 Software Break Points ................................................................................... 263
25.5 Limitations of debugWIRE ............................................................................. 263
25.6 Register Description ...................................................................................... 263
26 Self-Programming the Flash, ATmega 48A/48PA .......................................... 264
26.1 Overview........................................................................................................ 264