Using the SDK9.01 ECAP PWM Loopback example and adding a second ECAP module so there is ECAP0 and ECAP1.
I can't seem to get SWSYNC to work, maybe I am doing something wrong...?
I run App_ecapInit() function for both ECAP0 and ECAP1.
Afterwards, the ECCTL register (offset 0x28) for both instances is 0x00360144 after initialization.
Then in the main() loop, after the above ecap initialization, I try to initiate a SWSYNC so both ECAP modules share the same count.
To SYNC:
HW_WR_REG8(gEcapBaseAddr + 0x2B, 0x01);
This writes 0x01 to the upper 8-bits of ECCTL, which sets SWSYNC = 1 (this is bit 24 in the ECCTL register)
Is that enough to engage the SYNC, or is something else needed?