EmbeddedRelated.com
Books
The 2026 Embedded Online Conference

Microcontrollers: From Assembly Language to C Using the Pic24 Family

Reese, Robert B., Bruce, J. W., Jones, Bryan A. 2008

"Microcontrollers: From Assembly Language to C Using the PIC24 Family" provides an introduction to microprocessors and microcontrollers for either the student or hobbyist. It begins by discussing simple microprocessor architecture concepts, moves to assembly language programming in a C language context, then covers fundamental hardware interfacing topics such as parallel IO, asynchronous serial IO, synchronous serial I/O (I2C and SPI), interrupt-driven IO, timers, analog-to-digital conversion, and digital-toanalog conversion. Programming topics are discussed using both assembly language and C, while hardware interfacing examples use C to keep code complexity low and improve clarity. This book's C examples on hardware interfacing strive for code clarity first and optimization second, providing a gentle learning curve and ensuring understanding of the key concepts. The book's numerous examples include complete schematics and working code to operate a number of useful peripherals, including temperature sensors, LCD displays, a robot, and a reflow oven, providing a good starting point for your designs. Numerous lab experiments are included in the appendices, while the companion CD-ROM includes complete source code for all book examples, which can be compiled using the freely available Microchip C compiler and development environment. Visit www.reesemicro.com to obtain supplementary information on the text, the latest version of the library and example code with accompanying documentation, and links to courses which use this text. In addition, an online discussion group promotes interaction with the authors and a forum to discuss PIC24-based projects.


Why Read This Book

You should read this book if you want a practical, example-driven path from low-level PIC24 assembly to embedded C, with clear, low-complexity code that demonstrates real peripheral interfacing. It emphasizes readable C implementations of GPIO, UART, I2C, SPI, timers, ADC/DAC and interrupt-driven designs so you can move quickly from understanding to working firmware.

Who Will Benefit

Students, hobbyists, and firmware engineers who need a hands-on introduction to PIC24 programming and practical peripheral interfacing for embedded projects.

Level: Intermediate — Prerequisites: Basic C programming and digital electronics (logic levels, basic circuits); familiarity with microcontroller concepts is helpful but not strictly required.

Get This Book

Key Takeaways

  • Write and debug simple PIC24 assembly routines and translate concepts into C
  • Configure and use GPIO, timers, and interrupt-driven I/O for real-time tasks
  • Implement serial communications using UART, I2C, and SPI
  • Use ADC and DAC peripherals and handle analog inputs in firmware
  • Structure clear, maintainable embedded C code for peripheral interfacing

Topics Covered

  1. Introduction to Microcontrollers and the PIC24 Family
  2. Overview of PIC24 Architecture and Development Tools
  3. Assembly Language Basics for PIC24
  4. Embedded C for PIC24: Data Types, I/O and Memory
  5. Timers, Counters and Timekeeping
  6. Interrupts and Real-Time Programming
  7. Parallel I/O and GPIO Applications
  8. Asynchronous Serial I/O (UART)
  9. Synchronous Serial I/O: I2C and SPI
  10. Analog Peripherals: ADC and DAC
  11. Pulse-Width Modulation and Motor/Power Control
  12. Designing Firmware: Modularity, Portability and Debugging
  13. Appendices: Instruction Set, Example Code and Reference

Languages, Platforms & Tools

CAssemblyMicrochip PIC24 (PIC24F/dsPIC33 family)MPLAB IDEMPLAB C30 / XC16 (modern equivalent)In-circuit debuggers/simulators (e.g., PIC ICD)

How It Compares

Covers similar, hands-on territory as Mazidi's PIC books but focuses specifically on the 16-bit PIC24 family and prioritizes readable C examples over exhaustive reference material.

Related Books

Bryant, Randal, O'Hallaron,...
The 2026 Embedded Online Conference