Picomite Phase Correct PWM


Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 6035
Posted: 09:22am 10 Jan 2023      

Hi Peter,

Phill is using 6 outputs from 3 PWM's. The same can be done without the pokes, but then you would use 6 outputs from 6 PWM's. If you are free to choose your IO pins then both are equally beautifull solutions.

It is not that the SYNC option is lacking something. It is more versatile because you can also sync up 2 totally different frequencies (i.e. 50Hz and 150Hz). And you need the sync in above example to line up the 3 PWM's. Phill tried that before with delays in the MMBasic program, but that was not very accurate.

Regards,

Volhout