Author Topic: IO Port  (Read 2947 times)

0 Members and 1 Guest are viewing this topic.

Offline toraora

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
IO Port
« on: May 01, 2012, 07:31:10 pm »
Hi all,

When I try writing anything to port, e.g.
Code: [Select]
3->portthe calculator becomes unusably laggy (~5 sec delays) as soon as the program terminates.
I'm running OS 2.53 on a TI84+ SE.

Is port not functioning as it should, or am I using it incorrectly?

THanks,
toraora

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: IO Port
« Reply #1 on: May 01, 2012, 07:37:09 pm »
To quote the official commands list, Commands.html, which you can find in your Axe download:

EXP→Port   Key: ClrTable      Sets the link port to a given status with a number 0-3. Must exit program with status 0 if changed!

If you do not reset the port status with 0→port before returning to the OS, the OS will see that the port is active and will constantly check for link activity that isn't there.
« Last Edit: May 01, 2012, 07:38:41 pm by Runer112 »

Offline toraora

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: IO Port
« Reply #2 on: May 01, 2012, 07:53:16 pm »
ah, ok.

Thanks!

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: IO Port
« Reply #3 on: May 02, 2012, 08:53:40 am »
can someone explain what this function does exactly? i've looked for it, but never found something.. what kind of status is it?

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: IO Port
« Reply #4 on: May 02, 2012, 09:05:19 am »
Visiby, it opens the port, maybe 0 = close,  1 = read, 2 = write, and 3= both modes...

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: IO Port
« Reply #5 on: May 02, 2012, 10:27:25 am »
can someone explain what this function does exactly? i've looked for it, but never found something.. what kind of status is it?

It is used for communicating over the link port.  You may or may not know that the link cable has 3 wires called ring, tip, and ground.  Software cannot change the ground wire, but it can change the ring and the tip.  By writing a number from 0-3 into port, you are directly controlling these 2 wires.  By reading from Port, you are testing the current value of those two wires