5.1 Programming Using MPLAB® X IDE

This method requires additional hardware such as MPLAB® PICkit 5 or ATMEL-ICE. The user can use these tools to load the generated project directly to the application boards. In this case, the user must integrate the EEPROM configuration into the build process. For more details, refer to the AN4668 ATA8510 Flash Projects With XC8 Application Note (DS00004668).

For transmitter device, perform the following:
  • Add TX configuration to the build process.
  • Program user Flash and EEPROM configuration to the Transmitter (TX) test board.
For receiver device, perform the following:
  • Comment out the TX test code.
    //uint8_t txData[8]={0xFF,0xFF,0xFF,0xFE,0x12,0x34,0x56,0x78};
    //API_SetSystemMode_C(BM_SYS_MODE_CONFIG_VCO_TUNING | OPM_TX, BM_SVC_CH_CONFIG_PATHA);
    //API_WriteTxBuffer_C(txData,8);
  • Program an empty Flash project and the RX configuration to the receiver.

After completing these steps, the receiver and transmitter operate as a range test application.