Atmel AVR Microcontroller Primer : Programming and Interfacing

by
Format: Paperback
Pub. Date: 2008-02-15
Publisher(s): Morgan & Claypool
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $42.00

Buy New

Arriving Soon. Will ship when available.
$40.00

Rent Textbook

Select for Price
There was a problem. Please try again later.

Rent Digital

Rent Digital Options
Online:1825 Days access
Downloadable:Lifetime Access
$60.00
$60.00

Used Textbook

We're Sorry
Sold Out

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

"This textbook provides practicing scientists and engineers a primer on the Atmel AVR microcontroller. Our approach is to provide the fundamental skills to quickly get up and operating with this internationally popular microcontroller. The Atmel ATmega16 is used as a representative sample of the AVR line. The knowledge you gain on the ATmega16 can be easily translated to every other microcontroller in the AVR line. We cover the main subsystems aboard the ATmega16, 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 conclude with a detailed chapter describing how to interface the microcontroller to a wide variety of input and output devices."--BOOK JACKET.

Table of Contents

Atmel AVR Architecture Overviewp. 1
ATmega16 Architecture Overviewp. 1
Reduced Instruction Set Computerp. 1
Assembly Language Instruction Setp. 2
ATmega16 Architecture Overviewp. 3
Nonvolatile and Data Memoriesp. 3
In-System Programmable Flash EEPROMp. 3
Byte-Addressable EEPROMp. 5
Static Random Access Memoryp. 5
Programmable Lock Bitsp. 5
Port Systemp. 6
Peripheral Features-Internal Subsystemsp. 8
Time Basep. 8
Timing Subsystemp. 9
Pulse Width Modulation Channelsp. 9
Serial Communicationsp. 9
Serial USARTp. 9
Serial Peripheral Interfacep. 10
Two-Wire Serial Interfacep. 10
Analog-to-Digital Converterp. 10
Interruptsp. 11
Physical and Operating Parametersp. 11
Packagingp. 11
Power Consumptionp. 11
Speed Gradesp. 13
Application: ATmega16 Testbenchp. 13
Hardware Configurationp. 13
Software Configurationp. 15
Programming the ATmega16p. 19
Programming Procedurep. 20
Software Portabilityp. 22
Summaryp. 23
References and Further Readingp. 23
Chapter Problemsp. 23
Serial Communication Subsystemp. 25
Serial Communicationsp. 25
Serial Communication Terminologyp. 25
Asynchronous versus Synchronous Serial Transmissionp. 26
Baud Ratep. 26
Full Duplexp. 26
Nonreturn to Zero Coding Formatp. 26
The RS-232 Communication Protocolp. 27
Parityp. 27
American Standard Code for Information Interchangep. 27
Serial USARTp. 27
System Overviewp. 28
USART Clock Generatorp. 29
USART Transmitterp. 30
USART Receiverp. 30
USART Registersp. 30
System Operation and Programmingp. 32
Serial Peripheral Interfacep. 34
SPI Operationp. 34
Registersp. 35
Programmingp. 37
Two-Wire Serial Interfacep. 38
Summaryp. 38
References and Further Readingp. 38
Chapter Problemsp. 39
Analog-to-Digital Conversionp. 41
Background Theoryp. 41
Analog versus Digital Signalsp. 42
Sampling, Quantization, and Encodingp. 44
Resolution and Data Ratep. 48
Analog-To-Digital Conversion Processp. 50
ADC Conversion Technologiesp. 53
Successive Approximationp. 53
Integrationp. 55
Counter-Based Conversionp. 55
Parallel Conversionp. 55
The Atmel ATmega16 ADC Systemp. 55
Block Diagramp. 56
Registersp. 58
ADC Multiplexer Selection Registerp. 58
ADC Control and Status Register Ap. 59
ADC Data Registers (ADCH and ADCL)p. 59
Programming the ADCp. 59
Digital-to-Analog Conversionp. 62
Summaryp. 63
References and Further Readingp. 63
Chapter Problemsp. 64
Interrupt Subsystemp. 65
Interrupt Theoryp. 65
ATmega16 Interrupt Systemp. 65
Programming An Interruptp. 66
Applicationp. 68
External Interruptsp. 68
Internal Interruptp. 71
Summaryp. 74
References and Further Readingp. 74
Chapter Problemsp. 74
Timing Subsystemp. 75
Overviewp. 75
Timing-Related Terminologyp. 76
Frequencyp. 76
Periodp. 76
Duty Cyclep. 76
Timing System Overviewp. 76
Applicationsp. 79
Input Capture-Measuring External Timing Eventp. 79
Counting Eventsp. 81
Output Compare-Generating Timing Signals to Interface External Devicesp. 81
Industrial Implementation Case Study (PWM)p. 82
Overview of the Atmel Timersp. 83
Timer 0 Systemp. 84
Modes of Operationp. 86
Normal Modep. 87
Clear Timer on Compare Matchp. 87
Phase Correct PWM Modep. 87
Fast PWMp. 87
Timer 0 Registersp. 87
Timer/Counter Control Register 0p. 88
Timer/Counter Registerp. 88
Output Compare Registerp. 88
Timer/Counter Interrupt Mask Registerp. 90
Timer/Counter Interrupt Flag Registerp. 91
Timer 1p. 91
Timer 1 Registersp. 91
TCCR1A and TCCR1B Registersp. 91
Timer/Counter Register 1 (TCNT1H/TCNT1)p. 91
Output Compare Register 1 Channel A (OCR1AH/OCR1AL)p. 94
Output Compare Register 1 Channel B (OCR1BH/OCR1BL)p. 94
Input Capture Register 1 (ICR1H/ICR1L)p. 94
Timer/Counter Interrupt Mask Register (TIMSK)p. 94
Timer/Counter Interrupt Flag Register (TIFR)p. 94
Timer 2p. 94
Timer/Counter Control Register 2p. 94
Timer/Counter Register (TCNT2)p. 95
Output Compare Register (OCR2)p. 95
Timer/Counter Interrupt Mask Register (TIMSK)p. 96
Timer/Counter Interrupt Flag Registerp. 96
Programming the Timer Systemp. 96
Precision Delayp. 98
Pulse Width Modulationp. 99
Input Capture Modep. 101
Summaryp. 103
References and Further Readingp. 103
Chapter Problemsp. 104
Atmel AVR Operating Parameters and Interfacingp. 105
Operating Parametersp. 106
Input Devicesp. 107
Switchesp. 109
Switch Debouncingp. 110
Keypadsp. 111
Sensorsp. 111
Digital Sensorsp. 111
Analog Sensorsp. 114
Output Devicesp. 114
Light-Emitting Diodesp. 115
Seven-Segment LED Displaysp. 117
Tristate LED Indicatorp. 117
Dot Matrix Displayp. 120
Liquid Crystal Displayp. 120
High-Power DC Devicesp. 124
DC Motor Speed and Direction Controlp. 125
DC Motor Operating Parametersp. 126
AC Devicesp. 126
Application: Flight Simulator Panelp. 127
Summaryp. 157
References and Further Readingp. 158
Chapter Problemsp. 158
ATmega16 Register Setp. 159
ATmega16 Header Filep. 161
Author Biographyp. 177
Indexp. 179
Table of Contents provided by Ingram. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.