Skip to main content
Apress
Book cover

Intermediate C Programming for the PIC Microcontroller

Simplifying Embedded Programming

  • Book
  • © 2020

Overview

  • Gain a complete understanding of how your code works with PIC microcontrollers
  • Work through practical projects and see your programs work by simulation with a ECAD package
  • Learn to fully create a PWM signal to set the speed of a DC motor, and how to capture and compare aspects of the CCP module
  • 7449 Accesses

This is a preview of subscription content, log in via an institution to check access.

Access this book

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

Licence this eBook for your library

Institutional subscriptions

Table of contents (7 chapters)

Keywords

About this book

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 Learn
  • Create a small musical keyboard with the PIC
  • Manage a stepper motor with the PIC

  • Use the main features of the MPLABX IDE
  • Interface the PIC to the real world
  • Design 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. 


Authors and Affiliations

  • Leigh, UK

    Hubert Henry Ward

About the author

Hubert Ward has nearly 25 years of experience as a college lecturer delivering the BTEC, and now Pearson's, Higher National Certificate and Higher Diploma in Electrical & Electronic Engineering. Hubert has a 2.1 Honours Bachelor's Degree in Electrical & Electronic Engineering. Hubert has also worked as a consultant in embedded programming. His work has established his expertise in the assembler and C programming languages, within the MPLABX IDE from Microchip, as well as designing electronic circuits, and PCBs, using ECAD software. Hubert was also the UK technical expert in Mechatronics for three years, training the UK team and taking them to enter in the Skills Olympics in Seoul 2001, resulting in one of the best outcomes to date for the UK in Mechatronics.


Bibliographic Information

  • Book Title: Intermediate C Programming for the PIC Microcontroller

  • Book Subtitle: Simplifying Embedded Programming

  • Authors: Hubert Henry Ward

  • DOI: https://doi.org/10.1007/978-1-4842-6068-5

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Hubert Henry Ward 2020

  • Softcover ISBN: 978-1-4842-6067-8Published: 29 September 2020

  • eBook ISBN: 978-1-4842-6068-5Published: 28 September 2020

  • Edition Number: 1

  • Number of Pages: XVI, 350

  • Number of Illustrations: 2 b/w illustrations, 62 illustrations in colour

  • Topics: Hardware and Maker, Professional Computing

Publish with us