[comp.sys.atari.8bit] 1200 baud modem on 800XL

Makey@LOGICON.ARPA (Jeff Makey) (05/18/87)

I just got an Avatex 1200 modem for my 800XL (I use P:R: Connection) and I
would like to write my own communication software.  The modem manual contains
a very simple program that works at 300 baud, but I have no idea how to make 
it work at 1200.  I'm pretty sure that I need to change one or both of the
following setup lines in the program:

  XIO 34,#3,192+48+3,0,"R:"
  XIO 40,#3,0,0,"R:"

The R: device is already open on channel 3.  Any hints?  Thanks.

                                  :: Jeff Makey
                                     Makey@LOGICON.ARPA

Makey@LOGICON.ARPA (Jeff Makey) (05/18/87)

After I posted my question, I looked at the assembler source for the R:
handler printed in the back of the P:R: Connection manual and
determined that the following command will let me talk to my modem at
1200 baud:

   XIO 36,#3,10,0,"R:"

The 36 is the XIO command for changing the baud rate, byte length, and
number of stop bits (and is mentioned briefly in Mapping the Atari).
The 10 means use 1200 baud (determined by experiment).  300 baud is the
default, and can be forced by using either a 0 or an 8 in place of the
10.

On to my next question: is there a standard Action! routine that I can
use to determine if there are any characters to read from the R:
device?  If not, has anybody written one?  Thanks again.

                         :: Jeff Makey
                            Makey@LOGICON.ARPA