[A89] Re: Link cable interfacing


[Prev][Next][Index][Thread]

[A89] Re: Link cable interfacing




At 21:28 2001-04-15, you wrote:
>Hello,
>
>I'm Bart Trzynadlowski, and I'm new to this list. I've just started playing
>around with TI-89 programming. You can visit my site at:
>http://trzy.overclocked.org for more information about my projects.
>
>Without further delay, I'm interested in knowing how to communicate with a
>TI-89 via the link cable. I would like to write my own TI-89 and PC software.
>         What baud rate should I use? Is parity required? What about stop 
> bits? Any
>other considerations on the PC side?
>         Based on the documentation I have, I judge that on the TI-89 
> side, all I
>have to do is enable the link port interrupts and install my own handler.
>Then I assume I just send/receive data through the appropriate port. But
>when uninstalling my handler, how should I restore the state of the link
>hardware. How does the OS expect it to be set up?
>
>Thanks in advance,

 From the calc side, there isn't much initialization needed. You can look 
in J89hw.txt that you can find on http://alh.dhs.org/ti89/ It also has 
default values for all ports. If you want to make it a bit more simple for 
you, then you can use linkroutines in the rom. You can find info about them 
in the TIGCC docs. I'm quite sure all of the functions listed there is just 
the straight romroutines, without any "wrapper fuctions"... (so you can use 
them like that with pure asm too). Ofcourse, writing them yourself can make 
them more optimized for your needs..

 From the PC side, it depends on what cable you have. The grey has a serial 
rs232 interface, (the normal serial interface) I think it is 9600. while 
the black and most homemade (many of them compatible with the black) need 
you to know the ti link protocol. Or you can use the linklibrary that comes 
with TiLP.
You can find info about ti link protocol and cables and the linklibrary 
here: http://tilp.sourceforge.net/docs-en.html
Looks a bit messy though, you could probably at least read some source from 
the linux version...

That was some info at least, hope it helped...
///Olle





References: