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