ts-7000
[Top] [All Lists]

[ts-7000] Re: Help with second timer interrupt on TS-7800

To:
Subject: [ts-7000] Re: Help with second timer interrupt on TS-7800
From: "dieghuot" <>
Date: Wed, 10 Dec 2008 00:48:40 -0000
--- In  "Candelabra Funky Wild Lips Willy" 
<> wrote:
>
> The TS-7800 has two hardware timers that generate interrupts. I have 
a 
> driver I wrote that starts the second timer, and enables interrupts 
on 
> it. I need to send out a GPIO signal around 10,000 times a second 
> without fail, and cannot do it from user mode or using the timer 
used 
> in the linux kernel. Hence the driver.
> 
> The problem is that both the timers trigger the same IRQ (IRQ_BRIDGE 
in 
> the kernel code), and I want the second timer to call my interrupt 
> routine in my driver.
> 
> Any ideas? Can I chain the IRQ somewhow? I'd prefer not to modify 
the 
> kernel since recompiling it and reinstalling it is a pain.
> 
> Thanks in advance for any help on this.
>

Not sure what your implementation is but 10kHz is pretty high.  Can't 
you set up your other function to run at a multiple of that (K x 
.1ms).  Every time you enter your 10kHz IRQ, you increment a variable 
i then execute the second function when i = K and reset i.  You would 
only be using 1 timer...

I am just starting to play with the Marvell timers. I understand from 
the group discussion there is no good (accurate) way to implement 
timer interrupts from user space... Can I ask how you set up the timer 
and the IRQ on your driver?





------------------------------------

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/

<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Re: Help with second timer interrupt on TS-7800, dieghuot <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU