This is a follow up project showing how to smoothly Shift Square Waves across a 180 degree range, There's no Jitter or Phase-Flips. It uses an Interrupt to sense when its OK to update the shift-channel OCR. Its running all the way to 20 kHz with no problems discovered.
I used a 2560 for this demo. But you can apply a Nano or Uno Timer-1 to accomplish the same result!
Lee
Created: Sep 5, 2022 Updated: Sep 5, 2022 |