Or – I thought that they said the QL had an RS232 port.
Vancouver Sinclair UG
726 West 17th
Vancouver, BC V5Z 1T9
There is a problem with the serial ports on the QL. Sinclair calls them full, bidirectional RS-232 interfaces & one would hope that meant everything it was supposed to, but Sinclair cheapness has struck a low blow. Instead of doing the proper thing and using a full UART, Sinclair uses the 8049 Intelligent Peripheral Controller (IPC) for input and part of a custom Undifferentiated Logic Array (ULA) for output.
The problem arises from the fact that the 8049 has a lot to do and cannot watch the input line all the time. It is thus liable to miss characters. To get around this Sinclair has implemented the DTR pin; when the 8049 is busy it pulls DTR low. Any hardware wishing to talk to the QL has to monitor DTR. Most MODEMs are not set up to do this; consequently most MODEMs show a lot of errors.
A further problem arises from the fact that, while baud rate and pairity are under program control, the number of stop bits is fixed at two. Most North American BBS systems use one. These factors make it difficult to set up any of the simpler kinds of MODEMs, such as Steve Ciarcia’s TMS99532 based project.
My reason for writing this is to search out any solutions other people have tried in trying to circumvent these restrictions. If you have a MODEM working on a QL with any degree of success, drop me a line.
Here is what I have tried. My first attempt was simply to stick an ultra simple TMS99532 MODEM on the serial ports. This resulted in such a high level of errors in reception and transmission that I was unable to log on to any local BBS. (Sigh)
My second attempt was to design a slightly more complicated MODEM incorporating two UARTs. One UART was set to two stop bits and 300 baud like the QL, the other set to the parameters of whatever BBS I was trying to connect to. Once data was available on one UART, the data available pin would go high, triggering a one shot strobe to the write pin on the other UART as well as clearing the data available flip-flop on the first. This still didn’t connect.
My third attempt was to utilize the DTR line as well as the data available pin on the second UART to strobe the data into the first UART which ran at 9600 baud. The effect of this is to use the first UART as a one byte buffer. Surprisingly this shortcut works to a degree. Now, however, the original board is so hacked up that I will have to build another. At the present the device is still too unreliable to implement Xmodem.
It would seem that the next level would be to design a smart buffered MODEM which is capable of monitoring the DTR line on the QL. This will involve an extensive project with a dedicated controller chip like the Z8 or suchlike. I’ve not yet started work on such a device, but, coincidentally, the two QL MODEMs for sale in England incorporate a form of buffering between the MODEM and the QL.
If you have any luck in this endeavour, let me know!
HT
[Tom Bent says there is an i/f available from England @ $50 to correct this problem. MF]