Table of Contents - TG Drives
Table of Contents - TG Drives
Table of Contents - TG Drives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
94<br />
Tmr, System timers<br />
GROUP MEMBERS (GROUP 8)<br />
Group.Member Member<br />
No<br />
Tmr.Abs 31 31<br />
0 -2 ..2 -1<br />
EXTENDED REGISTER GROUPS<br />
Range Ability Default<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />
RW<br />
System absolute time (in milliseconds) since startup, wraps to<br />
negative after about 24.8 days<br />
Tmr.CysInt 1 0..65535 RW<br />
i<br />
To generate a cyclical timer interrupt, use Tmr.CycInt to setup<br />
the interrupt frequency. The time between the interrupts is<br />
specified in servo cycles, (at FS) where each servo cycle is<br />
currently 1 ms.<br />
When Tmr.CycInt is set, the internal interrupt-timer is also set<br />
to the same value.<br />
Therefore, the first interrupt occurs after Tmr.CycInt servo<br />
cycles.<br />
To generate a single-shot interrupt, setup Tmr.CycInt and<br />
enable the interrupt;<br />
Do not re-enable the interrupt when exiting the interrupt<br />
routine.<br />
Tmr.T0 2 -2 31 ..2 31 -1 RW<br />
This is the time-value for timer 0. The timers are implemented by<br />
using an adjustment <strong>of</strong>fset from an absolute time. By writing to<br />
Tmr.T0 the <strong>of</strong>fset, Tmr.A0 changes so Tmr.T0 shows the<br />
desired time.<br />
To increment or decrement this time, by a fixed amount without<br />
risking that the timer will change values during the operation, add<br />
or subtract from Tmr.A0 instead <strong>of</strong> Tmr.T0.<br />
Tmr.A0 3 -2 31 ..2 31 -1 RW<br />
This is the <strong>of</strong>fset adjustment value for timer 0.<br />
Tmr.T1 4 -2 31 ..2 31 -1 RW<br />
This is the time-values for timer 1. The timers are implemented<br />
by using an adjustment <strong>of</strong>fset from an absolute time. By writing to<br />
Tmr.T1 the <strong>of</strong>fset, Tmr.A1 is changed so Tmr.T1 shows the<br />
desired time.<br />
To increment or decrement this time, by a fixed amount without<br />
risking timer value changes during the operation, add or subtract<br />
from Tmr.A1 instead <strong>of</strong> Tmr.T1.<br />
Tmr.A1 5 -2 31 ..2 31 -1 RW<br />
This is the <strong>of</strong>fset adjustment value for timer 1.<br />
Tmr.T2 6 -2 31 ..2 31 -1 RW<br />
This is the time-values for timer 2. The timers are implemented<br />
by using an adjustment <strong>of</strong>fset from an absolute time. By writing to<br />
Tmr.T2 the <strong>of</strong>fset, Tmr.A2 is changed so Tmr.T2 shows the<br />
desired time.