🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #21230

Re: Serial Connection

#21230
From: ph9991_imm
Date: Fri, 18 Dec 1992 22:50
45 lines
2183 bytes
In article <H.ea.TbbYu2JZmGM@yonder.equinox.gen.nz>, craig@yonder.equinox.gen.nz (Craig Shore) writes:
> This was posted locally by someone without net access, 
>  i'm forwarding it here for him.
> 
> =================================================================
> Path: yonder.equinox.gen.nz!equinox!Mark_Andrews
> From: Mark_Andrews@equinox.gen.nz (Mark Andrews)
> Newsgroups: equinox.atari
> Subject: Serial connection.
> Distribution: world
> Message-ID: <Mark_Andrews.5tyk@equinox.gen.nz>
> Date: 17 Dec 92 17:02:43 +1200
> Organization: Equinox Networks
> 
> A complete stranger came up to me today and asked me how to access the
> serial port on an Atari using GW Basic.  Not surprising I didn't know, but
> I thought someone here might be able to help.
> 
> Aparently he wants to connect some sort of relay device to his RS-232 port,
> he has a prgram written in GW Basic for use on an IBM.  It does something
> like:
> OPEN comms1
> 
> What is the equivilent device name for the Atari or will he have to be
> crude and poke at addresses?

  If he's planning on using ST basic, (but this should work in other
dialects) use this statement:
OPEN "O",filenumber,"AUX:"
where the "O" represents Output file, filenumber is an integer number used
to identify the file. If he plans on inputting data, use "I" instead.

Another way to do this in ST basic is to use the INP and OUT statements.
OUT 1,N% will output a byte (if 0<=N%<=255) to the RS-232 port. To read the
port use
IREADY%=INP(-1) 
if the value is .not. zero there is a byte available and then use 
IDATA%=INP(1)
to get the byte. if you do not use the IREADY%
check, THE SYSTEM WILL HANG until there is a byte available. (This disables
any keyboard [Ctrl-C] or AES events)

Larry Imm
--
larry.o.imm@uwrf.edu
Technical Details
Message-ID: <1992Dec18.165004.502@rivers>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!zazen!uwrf.edu!ph9991_imm
References: <H.ea.TbbYu2JZmGM@yonder.equinox.gen.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!zazen!uwrf.edu!ph9991_imm
From: ph9991_imm@rivers.acc.uwrf.edu
Newsgroups: comp.sys.atari.st
Subject: Re: Serial Connection
Message-ID: <1992Dec18.165004.502@rivers>
Date: 18 Dec 92 16:50:04 -0600
References: <H.ea.TbbYu2JZmGM@yonder.equinox.gen.nz>
Organization: University of Wisconsin - River Falls
Lines: 45