Author Topic: 8X+(se) testers needed...  (Read 12686 times)

0 Members and 1 Guest are viewing this topic.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: 8X+(se) testers needed...
« Reply #15 on: April 12, 2013, 08:07:28 am »
Yes, there is a problem with your source code. You forgot to disable interrupts, which could cause false values to be reported.
I already tried the same code with interrupts disabled and the same values seemed to be returned.
I checked again, and the response is then a bit slower with my old 83+.
Anyway, since you're the kind of person i would definitely trust, i updated the prog & source.
Thx a lot DrDnar =]

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: 8X+(se) testers needed...
« Reply #16 on: April 12, 2013, 03:23:11 pm »
The OS interrupt handler periodically scans the keyboard matrix. If an interrupt fires in the middle of testing the delay, the interrupt processing delay will definitely throw the test off, giving a lower-than-normal value. If the interrupt handler decides it's time to scan the keyboard matrix, it will leave the key group mask set to FF, which will cause the test to never read a key press. You could try to verify this by forcing an interrupt to occur in the middle of the test sequence using a crystal timer with its delay set to a specific number of clock cycles; see WikiTI for details. If you're feeling particularly ingenious, try disassembling the OS interrupt handler and determining what causes the OS to rescan the keyboard. Then, set up the test to force those conditions to occur.

Your results may be consistent across multiple runs because the interrupt timings are fairly predictable. Specifically, the OS won't start to execute the program until after the interrupt handler sees the ENTER key and stores the keycode into RAM, and then GetKey sees the keycode and returns to the home screen app, which closes the edit buffer and starts parsing it, and then the parser loads and executes the RAM program. So, this sequence can take a fairly predictable amount of time from when you hit ENTER.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: 8X+(se) testers needed...
« Reply #17 on: April 12, 2013, 04:22:29 pm »
I'm starting to understand how it works now...
Thx for the sharing =]

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: 8X+(se) testers needed...
« Reply #18 on: April 12, 2013, 06:54:51 pm »
So, for now, the known maximum delays are :
83+ : 6
other models - mode 0 : 6
other models - mode 1+ : 29

More tests are needed...

What about TI-84 Plus C Silver Edition color screen models?

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: 8X+(se) testers needed...
« Reply #19 on: April 13, 2013, 02:19:13 am »
Good question.
Not even sure if the program works on those...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: 8X+(se) testers needed...
« Reply #20 on: April 13, 2013, 12:27:01 pm »
It would obviously need some modifications (as does porting a TI-82 Stats/83 program over the 83 Plus series), but I heard that most modifications are changing RAM addresses (for example cmdShadow is now at 9BAA instead of 966E) and LCD stuff. The calculator ASIC is pretty much based on the 84+SE from 2004 (the ones that had 128 KB of RAM instead of 48).
« Last Edit: April 13, 2013, 12:30:32 pm by DJ Omnimaga »

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: 8X+(se) testers needed...
« Reply #21 on: April 13, 2013, 02:54:29 pm »
I'm not sure why, but screwing with curRow and curCol the way you do makes it overwrite previous text. So I switched it to using the wonderful _NewLine. Anyway, this gives 22 ? ? ? on my TI-84+CSE. This seems highly unlikely to me, but I don't see anything obviously wrong. I'll have to do some more work later.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: 8X+(se) testers needed...
« Reply #22 on: April 14, 2013, 06:58:06 am »
I'm not sure why, but screwing with curRow and curCol the way you do makes it overwrite previous text.
Maybe those text display routines have been modified on the 84+CSE (Who knows...).
I'm specially thinking of the automatic newline performed by _puts (and putc i think) once a char has been displayed at col 15.

So I switched it to using the wonderful _NewLine. Anyway, this gives 22 ? ? ? on my TI-84+CSE. This seems highly unlikely to me, but I don't see anything obviously wrong. I'll have to do some more work later.
I just hope ti did not change the keyboard for some slow crap.
More likely, there is one or more piece(s) of hardware that is significantly faster (and that is involved in the test ofc).

EDIT :

I took some little time to modify the kbdelay.asm you provided.
It now goes up to 128.
Feel free to try it out =]
« Last Edit: April 14, 2013, 07:49:46 am by the_mad_joob »

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: 8X+(se) testers needed...
« Reply #23 on: April 19, 2013, 10:49:03 am »
Some more testers around ?

@DrDnar :
So, did you try the new version ?
To tell the truth, i'm kinda curious to see the results.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: 8X+(se) testers needed...
« Reply #24 on: April 19, 2013, 11:50:56 am »
I can get you another 83+ and 84+SE tomorrow :)

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: 8X+(se) testers needed...
« Reply #25 on: April 19, 2013, 01:45:59 pm »
Yay !

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: 8X+(se) testers needed...
« Reply #26 on: April 19, 2013, 04:40:07 pm »
@DrDnar :
So, did you try the new version ?
To tell the truth, i'm kinda curious to see the results.
22 72 72 72
I find it rather strange, since so far the MicrOS keyboard routines I've written appear to work fine at 32 cycles delay. I promise you the ASIC is identical to the one in my TI-84+SE. If the keyboard is slower, it would be due to hysteresis in the keyboard matrix, not the ASIC.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: 8X+(se) testers needed...
« Reply #27 on: April 20, 2013, 12:03:11 am »
83+: 5 (N-0305H)
84+SE: 4 18 18 18 (no serial number listed, it's actually an 84+SE in an 84+ case)
« Last Edit: April 20, 2013, 12:06:35 am by chickendude »

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: 8X+(se) testers needed...
« Reply #28 on: April 20, 2013, 03:07:47 am »
I added a download link for 84+CSE users.

22 72 72 72
I find it rather strange, since so far the MicrOS keyboard routines I've written appear to work fine at 32 cycles delay. I promise you the ASIC is identical to the one in my TI-84+SE. If the keyboard is slower, it would be due to hysteresis in the keyboard matrix, not the ASIC.
Thx for the results dude.
They are indeed kinda paranormal XD.

83+: 5 (N-0305H)
84+SE: 4 18 18 18 (no serial number listed, it's actually an 84+SE in an 84+ case)
These are short delays !
Too bad you don't have the serial but i assume it's one of the later models.
Thx for time.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: 8X+(se) testers needed...
« Reply #29 on: April 20, 2013, 03:11:42 am »
Yeah, it's a later model. Or at least, it doesn't have the 128kb RAM.