Download Programming Embedded Systems By Michael Barr, Anthony Massa

Transcript
Chapter 2. Getting to Know the Hardware
Page 4 of 20
2.2. Hardware Basics
The next step in understanding the hardware is to take a look at the schematic. A schematic is a drawing
comprised of standardized symbols to represent all of a circuit's components and connections. The schematic
gives the details of the hardware, showing the individual components represented in the block diagram, how
the components are interconnected, and, most importantly, where to put the oscilloscope probe to see what's
going on with a particular circuit. On most projects, it is not necessary for you to understand how every
electrical circuit on the board operates, but you do need to understand the basic operation of the hardware.
Along with the user's guides or manuals for the board, it is also helpful to collect the datasheets for all major
components on your board. The datasheet is a complete specification of a particular hardware component,
including electrical, timing, and interface parameters.
Often the hardware engineer has already collected the datasheets; if so, your work is partly complete. You
might want to take a look at the other information available for a particular component, because there are often
separate hardware and software documents, especially for more complex devices. For example, a processor
often includes a Programmer's Guide in addition to the other literature. These documents can give you valuable
information for using various features of the processor; they occationally even provide code snippets.
There are also application notes that address particular issues associated with a specific component. It is a good
idea to look for any errata documents for all devices. The device's errata will give you a heads-up on any issues
regarding the way a device operates, and, more importantly, workarounds for these issues.
It's a good idea to periodically check for updates of the board components' information. This will save you the
frustration of chasing a problem that was fixed in the latest datasheet. All of this information is an asset when
you are trying to understand a new piece of hardware. You can generally find these documents on the
manufacturer's web site.
2.2.1. Schematic Fundamentals
Before we take a look at a schematic, let's go over some of the basics of schematics. Figure 2-3 shows some of
the basic schematic symbols you will come across, although there might be some variations in symbols from
schematic to schematic. The first column gives the name of the particular component; the second column
shows the reference designator prefix or component name; and the third column shows the symbols for the
related component.
Figure 2-3. Basic schematic symbols
file://C:\Documents and Settings\Amir\Local Settings\Temp\~hh3633.htm
3/30/2007