Microprocessors: From Assembly Language to C Using the PICI8FXX2
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.
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
- Introduction to Microprocessors and Microcontrollers
- Number Systems, Data Representation, and Logic Fundamentals
- PIC Architecture and the PIC18FXX2 Family Overview
- PIC Assembly Language: Basics and Instruction Set
- Assembly Programming Techniques and Examples
- C Programming for Microcontrollers: Overview and Toolchain
- Linking C and Assembly: How C Maps to Machine Code
- I/O and Peripheral Interfacing: GPIO, ADC, and Timers
- Interrupts and Real-Time Control
- Serial Communication: UART and Protocol Basics
- Pulse-Width Modulation, Motor and Sensor Interfacing
- Memory Organization, Data Types, and Embedded Software Practices
- Design Examples and Laboratory Exercises
- Appendices: Assembler/Compiler Directives, Datasheet Notes, Reference Tables
Languages, Platforms & Tools
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.













