Part Number: TMS320F28379D
Tool/software: Code Composer Studio
Please clarify the following questions.
1. Can we make the EPWM 1 as a slave. All the examples given in the references use EPWM1 as master and subsequent EPWMs as a slave.
2. My application requires EPWM1,2,3 acts as a slave so that TBCTR will be reset to the value given TBPHS register when the SWFSYNC is enabled. For this I have written code as below.
For making EPWM 1 as a slave:
Above code is not generating the correct duty ratio. However when the EPwm1Regs.TBCTL.bit.PHSEN is disabled, expected duty ratio is being generated. Can some one tell me why it is happening? What changes do I need to make so that It would give the correct duty ratio and also acts as a slave?
3.
For example: Lets say EPWM1 set as master and EPWM2 and 3 set as a slave with 120 degrees and 240 degrees phase shift respectively.
And EPWM2 sync In is same as Sync Out of EPWM1 (this case same as SyncIn of the EPWM1 ) and EPWM3 sync In is same as Sync Out of EPWM2 as shown below.
In this configuration,
As soon as EPwm1Regs.TBCTL.bit.SWFSYNC is enabled, will the EPWM1 TBCTR set to zero even though PHSEN of EPWM1 is disabled?
I know that as soon as EPwm1Regs.TBCTL.bit.SWFSYNC is enabled, EPWM2 and EPWM3 TBCTR will be set to PHase register values. I would like to know what happens to TBCTR value for EPWM1.
Thanks for your time.
Regards
Manikanta P