Understanding Microchip 8-bit PIC Configuration
The second post of a five part series picks up getting started developing with Microchip 8-bit PIC Microcontroller by examining the how and why of processor configuration. Topics discussed include selecting the oscillator to use during processor startup and refining the configuration once the application starts. A walk through of the code generated by the Microchip IDE provides a concrete example of the specific Configuration Word and SFR values needed to configure the project specific clock configuration.
Summary
This blog post explains how to configure Microchip 8‑bit PIC processors, with emphasis on oscillator selection during startup and refining the clock once the application runs. It walks through the Microchip IDE–generated code to show the exact Configuration Word and SFR values needed for a project‑specific clock setup.
Key Takeaways
- Select the appropriate PIC oscillator mode (LP/XT/HS/INTOSC) based on startup reliability and power needs.
- Interpret the Configuration Word (CONFIG) and corresponding compiler pragmas used by MPLAB to lock in boot behavior.
- Modify SFRs such as OSCCON, OSCTUNE and CLKDIV at runtime to change clock source and frequency safely.
- Balance startup and runtime choices—watchdog, brown‑out reset and oscillator settings—to meet power, reliability and timing requirements.
Who Should Read This
Embedded firmware engineers or hobbyists (early to mid career) working with Microchip 8‑bit PICs who need practical guidance on clock and configuration bit setup for reliable firmware.
Still RelevantIntermediate
Related Documents
- Consistent Overhead Byte Stuffing TimelessIntermediate
- PID Without a PhD TimelessIntermediate
- Introduction to Embedded Systems - A Cyber-Physical Systems Approach Still RelevantIntermediate
- Can an RTOS be really real-time? TimelessAdvanced
- Memory Mapped I/O in C TimelessIntermediate








