PIC projects and applications using C a project-based approach

PIC Projects and Applications Using C details how to program the PIC microcontroller in the C language. The book takes a learn-by-doing approach, with applications covering topics such as inputs, outputs, keypads, alphanumeric displays, analogue-to-digital conversion, radio transmitters and receiver...

Descripción completa

Detalles Bibliográficos
Autor principal: Smith, David W. (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Amsterdam ; Boston : Elsevier/Newnes 2013.
Oxford : 2013.
Edición:Third edition
Colección:Gale eBooks
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629790306719
Tabla de Contenidos:
  • Front Cover; PIC Projects and Applications using C; Copyright Page; Contents; Preface; 1 Introduction to the Microcontroller and C; 2 First C Program; MPLAB and MPLABX Installation; A Brief Introduction to C for the Microcontroller; Turning an output on/off; Delays; Loops; Entering Numbers in the Program; Writing the Code Using MPLAB IDE; Flashing an LED On and Off; Explanation of the Code; Add the File to Your Project; Compiling the C code; Fixing Errors; Types of Errors; Programming the Microcontroller; Writing the Code Using MPLABX; Creating a New Project; Adding Source Code to the Project
  • 3 Using Eight OutputsExplanation of the Code; Looping in a Program; The Disco Code; Explanation of the Disco Code; The Header Program; 4 Inputs; IF Statement; If-Else; Using Several Inputs; 5 Keypad Scanning; Four Digit Code; Explanation of Code; Putting the SCAN Routine in a Header File, dwsScan.h; 6 Analogue to Digital Conversion; Configuring the A/D Device; ADCON0 A-D Control Register 0; ADCON1 A-D Control Register 1; ADCON2 A-D Control Register 2; ADRESH and ADRESL: A/D Result Registers High and Low Byte; The Thermistor; Making an A/D Reading with the Thermistor
  • The LM335 Temperature Sensing ICOperation of the LM335; A/D Application; Explanation of the Code; Question; Using Several A-D Inputs; Explanation of the Code; Solar Panel Heating System; Explanation of the Code; Microcontrollers with More A/D Inputs; The PIC18(L)F43K22 28A/D Inputs; 7 Alpha Numeric Display; Configuring the Display; Program LCD.C; The Explanation of the Code; Other Define Statements for the LCD; Using Header: dwsLCD.h; Program LCDh.C; Character Display Address; Displaying Measurements; Displaying Room Temperature; RoomTemperature.C; 8 Porting Code to Other Microcontrollers
  • The Header Code9 Timer/Counter Modules; TMR0 Prescaler; Timing an Event; An Accurate 1 s Time Period; An Accurate 1 min Delay; 24 h Clock; Explanation of the Code; 30 min Delays and Longer; 10 Interrupts; Explanation of the Program RBinterrupt.C; TMR0 Overflowing Interrupt; Explanation of the Code; A 10 min Interrupt; 11 Fault Finding, Using the Simulator, and the In-Circuit Debugger; The Simulator USING MPLAB; Stopwatch; Using Inputs; Making Analogue Measurements; The In-Circuit Debugger; Using the Simulator with MPLABX; Setting Breakpoints; Stopwatch; Further Information
  • 12 Radio Transmitters and ReceiversThe Transmitter; The Receiver; Examples; 13 EEPROM Data Memory; 14 Projects; Project 1: Countdown Timer; Explanation of the Code; Project 2: Chess Clock; Operation of the Unit; Explanation of the Code; Happy chess playing; Project 3: Resistance Meter; Explanation of the Code; Project 4: Capacitance Meter; Explanation of Capacitor.C Code; Project 5: Voltmeter; 15 C Extra; Data Types; Conditional Operators; Appendix A: Data Sheets; Appendix B: Useful Contacts; Index