PWM duty cycle varies in free run mode of micro controller

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

PWM duty cycle varies in free run mode of micro controller

1,938件の閲覧回数
nitinverma
Contributor III

Dear Support Team,

 

I am working on s32k144(kinetis) eval board.I configure PWM for 50 % duty cycle when i connect debugger and run the code it is not showing 50 % duty cycle on MSO but when i stop the code or execution stopped @break points it shows the 50% duty cycle.When i remove the debugger and run in free execution mode then also duty cycle is not 50%. Kindly help me to resolve the issue.

 

Thanks

Nitin verma

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,639件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi Nitin,

can you share the code you have so we can check it on the board?

BR, Petr

0 件の賞賛
返信

1,639件の閲覧回数
nitinverma
Contributor III

Hi petr,

AlwaysThanks for you prompt reply.

That issue has been resolved.I was configuring FTM every time in scheduler tick so whenever CPU executing the code it configure FTM @ every tick and take significant time to configure hence the duty cycle affects. 

0 件の賞賛
返信