Calculate PWM pulse output

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate PWM pulse output

75 Views
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

20 Views
NXP TechSupport
NXP TechSupport

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

20 Views
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

20 Views
NXP TechSupport
NXP TechSupport

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