We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest! Update Here
Stay in the loop with the latest from Microchip! Update your profile while you are at it. Update Here
Complete your profile to access more resources.Update Here!
0
$0.00
Item Qty
Your cart is empty.

Our PIC32 MCUs offer high-resolution audio interfacing for USB applications, enabling higher-quality sound for today's audio designs in an affordable package. Offering scalable performance—from low-cost PIC32MX devices supporting up to 96 kHz audio, to high-performance devices capable of handling up to 192 kHz—these devices are capable of running additional functions including graphics and user interfaces. The following diagram provides a high-level overview of the USB audio functionality supported.

The following are some examples of applications supported in both USB Host Mode and USB Device Mode:

USB Host Mode


  • Mass Storage Device: This provides an interface to a USB thumb drive for audio playback using the FAT file system and Universal Audio Decoders within MPLAB® Harmony.
  • Android™ Open Accessory (AoA): Using AOA enables transmission of data between an Android-powered device and an external USB hardware. Moreover, it enables intercommunication control, not just from an Android-powered device to a product, but also from a product to an Android-powered device.
  • Headphone: This provides an interface to a headphone that has both speaker and microphone functionality.

USB Device Mode


  • High-Resolution Audio: This delivers up to 192 khz/24-bit audio streamed from the a laptop, for example. The audio is decoded on the laptop and streamed via PCM.
  • Audio Device Class (USB 1.0): Examples of USB audio devices include USB speakers, microphones and voice telephony.
  • Samsung Audio: Samsung Audio is specific to Samsung devices.

Several demo applications are included within MPLAB Harmony, including:

  • mac_audio_hi_res: This demonstration application uses the USB Audio 2.0 Device class to implement a speaker. This application is natively supported on Apple® devices. Microsoft Windows® will require a special driver(1). This is only required for 192 khz audio. Windows supports 96 khz/24-bit audio natively.
  • sdcard_usb_audio: The demonstration application creates an audio player that reads audio files (.WAV format only) from an SD card.
  • usb_headset:  This demonstration application configures a USB headset system with a 48/32/16 kHz sampling rate at 16 bits per sample.
  • usb_microphone: This demonstration application configures a USB microphone system operating at a 16 kHz sampling rate with 16-bit data.
  • usb_microphone_multirate: This demonstration application configures a USB microphone system operating at a 16 kHz sampling rate with 16-bit data.
  • usb_speaker: This demonstration application configures a USB speaker to run at a 48 kHz sampling rate at 16 bits per sample.

These demo applications are available for 96 kHz through 192 kHz audio (mac_audio_hi_res.) Note that an additional Windows driver is also required for 192 kHz and above. Download is available at the bottom of the page.

(1)PIC32 High-Resolution Audio Windows Demo Driver – Provided by Thesycon Software Solutions.

Documentation

Title
Achieving Higher ADC Resolution Using Oversampling Download
AN1422 - High-Quality Audio Applications Using the PIC32 Download
Adaptive Differential Pulse Code Modulation Using PIC Microcontrollers Download
Title
PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Family Download
PIC32MX1XX/2XX Family Data Sheet Download
PIC32MX330/350/370/430/450/470 Data Sheet Download
PIC32MX1XX/2XX 28/44-pin XLP Family Data Sheet Download

Development Tools

Description Part Number
PIC32MX Curiosity Development Board DM320103
PIC32MM USB Curiosity Development Board DM320107
PIC32MZ Embedded Connectivity with FPU (EF) Starter Kit DM320007
PIC32MZ Embedded Graphics with Stacked DRAM (DA) Starter Kit DM320010
PIC32MZEF Curiosity Development Board DM320209
PIC32MZ Embedded Graphics with External DRAM (DA) Starter Kit
DM320008
Description Part Number
BM64 Bluetooth Radio Daughter Board AC320032-3
Audio Codec Daughter Card – AK4642 AC320100
Audio Coder Daughter Card – AK7755 AC327755
PIC32 Audio DAC Daughter Card AC320032-2
PIC32 Audio Codec Daughter Card - AK4954
AC324954
Description Part Number
Explorer 16/32 Development Board
DM240001-2
MPLAB Starter Kit for dsPIC DSC
DM330011
Audio Development Board for dsPIC33E
DM330016

Software Libraries

Recording and Playback Software Libraries


Audio Functions Resource Type Title and Link Supported Families
Audio and Speech Library PIC32 Audio Equalizer Filter library PIC32 MCU
Audio and Speech Software Bluetooth Audio PIC32 MCU
Audio and Speech Software PIC32 Audio Decoders/Encoders PIC32 MCU
Record Application Note
and Source Code
AN1152-Achieving Higher ADC Resolution Using Oversampling dsPIC30F, dsPIC33F
Record and Playback Library SW300026 dsPIC®/PIC24 G.711 Speech Encoding/Decoding Library PIC18, PIC24F, PIC24H,
dsPIC30F, dsPIC33F,
Record and Playback Library SW300090-dsPIC G.726A Speech Encoding/Decoding Library dsPIC30F, dsPIC33F<
Record and Playback Library SW300070-Speex Speech Encoding/Decoding Library dsPIC30F, dsPIC33F
Record and Playback Library dsPIC DSC Equalizer Library dsPIC30F, dsPIC33F
Telecommunications Library SW300060-Acoustic Echo Cancellation Library dsPIC30F, dsPIC33F
Telecommunications Library SW300080-Line Echo Cancellation Library dsPIC30F, dsPIC33F
Telecommunications Library SW300040-Noise Suppression Library dsPIC30F, dsPIC33F
ALL Library dsPIC DSC Automatic Gain Control Library dsPIC30F,dsPIC33F
ALL GUI dsPIC DSC Speech and Audio Fast Forward (SAFF) Tool dsPIC30F, dsPIC33F
ALL GUI Digital Filter Design dsPIC30F, dsPIC33F
ALL GUI dsPICworks Data Analysis and DSP Software (use to convert PCM to WAV and back) ALL