We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X

Microcontrollers (MCUs) and Digital Signal Controllers (DSCs)


Family Functionality
PIC10PIC12PIC16 Family Buzzers, alarms, tone generation
PIC16PIC18 Family Playback and recording (ADPCM, G.711)
PIC24F Family Speech encoding and decoding (IMA ADPCM, G.711)
dsPIC33E DSC Family Speech encoding and decoding (IMA ADPCM, G.711, G.726A, Speex), noise suppression, acoustic/line echo cancellation, equalizer, automatic gain control, sample rate conversion, streaming audio (USB)
PIC32MM Family Speech encoding and decoding (IMA ADPCM), streaming audio (USB)
PIC32 Family Playback (Speex, ADPCM), recording (PCM, ADPCM), MP3 decoding, AAC decode library, streaming audio (Bluetooth®, USB)

Many 16-bit PIC24 microcontrollers (MCUs) and dsPIC® Digital Signal Controllers (DSCs) offer on-chip Flash memory up to 256 KB. Some 16-bit MCUs and DSCs offer 128 KB of on-chip Flash memory in a 6 × 6 mm QFN package with a specialized 16-bit DAC peripheral. The PIC32 MCU offers up to 2 MB of on-chip Flash memory making these products ideal to store large segments of voice messages within on-chip Flash memory, reducing component count and lowering your system cost.

dsPIC DSCs offer these specialized peripherals for audio applications:

  • 16-bit DAC
  • Codec/data converter Interface module
  • 1 nanosecond SMPS PWM

dsPIC DSCs offer an industry-unique on-chip 16-bit DAC peripheral for audio applications. Another audio peripheral, the Codec Interface, is a 4-wire serial communication peripheral used to stream audio data to and from an external stereo 16-bit codec, DAC or ADC. The Codec Interface peripheral supports AC-97, I2S and a simple time-division multiplex mode. Many dsPIC DSCs are equipped with high-frequency motor control and SMPS Pulse-Width Modulation (PWM) peripherals, which enable driving the speakers with higher-quality audio (better resolution in bits) in Class D audio amplifier applications.

Many PIC® MCUs and dsPIC DSCs offer an on-chip 12-bit ADC peripheral module. The 12-bit resolution may be sufficient in many cases for recording speech signals from a microphone. If resolution greater than 12 bits is desired, the Codec Interface peripheral can be used in conjunction with an external 16-bit ADC or audio codec to record sound.

Nearly all of our 8-, 16- and 32-bit general-purpose MCUs and DSCs feature the standard PWM peripheral that can be used in audio playback applications. The PWM output is typically provided to a low-pass filter prior to an amplification stage that drives the speaker unit.

Documentation

Title Download
AN1367 - Porting the Helix MP3 Decoder onto Microchip's PIC32MX 32-bit MCUs Download
AN1152 - Achieving Higher ADC Resolution Using Oversampling Download
AN1422 - High-Quality Audio Applications Using the PIC32 Download
AN643 - Adaptive Differential Pulse Code Modulation using the PIC16/17 Download
Title Download
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814 Data Sheet Download
dsPIC33FJXXXGPX06A/X08A/X10A Family Data Sheet Download
PIC24FJ1024GA610/GB610 Family Data Sheet Download
PIC32MX1XX/2XX 28/44-pin XLP Family Data Sheet Download
PIC32MX1xx/2xx 28/36/44-pin Family Data Sheet Download
PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Family Data Sheet Download
PIC32MX330/350/370/430/450/470 Family Data Sheet Download
PIC32MX1xx/2xx/5xx 64/100-pin 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
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
Description Part Number
Explorer 16/32 Development Board DM240001-2
MPLAB Starter Kit for dsPIC DSC DM330011

Software Libraries

Recording and Playback Software Libraries


Audio Functions Resource Type Title and Link Supported Families
Audio and Speech Library MP3 Decoder Library for PIC32MX PIC32 MCU
Audio and Speech Library PIC32 Audio Equalizer Filter library PIC32 MCU
Bluetooth Audio Library PIC32 Bluetooth®Audio Software Suites PIC32 MCU
AAC Playback Library AAC Decoder Library for PIC32 PIC32 MCU
Streaming Audio Demo USB Audio Headset Demo PIC32MM MCU
Record and Playback, Streaming Audio Library dsPIC33E Sample Rate Conversion dsPIC33E
Record Application Note and Source Code AN1152-Achieving Higher ADC Resolution Using Oversampling dsPIC33E, dsPIC33F
Record and Playback, Voice Communications Library SW300026 dsPIC/PIC24 G.711 Speech Encoding & Decoding Library dsPIC33E, dsPIC33F
Record and Playback, Voice Communications Library SW300090-dsPIC G.726A Speech Encoding/Decoding Library dsPIC33E, dsPIC33F
Record and Playback, Voice Communications Library SW300070-Speex Speech encoding/decoding Library dsPIC33E, dsPIC33F
Record and Playback, Voice Communications Library dsPIC®DSC Equalizer Library dsPIC33E, dsPIC33F
Voice Communcations Library SW300060-Acoustic Echo Cancellation Library dsPIC33E, dsPIC33F
Voice Communcations Library SW300080-Line Echo Cancellation Library dsPIC33E, dsPIC33F
Voice Communcations Library SW300040-Noise suppression library dsPIC33E, dsPIC33F
Voice Communcations Library dsPIC DSC Automatic Gain Control Library dsPIC33E, dsPIC33F
Record and Playback, Voice Communications GUI dsPIC DSC Speech and Audio Fast Forward (SAFF) tool dsPIC33E, dsPIC33F
Record and Playback, Voice Communications GUI Digital Filter Design dsPIC33E, dsPIC33F
Record and Playback, Voice Communications GUI dsPICworks Data Analysis & DSP software (use to convert PCM to WAV and back) PIC24F, dsPIC33E, dsPIC33F