Can't get 100% pwm duty cycle on s32k142

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can't get 100% pwm duty cycle on s32k142

162件の閲覧回数
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 件の賞賛
1 返信

138件の閲覧回数
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 件の賞賛