How can i capture PWM duty cycle?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How can i capture PWM duty cycle?

1,405 次查看
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 项奖励
回复
3 回复数

1,045 次查看
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 项奖励
回复

1,045 次查看
1462993357
Contributor I

Hi,Daniel Martynek

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

0 项奖励
回复

1,045 次查看
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 项奖励
回复