How can i capture PWM duty cycle?

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

How can i capture PWM duty cycle?

1,586 Views
eautopower
Contributor IV

Hi Okamies:

  How can i capture PWM duty cycle? Does SDK have the associated calling function? If yes, could you tell me which one?

Besides, I have another question:

 How do I modify the bootloader and APP momery addresses?

pastedImage_1.png

0 Kudos
Reply
3 Replies

1,226 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Regarding the SDK, there is FTM_DRV_GetInputCaptureMeasurement() function that returns a value calculated from Channel (n, n+1) Value Registers based on the timer configuration.

This function returns Rising Edge Period Measurement in the example in Design Studio (S32K144_FTM_Signal_Measurement). This can be changed to Period On Measurement.

pastedImage_1.png

There is also an application note for the FlexTimer: Features and Operation Modes of FlexTimer Module on S32K

with software.

Regards,

Daniel

0 Kudos
Reply

1,226 Views
1462993357
Contributor I

Hi,Daniel Martynek

This"AN5303SW.zip" is invalid, can you share it again.thank you

0 Kudos
Reply

1,226 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi 1462993357@qq.com,

You can find all the S32K1xx application notes here:

32-bit Automotive General Purpose MCUs | NXP 

pastedImage_3.png

Regards,

Daniel

0 Kudos
Reply