[Coco] Accessing the serial port from Basic

S Klammer sklammer at gmail.com
Thu Nov 13 19:41:59 EST 2014


I've not tried in sometime and therefore may be completely wrong; however,
wouldn't INPUT #-2, <var> work to read bytes?

Shain
On Nov 13, 2014 4:55 PM, "Aaron Wolfe" <aawolfe at gmail.com> wrote:

> As others have mentioned there is no serial input built into basic.  The
> Rainbow had several articles with ways to do this however.  You can
> redirect the basic console to the serial port, then regular input
> statements work.  I recall having a lot of fun with this long ago.  As I
> recall its limited to 300bps or so.  There was a series of articles called
> "make your own BBS" or similar that included this functionality.  I suspect
> it started in one of the annual Telecom issues but sorry I dont recall
> which year.
>  On Nov 13, 2014 4:51 PM, "tim lindner" <tlindner at macmess.org> wrote:
>
> > On Thu, Nov 13, 2014 at 1:18 PM, Louis Ciotti <lciotti1 at gmail.com>
> wrote:
> > > Maybe my last post did not make it to the list, but I am looking for
> > information on accessing  the onboard serial post from
> > > basic.  I have a simple project that will use rs232 for io a d  I want
> > and want to play with the CoCo at the same time.   my
> > > quick run trough the RS manuals did not have anything jump out at me
> but
> > I may have missed it.
> >
> > To write bytes to the serial port use:
> >
> > PRINT #-2, "Bytes to Send"
> >
> > I believe Color BASIC defaults to 7bit data for 1.0, but was changed
> > to 8 bit data afterwords.
> >
> > I don't know of a way to read the serial port using only BASIC.
> >
> >
> >
> > --
> > --
> > tim lindner
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > https://pairlist5.pair.net/mailman/listinfo/coco
> >
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list