Setup
Step by Step Instructions
Using MPLAB® Code Configurator (MCC), this project generates the code to blink an LED using a hardware Timer0 interrupt to generate the delay between the on and off state.
The project uses:
- PIC16F18875
- HPC Curiosity Board
- MPLAB X IDE
- MPLAB Code Configurator (MCC) plug-in
- MPLAB XC8 Compiler
To follow along with these steps, MPLAB X should be open and the HPC Curiosity Board connected to the computer through a USB cable.
Step 1 - Create a new standalone project in MPLAB X for a PIC16F18875.
If this is your first time creating an MPLAB X project, please visit the "Create a Standalone Project" page to follow step-by-step instructions on how to do this.
Step 3 - Select the peripherals for your project. For this project, the following peripherals need to be selected:
- System Module
- Interrupt Module
- Pin Module
- TMR0
These modules will automatically be included when you launch the MCC, with the exception of TMR0. TMR0 needs to be added from Device Resources. Just click on Timer and then double click on Timer0 to add it to the project. The result should look like the picture below:


