Calculate PWM pulse output

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

Calculate PWM pulse output

795 Views
bharatgohil
Contributor I

Hi,

Is it possible to calculated output pluse generated by FlexPWM and stop FlexPWM output based upon number of pulse generated.

Regards,

Bharat

0 Kudos
3 Replies

740 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Bharat,

 

To achieve this you can connect FlexPWM output to a Input Capture Channel using GPT (General Purpose Timer).

 

Hope it helps!

 

Best regards,

Felipe

0 Kudos

740 Views
bharatgohil
Contributor I

Thank You.

That is i want.

Do you mean within software or PWM out pin connect to Input pin of GPT?

If software, Can you provide some hint?

Thanks,

Bharat

0 Kudos

740 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Bharat,

 

To accomplish this you could try to connect PWM output to Input of the timer using XBAR module. Please check the following community thread where something similar is done using XBAR.

 

https://community.nxp.com/message/1191108 

 

Best regards,

Felipe

0 Kudos