Skip to Content
Arduino: A Technical Reference
book

Arduino: A Technical Reference

by J. M. Hughes
May 2016
Beginner to intermediate
638 pages
17h 40m
English
O'Reilly Media, Inc.
Content preview from Arduino: A Technical Reference

Appendix B. AVR ATmega Control Registers

The register summaries in this appendix are intended as a quick reference. This appendix is not a comprehensive description of each control register. For detailed descriptions of each control register for a particular MCU type, see the Atmel documentation. Pay special attention to the notes included with the control register summaries in the Atmel documents. Each MCU has a slightly different set of things to watch out for.

In general, reserved bits (marked with a “–”) should not be accessed. Registers in the range of 0x00 to 0x1F are directly bit-accessible with the SBI and CBI instructions (set I/O bit and clear I/O bit, respectively). Register addresses in parentheses are the SRAM addresses of the control registers, whereas the addresses not in parentheses reside in the 64-byte address space reserved for I/O control registers. The reserved locations can be used with the IN and OUT instructions, and the SRAM addresses must be accessed with the ST/STS/STD and LD/LDS/LDD instructions.

The information in this appendix was derived from the following Atmel technical documents, all of which are available from Atmel.com:

Document number Title

Atmel-8271I-AVR- ATmega-Datasheet_10/2014

Atmel ATmega48A/PA/88A/PA/168A/PA/328/P

2549Q–AVR–02/2014

Atmel ATmega640/V-1280/V-1281/V-2560/V-2561/V

7766F–AVR–11/10

Atmel ATmega16U4/ATmega32U4

 

ATmega168/328

Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

(0xFF)

Reserved ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Arduino: A Quick-Start Guide, 2nd Edition

Arduino: A Quick-Start Guide, 2nd Edition

Maik Schmidt
Mastering Arduino

Mastering Arduino

Jon Hoffman, Ejike (George Steve) Ifeanyichukwu, Pratik Desai

Publisher Resources

ISBN: 9781491934319Errata Page