Skip to Content
Programming Embedded Systems in C and C++
book

Programming Embedded Systems in C and C++

by Michael Barr
January 1999
Beginner to intermediate
200 pages
7h 43m
English
O'Reilly Media, Inc.
Content preview from Programming Embedded Systems in C and C++
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

You might also like

Embedded Systems Object-Oriented Programming in C and C++

Embedded Systems Object-Oriented Programming in C and C++

Israel Gbati

Publisher Resources

ISBN: 1565923545Catalog PageErrata