I am using the MC56F84789 DSC and I need to synchronize the outputs PWMA0, PWMA1, PWMB1, and PWMB2 so they start at the exact same clock cycle without any delay.
I am using CodeWarrior 11.1. I have read in the reference manual that synchronization between submodules is possible via the MCTRL register, but I am struggling to implement this correctly in C.
My current understanding:
PWMA0/B0 belong to Submodule 0.
PWMA1/B1 belong to Submodule 1, and so on.
I need to use a "Master Reload" or "Master Sync" signal.
Questions:
How should I configure the CTRL2[INIT_SEL] and CTRL2[MASTER_RELOAD] bits to ensure all submodules use the same timing reference?
What is the correct sequence in CodeWarrior to set the LDOK bits in the MCTRL register simultaneously for multiple submodules?
If I am using Processor Expert, which properties should I change to enable this hardware synchronization?
Any code example or register configuration sequence would be very helpful.