I think RP2040 supports phase shift PWM but generally speaking for 8 channels max. The datasheet describes how to do it. If you need 16 channels then PIO might be the best option.
In your code, I see code to start the DMA channel but I don't see any code to restart it after it completes. Perhaps you could use DMA chaining. If you search the datasheet for "ping-pong", that's the simplest approach.
In your code, I see code to start the DMA channel but I don't see any code to restart it after it completes. Perhaps you could use DMA chaining. If you search the datasheet for "ping-pong", that's the simplest approach.
Statistics: Posted by alastairpatrick — Tue Mar 12, 2024 2:08 am