User manual

8
10- Firmware Development:
Before starting the development, we recommend that you make yourself familiar with Microchip
MPLABX IDE and MPLAB Harmony. Note that MPLAB Harmony has to be added as a plugin to the All
the examples we provide have been setup using MPLAB Harmony. We provide examples of source
code that show how to develop a code for the Ping Pong in addition to how to establish
communications between the microcontroller and interconnected module. The examples include
RTOS, Ethernet, USB CDC, communicating with Telit Cellular module, receiving GPS NMEA messages,
writing and reading to memory, and reading and writing to Inputs and Outputs.
The Ping Pong uses a 24MHz clock oscillator. So the oscillator configuration bits should be EC. The
following configuration bits are recommended (and mandatory when using the Boot loader):
/*** DEVCFG0 ***/
#pragma config DEBUG = ON
#pragma config JTAGEN = OFF
#pragma config ICESEL = ICS_PGx1
#pragma config TRCEN = ON
#pragma config BOOTISA = MIPS32
#pragma config FECCCON = OFF_UNLOCKED