beautypg.com

Rainbow Electronics ATmega3290P_V User Manual

Page 371

background image

iii

ATmega329/3290/649/6490

2552H–AVR–11/06

Modes of Operation .......................................................................................... 117

Timer/Counter Timing Diagrams....................................................................... 124

16-bit Timer/Counter Register Description ....................................................... 126

8-bit Timer/Counter2 with PWM and Asynchronous Operation .. 133

Overview........................................................................................................... 133

Timer/Counter Clock Sources........................................................................... 134

Counter Unit...................................................................................................... 134

Output Compare Unit........................................................................................ 135

Compare Match Output Unit ............................................................................. 137

Modes of Operation .......................................................................................... 138

Timer/Counter Timing Diagrams....................................................................... 142

8-bit Timer/Counter Register Description ......................................................... 144

Asynchronous operation of the Timer/Counter ................................................. 147

Timer/Counter Prescaler................................................................................... 150

SPI – Serial Peripheral Interface..................................................... 152

Overview........................................................................................................... 152

SS Pin Functionality.......................................................................................... 157

Data Modes ...................................................................................................... 160

USART0 ............................................................................................ 161

Overview........................................................................................................... 161

Clock Generation .............................................................................................. 162

Frame Formats ................................................................................................. 165

USART Initialization.......................................................................................... 166

Data Transmission – The USART Transmitter ................................................. 168

Data Reception – The USART Receiver .......................................................... 171

Asynchronous Data Reception ......................................................................... 174

Multi-processor Communication Mode ............................................................. 178

USART Register Description ............................................................................ 179

Examples of Baud Rate Setting........................................................................ 183

USI – Universal Serial Interface ...................................................... 187

Overview........................................................................................................... 187

Functional Descriptions .................................................................................... 188

Alternative USI Usage ...................................................................................... 194

USI Register Descriptions................................................................................. 195

Analog Comparator ......................................................................... 200

Overview........................................................................................................... 200

Analog Comparator Multiplexed Input .............................................................. 202

Analog to Digital Converter ............................................................ 203

Features............................................................................................................ 203

Operation .......................................................................................................... 204