PWM duty cycle varies in free run mode of micro controller

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

PWM duty cycle varies in free run mode of micro controller

1,085 Views
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

Labels (1)
0 Kudos
2 Replies

786 Views
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 Kudos

786 Views
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 Kudos