Part Number: TMS320F280039C
Other Parts Discussed in Thread: TIDM-02002
Dear Champs,
I am asking this for our customer.
In TRM 20.15.1.5.4.1 High-Resolution Period Configuration, there is a note,
"When high-resolution period mode is enabled, an EPWMxSYNC pulse will introduce +/- 1 - 2 cycle jitter to the PWM (+/- 1 cycle in up-count mode and +/- 2 cycle in up-down count mode). For this reason, EPWMxSYNCO source should not be set to CTR = 0 or CTR = CMPB. Otherwise, the jitter will occur on every PWM cycle with the synchronization pulse. When EPWMxSYNCI is EPWMxSYNCO source, a software synchronization pulse should be issued only once during high-resolution period initialization. If a software sync pulse is applied while the PWM is running, the jitter will appear on the PWM output at the time of the sync pulse."
Questions:
1. It says "For this reason, EPWMxSYNCO source should not be set to CTR = 0 or CTR = CMPB." Does that mean the user can set other sources other than CTR=0 or CTR=CMPB?
For example, The user can still set
EPWMSYNCOUTEN.CMPCEN = 1. Then set CMPC=0 to generate a EPWMxSYNCO. Can this setting avoid this issue?
2. For 2-phase interleaved EPWM, if the user uses EPWM1 to sync EPWM2.
EPWM1.EPWMSYNCINSEL.SEL=0 (Disabled)
EPWM1.EPWMSYNCOUTEN.ZEROEN = 1
EPWM1.TBCTL.PHSEN = 1
EPWM1.HRPCTL.TBPSHRLOADE = 1
EPWM2.EPWMSYNCINSEL.SEL = 1 (from EPWM1)
EPWM2.TBCTL.PHSEN = 1
EPWM2.HRPCTL.TBPSHRLOADE = 1
Then, does only EPWM2 suffer this jitter issue (sync from EPWM1) or "both EPWM1/EPWM2" suffer this jitter issue?
3. I am aware TIDM-02002 tried to have a workaround by enable/disable sync repetitively during runtime in ISR on F28004x. Because F28003x has introduced a new register TBCTL3.OSSFRCEN.
Can the user uses below concept to avoid this jitter issue?
TBCTL3.OSSFRCEN = 1 (reload by one-shot global load)
One-shot global load set to load shadow to active at CTR=0 to generate a EPWMxSYNCO at CTR=0 ONLY when period command (TBPRD/TBPRDHR) is updated.
TBPRD/TBPRDHR do not follow one-shot global load per the TRM request.
It should be similar to what has been shown in TIDM-02002, but with TBCTL3.OSSFRCEN.
Do you think it works to avoid this jitter issue?