INTRODUCTION
Configuration bits are special bits used for controlling different features in the Microcontroller. These are read during startup/reset and enable or disable different hardware features based on the values of bits. Using these bits, we can essentially control where is the clock source, do the application needs watchdog timer etc. They can only be modified during programming time. They can be programmed to select various device configurations. These bits are mapped starting at program memory location 300000h.
Configuration bits are not accessible for the user through code because it belongs to the configuration memory space, not the user program memory space. So it can only be accessed using table reads and table writes.
Configuration bits are set by directives written in the software. MPLAB X IDE has a configuration bit window to generate the directives based on the selected options. The generated configuration bits can be used in the application by directly copying and pasting or saving it as a separate file and including it in the project.
OBJECTIVES
- In the first section, we describe the configuration register
- In this section describe the steps involved in configuring your device to use the Configuration Bits Window.
Previous LessonNext Lesson