Hi nuttx,

I need an audio device that can generate sound using PWM on the RP2040. It
appears nothing already exists for this.
What would be a good way to implement this?

My previous implementation outside NuttX was to use DMA to feed samples
into a PWM register. Relatively simple.
However, in NuttX i now need to combine the PWM implementation with the
DMAC implementation. This is where I'm not sure how to "connect them
together" on a proper "nuttx" way.
Then also have it show up as an audio device.

in case you wonder about the concept PWM audio. It is a common way to
generate audio. It is how class-D amplifiers work. This is because the duty
cycle of PWM when filtered becomes an analog signal. A very cheap way to
implement audio in systems.

Are there any examples of projects out there that did this with Nuttx?
Or are there any people that have an idea how to take this project on?
Where do i begin? Where would i implement this? Board? Architecture?

I would appreciate any help

Reply via email to