This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I can't setting for ecap1&2 sync



Hi,

I want to synchronize ecap1 & ecap2, but can not.

Both are capture mode.

I have confirmed the following description.

-----------------------------------------------------------------------

spruh18e.pdf 434page SWSYNC:

Writing a one forces a TSCTR shadow load of current ECAP module and any
ECAP modules down-stream providing the SYNCO_SEL bits are 0,0. After writing
a 1, this bit returns to a zero.

-----------------------------------------------------------------------

So I've set as follows.

ECap2Regs.ECCTL1.bit.SYNCI_EN = 1;
ECap2Regs.ECCTL2.bit.SYNCI_EN = 1;
ECap1Regs.ECCTL2.bit.SYNCO_SEL = 0;
ECap2Regs.ECCTL2.bit.SYNCO_SEL = 0;

Then, I ran the code below, but only  ecap1 loaded. (ecap1& ecap2 CTRPHS is 0x00000000 )

ECap1Regs.ECCTL2.bit.SWSYNC = 1;

Please teach me about the correct method of synchronization of eCAP1 and eCAP2.

Best regards,

FSSer