EmbeddedRelated.com
Books
Jacob Beningo
Live online course · Jacob Beningo
AI for Embedded Developers
$100 off for EmbeddedRelated readers until Dec 6 · 5 live sessions, Dec 7-11
Discount ends in
27days 19hrs 36min 38sec
Learn More →

Advanced PIC Microcontroller Projects In C: From USB to RTOS With the PIC1 8f Series

Ibrahim, Dogan ● 2008

This book is ideal for the engineer, technician, hobbyist and student who have knowledge of the basic principles of PIC microcontrollers and want to develop more advanced applications using the 18F series.

The architecture of the PIC 18FXXX series as well as typical oscillator, reset, memory, and input-output circuits is completely detailed. After giving an introduction to programming in C, the book describes the project development cycle in full, giving details of the process of editing, compilation, error handling, programming and the use of specific development tools. The bulk of the book gives full details of tried and tested hands-on projects, such as the 12C BUS, USB BUS, CAN BUS, SPI BUS and real-time operating systems.

  • A clear introduction to the PIC 18FXXX microcontroller's architecture
  • 20 projects, including developing wireless and sensor network applications, using I2C BUS, USB BUS, CAN BUS and the SPI BUS, which give the block and circuit diagram, program description in PDL, program listing and program description
  • Numerous examples of using developmental tools: simulators, in-circuit debuggers (especially ICD2) and emulators


Why Read This Book

You will get a hands‑on, project‑driven path from PIC18F architecture basics to real embedded applications — including USB, CAN, I2C, SPI and RTOS examples — so you can move beyond toy projects to deployable firmware. The book emphasizes practical circuits, toolchain workflows, and tested code patterns, making it a pragmatic bridge between datasheets and working embedded systems.

Who Will Benefit

Engineers, technicians, advanced hobbyists or students who already know basic PIC principles and want to build real-world PIC18F projects (USB, field buses, RTOS) and learn production‑style development workflows.

Level: Intermediate — Prerequisites: Basic familiarity with microcontrollers (especially PIC fundamentals), elementary digital electronics, and introductory C programming; experience with breadboarding and basic debugging is helpful.

Get This Book

Key Takeaways

  • Explain the internal architecture and register model of PIC18F series microcontrollers and map peripherals to real circuits
  • Implement and debug common serial buses (I2C, SPI, UART) and vehicle/industrial links (CAN) on PIC18F devices
  • Develop USB‑device projects using PIC18F parts that support USB, including descriptors and host interaction patterns
  • Integrate and run simple real‑time operating system concepts on PIC18F hardware and design interrupt‑aware firmware
  • Use a PIC development toolchain: editing, compiling, programming, and in-circuit debugging (workflows and error handling)
  • Design practical oscillator/reset/IO circuits and translate datasheet constraints into reliable PCB/prototype implementations

Topics Covered

  1. Introduction to the PIC18F Series and Project Approach
  2. PIC18F Architecture, Memory and Register Map
  3. Oscillator, Reset, Power and I/O Circuit Design
  4. Programming in C for PIC18F: Conventions and Best Practices
  5. Development Tools, Toolchains and Programming Hardware
  6. Timers, PWM, ADC, DAC and Analog Interfacing
  7. Serial Communication: UART and RS‑232/RS‑485 Interfacing
  8. I2C and SPI: Protocols, Master/Slave Designs and Code Examples
  9. CAN Bus: Hardware, Protocol, and PIC18F Implementation
  10. USB on PIC18F: Device Descriptors, Endpoints and Example Projects
  11. Interrupts, Concurrency and RTOS Concepts for PIC18F
  12. Practical Projects: Data Acquisition, Motor Control and Telemetry
  13. Bootloaders, Firmware Update Strategies and Error Handling
  14. PCB, Power and EMC Considerations for Embedded Projects
  15. Appendices: Useful Registers, Instruction Summaries and Datasheet References

Languages, Platforms & Tools

CAssembly (PIC)Microchip PIC18F series (PIC18Fxx/xxx, e.g. PIC18F4550)PIC microcontroller development hardware (generic PIC kits)MPLAB / MPLAB X (IDE)C compilers for PIC (e.g., Microchip C18, CCS C — representative)PIC programmers/debuggers (PICkit, ICD series)Logic analyzer / oscilloscope (for USB and bus debugging)

How It Compares

Covers similar practical ground to Mazidi's PIC microcontroller texts but is more project‑focused on PIC18F buses, USB and RTOS examples rather than broad treatment of both assembly and high‑level theory.

Related Books

Bryant, Randal, O'Hallaron,...