ts-7000
[Top] [All Lists]

[ts-7000] Re: user level access to timer 3

To:
Subject: [ts-7000] Re: user level access to timer 3
From: "marek.zukal" <>
Date: Sat, 27 Sep 2008 06:03:53 -0000
--- In  "PeterElliot" <> wrote:
>
> Hi,
> 
> From the documentation, T3 seems to count down from the 'load' value
> to zero and then generate an interrupt. It can also be set to reload
> the initial value to generate a periodic interrupt.
> 
> Thus:
> 
> while {1=1) {
>   *t3control = 0x00;     // disable timer
>   *t3load = 0x80000000;  // Load value
>   *t3control = 0x80;     // Enable timer
>   while ((T3val=*t3value)!=0) {
>     do something with T3val
>   } 
> }
> 
> Also, as some of the control bits are reserved, I'd recommend ORing
> these bits with your load value to ensure no improper operation.
> 
> I don't know if T3 is being used for any other purpose by the OS... I
> seem to think it's used as the periodic tick for Linux.

I searched the code in the 2.4 kernel from TS and found that only the
T1 is used by the system to generate the jiffy ticks. In the 2.6
kernel, the T1 is used the same way and the T4 is used to detect
missing jiffies(lost timer interrupts). So if you use T3 only by one
process at a time it should not be a problem.
Hope I did not miss something.
> 
> Hope this was helpful,
> 
> PJE
>



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

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>
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