Author Topic: nSpire slow counter?  (Read 3572 times)

0 Members and 1 Guest are viewing this topic.

Offline wRieDen

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +14/-1
    • View Profile
nSpire slow counter?
« on: February 25, 2011, 02:22:02 pm »
hi, i hope someone can help me with that.
Basically i search a timer, wich ticks around 1ms.
The second nSpire timer semms to be the right one for me, but i've no idea how to slow it down :banghead:
I allready tried setting 900D0010 to higher/lower values but it changed nothing?


Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nSpire slow counter?
« Reply #1 on: February 25, 2011, 03:40:57 pm »
If you just need to wait for an arbitrary number of milliseconds, you can try the sleep() function.

Else if you need asynchronous processing, you can have a look an the sleep function source code for the timer setup and Hackspire for the interrupts management.
Ndless.me with the finest TI-Nspire programs

Offline wRieDen

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +14/-1
    • View Profile
Re: nSpire slow counter?
« Reply #2 on: February 25, 2011, 05:11:08 pm »
Hey, thanks! Now it works fine, thought i tried almost the same before :)