[Coco] Bitbanger port
William Astle
lost at l-w.ca
Wed Aug 7 23:28:25 EDT 2013
On 2013-08-07 21:04, Gustavo Ranaur Schoenaker wrote:
> Hello,
>
> I`m writting a program to transfer information from the CoCo to a PC.
>
> Every time I PRINT #-2, the program hangs. I setted up the baud rate (POKE
> 150,1).
>
> Am I missing something? Start/stop bits? How many? Parity? Help! :-)
>
> BTW, is there a BASIC command to read from the serial port? INPUT #-2? :-)
There is no way to read the serial port in BASIC, not in the general
case. DLOAD does, sort of, but that's not what you're looking for I think.
PRINT#-2 waits for the CD (carrier detect) signal to be asserted before
it sends data. It has no timeout so it will hang if there's nothing
presenting a CD signal. If you're running in all RAM mode, you can
disable that check with a poke or two, the specifics of which escape me
at the moment.
More information about the Coco
mailing list