I am using an XMEGA384C3, and I can change the frequency of the timer to generate different square waves of the same frequency, but different duty cycles for the CCA, CCB, CCC, CCD pins. However, is there a way to use a single timer to output different square waves of different frequency
and duty cycle, or do I have to use separate timers.
The closest thing I can come up with is using a timer in FRQ generation mode and changing the frequency on the fly, but it only outputs on CCA. I would like to have different square waves simultaneously.
output a 4HZ square wave on TD0 (CCA), and a 2 HZ square wave on TD1 (CCB).