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
26days 00hrs 33min 42sec
Learn More →

Microprocessors: From Assembly Language to C Using the PICI8FXX2

Reese, Robert B. ● 2005

This book is designed for a first course in microprocessors or it may be used as a reference for practicing engineers. The book is unique in presenting a balanced, integrated topic coverage of assembly language programming, microcontroller programming via the C language, and hardware interfacing. Programming topics are discussed using both assembly language and C, while hardware interfacing examples use C to keep code complexity low and improve clarity. A goal of this book is to prepare students for advanced courses in embedded systems or computer architecture. As such, the topic coverage is wide, with a mixture of software and hardware topics. The assembly language programming topics emphasize the linkage between C language constructs and their assembly language equivalents, so that students clearly understand the impact of C coding choices in terms of execution time and memory requirements. Hardware interface topics included in the textbook cover the fundamentals (parallel, serial, interrupts, A/D, D/A) using devices that do not require an extensive circuits background. Laboratory Projects These provide an extensive off-the-shelf lab experience (13 experiments) for using the PIC18: one experiment on introductory computer architecture topics, four experiments on PIC18 assembly language, and eight hardware experiments. The hardware experiments require the read to breadboard a PIC18F242 system that includes a serial EEPROM, external 8-bit Digital-to-Analog converter, and RS232 interface, and an infrared receiver module. The hardware labs cover all major subsystems on the PIC18: A/D, timers, asynchronous serial interface, and the 12C interface. All hardware labs are programmed in C, using the HI-TECH PICC18 compiler. A supplemental website (www.reesemicro.com) has book C code examples that have been modified to be compatible with both the Microchip MCC18 and HI-TECH PICC18 compilers, as well as lecture notes and sample quizzes.


Why Read This Book

You will gain a practical, course-ready grounding in both assembly language and embedded C as applied to PIC microcontrollers, with clear explanations linking C constructs to their assembly equivalents. The book balances software and hardware topics so you can write firmware, read datasheets, and build simple hardware interfaces with confidence.

Who Will Benefit

Students taking a first course in microprocessors and practicing embedded engineers who want a compact, hands-on reference for PIC assembly, embedded C, and hardware interfacing.

Level: Beginner — Prerequisites: Basic algebra and binary/hex number familiarity; familiarity with high-level programming concepts (variables, loops, functions) is helpful but not required.

Get This Book

Key Takeaways

  • Write and debug PIC assembly programs and understand core PIC instruction set idioms.
  • Develop embedded C firmware for PIC microcontrollers and map C constructs to assembly.
  • Interface digital and analog peripherals (GPIO, ADC, timers, UART, PWM) to PIC devices.
  • Implement and manage interrupts and timing-based tasks in firmware.
  • Read device datasheets and design simple hardware-software interfaces for embedded projects.

Topics Covered

  1. Introduction to Microprocessors and Microcontrollers
  2. Number Systems, Data Representation, and Logic Fundamentals
  3. PIC Architecture and the PIC18FXX2 Family Overview
  4. PIC Assembly Language: Basics and Instruction Set
  5. Assembly Programming Techniques and Examples
  6. C Programming for Microcontrollers: Overview and Toolchain
  7. Linking C and Assembly: How C Maps to Machine Code
  8. I/O and Peripheral Interfacing: GPIO, ADC, and Timers
  9. Interrupts and Real-Time Control
  10. Serial Communication: UART and Protocol Basics
  11. Pulse-Width Modulation, Motor and Sensor Interfacing
  12. Memory Organization, Data Types, and Embedded Software Practices
  13. Design Examples and Laboratory Exercises
  14. Appendices: Assembler/Compiler Directives, Datasheet Notes, Reference Tables

Languages, Platforms & Tools

Assembly (PIC)CMicrochip PIC (PIC18FXX2 family)General 8/16-bit microcontroller concepts (transferable to ARM/RISC-V)MPLAB IDE / MPLAB toolsMicrochip C compilers (era-appropriate C compilers such as C18)PIC assemblerOscilloscope / Logic analyzer (hardware debugging)Breadboard and basic lab instrumentation

How It Compares

Similar in scope to Muhammad Ali Mazidi's PIC-focused texts, but Reese places stronger emphasis on the direct linkage between C constructs and their assembly equivalents and integrates hardware interfacing examples for a first-course audience.

Related Books

Bryant, Randal, O'Hallaron,...