Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

TMS320F28335: Continuous Software Force doesn't work like I expected

$
0
0

Part Number: TMS320F28335

I can't set the PWM1A and PWM1B to low level. Whenever Continuous Software Force Register is enabled, always PWM1A and PWM1B are at the opposite logical level, although without the PWM pulses. However, I want them to stay low for a moment and then after act normally as dead-time complementary PWMs.

I am using GPIO 00 and GPIO 01 to generate PWM1A and PWM1B respectively, these being complementary to each other with dead time. From what I read, it would be possible to put at low levels these pins through the"Continuous Software Force Register"  AQCSFRC - page 100 da literatura TMS320x2833x, 2823x Enhanced Pulse Width. The idea would be to put them initially at low level and then released to this PWM function

Through my variable stop, I control the moment I want to set these pins to zero level or to the PWM function. But, those pins doens't work like I wish!!! What I should do? Or, what's missing?

if (stop) { //

EPwm1Regs.AQSFRC.bit.RLDCSF = 3; //Load immediately (the active register is directly accessed by the CPU and is not loaded from the shadow register).
EPwm1Regs.AQCSFRC.bit.CSFB = 1; //Forces a continuous low on output B
EPwm1Regs.AQCSFRC.bit.CSFA = 1; //Forces a continuous low on output A
} else {
EPwm1Regs.AQCSFRC.bit.CSFB = 0; //disable!!! continuous Forces on output B
EPwm1Regs.AQCSFRC.bit.CSFA = 0; //disable !!! continuous Forces on output A
}


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>