Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: toraora on May 01, 2012, 07:31:10 pm

Title: IO Port
Post by: toraora 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
Title: Re: IO Port
Post by: Runer112 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.
Title: Re: IO Port
Post by: toraora on May 01, 2012, 07:53:16 pm
ah, ok.

Thanks!
Title: Re: IO Port
Post by: Nick 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?
Title: Re: IO Port
Post by: Eiyeron on May 02, 2012, 09:05:19 am
Visiby, it opens the port, maybe 0 = close,  1 = read, 2 = write, and 3= both modes...
Title: Re: IO Port
Post by: Builderboy 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