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