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: "PeterElliot" <>
Date: Fri, 26 Sep 2008 00:26:57 -0000
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/

<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