Cover image for Microcontroller projects in C for the 8051
Title:
Microcontroller projects in C for the 8051
Personal Author:
Publication Information:
Burlington, MA : Newnes, 2000
ISBN:
9780750646406

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000004890871 TJ223.P76 I275 2000 Open Access Book Book
Searching...

On Order

Summary

Summary

This book is a thoroughly practical way to explore the 8051 and discover C programming through project work. Through graded projects, Dogan Ibrahim introduces the reader to the fundamentals of microelectronics, the 8051 family, programming in C, and the use of a C compiler. The specific device used for examples is the AT89C2051 - a small, economical chip with re-writable memory, readily available from the major component suppliers.

A working knowledge of microcontrollers, and how to program them, is essential for all students of electronics. In this rapidly expanding field many students and professionals at all levels need to get up to speed with practical microcontroller applications. Their rapid fall in price has made microcontrollers the most exciting and accessible new development in electronics for years - rendering them equally popular with engineers, electronics hobbyists and teachers looking for a fresh range of projects.

Microcontroller Projects in C for the 8051 is an ideal resource for self-study as well as providing an interesting, enjoyable and easily mastered alternative to more theoretical textbooks.


Author Notes

Prof Dogan Ibrahim graduated from the University of Salford with First Class Honours in Electronic Engineering. He then completed an MSc course in Automatic Control Engineering at the University of Manchester, and PhD in Digital Signal Processing at the City University in London. Prof Ibrahim worked at several companies before returning to the academic life. He is currently a lecturer at the Department of Computer Information Systems at the Near East University. Prof Ibrahim is a Fellow of the IET, and a Chartered Electrical Engineer. His interests are in the fields of microcontroller based automatic control, digital signal processing, and computer aided design.Dogan Ibrahim has been Associate Professor and Head of Department at the Near East University, Cyprus, lecturer at South Bank University, London, Principal Research Engineer at GEC Hirst Research Centre, and is now a hardware and software systems consultant to London's Traffic Control Systems Unit.


Table of Contents

Prefacep. vii
Chapter 1 Microcomputer Systemsp. 1
1.1 Introductionp. 1
1.2 Microcontroller Evolutionp. 1
1.3 Microcontroller Architecturep. 2
1.4 8051 Familyp. 3
1.5 Architecture of the 8051 Familyp. 4
1.6 Pin Configurationp. 4
1.7 Timer/Countersp. 10
1.8 Interrupt Controlp. 11
1.9 Minimum Microcontroller Configurationp. 12
1.10 Project Developmentp. 13
Chapter 2 Programming Microcontrollers in Cp. 15
2.1 Data Typesp. 16
2.1.1 bitp. 16
2.1.2 signed char/unsigned charp. 16
2.1.3 signed short/unsigned shortp. 17
2.1.4 signed int/unsigned intp. 17
2.1.5 signed long/unsigned longp. 18
2.1.6 floatp. 18
2.1.7 sbitp. 18
2.1.8 sfrp. 19
2.1.9 sfr 16p. 19
2.2 Memory Modelsp. 19
2.3 Interruptsp. 20
2.4 Structure of a Microcontroller-based C Programp. 21
2.5 Program Description Languagep. 22
2.5.1 Start-Endp. 22
2.5.2 Sequencingp. 24
2.5.3 If-Then-Else-Endifp. 24
2.5.4 Do-Endop. 24
2.5.5 Repeat-Untilp. 25
2.6 Internet Web Sites of Microcontroller Compilersp. 25
2.7 Further Readingp. 27
Chapter 3 Light Projectsp. 29
Project 1 LED Binary Counterp. 29
Project 2 LED Chasing Circuitp. 33
Project 3 Random LED Patternp. 34
Project 4 Cyclic LED Patternp. 37
Project 5 LED Dicep. 38
Project 6 Hexadecimal Displayp. 46
Project 7 Two-digit Decimal Countp. 50
Project 8 TIL311 Dicep. 53
Project 9 7 Segment Display Driverp. 57
Project 10 Four-digit LED Display Interfacep. 62
Project 11 Interrupt driven Event Counter with 4-digit LED Displayp. 75
Chapter 4 Sound Projectsp. 85
Project 12 Simple Buzzer Interfacep. 86
Project 13 Small Speaker Interface (Using the Timer Interrupt)p. 90
Project 14 Two-tone Small Speaker Interface (Using the Timer Interrupt)p. 94
Project 15 Electronic Siren (Using the Timer Interrupt)p. 95
Project 16 Electronic Siren (Using the Timer Interrupt)p. 101
Chapter 5 Temperature Projectsp. 107
Project 17 Using a Digital Temperature Sensorp. 108
Project 18 Digital Thermometer with Centigrade/Fahrenheit Outputp. 119
Project 19 Digital Thermometer with High Alarm Outputp. 125
Project 20 Digital Thermometer with High and Low Alarm Outputsp. 126
Project 21 Using Analogue Temperature Sensor IC with A/D Converterp. 132
Chapter 6 RS232 Serial Communication Projectsp. 147
Project 22 Output a Simple Text Message from the RS232 Portp. 151
Project 23 Input/Output Example Using the RS232 Portp. 155
Project 24 A Simple Calculator Program Using the RS232 Portp. 161
Appendix ASCII codep. 167
Glossaryp. 171
Indexp. 177