Other Parts Discussed in Thread: EK-TM4C1294XL, CONTROLSUITE
Hello, I need to generate two different pulses in one period on one PWM channel, code is:
PWM_setPeriod(myPwm1, 600); PWM_setCmpA(myPwm1, 300); PWM_setCmpB(myPwm1, 580); PWM_setActionQual_Zero_PwmA(myPwm1, PWM_ActionQual_Set); PWM_setActionQual_CntUp_CmpA_PwmA(myPwm1,PWM_ActionQual_Clear); PWM_setActionQual_Period_PwmA(myPwm1, PWM_ActionQual_Set); PWM_setActionQual_CntDown_CmpA_PwmA(myPwm1, PWM_ActionQual_Clear);
this is what it should display, but if I use for PWMB the CmpB:
PWM_setActionQual_Period_PwmB(myPwm1, PWM_ActionQual_Set); PWM_setActionQual_CntDown_CmpB_PwmB(myPwm1, PWM_ActionQual_Clear);
This is what i get, the PWMB (channel 1) is 0 and 1 at the same time ?! And it is in two quarters of period and it should be only in one.
Can someone tell me, whats wrong? Or Is the microcontroller even capable of switching on-off two times in one period?


