Datasheet

ii
ATmega8535(L)
2502G–AVR–04/05
Minimizing Power Consumption ......................................................................... 34
System Control and Reset ................................................................ 35
Internal Voltage Reference................................................................................. 40
Watchdog Timer ................................................................................................. 40
Timed Sequences for Changing the Configuration of the Watchdog Timer ....... 44
Interrupts ............................................................................................ 45
Interrupt Vectors in ATmega8535....................................................................... 45
I/O-Ports.............................................................................................. 50
Introduction......................................................................................................... 50
Ports as General Digital I/O................................................................................ 51
Alternate Port Functions ..................................................................................... 56
Register Description for I/O-Ports....................................................................... 65
External Interrupts............................................................................. 67
8-bit Timer/Counter0 with PWM........................................................ 70
Overview............................................................................................................. 70
Timer/Counter Clock Sources............................................................................. 71
Counter Unit........................................................................................................ 71
Output Compare Unit.......................................................................................... 72
Compare Match Output Unit ............................................................................... 74
Modes of Operation ............................................................................................ 75
Timer/Counter Timing Diagrams......................................................................... 79
8-bit Timer/Counter Register Description ........................................................... 82
Timer/Counter0 and Timer/Counter1 Prescalers ............................ 86
16-bit Timer/Counter1........................................................................ 88
Overview............................................................................................................. 88
Accessing 16-bit Registers ................................................................................. 91
Timer/Counter Clock Sources............................................................................. 94
Counter Unit........................................................................................................ 94
Input Capture Unit............................................................................................... 95
Output Compare Units ........................................................................................ 97
Compare Match Output Unit ............................................................................... 99
Modes of Operation .......................................................................................... 100
Timer/Counter Timing Diagrams....................................................................... 107
16-bit Timer/Counter Register Description ....................................................... 109
8-bit Timer/Counter2 with PWM and Asynchronous Operation .. 116
Overview........................................................................................................... 116
Timer/Counter Clock Sources........................................................................... 117