0

Using LEDs, LCDs and GLCDs in Microcontroller Projects

Erschienen am 01.09.2012
CHF 130,00
(inkl. MwSt.)

Nicht lieferbar

In den Warenkorb
Bibliografische Daten
ISBN/EAN: 9781119940708
Sprache: Englisch
Umfang: 496
Auflage: 1. Auflage
Einband: Gebunden

Beschreibung

Describing the use of displays in microcontroller based projects, the author makes extensive use of real-world, tested projects. The complete details of each project are given, including the full circuit diagram and source code. The author explains how to program microcontrollers (in C language) with LED, LCD and GLCD displays; and gives a brief theory about the operation, advantages and disadvantages of each type of display. Key features: * Covers topics such as: displaying text on LCDs, scrolling text on LCDs, displaying graphics on GLCDs, simple GLCD based games, environmental monitoring using GLCDs (e.g. temperature displays) * Uses C programming throughout the book - the basic principles of programming using C language and introductory information about PIC microcontroller architecture will also be provided * Includes the highly popular PIC series of microcontrollers using the medium range PIC18 family of microcontrollers in the book. * Provides a detailed explanation of Visual GLCD and Visual TFT with examples. * Companion website hosting program listings and data sheets * Contains the extensive use of visual aids for designing LED, LCD and GLCD displays to help readers to understand the details of programming the displays: screen-shots, tables, illustrations, and figures, as well as end of chapter exercises Using LEDs, LCDS, and GLCDs in Microcontroller Projects is an application oriented book providing a number of design projects making it practical and accessible for electrical & electronic engineering and computer engineering senior undergraduates and postgraduates. Practising engineers designing microcontroller based devices with LED, LCD or GLCD displays will also find the book of great use.

Autorenportrait

InhaltsangabePreface xiii Acknowledgements xv 1 Introduction to Microcontrollers and Display Systems 1 1.1 Microcontrollers and Microprocessors 2 1.2 Evolution of the Microcontroller 3 1.3 Parts of a Microcontroller 4 1.3.1 Address 4 1.3.2 ALU 5 1.3.3 Analogue Comparator 5 1.3.4 Analogue-to-Digital Converter 5 1.3.5 Brownout Detector 5 1.3.6 Bus 5 1.3.7 CAN 6 1.3.8 CISC 6 1.3.9 Clock 6 1.3.10 CPU 6 1.3.11 EEPROM 6 1.3.12 EPROM 6 1.3.13 Ethernet 7 1.3.14 Flash Memory 7 1.3.15 Harvard Architecture 7 1.3.16 Idle Mode 7 1.3.17 Interrupts 7 1.3.18 LCD Drivers 8 1.3.19 Pipelining 8 1.3.20 Poweron Reset 8 1.3.21 PROM 8 1.3.22 RAM 8 1.3.23 Realtime Clock 8 1.3.24 Register 9 1.3.25 Reset 9 1.3.26 RISC 9 1.3.27 ROM 9 1.3.28 Serial Input-Output 9 1.3.29 Sleep Mode 9 1.3.30 Supply Voltage 10 1.3.31 Timers 10 1.3.32 USB 10 1.3.33 Watchdog 10 1.4 Display Devices 10 1.4.1 LED 10 1.4.2 7Segment LED 11 1.4.3 OLED 12 1.4.4 LCD 12 1.5 Summary 15 Exercises 15 2 PIC18F Microcontrollers 17 2.1 The PIC18F2410 Microcontroller 18 2.2 PIC18F2410 Architecture 19 2.2.1 The Program Memory 21 2.2.2 The Data Memory 21 2.2.3 Power Supply Requirements 22 2.2.4 Oscillator Configurations 24 2.2.5 The Reset 30 2.2.6 Parallel I/O Ports 31 2.2.7 Timer Modules 38 2.2.8 Analogue-to-Digital Converter Module 43 2.2.9 Special Features of the CPU 48 2.2.10 Interrupts 49 2.2.11 Pulse Width Modulator Module 53 2.3 Summary 56 Exercises 56 3 C Programming Language 59 3.1 C Languages for Microcontrollers 59 3.2 Your First mikroC Pro for PIC Program 61 3.2.1 Comments 61 3.2.2 Beginning and Ending a Program 62 3.2.3 White Spaces 63 3.2.4 Variable Names 63 3.2.5 Reserved Names 64 3.2.6 Variable Types 64 3.2.7 Constants 66 3.2.8 Escape Sequences 68 3.2.9 Volatile Variables 69 3.2.10 Accessing Bits of a Variable 69 3.2.11 sbit Type 70 3.2.12 bit Type 70 3.2.13 Arrays 70 3.2.14 Pointers 73 3.2.15 Structures 76 3.2.16 Unions 80 3.2.17 Operators in mikroC Pro for PIC 80 3.2.18 The Flow of Control 90 3.3 Functions in mikroC Pro for PIC 101 3.3.1 Function Prototypes 102 3.3.2 void Functions 103 3.3.3 Passing Parameters to Functions 104 3.3.4 Passing Arrays to Functions 106 3.3.5 Interrupt Processing 106 3.4 mikroC Pro for PIC Built-in Functions 108 3.5 mikroC Pro for PIC Libraries 109 3.5.1 ANSI C Library 109 3.5.2 Miscellaneous Library 111 3.6 Using the mikroC Pro for PIC Compiler 111 3.6.1 mikroC Pro for PIC IDE 112 3.6.2 Creating a New Source File 118 3.6.3 Compiling the Source File 122 3.7 Using the mikroC Pro for PIC Simulator 123 3.7.1 Setting a Break-Point 124 3.8 Other mikroC Pro for PIC Features 126 3.8.1 View Statistics 126 3.8.2 View Assembly 127 3.8.3 ASCII Chart 127 3.8.4 USART Terminal 127 3.8.5 Seven Segment Editor 127 3.8.6 Help 128 3.9 Summary 128 Exercises 129 4 PIC Microcontroller Development Tools - Including Display Development Tools 131 4.1 PIC Hardware Development Boards 132 4.1.1 Super Bundle Development Kit 132 4.1.2 PIC18 Explorer Board 132 4.1.3 PIC18F4XK20 Starter Kit 134 4.1.4 PICDEM 4 135 4.1.5 PIC16F887 Development Kit 135 4.1.6 FUTURLEC PIC18F4550 Development Board 137 4.1.7 EasyPIC6 Development Board 137 4.1.8 EasyPIC7 Development Board 139 4.2 PIC Microcontroller Display Development Tools 140 4.2.1 Display Hardware Tools 140 4.2.2 Display Software Tools 143 4.3 Using the In-Circuit Debugger with the EasyPIC7 Development Board 145 4.4 Summary 149 Exercises 149 5 Light Emitting Diodes (LEDs) 151 5.1 ATypical LED 151 5.2 LED Colours 153 5.3 LED Sizes 154 5.4 BiColour LEDs 154 5.5 TriColour LEDs 155 5.6 Flashing LEDs 155 5.7 Other LED Shapes 155 5.8 7Segment LEDs 156 5.

Leseprobe

Leseprobe