Need eTPU tips.

Discussion to talk about software related topics only.
Post Reply
fanat9
Posts: 56
Joined: Thu Apr 24, 2008 4:23 pm
Location: Boston
Contact:

Need eTPU tips.

Post by fanat9 »

Hi guys,

I have to repeatedly create non-trivial(and not standard) sequence of pulses on 2 channels.
Main CPU(5234) will be busy by that time(collecting data from ADC and sending it thru Eth.), so I guess the only option is eTPU. Which, btw, seems to fit perfectly for this task.

But eTPU PWM functions will not work for me. And I can't toggle eTPU channels as GPIO - have no time for it in main program.
Implement my own function? Without any experience with eTPU... sounds scary.


So, I guess, I'm looking for tips where to start ?

Regards.

P.S. Sequence is:
Pulse 10-100uS long(predefined by user), wait for time predefined by user(usually 20-100uS), and then more pulses with width and duty cycle predefined by user. On second channel something similar, but with different settings.
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: Need eTPU tips.

Post by Ridgeglider »

I'm guessing you've seen the eTPU app notes and demo files at http://www.netburner.com/products/core_ ... d5234.html

Look also at the QOM, the Queued Output Module:
http://www.freescale.com/files/online_t ... U/QOM.html.
http://www.freescale.com/files/32bit/do ... AN2857.pdf

This module is part of the NNDK_etp_set.h
See C:\Nburn\MOD5234\include\ETPU\functions_API\etpu_qom.h for usage details.
fanat9
Posts: 56
Joined: Thu Apr 24, 2008 4:23 pm
Location: Boston
Contact:

Re: Need eTPU tips.

Post by fanat9 »

H-ha!

This is exactly what I need. I can't believe I overlooked it !

Thank you! =)
Post Reply