Part Number: LP-MSPM0G3507
Tool/software:
Hi all,
I'm trying to generate two PWMs with the same frequency but different duties, shifting 50% to avoid overlapping when duty < 50%.
To do that, I'm using TIMA0 and TIMA1 and their configurations just before starting the counters are:
TIMA0

TIMA1

- Both timers have the same period, 655
- TIMA1 CTR value is initialized to 327 (655/2), to start counting shifted 50%.
- Both CTRCTL.CVAE values are 1h (Do not change CTR when EN is activated)
When I activate both counters, I do not see the effects of shifting the counter by software

The CVAE value has been ignored since when the CTRL.EN bit changes to 1, the CTR is reset.
Additional info:
- Both TIMA0/TIMA1 have the same clock source.
- Timers never started before this CVAE/CTR write operations.
What is missing here?
Is there any other way to generate shifted PWMs avoiding overlapping? The requirements are:
- Up to 4 PWMs
- Each PWM could have a different duty
- They shall be synchronized
Many thanks!
Best regards,
David


