Serial PIC'n : PIC Microcontroller Serial Communications
Serial PIC'n details various methods for implementing serial communications between a Microchip PIC microcontroller and an external device. Asynchronous serial communications is covered both by using an on-chip USART and by bit-bang methods. The RS-232 standard is explained. A discussion of synchronous serial communications includes the I2C (Philips Semiconductors), SPI (Motorola) and Microwire (National Semiconductor) protocols. The Dallas Semiconductor 1-Wire bus is described. Many code examples are included as modules which will provide the basis for the reader's own PIC microcontroller applications.
Why Read This Book
You will get a focused, hands-on guide to every common serial interface used with PIC microcontrollers, with practical code modules you can drop into your projects. The book emphasizes real-world interfacing (RS-232 level shifting, timing, and hardware considerations) and shows both on‑chip USART and resource-light bit‑bang techniques so you can choose the right approach for constrained systems.
Who Will Benefit
Engineers and hobbyists with some microcontroller experience who need to implement or debug serial communications on PIC microcontrollers for embedded or IoT projects.
Level: Intermediate — Prerequisites: Basic digital electronics and familiarity with microcontroller concepts plus some experience programming in C or PIC assembly; familiarity with basic lab tools (multimeter/oscilloscope) is helpful.
Key Takeaways
- Implement asynchronous serial comms using a PIC's on‑chip USART and via software bit‑banging
- Design and build RS‑232 interface hardware (level shifting, timing, and connector wiring)
- Implement synchronous buses: I2C, SPI and Microwire on PICs with tested code examples
- Integrate Dallas 1‑Wire devices and understand their timing and search algorithms
- Write modular, reusable PIC serial code and use interrupts and buffering strategies to improve reliability
- Diagnose and troubleshoot common serial communication problems with practical test methods
Topics Covered
- Introduction to PIC Serial Communications
- Serial Communication Fundamentals and Signals
- The RS‑232 Standard and Hardware Interfacing
- Using the PIC USART: Registers, Baud Rates and Examples
- Bit‑Banged Asynchronous Serial Techniques
- Synchronous Serial Protocols: Overview and Design
- I2C (Philips) on PICs: Master/Slave Examples
- SPI and Microwire Implementations and Use Cases
- The Dallas 1‑Wire Bus: Timing and Device Access
- Interrupts, Buffers and Reliable Data Transfer
- Practical Hardware: Level Shifters, Line Drivers and Cabling
- Timing, Baud Rate Generation and Performance Considerations
- Sample Projects and Code Modules
- Appendices: PIC Register Summaries, Parts and Reference Code
Languages, Platforms & Tools
How It Compares
Compared with broader PIC references such as Mazidi's PIC microcontroller texts, Serial PIC'n is much narrower and more practical—it focuses specifically on serial protocols and real interfacing; compared to Jan Axelson's Serial Port Complete, Stevens' book provides PIC‑centric implementation details and embedded code examples.













