Arduino A Technical Reference A Handbook for Technicians, Engineers, and Makers.pdf

(301194 KB) Pobierz
Reference
A HANDBOOK FOR TECHNICIANS,
ENGINEERS, AND MAKERS
Arduino
A Technical
J. M. Hughes
Arduino: A Technical Reference
A Handbook for Technicians, Engineers, and Makers
J. M. Hughes
Beijing
Boston Farnham Sebastopol
Tokyo
Arduino: A Technical Reference
by J. M. Hughes
Copyright © 2016 John Hughes. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editor:
Dawn Schanafelt
Production Editor:
Colleen Lobner
Copyeditor:
Rachel Head
Proofreader:
Kim Cofer
Indexer:
Ellen Troutman-Zaig
May 2016:
First Edition
Interior Designer:
David Futato
Cover Designer:
Randy Comer
Illustrator:
John M. Hughes
and Rebecca Demarest
Revision History for the First Edition
2016-05-05:
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491921760
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Arduino: A Technical Reference,
the
cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-491-92176-0
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
1.
The Arduino Family. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
A Brief History
Types of Arduino Devices
Arduino Galleries
Arduino-Compatible Devices
Hardware-Compatible Devices
Software-Compatible Devices
The Arduino Naming Convention
What Can You Do with an Arduino?
For More Information
Background
Internal Architecture
Internal Memory
Peripheral Functions
Control Registers
Digital I/O Ports
8-Bit Timer/Counters
16-Bit Timer/Counters
Timer/Counter Prescaler
Analog Comparator
Analog-to-Digital Converter
Serial I/O
USART
SPI
1
2
4
7
7
8
9
10
12
2.
The AVR Microcontroller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
14
14
17
17
18
18
19
21
21
21
22
24
24
25
iii
Zgłoś jeśli naruszono regulamin