Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Camdenmil on September 21, 2011, 09:07:07 pm

Title: Accurate Timing
Post by: Camdenmil on September 21, 2011, 09:07:07 pm
Does anyone know a good way to keep time in axe? I tried making an axiom for the crystal timers but axe doesn't seem to support interrupts for anything except the hardware timers which can be a bit inaccurate. Would it be safe to define an interrupt in axe and then have the axiom turn off the hardware timers?
Title: Re: Accurate Timing
Post by: Runer112 on September 21, 2011, 09:14:03 pm
I know you can make an Axiom to control crystal timer-based interrupts, because I've done it before. But how fast do you need the timer to be? Because the hardware timers on the 15MHz calculators are actually based off the crystal timers and run at extremely precise speeds. If you just need to keep accurate time over a long period rather than do something many times a second with precise intervals in between, you should be just fine with the hardware timers. The exact speeds the hardware timers run at can be found here: [wikiti]83Plus:Ports:04[/wikiti]. The most regular speed is with the hardware timer set at the fastest setting (0) on a 15MHz calculator, which will run at (almost) exactly 512Hz.
Title: Re: Accurate Timing
Post by: thepenguin77 on September 21, 2011, 10:05:41 pm
on a 15MHz calculator, which will run at (almost) exactly 512Hz.

Seconded, I made a stopwatch with that timer. And it's accurate to .01 over a few hours.
Title: Re: Accurate Timing
Post by: ztrumpet on September 21, 2011, 10:15:02 pm
on a 15MHz calculator, which will run at (almost) exactly 512Hz.

Seconded, I made a stopwatch with that timer. And it's accurate to .01 over a few hours.
You mean the timer I ran for what I'm sure is a total of >3 hours timing stuff for school wan't 100% accurate?! ;) Is the new one 100% accurate, or is it inaccurate as well?
Title: Re: Accurate Timing
Post by: Camdenmil on September 21, 2011, 11:00:56 pm
So the hardware timers in the 84 are based on the crystal. Although how would you make an axiom for the crystal timers? I thought the hardware timers were inaccurate because the ones on the 83 run at weird speeds. <_<