[Coco] Accessing the serial port from Basic

tim lindner tlindner at macmess.org
Thu Nov 13 16:51:21 EST 2014


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


More information about the Coco mailing list