SHOW / HIDE

What I know (including hearsay):

(1) This documents the non-Deluxe Option Board, and the Deluxe
Option Board is different.  

(2) I haven't tried wrangling any code around this as yet.  Maybe
someday, but frankly the Catweasel is higher on my copious free time
list.  

(3) There are at least two versions of the non-Deluxe Option Board: a
long card with three horizontal rows of several ICs, and a short card
with three horizontal columns of several ICs.  The short card has a
"skirt" that prevents it being plugged into a 16-bit ISA slot, which is
pretty weird for a card with a silkscreened copyright date of 1986.


TRANSCOPY BOARD

The TRANSCOPY board has one input port and one output port. Both ports are accessed by the same address. The default port address is 6EF. Alternate port addresses of 66F, 76F, and 7EF are available by cutting one or both of the "bow ties" on the board. Reading and writing data to/from the drive is accomplished through use of DMA.

INPUT PORT

The input port is a single bit status port. Bit 7 of this port indicates the current state of the index signal from the drive. This is low for the duration of the index pulse (approx. 3 to 5 ms) and high otherwise.

OUTPUT PORT

The output port is an 8-bit control port defined as follows:

BitDefinition
7CD1
6CD0
5COUNT2
4COUNT1
3COUNT0
2WTENBL
1RDENBL
0GO

During reading, CD1 and CD0 are used to determine the data rate for the WS9216 (or UM8326) digital phase lock loop. CD1=0 and CD0=1 is used for reading standard 5 1/4" MFM disks.

During writing, CD1, CD0, COUNT2, COUNT1, and COUNT0 are used to determine the write clock divisor. The write clock frequency is equal to 16 MHz/divisor.

For writing standard 5 1/4" MFM disks, the following values are used:

COUNT2CD1CD0COUNT1COUNT0DIVISOR
011002812% fast
01101299% fast
01110306% fast
01111313% fast
1000032nominal (center) frequency
10001333% slow
10010346% slow
10011359% slow

WTENBL is used to enable writing to the drive. The /WRITE GATE signal to the drive is active (low) whenever WTENBL is high.

RDENBL is used to enable reading from the drive.

GO is used to enable DMA activity to/from the board. The DMA channel used is jumper selectable for either channel 1 or 2.

READING A TRACK

Generally a track is read from leading edge of index to leading edge of index. Since a bit is read every 2 us, the usual track length is around 3100H bytes. Since tracks may be longer, a DMA count of 34FFH is typically used. No data separation or byte boundary synchronization is performed by the hardware. The raw bits off the track are read into the DMA buffer.

The read routine flowchart follows:

Head selection is accomplished by giving the NEC a READ ID command for the desired head, but not requesting the bytes from the result phase until later. The proper head will be selected until these result phase bytes are requested, which is done at the end (DESELECT HEAD).

The DMAGATE on the IBM controller must be turned off if DMA channel 2 is used, since the controller also uses this channel. A false disk interrupt is usually generated when DMAGATE is turned on or off because DMAGATE also controls the disk interrupt lines.

When setting up DMA, make sure that no attempt is made to cross a 64k page boundary.

WRITING A TRACK

Writing a track is very similar to reading. The write flowchart follows:

It is necessary to turn off WTENBL before allowing DMA to complete in order to avoide extraneous writing to the drive after index.

It is possible to write past index if it is desired to place the track splice at some other point on the track.