文档介绍:Making Embedded Systems
?? EDITION
Making Embedded Systems
Beijing • Cambridge • Farnham • Köln • Sebastopol • Tokyo
Making Embedded Systems
by
Printing History:
ISBN: 978-1-449-30214-6
1310483910
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Compilers, Languages, and Object-Oriented Programming 1
Embedded System Development 2
Debugging 2
More Challenges 4
Principles to Confront those Challenges 5
Further Reading 7
2. Creating a System Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Creating System Diagrams 10
The Block Diagram 10
Hierarchy of Control 13
Layered View 15
From Diagram to Architecture 16
Encapsulate Modules 16
Delegation of Tasks 17
Driver Interface: Open, Close, Read, Write, IOCTL 18
Adapter Pattern 19
Getting Started With Other Interfaces 22
Example: A Logging Interface 22
A Sandbox to Play In 28
Further Reading 33
3. Getting the Code Working . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Hardware/Software Integration 35
Ideal Project Flow 36
Board Bring Up 37
Reading a Datasheet 38
Datasheet Sections You Need When Things Go Wrong 40
v
Important Text for Software Developers 42
ponents Using the Datasheet 46
Your Processor Is a Language 49
Reading a Schematic 51
Having a Debugging Toolbox (and a Fire Extinguisher) 54
Keep your Board Safe 54
Toolbox 54
Digital Multimeter 55
Oscilloscopes and Logic Analyzers 56
Testing the Hardware (and Software) 59
Building Tests 60
Flash Test Example 61
Command and Response 64
Command Pattern 67
Handling Errors Gracefully 70
Consistent Methodology 70
Error Handling