06-06-2012, 01:39 PM
Embedded C
Embedded C Tutorial - (8051) ###.pdf (Size: 2.47 MB / Downloads: 0)
What’s on the CD?
In addition to the Keil compiler and hardware simulator (discussed in the previous
section), the CD also includes source code files for all the examples and the case
study: this code is in the ‘C’ programming language and is compatible with the
Keil compiler.
The CD also contains useful information about the 8051 microcontroller
family, including a large number of relevant data sheets and application notes.
What’s the page link between this book and your other 8051 book
(Patterns for Time-Triggered Embedded Systems)?
Embedded C provides an introduction to the use of C in embedded projects. If you
want to learn more about embedded systems after you finish this book, then
Patterns for Time-Triggered Embedded Systems (PTTES) may be of interest.1
PTTES is a large (1000-page) book which includes a comprehensive set of
‘design patterns’ to support the development of embedded systems based on the
8051 family of microcontrollers. In total, details of more than 70 useful patterns
are provided, complete with guidelines to help you apply these techniques in your
own projects: full source code for all of the patterns is included on the PTTES CD.
The book includes: patterns for embedded operating systems (for both singleprocessor
and multi-processor applications); patterns for user-interface designs
using switches, keypads, LED and liquid crystal displays; patterns for PID control;
patterns for PWM; patterns for analogue-to-digital and digital-to-analogue conversion;
patterns for RS-232, RS-485, CAN, SPI and I2C serial networks; hardware
patterns describing reset, oscillator and memory circuits.
Is the code ‘free ware’?
The code included in this book took many years to produce. It is not ‘free ware’,
and is subject to some simple copyright restrictions. These are as follows:
If you have purchased a copy of this book, you are entitled to use the code
listed in the text (and included on the CD) in your projects, should you choose
to do so. If you use the code in this way, then no run-time royalties are due.
How should this book be read?
This short book is intended to be read from cover to cover.
Access to a Windows PC while reading will be useful in later chapters, as this
will allow you to try out the examples for yourself: however, this is not essential.
What about bug reports and code updates?
There is fair amount of code involved in this project, both in the book itself and
on the associated CD. I have personally tested all of the code that appears here.
Nonetheless, errors can creep in.
If you think you have found a bug, please send me an e-mail (the address is at
the end of this preface), and I will do my best to help.
What about other reader comments?
I began my first embedded project in 1986. When writing Embedded C, I wanted to, try
and provide the kind of information that I needed (but could not find) at that time.
Preface xv
2. I can be contacted either by post (via the publishers, please), or much more efficiently by e-mail
at the address given at the end of this preface.