Part Number:TMS320F28379D
Tool/software: Code Composer Studio
Hello everyone,
I am making a Program in which I use commands:
EPwm1Regs.AQCSFRC.bit.CSFA = 0;
EPwm1Regs.AQCSFRC.bit.CSFB = 0;
EPwm1Regs.AQCSFRC.bit.CSFA = 2;
EPwm1Regs.AQCSFRC.bit.CSFB = 2;
to control PWM output. The problem, that I have encountered is the first PWM pulse after the switching PWM on with:
EPwm1Regs.AQCSFRC.bit.CSFA = 0;
EPwm1Regs.AQCSFRC.bit.CSFB = 0;
By default I use the duty cycle of 20% but the first pulse after start seems to be ~50% +-10%.
I want to ask, could I somehow solve this problem? Or this is hardware default so? May be there is some another way to turn quickly PWM on and off?
Thank you in advance!