Part Number: TMS320F28388D Tool/software: Hi, I have two questions on ePWM module. Here is my configuration: ePWM1 is programmed as active high complementary. I use up-down count mode. PWM module is synchronized with external clock. TBCTR is loaded with TBPHS when a synchronisation event occurs and TBPHS = 0. I use shadow mode for almost all registers, shadow to active load occurs when TBCTR = 0. Question 1: I need the following confirmation: When SYNCIN event occurs, TBCTR willl be equal to TBPHS and TBPHS is set to 0 so TBCTR = 0 => will it lead to a shadow to active load for my registers (I want to be sure that yes) ? I ask the question because in my case, the counter is not free-wheeling. It is the SYNCIN event that leads to TBCTR = 0. Question 2: On a forced one-shot trip software event (TZFRC.bit.OST = 1), I force low ePWM1A & ePWM1B. I want to be able to re-enable the PWM module at the beginning of a switching cycle. The problem is when I clear the one-shot trip software event, the PWM module turn-on randomly during the switching cycle whereas I want to begin at the start of the switching cycle (it means when CTR = 0). Any idea to do this ? Other thing i tried but I don't think it's the best method: I've tried to use AQCSFRC in shadow mode to do this. Doing this, I solve my problem and PWM turns on at the beginning of a switching cycle but I have an other problem using AQCSFRC register. As I configured the module in Active High Complementary, ePWM1A is forced low as I want but ePWM1B is forced high and bit CSFB is ignored (whereas I want ePWM1B to be low as well). Regards, Adrien
↧