eTPU code samples

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

eTPU code samples

1,920 次查看
snehakalkhair
Contributor III


Hi,

Please help me with a few eTPU code samples.

eTPU to raise an interrupt.

eTPU , eMIOS interaction.eg. generate PWM with eTPU and measure the generated PWM using eMIOS.

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

1,674 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

To eTPU part:

First I would recommend to read general response I have recently answered on our community:

https://community.freescale.com/thread/371589

Here you can example procedure how to use eTPU PWM function, step by step:

http://cache.freescale.com/files/soft_dev_tools/doc/app_note/AN4687.pdf

To eMIOS part:

eMIOS functionality should be understandable from reference manual.

I am attaching example showing you half of the task that is IPWM function (for duty cycle measurement) - note this is not my code, no warranty.

For period measurement you would then use IPM function.

Also I would recommend taking a look on EB651, chapters 2.1 and 2.2:

http://cache.freescale.com/files/32bit/doc/app_note/EB651.pdf

0 项奖励
回复