I've googled around but figured I'd ask for a general direction to go for how to do this with the pico. I'd like to generate as least 2, but maybe 3 or 4, pwm signals that have the same frequency but differing duty cycles and a set phase shift between them, and I'd like for the frequency, duty cycles, and phase shifts to be adjustable.
Maybe as a concrete example:
1) Frequency of 50hz (20ms period)
2) a pwm signal with a duty cycle of 10% (2ms width)
3) Another pwm signal with duty cycle of 20% (4ms width) but phase offset of 20ms
4) Another pwm signal with a duty cycle of 15% (3ms width) but phase offset of 10ms
![Image]()
Any advice for the general approach to do this would be appreciated.
Maybe as a concrete example:
1) Frequency of 50hz (20ms period)
2) a pwm signal with a duty cycle of 10% (2ms width)
3) Another pwm signal with duty cycle of 20% (4ms width) but phase offset of 20ms
4) Another pwm signal with a duty cycle of 15% (3ms width) but phase offset of 10ms

Any advice for the general approach to do this would be appreciated.
Statistics: Posted by blaberj — Tue Oct 29, 2024 3:44 pm