Datasheet

9.6. PLL............................................................................................................................................. 52
9.7. 128kHz Internal Oscillator.......................................................................................................... 53
9.8. External Clock............................................................................................................................ 53
9.9. Clock Output Buffer.................................................................................................................... 54
9.10. System Clock Prescaler............................................................................................................. 54
9.11. Register Description................................................................................................................... 55
10. PM - Power Management and Sleep Modes...........................................................60
10.1. Sleep Modes...............................................................................................................................60
10.2. Idle Mode....................................................................................................................................60
10.3. ADC Noise Reduction Mode.......................................................................................................61
10.4. Power-Down Mode.....................................................................................................................61
10.5. Standby Mode............................................................................................................................ 62
10.6. Power Reduction Register..........................................................................................................62
10.7. Minimizing Power Consumption................................................................................................. 62
10.8. Register Description................................................................................................................... 63
11. SCRST - System Control and Reset....................................................................... 66
11.1. Resetting the AVR...................................................................................................................... 66
11.2. Reset Sources............................................................................................................................66
11.3. Power-on Reset..........................................................................................................................67
11.4. External Reset............................................................................................................................68
11.5. Brown-out Detection...................................................................................................................68
11.6. Watchdog System Reset............................................................................................................ 69
11.7. Internal Voltage Reference.........................................................................................................69
11.8. Watchdog Timer......................................................................................................................... 70
11.9. Register Description................................................................................................................... 72
12. INT- Interrupts..........................................................................................................76
12.1. Interrupt Vectors in ATmega16M1/32M1/64M1..........................................................................76
12.2. Register Description................................................................................................................... 79
13. External Interrupts................................................................................................... 82
13.1. EXINT - External Interrupts........................................................................................................ 82
13.2. Register Description................................................................................................................... 83
14. I/O-Ports.................................................................................................................. 94
14.1. Overview.....................................................................................................................................94
14.2. Ports as General Digital I/O........................................................................................................95
14.3. Alternate Port Functions.............................................................................................................98
14.4. Register Description..................................................................................................................111
15. TC0 - 8-bit Timer/Counter0 with PWM...................................................................126
15.1. Features................................................................................................................................... 126
15.2. Overview...................................................................................................................................126
15.3. Timer/Counter Clock Sources.................................................................................................. 128
15.4. Counter Unit............................................................................................................................. 128
15.5. Output Compare Unit................................................................................................................129
15.6. Compare Match Output Unit.....................................................................................................131
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Complete-10/2016
4