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.

RM48L952: Problem setting pwm duty to 0

Part Number: RM48L952
Other Parts Discussed in Thread: HALCOGEN

In my code, I have set it up for user input to dictate the duty cycle of a PWM signal. 

if I do something the equivalent of

pwmSetDuty(hetRAM1, pwm0, 100); 
pwmSetDuty(hetRAM1, pwm0, 0); 

it will leave the duty cycle at 100%. 

If I do the following - (with breaks between each set duty to see the changes) every duty cycle set seems to work. In other words, it is only going from 100 to 0 that seems to be the issue:

pwmSetDuty(hetRAM1, pwm0, 90); 
pwmSetDuty(hetRAM1, pwm0, 0); 
pwmSetDuty(hetRAM1, pwm0, 100); 
pwmSetDuty(hetRAM1, pwm0, 50);  
pwmSetDuty(hetRAM1, pwm0, 0); 
pwmSetDuty(hetRAM1, pwm0, 20); 
pwmSetDuty(hetRAM1, pwm0, 0); 

I can not figure out any reason why this may be. In HALCoGen I set the period to 41.6 us, and default to 0% with a low polarity. Any advice would be appreciated