C Programming for the PIC Microcontroller: Demystify Coding with Embedded Programming

Ward, Hubert Henry

  • 出版商: Apress
  • 出版日期: 2019-12-10
  • 售價: $1,250
  • 貴賓價: 9.5$1,188
  • 語言: 英文
  • 頁數: 271
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484255240
  • ISBN-13: 9781484255247
  • 相關分類: C 程式語言嵌入式系統
  • 立即出貨 (庫存=1)



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 Learn

  • Use the freely available MPLAX software
  • Build a project and write a program using inputs from switches
  • Create a variable delay with the oscillator source
  • Measure real-world signals using pressure, temperature, and speed inputs
  • Incorporate LCD screens into your projects
  • Apply what you've learned into a simple embedded program

Who This Book Is For
Hobbyists who want to move into the challenging world of embedded programming or students on an engineering course.



從 C 程式設計的基礎開始,本書將引導你了解 C 語言在微控制器中的應用。接下來,你將學習如何使用工業級整合開發環境(IDE),創建和模擬項目,並將程式下載到實際的 PIC 微控制器中。

然後,你將深入研究 C 程式的主要過程,並深入探討應用於 PIC 微控制器的最常用指令,以及如何使用 PIC 內部的控制寄存器。有了《C 程式設計與 PIC 微控制器》作為你的指南,你將成為一個更好的程式設計師,能夠真正說自己已經寫過並理解自己使用的程式碼。


  • 使用免費提供的 MPLAX 軟體

  • 建立一個項目並編寫一個使用開關輸入的程式

  • 使用振盪器源創建可變延遲

  • 使用壓力、溫度和速度輸入測量現實世界的信號

  • 將 LCD 屏幕應用於你的項目中

  • 將所學應用於簡單的嵌入式程式中



Hubert Ward has nearly 25 years of experience in teaching at the Higher National Certificate and The Higher Diploma in Electrical & Electronic Engineering. Hubert has also worked as a college lecturer and consultant in embedded programming. His work has established his expertise in the assembler language and C, MPLAX, and designing electronic circuit 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.


Hubert Ward在高級國家證書和高級文憑電氣與電子工程教學方面擁有近25年的經驗。Hubert曾擔任大學講師和嵌入式編程顧問。他的工作使他在組合語言和C、MPLAX以及使用ECAD軟件設計電子電路和PCB方面具有專業知識。Hubert還擔任英國機電一體化技術專家三年,培訓英國團隊並帶領他們參加2001年首爾技能奧林匹克競賽,在機電一體化領域取得了迄今為止英國最佳成績之一。