Programming 8-bit PIC Microcontrollers in C By Martin Bates E-book

Book Introduction:

PIC Microcontrollers are present in almost every new electronic application that is released from garage door openers to the iPhone. With the proliferation of this product more and more engineers and engineers-to-be (students) need to understand how to design, develop, and build with them. Martin Bates, best-selling author, has provided a step-by-step guide to programming these microcontrollers (MCUs) with the C programming language.
With no previous knowledge of C necessary to read this book, it is the perfect for entry into this world for engineers who have not worked with PICs, new professionals, students, and hobbyists. As MCUs become more complex C is the most popular language due to its ability to process advanced processes and multitasking. RTOSs, that is a need to know for engineers, is also discussed as more advanced MCUs require timing and organization of programming and implementation of multitasking. The book includes lots of source code, circuit schematics, and hardware block diagrams. Microchip’s PICDEM Mechatronics board is used to detail the examples throughout the book.
*Focuses on the C programming language which is by far the most popular for microcontrollers (MCUs)
*Features Proteus VSMg the most complete microcontroller simulator on the market, along with CCS PCM C compiler, both are highly compatible with Microchip tools
*Extensive downloadable content including fully worked examples.

Programming 8-bit PIC Microcontrollers in C

Audience: Professional
Format: Paperback
Language: English
Number Of Pages: 300
Published: 22nd August 2008
Publisher: Elsevier Science & Technology
Dimensions (cm): 23.1 x 19.2  x 2.4
Weight (kg): 0.639

Table of Contents:

Forewordp. xi
Prefacep. xiii
Introductionp. xvii
PIC Microcontroller Systemsp. 1
PIC16 Microcontrollersp. 1
MCU Featuresp. 3
Program Executionp. 3
RAM File Registersp. 7
Other PIC Chipsp. 7
PIC16 MCU Configurationp. 8
Clock Optionsp. 9
Configuration Optionsp. 9
Configuration in Cp. 11
PIC16 MCU Peripheralsp. 12
Timersp. 13
A/D Converterp. 15
Comparatorp. 15
Parallel Slave Portp. 16
Interruptsp. 16
PIC16 Serial Interfacesp. 18
USARTp. 19
SPI Busp. 21
I[superscript 2]C Busp. 21
PIC16 MPLAB Projectsp. 22
MPLAB C Projectp. 23
Project Filesp. 25
PIC16 Program and Debugp. 26
Programmingp. 27
Debuggingp. 29
Design Packagep. 30
Assessment 1p. 31
Assignments 1p. 32
C Programming Essentialsp. 35
PIC16 C Getting Startedp. 35
Simple Programp. 35
Program Creationp. 36
Program Testingp. 37
Program Analysisp. 38
PIC16 C Program Basicsp. 40
Variablesp. 40
Loopingp. 41
Decision Makingp. 42
Loop Controlp. 42
FOR Loopp. 45
SIREN Programp. 45
Blank Programp. 47
PIC16 C Data Operationsp. 47
Variable Typesp. 47
Assignment Operationsp. 52
Conditional Operationsp. 54
PIC16 C Sequence Controlp. 56
While Loopsp. 56
Break, Continue, and Gotop. 57
If..Else and Switch..Casep. 59
PIC16 C Functions and Structurep. 60
Basic Functionsp. 62
Global and Local Variablesp. 63
PIC16 C Input and Outputp. 64
Serial LCDp. 65
Keypad and Calculatorp. 68
PIC16 C More Data Typesp. 73
Arraysp. 74
Indirect Addressing Operatorsp. 75
Enumerationp. 77
PIC16 C Compiler Directivesp. 77
Program Directivesp. 78
Header Filep. 78
PIC16 C Assembler Routinesp. 86
Program Compilationp. 87
Assembler Blockp. 88
PIC Assembly Languagep. 92
Assessment 2p. 94
Assignments 2p. 96
C Peripheral Interfacesp. 99
PIC16 C Analog Inputp. 99
Analog Setupp. 99
Voltage Measurementp. 100
PIC16 C Interruptsp. 104
C Interruptsp. 104
Interrupt Examplep. 106
Interrupt Statementsp. 107
PIC16 C Hardware Timersp. 108
Counter/Timer Operationp. 108
PWM Modep. 109
Compare Modep. 111
Capture Modep. 111
PIC16 C UART Serial Linkp. 113
PIC16 C SPI Serial Busp. 116
PIC16 C I[superscript 2]C Serial Busp. 118
PIC16 C Parallel and Serial Interfacesp. 121
Parallel Slave Portp. 121
Comparison of Communication Linksp. 123
PIC16 C EEPROM Interfacep. 126
PIC16 C Analog Outputp. 127
Assessment 3p. 132
Assignments 3p. 134
C Mechatronics Applicationsp. 137
PICDEM Mechatronics Board Overviewp. 137
PICDEM Hardwarep. 137
Motor Drivesp. 138
Test Programp. 143
Debuggingp. 145
PICDEM Liquid Crystal Displayp. 146
LCD Connectionsp. 146
LCD Test Programp. 149
BCD Count Programp. 152
PICDEM DC Motor Test Programsp. 152
Basic Controlp. 152
Rev Counterp. 154
PICDEM Stepper Motor Controlp. 156
Constructionp. 157
Stepper Motor Testp. 158
Direction Controlp. 158
PICDEM Analog Sensorsp. 162
Light Sensorp. 162
Temperature Measurementp. 163
PICDEM Temperature Controllerp. 166
Specificationp. 166
I/O Allocationp. 168
Implementationp. 168
PICDEM Board Simulationp. 171
Circuit Descriptionp. 173
Demo Applicationsp. 175
Assessment 4p. 175
Assignments 4p. 177
PIC16 C Applications and Systemsp. 179
PIC16 C Application Designp. 179
Hardware Designp. 179
Software Designp. 180
Application Debugging and Testingp. 180
PIC16 C Temperature Controllerp. 182
System Operationp. 182
Software Design and Implementationp. 183
PIC16 C Data Logger Systemp. 184
BASE Boardp. 186
Program Outlinep. 189
PIC16 C Operating Systemsp. 189
Polled I/Op. 189
Interruptsp. 190
PC Operating Systemp. 191
Real-Time Operating Systemp. 192
PIC16 C System Designp. 195
Hardware Selectionp. 195
Microcontrollersp. 196
Hardware Designp. 197
Software Designp. 199
Assessment 5p. 200
Assignments 5p. 201
Hardware Design Using ISIS Schematic Capturep. 203
Design Specificationp. 203
Schematic Circuitp. 204
Schematic Editp. 205
Software Design Using CCS Cp. 209
BAR1 Source Codep. 211
PIC Registersp. 212
BAR1 List Filep. 215
System Testing Using Proteus VSMp. 221
Attaching the Programp. 221
Program Debuggingp. 221
Typical Errorsp. 224
C Compiler Comparisonp. 227
Microchip C18p. 228
Hi-Tech PIC Cp. 230
Mikro Cp. 234
Matrix Cp. 234
Summary of C Compilersp. 236
CCS C Programming Syntax Summaryp. 239
Compiler Directivesp. 239
Program Blocksp. 239
Punctuationp. 239
Basic I/O Functionsp. 240
CCS C Programming Function Referencep. 243
Answersp. 257
Indexp. 271
Table of Contents provided by Ingram. All Rights Reserved.

Link to Purchase E-Book:

Programming 8-bit PIC Microcontrollers in C By Martin Bates E-book


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.