Datasheet

ii
ATmega8535(L)
2502K–AVR–10/06
Standby Mode..................................................................................................... 34
Extended Standby Mode .................................................................................... 34
Minimizing Power Consumption ......................................................................... 35
System Control and Reset ................................................................ 36
Internal Voltage Reference................................................................................. 41
Watchdog Timer ................................................................................................. 41
Timed Sequences for Changing the Configuration of the Watchdog Timer ....... 45
Interrupts ............................................................................................ 46
Interrupt Vectors in ATmega8535....................................................................... 46
I/O-Ports.............................................................................................. 51
Introduction......................................................................................................... 51
Ports as General Digital I/O................................................................................ 52
Alternate Port Functions ..................................................................................... 57
Register Description for I/O-Ports....................................................................... 66
External Interrupts............................................................................. 68
8-bit Timer/Counter0 with PWM........................................................ 71
Overview............................................................................................................. 71
Timer/Counter Clock Sources............................................................................. 72
Counter Unit........................................................................................................ 72
Output Compare Unit.......................................................................................... 73
Compare Match Output Unit ............................................................................... 75
Modes of Operation ............................................................................................ 76
Timer/Counter Timing Diagrams......................................................................... 80
8-bit Timer/Counter Register Description ........................................................... 83
Timer/Counter0 and Timer/Counter1 Prescalers ............................ 87
16-bit Timer/Counter1........................................................................ 89
Overview............................................................................................................. 89
Accessing 16-bit Registers ................................................................................. 92
Timer/Counter Clock Sources............................................................................. 95
Counter Unit........................................................................................................ 95
Input Capture Unit............................................................................................... 96
Output Compare Units ........................................................................................ 98
Compare Match Output Unit ............................................................................. 100
Modes of Operation .......................................................................................... 101
Timer/Counter Timing Diagrams....................................................................... 108
16-bit Timer/Counter Register Description ....................................................... 110
8-bit Timer/Counter2 with PWM and Asynchronous Operation .. 117