
50 Chapter 5: Getting to Know the Hardware
you should add a third section to the board-specific header file. Each line of the
interrupt map becomes a single #define within the file, as shown:
/**********************************************************************
*
* Interrupt Map
*
**********************************************************************/
/*
* Zilog 85230 SCC
*/
#define SCC_INT 17
/*
* On-Chip Timer/Counters
*/
#define TIMER0_INT 8
#define TIMER1_INT 18
#define TIMER2_INT 19
/*
* On-Chip Serial Ports
*/
#define RX_INT 20
#define TX_INT 21
Get to Know the Processor
If you haven’t worked with the processor on your board before, you should take
some time to get familiar with it now. This shouldn’t take very long if you do all of
your programming in C or C++. To the user of a high-level language, most proces-
sors look and act pretty much the same. However, if you’ll be doing any assembly
language programming, you will need to familiarize yourself with the processor’s
architecture and basic instruction set.
Everything you need to know about the processor can be found in the databooks
provided by the manufacturer. If you don’t have a databook or programmer’s
guide for your processor already, you should obtain one immediately. If you are
going to be a successful embedded systems programmer, you must be able to read
databooks and get something out of them. Processor databooks are usually well ...