3.2.1 Porting an AVR® DA Application to PIC32CM PL10
To help developers understand the practical steps involved in migrating an existing product design, this section uses an application demonstrator as a reference and explains the migration procedure. The demonstration application, developed using the AVR128DA48 microcontroller, features a temperature sensor interfaced over the I2C bus and a potentiometer connected to an Analog-to-Digital Converter (ADC) input channel. Using a Real-Time Counter (RTC) interrupt, the application periodically acquires temperature sensor and potentiometer readings, while the interrupt frequency can be adjusted through a switch input.
The application firmware was originally developed using MCC Melody and has been ported to the Arm Cortex-M0+-based PIC32CM6408PL10048 microcontroller using MCC Harmony. MCC provides comprehensive driver and peripheral library support, enabling migration with minimal changes to the application firmware. Refer to Figure 1 for the AVR DA application block diagram and Figure 2 for the PL10 application block diagram.
Refer to the link to access the application demo firmware projects.
