Greetings, all.
I am trying to use the timers on a TS-7250 running the stock 2.4.26-ts11
kernel. I don't seem to have the right initialization sequence as I'm not
getting any interrupts from the timers.
What I'm trying to do is to use one of the timers (timer2 or timer3) in a
kernel module to generate an interrupt every 500 uS so I can flip a bit on an
output port. This is more of an experiment right now to see if it is possible
and to determine the amounts of latency and jitter I can expect.
Does someone have some sample code that uses the timers to generate periodic
interrupts? My attempts so far have proven to be unsuccessful. I disable the
timer, set it to periodic mode, clear the timer interrupt, put a value in to
the timer load register, then enable interrupts. However, I never seem to get
any interrupts.
The EP9301 User Guide talks about the two sets of Vectored Interrupt tables. I
am not doing anything regarding the VIC's at the moment. I didn't need to do
anything with them to get interrupts from a GPIO input. Is there something I
have to do with the VIC when it comes to the timers? How do I pick which VIC
table to use to reduce latency? How do I configure the interrupt as an FIQ?
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|