
40
Chapter 5
In this chapter:
• Understand the Big
Picture
• Examine the
Landscape
• Learn How to
Communicate
• Get to Know the
Processor
• Study the External
Peripherals
• Initialize the
Hardware
5
Getting to Know
the Hardware
5.
hard•ware n. The part of a computer system that can be kicked.
As an embedded software engineer, you’ll have the opportunity to work with
many different pieces of hardware in your career. In this chapter, I will teach you
a simple procedure that I use to familiarize myself with any new board. In the pro-
cess, I’ll guide you through the creation of a header file that describes the board’s
most important features and a piece of software that initializes the hardware to a
known state.
Understand the Big Picture
Before writing software for an embedded system, you must first be familiar with
the hardware on which it will run. At first, you just need to understand the gen-
eral operation of the system. You do not need to understand every little detail of
the hardware; that kind of knowledge will not be needed right away and will
come with time.
Whenever you receive a new board, you should take some time to read whatever
documents have been provided with it. If the board is an off-the-shelf product, it
might arrive with a “User’s Guide” or “Programmer’s Manual” that has been writ-
ten with the software developer in mind. However, if the board was custom
designed for your project, the documentation ...