An Embedded Software Primer

Paperback
from $0.00

Author: David E. Simon

ISBN-10: 020161569X

ISBN-13: 9780201615692

Category: Hardware Related Programming

"I sincerely wish (this book) had been available when I had to learn all this stuff the hard way."\ --Steve Vinoski\ \ "An excellent job of introducing and defining the jargon associated with embedded systems. This makes the text extremely easy to read."\ --David Cuka\ An Embedded Software Primer is a clearly written, insightful manual for engineers interested in writing embedded-system software. The example-driven approach puts you on a fast track to understanding embedded-system...

Search in google:

"I sincerely wish (this book) had been available when I had to learn all this stuff the hard way." —Steve Vinoski "An excellent job of introducing and defining the jargon associated with embedded systems. This makes the text extremely easy to read." —David Cuka An Embedded Software Primer is a clearly written, insightful manual for engineers interested in writing embedded-system software. The example-driven approach puts you on a fast track to understanding embedded-system programming and applying what you learn to your projects. This book will give you the necessary foundation to work confidently in this field. Building on a basic knowledge of computer programming concepts, this book will help you to: * Learn core principles and advanced techniques of embedded-system software. * Find out what a real-time operating system (RTOS) does and how to use one effectively. * Experiment with sample code and the C/OS RTOS version 1.11 (on the accompanying CD). * Apply what you learn, no matter which microprocessor or RTOS you use. After reading this book, you will be able to tackle the challenges of embedded system programming and quickly reap the benefits of your new skills.

This book is to help you learn the basic principles of writing software for embedded systems. It surveys the issues and discusses the various techniques for dealing with them. In particular, it discusses approaches to the appropriate use of the real-time operating systems upon which much embedded software is based. In addition to explaining what these systems do, this book points out how you can use them most effectively. \ \ You need know nothing about embedded-systems software and its problems to read this book; we'll discuss everything from the very beginning. You should be familiar with basic computer programming concepts: you might be a software engineer with a year or more of experience, or perhaps a student with a few programming courses under your belt. You should understand the problems involved in writing application programs. This book requires a reading knowledge of the C programming language; since C is the lingua franca of embedded systems, you will have to learn it sooner or later if you hope to get into the field. A little knowledge of assembly language will also be helpful. \ \ You have no doubt seen many books about software that are 800 or 900 or even 1000 pages long. Presumably you have noticed by now that this book is much smaller than that. This is intentional--the idea is that you might actually want to read all the way through it. This book is not entitled Everything There Is to Know about Embedded Systems Software. Nobody could write that book, and if someone could and did, you wouldn't want to read it anyway. This book is more like What You Need to Know to Get Started in Embedded Systems Software, telling you enough that you'll understand the issues you will face and getting you started on finding the information about your particular system so that you can resolve those issues. \ \ This book is not specific to any microprocessor or real-time operating system nor is it oriented towards any particular software design methodology. The principles are the same, regardless of which microprocessor and which realtime operating system and which software design methodology you use. We will concentrate on the principles--principles that you can apply to almost any embedded system project. When you need to know the specifics of your microprocessor and your real-time operating system, look in the voluminous manuals that hardware and software vendors provide with their products. This book will help you know what information to look for. \ \ This book is not academic or theoretical; it offers engineering information and engineering advice. In short, this book is the cornerstone of the knowledge that you'll need for writing embedded-systems software. \ \ David E. Simon

Preface Acknowledgments About This Book and the Accompanying CD-ROM Chapter 1: A First Look at Embedded Systems 1.1 Examples of Embedded Systems 1.1.2 Typical Hardware Chapter Summary Chapter 2: Hardware Fundamentals for the Software Engineer 2.1 Terminology 2.2 Gates 2.3 A Few Other Basic Considerations 2.4 Timing Diagrams 2.5 Memory Chapter Summary Problems Chapter 3: Advanced Hardware Fundamentals 3.1 Microprocessors 3.2 Buses 3.3 Direct Memory Access 3.4 Interrupts 3.5 Other Common Parts 3.6 Built-Ins on the Microprocessor 3.7 Conventions Used on Schematics 3.8 A Sample Schematic 3.9 A Last Word about Hardware Chapter Summary Problems Chapter 4: Interrupts 4.1 Microprocessor Architecture 4.2 Interrupt Basics 4.3 The Shared-Data Problem 4.4 Interrupt Latency Chapter Summary Problems Chapter 5: Survey of Software Architectures 5.1 Round-Robin 5.2 Round-Robin with Interrupts 5.3 Function-Queue-Scheduling Architecture 5.4 Real-Time Operating System Architecture 5.5 Selecting an Architecture Chapter Summary Problems Chapter 6: Introduction to Real-Time Operating Systems 6.1 Tasks and Task States 6.2 Tasks and Data 6.3 Semaphores and Shared Data Chapter Summary Problems Chapter 7: More Operating System Services 7.1 Message Queues, Mailboxes, and Pipes 7.2 Timer Functions 7.3 Events 7.4 Memory Management 7.5 Interrupt Routines in an RTOS Environment Chapter Summary Problems Chapter 8: Basic Design Using a Real-Time Operating System 8.1 Overview 8.2 Principles 8.3 An Example 8.4 Encapsulating Semaphores and Queues 8.5 Hard Real-Time Scheduling Considerations 8.6 Saving Memory Space 8.7 Saving Power Chapter Summary Problems Chapter 9: Embedded Software Development Tools 9.1 Host and Target Machines 9.2 Linker/Locators for Embedded Software 9.3 Getting Embedded Software into the Target System Chapter Summary Chapter 10: Debugging Techniques 10.1 Testing on Your Host Machine 10.2 Instruction Set Simulators 10.3 The assert Macro 10.4 Using Laboratory Tools Chapter Summary Problems Chapter 11: An Example System 11.1 What the Program Does 11.2 Environment in Which the Program Operates 11.3 A Guide to the Source Code 11.4 Source Code Summary Problems Afterword Further Reading Index