Audio-Tone Generation Using a Lookup Table With MPLAB® Harmony v3 Results, Analysis, and Conclusion

Last modified by Microchip on 2023/11/09 09:07

Audio-Tone Generation Results, Analysis, and Conclusion


You should be able to hear a sine tone output through the headphone jack on the Multimedia Expansion Board II. If you did not configure the codec driver, I²S driver, or REFCLOCK properly, you may not hear the audio at all or may hear distorted audio coming out with clicks and pops in the stream.


In this lab, you have successfully played a sine tone on the PIC32 microcontroller and heard the audio through the headphones on the development board. The sine tone produced is 16-bits, at a 48000 sampling rate. The tone as such was produced statically and stored in the form of a lookup table in an array. The MHC was used to configure the hardware modules. The application was developed in a state-based implementation. In the application, audio buffer management was done by using the buffer queuing support provided by the codec driver.


In this lab, you have successfully developed a full-fledged MPLAB® Harmony Application. This gives you a fair idea of how MPLAB Harmony helps application development. If you need to add audio support to any of your existing applications, this lab can be used as a reference. This can also be a starting point for your applications which are audio intensive.