PIC in Practice is a graded course based around the practical use of the PIC microcontroller through project work. Principles are introduced gradually, through hands-on experience, enabling students to develop their understanding at their own pace.
Dave Smith has based the book on his popular short courses on the PIC for professionals, students and teachers at Manchester Metropolitan University. The result is a graded text, formulated around practical exercises, which truly guides the reader from square one.
The book can be used at a variety of levels and the carefully graded projects make it ideal for colleges, schools and universities. Newcomers to the PIC will find it a painless introduction, whilst electronics hobbyists will enjoy the practical nature of this first course in microcontrollers.
PIC in Practice introduces applications using the popular 16F84 device as well as the 16F627, 16F877, 12C508, 12C629 and 12C675. In this new edition excellent coverage is given to the 16F818, with additional information on writing and documenting software.
- Gentle introduction to using PICs for electronic applications
- Principles and programming introduced through graded projects
- Thoroughly up-to-date with new chapters on the 16F818 and writing and documenting programs
Inhaltsverzeichnis
1;Cover;1 2;Contents;7 3;Introduction;11 4;1 Introduction to the PIC microcontroller;13 4.1;The aim of the book;13 4.2;Program memory;14 4.3;Microcontroller clock;15 4.4;The microcontroller system;15 4.5;Types of microcontroller;16 4.6;Microcontroller specification;17 4.7;Using the microcontroller;18 4.8;1 Microcontroller hardware;18 4.9;2 Programming the microcontroller;21 5;2 Programming the 16F84 microcontroller;23 5.1;Microcontroller inputs and outputs (I/O);24 5.2;Timing with the microcontroller;24 5.3;Programming the microcontroller;24 5.4;Entering data;25 5.5;The Header for the 16F84, HEADER84.ASM;26 5.6;Program example;28 5.7;Saving and assembling the code;31 5.8;PICSTART PLUS programmer;35 5.9;Programming flowchart;38 5.10;Problem: flashing two LEDs;38 5.11;Solution to the problem, flashing two LEDs;39 6;3 Introductory projects;41 6.1;LED_Flasher2;41 6.2;SOS;42 6.3;Code for SOS circuit;42 6.4;Flashing 8 LEDs;45 6.5;Chasing 8 LEDs;47 6.6;Traffic lights;51 6.7;More than 8 outputs;57 7;4 Headers, porting code which micro?;59 7.1;Factors affecting the choice of the microcontroller;59 7.2;Choosing the microcontroller;60 7.3;Headers;61 8;5 Using inputs;76 8.1;Switch flowchart;78 8.2;Program development;79 8.3;Scanning (using multiple inputs);85 8.4;Switch scanning;85 8.5;Control application a hot air blower;89 9;6 Understanding the headers;94 9.1;The 16F84;94 9.2;16F84 memory map;99 9.3;The 16F818;100 10;7 Keypad scanning;105 10.1;Programming example for the keypad;106 11;8 Program examples;122 11.1;Counting events;122 11.2;Look up table;127 11.3;7-Segment display;127 11.4;Numbers larger than 255;138 11.5;Long time intervals;145 11.6;One hour delay;148 12;9 The 16C54 microcontroller;151 12.1;Header for the 16C54;151 12.2;16C54 memory map;154 13;10 Alpha numeric displays;155 13.1;Display pin identification;156 13.2;Configuring the display;157 13.3;Writing to the display;158 13.4;Program example;158 13.5;Program operation;172 13.6;Display configuration;173 13.7;Wri
ting to the display;174 13.8;Displaying a number;175 14;11 Analogue to digital conversion;178 14.1;Making an A/D reading;179 14.2;Configuring the A/D device;180 14.3;Analogue header for the 16F818;183 14.4;A/D Conversion example, a temperature sensitive switch;186 14.5;Program code;188 14.6;Another example a voltage indicator;190 15;12 Radio transmitters and receivers;198 15.1;Measuring the received pulse width;201 16;13 EEPROM data memory;211 16.1;Example using the EEPROM;212 17;14 Interrupts;219 17.1;Interrupt sources;220 17.2;Interrupt control register;220 17.3;Program using an interrupt;221 18;15 The 12 series 8 pin microcontroller;228 18.1;Pin diagram of the 12C508/509;228 18.2;Pin diagram of the 12F629 and 12F675;228 18.3;Features of these 12 series;229 18.4;The memory maps of the 12C508;229 18.5;Oscillator calibration;230 18.6;I/O PORT, GPIO;231 18.7;Delays with the 12 series;232 18.8;Header for 12C508/9;232 18.9;Program application for 12C508;234 18.10;Program application using the 12F629/675;237 19;16 The 16F87X microcontroller;241 19.1;16F87X family specification;241 19.2;16F87X memory map;241 19.3;The 16F872 microcontroller;242 19.4;The 16F872 header;245 19.5;16F872 Application a greenhouse control;248 19.6;Programming the 16F872 microcontroller using PICSTART PLUS;254 19.7;Reconfiguring the 16F872 header;255 20;17 The 16F62X microcontroller;257 20.1;16F62X oscillator modes;257 20.2;16F62X and 16F84 Pinouts;259 20.3;16F62X Port configuration;259 20.4;16F62X Memory map;260 20.5;The 16F62X headers;260 20.6;HEAD62RC.ASM;262 20.7;A 16F627 application flashing an LED on and off;264 20.8;The 16F627 LED flasher code;265 20.9;Configuration settings for the 16F627;267 20.10;Other features of the 16F62X;267 21;18 Projects;269 21.1;Project 1 Electronic dice;269 21.2;Project 2 Reaction timer;278 21.3;Project 3 Burglar alarm;284 21.4;Fault finding;294 21.5;Development kits;297 22;19 Instruction set, files and registers;299 22.1;The PIC microcontroller instruction set;
299 22.2;Registers;301 22.3;Instruction set summary;304 23;Appendix A Microcontroller data;311 24;Appendix B Electrical characteristics;313 25;Appendix C Decimal, binary and hexadecimal numbers;315 26;Appendix D Useful contacts;318 27;Index;319