Atmel AVR Microcontroller Primer: Programming and Interfacing, Second EditionThis textbook provides practicing scientists and engineers a primer on the Atmel AVR microcontroller. In this second edition we highlight the popular ATmega164 microcontroller and other pin-for-pin controllers in the family with a complement of flash memory up to 128 kbytes. The second edition also adds a chapter on embedded system design fundamentals and provides extended examples on two different autonomous robots. Our approach is to provide the fundamental skills to quickly get up and operating with this internationally popular microcontroller. We cover the main subsystems aboard the ATmega164, providing a short theory section followed by a description of the related microcontroller subsystem with accompanying hardware and software to exercise the subsystem. In all examples, we use the C programming language. We include a detailed chapter describing how to interface the microcontroller to a wide variety of input and output devices and conclude with several system level examples. Table of Contents: Atmel AVR Architecture Overview / Serial Communication Subsystem / Analog-to-Digital Conversion / Interrupt Subsystem / Timing Subsystem / Atmel AVR Operating Parameters and Interfacing / Embedded Systems Design |
Contents
Atmel AVR Architecture Overview | 1 |
Serial Communication Subsystem | 23 |
AnalogtoDigital Conversion | 39 |
Interrupt Subsystem | 67 |
Timing Subsystem | 77 |
Atmel AVR Operating Parameters and Interfacing | 113 |
Other editions - View all
Common terms and phrases
activity allows analog signal application Atmel base bits byte channel chapter circuit Clear clock communication compare match complete configuration connected convert count counter define define define delay describe determine device diagram direction discuss display duty cycle edge Enable encoder Engineers equipped event example external Figure flag free running frequency function hardware initialize input interface interrupt levels logic microcontroller Mode motor Normal operation output Output Compare overflow period Pin Pin Pin port PORTB PORTD pulse put char quantization range receiver Register represent Reserved reset result robot sampling Select sensor serial shown in Figure signal single specific speed Status step subsystem switch techniques timer Timer/Counter transmitter turn USART variables void volatile unsigned char voltage