Microcontroller Projects in C for the 8051

Купить бумажную книгу и читать

Купить бумажную книгу

По кнопке выше можно купить бумажные варианты этой книги и похожих книг на сайте интернет-магазина "Лабиринт".

Using the button above you can buy paper versions of this book and similar books on the website of the "Labyrinth" online store.

Реклама. ООО "ЛАБИРИНТ.РУ", ИНН: 7728644571, erid: LatgCADz8.

Название: Microcontroller Projects in C for the 8051

Автор:

Издательство: Newnes

Год: 2000

Страниц: 187

ISBN: 0-7506-4640-3

Формат: PDF

Размер: 1.1 Mб

Язык: english

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.

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.

Practical projects that enable students and practitioners to get up and running straight away with 8051 microcontrollers

- A hands-on introduction to practical C programming

- A wealth of project ideas for students and enthusiasts

Contents

 

Preface vii

Chapter 1 Microcomputer Systems 1

1.1 Introduction 1

1.2 Microcontroller Evolution 1

1.3 Microcontroller Architecture 2

1.4 8051 Family 3

1.5 Architecture of the 8051 Family 4

1.6 Pin Configuration 4

1.7 Timer/Counters 10

1.8 Interrupt Control 11

1.9 Minimum Microcontroller Configuration 12

1.10 Project Development 13

Chapter 2 Programming Microcontrollers in C 15

2.1 Data Types 16

2.1.1 bit 16

2.1.2 signed char/unsigned char 16

2.1.3 signed short/unsigned short 17

2.1.4 signed int/unsigned int 17

2.1.5 signed long/unsigned long 18

2.1.6 float 18

2.1.7 sbit 18

2.1.8 sfr 19

2.1.9 sfr16 19

2.2 Memory Models 19

2.3 Interrupts 20

2.4 Structure of a Microcontroller-based C Program 21

2.5 Program Description Language 22

2.5.1 START-END 22

2.5.2 Sequencing 24

2.5.3 IF-THEN-ELSE-ENDIF 24

Microcontroller Projects in С for the 8051

2.5.4 DO-ENDO 24

2.5.5 REPEAT-UNTIL 25

2.6 Internet Web Sites of Microcontroller Compilers 25

2.7 Further Reading 27

Chapter 3 Light Projects 29

PROJECT 1 - LED Binary Counter 29

PROJECT 2 - LED Chasing Circuit 33

PROJECT 3 - Random LED Pattern 34

PROJECT 4 - Cyclic LED Pattern 37

PROJECT 5 - LED Dice 38

PROJECT 6 - Hexadecimal Display 46

PROJECT 7 - Two-digit Decimal Count 50

PROJECT 8 - TIL311 Dice 53

PROJECT 9-7 Segment Display Driver 57

PROJECT 10 - Four-digit LED Display Interface 62

PROJECT 11 - Interrupt Driven Event Counter with 4-digit 75

LED Display

Chapter 4 Sound Projects 85

PROJECT 12 - Simple Buzzer Interface 86

PROJECT 13 - Small Speaker Interface (Using the Timer Interrupt) 90

PROJECT 14 - Two-tone Small Speaker Interface 94

(Using the Timer Interrupt)

PROJECT 15 - Electronic Siren (Using the Timer Interrupt) 95

PROJECT 16 - Electronic Siren (Using the Timer Interrupt) 101

Chapter 5 Temperature Projects 107

PROJECT 17 - Using a Digital Temperature Sensor 108

PROJECT 18 - Digital Thermometer with Centigrade/Fahrenheit 119 Output

PROJECT 19 - Digital Thermometer with High Alarm Output 125

PROJECT 20 - Digital Thermometer with High and Low Alarm 126 Outputs

PROJECT 21 - Using Analogue Temperature Sensor IC with A/D 132

Converter

Chapter 6 RS232 Serial Communication Projects 147

PROJECT 22 - Output a Simple Text Message from the RS232 Port 151

PROJECT 23 - Input/Output Example Using the RS232 Port 155 PROJECT 24 - A Simple Calculator Program Using the RS232 Port 161

Appendix - ASCII code 167

GLOSSARY 171

Index 177

Дата создания страницы: