Page 1 of 1

Need eTPU tips.

Posted: Thu Jan 29, 2009 8:34 pm
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.

Re: Need eTPU tips.

Posted: Thu Jan 29, 2009 9:07 pm
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.

Re: Need eTPU tips.

Posted: Fri Jan 30, 2009 3:47 pm
by fanat9
H-ha!

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

Thank you! =)