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.
Tool/software:
Hi champs,
I am asking this for our customer.
From TRM spruiw9c (https://www.ti.com/lit/pdf/spruiw9), see below red box.
The user uses DACH ramp generator to trip a EPWM to low.
When the DACH ramps down to zero and if CMPINxP is a little bit lower than 0x0 because of minus comparator input offset, which means there is likely no COMPHSTS=1,
1) Will the DACH still be recharged to RAMPMAXREFS "right after" it becomes 0x0? Or the DACH will not be recharged until EPWMSYNCPER (at EPWM counter=0)?
2) What happens when there is no COMPHSTS=1? Does that mean the PWM output can be 100% duty because there is no trip event?
Hi Wayne,
1) if the output goes high (COMPHSTS=1), then the DACH still be reset to RAMPMAXREFS "right after" that event.
2) Yes, if there is no trip, the ePWM can go to 100% duty cycle.
Regards,
Hadi
Hi Hadi,
For 1), I meant if there is negative offset so that there is no COMPHSTS=1, will DACH still be recharged to RAMPMAXREFS?
Hi Wayne,
DACH will be loaded with RAMMAXREFS when there is either COMHSTS or EPWMSYNCPER. So, if there is no COMPHSTS=1, the DACH doesn't go to max value RAMMAXREFS.