Atart interface, version 3.10.0


Last revision or modification of this document: 29 November, 2004

Newer versions available on http://sdq.webpark.cz/atart/ (if exist).

Warning: Author does not provide any warranty for hardware and software conflicts, failures or damages. Author has no accountibility for using Atart for making illegal data or program copies. Please, read all this manual and the Atart program manual before you will make anything.


Introduction

Atart interface is an interface among Atari computer, PC computer and Atari casette dataset. It allows to transfer data between any two of the named devices. You must do some little modification of Atari dataset to enable data transfer from the Atari to the PC. Data transfer from PC to dataset is on development now only.

Atart interface works with normal Atari casette software and handler. It means that when data are being transfered between Atari and PC, PC is simulating an Atari dataset. When data are being transfered between dataset and PC, PC is simulating an Atari computer SIO interface. Atart interface needs the Atart program running on the PC to work. Atart interface can also work as SIO2PC interface.

Named functions are useful in two cases especially. The first case is if you want transfer some data or program from Atari casette and save it to the PC file. The second case comes on if you want to use some Atari program which cannot work with disk and it can work with casette only. In this case you can use normal functions of this program for data reading and writing to casette. But data will be stored and loaded not from the casette but from the PC file.

Atart modes

I have called the data tranfer modes as follows: The system is very simple. Number means the device linked with PC (1 is dataset, 2 is Atari) and letter means the direction (A is from dataset, B is to dataset).

How to build an Atart interface

An Atart interface scheme is drawn on figure 1. It is only little more complicated than a SIO2PC interface.

fig. 1

9-pin (CN3) or 25-pin (CN3A) PC serial connector are drawn alternatively. Use one of them only. CN1 and CN2 are 13-pin Atari-SIO connectors, CN1 is a female and CN2 is a male. CN4 is an audio connector of any type (cinch, jack, ...). CN5 is a power supply connector. U1 can be any equivalent type instead of MAX 232. D1 can be any fast diode.

Connect CN1 to an Atari computer, CN2 to an Atari dataset and CN3 (or CN3A) to any free serial port on a PC computer. This basic connection can be modified in some cases (read below).

Two warnings about the connector CN2

First warning: The connector CN2 is designed for a dataset only. Do not connect any other device here. If you want to have other device connected (disk drive, printer, etc.) to an Atari, connect it directly to the Atari and connect CN2 to the second SIO connector of this device.

Second warning: If you do not use an AFMS board in the dataset, check if pin 4 of its SIO connector is connected to ground and pin 6 is disconnected OR change wiring of the pin 6 on CN2 to the ground.

Theory of operation

If SW2 is switched to SIO2PC, interface is wired as SIO2PC interface and the dataset is normally connected to Atari. In this case you can normally use any disk emulation software on PC and you can use the dataset for normal data reading and recording from or to the Atari computer. SW1 changes serial port pin for command line. The SW1's right position depends on used software for disk emulation.

If SW2 is switched to Atart, PC output line TxD is connected via U1 to Atari data input. Atari data output is connected to dataset input and dataset output is connected via U1 to PC serial input RxD. PC RTS line is used for switching dataset motor on and off. U1 changes voltage levels, T1 works as electronical switch for motor control line. It is needed because that line has load current larger than some models of U1 can supply. D1 simulates an open collector output for prevent conflicts with other devices connected to Atari SIO.

It was said that when data are being transfered between Atari and PC in Atart mode, PC is simulating an Atari dataset. When data are being transfered between the dataset and PC, PC is simulating an Atari computer SIO interface.

Atari uses FSK encoding for data storing on casette tape. A FSK encoder is a part of the pokey chip installed in the Atari and Atari data output is FSK encoded in a casette mode. FSK decoder is a part of dataset electronics. It means that when Atari is writing to the casette (or to the PC in Atart mode), it is sending FSK encoded data. But if Atari is receives data from the casette (or from the PC in Atart mode), it is receives FSK decoded data in normal TTL level.

It is clear now that in Atart mode, it is no problem to transfer data from PC to Atari (Atart mode 2B). Also there is no problem with data transfer from dataset to PC (Atart mode 1A). But Atari output is FSK encoded in the casette mode and must be FSK decoded if you want to link it to a PC (Atart mode 2A). In this case, FSK decoder in a dataset is used. I have developed a device called AFMS board to allow using dataset FSK decoder for this job. One additional wire between an Atart interface and a dataset is used for automatic switching between "normal" dataset mode and "FSK" dataset mode. In a normal mode the dataset works normally. But in FSK mode the dataset receives data from its input (where an Atari output is always linked), FSK decodes them and link them to dataset output, where PC is connected if SW2 is switched to Atart. Note that in older Atart interface version a manual switch was used for switching between normal and FSK modes. AFMS board does this automatically.

I have said about a additional wire (let us name it as FSK control line) between an Atart interface and a dataset. I have used pin 6 of SIO connector for it. It is not problematic if you know, what you connect to CN2. Normal XC12 dataset models have this pin disconnected and that is why you can connect they to CN2. But check before connecting. Dataset with AFMS board you can directly connect to an Atari or other normal Atari device without any risk. The pin 6 of SIO connector is linked to the ground in this cases, for a dataset with an AFMS board the pin 6 of a SIO connector is an input line. Dataset will stay in normal mode and that is what you want in this case. Function of the FSK control line is very simple. If SW2 is switched to SIO2PC mode, FSK control line is disconnected. In Atart mode it tranfers the state of the Atari SIO motor control signal. FSK control line transfers logical 1 only if SW2 is switched to Atart mode and Atari SIO motor control line is on. It is exactly the case when an Atari transmits data and PC receives data.

Using Atart without Atari

Normally an Atart interface and a dataset are powered from an Atari computer. But you may want to save data from casette on PC and you cannot or you don't want to use an Atari computer in this work. In this case, you can connect any +5V DC power supply to CN5. Check its polarisation! A plus pole must be connected to the pin 1 and a minus pole (ground) to the pin3. Otherwise modify wiring. Do not connect Atari and external power source at once.

You can connect CN4 to an audio amplifier input or to a little earphone with high impedance(!) for hearing the sound from casette and better seeking. You need not do it (but you can do), if you have the Atari computer connected. In this case you can hear the casette sound from device (TV, AV monitor or audio amplifier) which you use for hearing sounds from Atari.

Several words about 1B mode

If you want to save data from the PC to the casette, you must have a FSK encoder with right frequencies and output level. I am sorry I have not developed and tested any. If you want to try some, connect its input (I suppose it is a TTL input) to U1 pin 12. Disconnect dataset input (SIO pin 5) from everything and connect it to the FSK encoder output. Note that large FSK encoder's output voltage level can damage the dataset and you can make this experiment you can do at your own risk only.

Cannot get original SIO connectors?

I have found an easy solution of this problem. Use Cannon-15 connectors ! One SIO connector you have on your dataset. Disconnect it and wire a Cannon-15 female instead of it. Make a small cable with SIO female on one side and Cannon-15 male on the second. Use Cannon-15 female as CN1 in the Atart interface and Cannon-15 male as CN2. Now you can easy connect your dataset directly to an Atari or via an Atart interface. Wire connectors as follows:

SignalSIO pinCannon-15 pin
Clock in17
Clock out214
Data in36
GND413
Data out55
GND612
Command74
Motor control811
Proceed93
+5V1010
Audio112
+12V/NC129
Interrrupt131
FSK control68

Epilog

Do not forget to read the Atart program manual too.

Enjoy it and love the Atari computer.

Mgr. Vladimir Tichy
Hrdlovska 650
41705 OSEK
CZECH REPUBLIC

http://sdq.webpark.cz
http://sdq.paraglide.cz
sdq@post.cz

Back to the homepage