Author Topic: Interrupts  (Read 4379 times)

0 Members and 1 Guest are viewing this topic.

SirCmpwn

  • Guest
Interrupts
« on: October 28, 2010, 08:16:23 am »
How do I set up a timed interrupt routine?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Interrupts
« Reply #1 on: October 28, 2010, 08:55:35 am »
(I am supposing this is for the TI-Nspire)

Could you describe further what you would like to do? Setting an an interrupt handler is probably not easy, perhaps an inline delay could be a better solution depending on what you want to do.

I have a working sleep() routine I should commit to the Ndless SVN.
Ndless.me with the finest TI-Nspire programs

SirCmpwn

  • Guest
Re: Interrupts
« Reply #2 on: October 28, 2010, 04:45:05 pm »
I want a way of timing when code will run, for music.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Interrupts
« Reply #3 on: October 28, 2010, 04:52:01 pm »
For music? So it's not for the TI-Nspire.

Anyway I have just commited the sleep() function.
Ndless.me with the finest TI-Nspire programs

SirCmpwn

  • Guest
Re: Interrupts
« Reply #4 on: October 28, 2010, 04:53:28 pm »
It is for the nspire, actually, hence why I posted in the C thread.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Interrupts
« Reply #5 on: October 28, 2010, 04:56:04 pm »
So you are trying to output sound to the 84+ I/O port?
Is sleep() good for you?
Ndless.me with the finest TI-Nspire programs

SirCmpwn

  • Guest
Re: Interrupts
« Reply #6 on: October 28, 2010, 04:57:27 pm »
I don't think so, I was hoping to have some code that is executed every so often, where "so often" was a known value.

SirCmpwn

  • Guest
Re: Interrupts
« Reply #7 on: October 29, 2010, 08:29:25 am »
*bump*