dsPIC Recommendations and Capabilities

Thread Starter

MasterG

Joined Jan 18, 2022
10
Hey everyone!

I've got a question today about the capabilities of a dsPIC for a specific project I'm planning. Here's a little background: I'm a huge music enthusiast, and playing the guitar and bass are my passions. But let's face it, pedals like overdrive, chorus, reverb, etc. can cost an arm and a leg!

I've already dabbled in making some "analog" pedals, like simple overdrive, with custom 3D enclosures. However, I'm now eager to dive into the digital realm!

I'm well aware of the limitations of regular PICs, and most standard microcontrollers just don't have the quality ADCs or DACs needed for musical applications. Upgrading to precision or music-grade components often led to disappointment when I discovered that either the PIC or the Arduino couldn't keep up with the demands, causing issues like audible delays (I did find a workaround using an ESP32, but that's a different story altogether).

My next attempt involved using an FPGA, which surprisingly worked like a charm (Nexys 4 DDR). Yet, a new hurdle emerged. While I could effortlessly run multiple complex effects without any noticeable delay, the noise level was... unbearable! I tried everything—filters, pausing the clock during ADC operations—but the darn thing still produced unacceptable output noise. Even though I considered an external DAC, an FPGA isn't a long-term solution for me due to my original intent for it.

So, here I am, a newcomer to dsPIC territory. I've only dealt with the "normal" PICs (16F, 18F) and lower-end ones previously. On paper, dsPICs seem like they should be capable of delivering performance similar to (or at least approaching) that of an FPGA, plus they're supposedly easier to program. With that said, I'm seeking recommendations for a dsPIC model that would be perfect for my needs, particularly focusing on the ADC aspect.

Looking forward to your suggestions!
 

trebla

Joined Jun 29, 2019
599
Choosing the right dsPIC depends mostly from the bandwith it must process. Check development boards from Microchip for audio applications. Years ago i played with DM330011, maybe it is also available. The CCS has also one dsPIC audio kit available which uses more capable MCU. Most of the new dsPIC boards are dedicated to motor control applications. You can find some code examples here (use "audio" for filter examples). Be aware, most examples are for C30 compiler, also this 8kHz equalizer library. So you must make some code changes to use with XC16 compiler (or install C30).
 
Top