Skip to content

Firmware

Dilshan R Jayakody edited this page Oct 31, 2021 · 4 revisions

The firmware of the PIC16F886 has been developed using Microchip's MPLAB XC8 toolchain and MPLAB X IDE.

The most recommended method to compile the firmware is through the MPLAB X IDE. All the MPLAB X project files are provided with the source code.

To flash compiled firmware, use MPLAB IPE application with PICKit3 (or newer) version of the programmer.

ICSP terminal

The ICSP terminal locates on the PCB, and it is tested successfully with the PICKit3 programmer.

ICSP pinouts

To flash the microcontroller, follow the steps given below:

  1. Connect the PICKit3 programmer to the ICSP terminal located on the PCB.
  2. Power on the preamplifier circuit.
  3. Connect PICKit3 programmer to the PC and transfer the compiled firmware using MPLAB IPE application.
  4. After firmware update, disconnect the PICKit3 programmer from the ICSP terminal.
  5. To start the new firmware, turn off the preamplifier circuit, and turn it back on after 30 or 45 seconds.