Can't get 100% pwm duty cycle on s32k142

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't get 100% pwm duty cycle on s32k142

153 Views
elb1
Contributor III

Hello, i am using s32k142, and when i set the duty cycle for pwm to 100% using this register:


size_t value = (((size_t)duty * ctx->mod) >> 16);

ctx->base->CONTROLS[ctx->channel].CnV = (uint32_t)value;

 

i don't get the 100% which i was waiting for, for me it should be high all the time but instead it will have one small glitch, it's like it is giving 99% duty cycle.
the picture below shows the measurement for pwm 100% that i get

elb1_0-1714993076923.png

 



0 Kudos
1 Reply

129 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@elb1

There are some situations where 100% PWM wave cannot be output.

So,could you please provided more details regarding your FTM PWM settings.

for example, your demo code and how you test it etc.

 

 

0 Kudos