Apress

  • Go beyond the jigsaw approach of just using blocks of code you don't understand and become a programmer who really understands how your code works. 
    Starting with the fundamentals on C programming, this book walks you through where the C language fits with microcontrollers. Next, you'll see how to use the industrial IDE, create and simulate a project, and download your program to an actual PIC microcontroller. 
    You'll then advance into the main process of a C program and explore in depth the most common commands applied to a PIC microcontroller and see how to use the range of control registers inside the PIC. With C Programming for the PIC Microcontroller as your guide, you'll become a better programmer who can truly say they have written and understand the code they use.
    What You'll LearnUse the freely available MPLAX software 
    Build a project and write a program using inputs from switches Create a variable delay with the oscillator sourceMeasure real-world signals using pressure, temperature, and speed inputsIncorporate LCD screens into your projectsApply what you've learned into a simple embedded programWho This Book Is For 
    Hobbyists who want to move into the challenging world of embedded programming or students on an engineering course.

  • Delve into the exciting world of embedded programming with PIC microcontrollers in C. The key to learning how to program is to understand how the code works - and that is what you'll learn here. Following C Programming for the PIC Microcontroller, this book continues exploring the coding required to control the PIC microcontroller and can be used as a standalone single reference, or paired with the previous title to enhance your programming skills. You'll see how to control the position of a servo motor and use the compare aspect of the CCP module to create a square wave with varying frequency. You'll also work with the capture aspect of the CCP to determine the frequency of a signal inputted to the PIC and use external and internal interrupts.This book breaks down the programs with line-by-line analysis to give you a deep understanding of the code. After reading it you'll be able to use all three aspects of the Capture, Compare and PWM module; work with different types of interrupts; create useful projects with the 7 segment display; and use the LCD and push button keyboard. 
    What You'll LearnCreate a small musical keyboard with the PIC
    Manage a stepper motor with the PICUse the main features of the MPLABX IDE
    Interface the PIC to the real worldDesign and create useful programs based around the PIC18F4525     Who This Book Is For
    Engineering students and hobbyist who want to try their hand at embedded programming the PIC micros. 

empty