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