eTPU code samples

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

eTPU code samples

1,036 Views
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.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

790 Views
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 Kudos
Reply