So that faults can be located easier. To aid debugging, the book provides a section detailing the use of the simulator and in-circuit debugger. The chapters show numerous applications starting with switching outputs on, then using digital inputs such as switches and keypads. My aim has been to show the reader how to use the Microcontroller to develop programs for projects. The explanation is centred around a basic program, flashing a light emitting diode on and off. This book continues with making measurements from analogue inputs, writing to alpha numeric displays, using timers and interrupts, and transmitting data via radio links. .
Fault Finding, using the Simulator and the In Circuit Debugger Chapter 12. C is a very comprehensive and versatile language, which usually means there is a lot to learn. The programs are complete and are clearly explained. These program languages are assembly, basic, C, or a number of flowchart languages. I have tried to keep the technical detail down to a minimum and have not gone into a deeper understanding of how the microcontroller is working inside. An understanding of the electronics inside the microcontroller is not necessary to enable the reader to program it.
Analogue to Digital Conversion Chapter 7. Introduction to the Microcontroller and C Chapter 2. The memory location is 8 bits wide which means it can store 8 bits of information Figure 1. The language that we are going to use in this book is the C programming language, which is a high-level language that is very versatile. So you will not need to become a C programmer in order to program the micro in C! Useful Contacts Index Responsibility: David W. The reader is encouraged to build the programs, see how they work, and then modify the code to enable a clearer understanding of the principles involved; a development kit is available to do this.
Chapter 1 Introduction to the Microcontroller and C This chapter is an introduction to the microcontroller memory, in the latest 18F series of devices and how it can be written to using the C programming language. For all of these reasons, this is undoubtedly a book for beginners: they can use it either on their own, as self-teaching material, or in a class of some sort. Throughout this book I will introduce the C language as and when required and only those instructions that are needed to perform the control. These locations are called registers, and instructions are written to these registers to enable the microcontroller to perform an operation. Radio Transmitters and Receivers Chapter 13.
The discussion of the integrated development environment shows how to write and develop the C source code file and how to attach it to a project and fix errors. The program examples demonstrate the power of the C language, yet the reader does not have to be a C programmer in order to benefit from this technology as the C language is added and explained as required. The 8 bits in the memory are identified by numbers starting on the right with the least significant bit, bit 0, and moving to the left to the most significant bit, bit 7. An explanation of the operation of the code is given. The E-mail message field is required.
Note a 1 sets the pin as an input, a 0 sets the pin as an output. All of the chapters show applications on how to use the program examples. Alpha Numeric Displays Chapter 8. There are several ways in which we can give the microcontroller instructions, called programming. Porting Code to other Microcontrollers Chapter 9.
. . . . .
. . . . . .
. . . . .
. . . . . . .