Disk Drive Control & Interfacing

Author(s): Bob Gilder
Publication: LISTing Newsletter
Date: December 1985
Pages: 11-13

Part of my makeup is being extremely inquisitive. Disk drives for the 2068 were about to enter my life and I didn’t know much about them except placing a disk in a slot and entering a command to operate the system.

I searched through many publications and books for any information which would provide me with enough theory to add to my disk operating systems and keep them going if problems were to occur. By no means do I consider myself an expert in this field,however, I have gathered much information on this subject and have utilized it to support and extend my disk drive systems.

Perhaps you too have the same desires as I, so I have decided to write the following article; “Disk Drive Control And Interfacing”.

Part 1 of this article provides information on the 34 pin disk drive connector with a brief explanation of the function of the primary operating pins of this connector. Part 2 will focus on recording methods, formatting and soft sectoring. Part 3 will cover the disk controller.

Division of the disk drive electronics: computer, floppy disk controller (FDC) and drive electronics with their control lines
Division of the disk drive electronics: computer, floppy disk controller (FDC) and drive electronics with their control lines
  • The disk drive electronics is used for operation of the motors and to process the computer interfacing.
  • The computer disk drive interface circuitry is dedicated to monitor the disk drive and its’ associated disk controller.

The connections between the disk drive electronics and the computer disk interface electronics is to provide compatibility for the computer industry. 3 inch, 3 1/2 inch and 5 1/4 inch drive connectors use 34 pin pc edge connectors (Shugart compatible). My own personal experience has been with the Remex 5 1/4 inch drives and the Hitachi 3 inch drives which are used with the Aerco disk interface and the Timex Portugal disk operating system respectively.

For those individuals dedicated to “rolling their own” drive assemblies, I have included the following table which explains the most used 34 pin connector functions.

EXPLANATION OF FUNCTIONS

READ DATA, pin 30 – This line passes a stream of pulses to the computer after processing the information from the read head output. The pulses correspond to the pattern of magnetization on the disk as it passes under the read head, wherever it might be on the disk. Note that the read data line presents a stream of pulses, not data. The disk controller provides conversion of pulses to useful data.

INDEX SECTOR, pin 08 – This line is the amplified and “squared up” output index sector. Each time the disk’s index hole passes under the index sector a short pulse of approximately 40 ms for a 5 1/4 inch disk is output on this line.

The index sector pulse line is sometimes used by the disk controller to detect the presence of a disk in drives that do not have a ready line. Index sector pulses indicate to the controller that a disk is in place and is spinning.

TRACK ZERO (T00), pin 26 – The T00 line is the output from the track zero switch. It is used by the disk controller to tell when the head is positioned over track zero.

WRITE PROTECT, pin 28 – This line is the output from the write protect switch. The disk controller tests the status of this line to discover if it is permissible to write on the disk.

WRITE GATE, pin 24 – This line sets the drive either to read or write to a disk. If the write gate line is set low then the drive’s write electronics are enabled.

WRITE DATA, pin 22 – The write data line is used by the disk controller to send a stream of pulses to the drive’s write amplifiers. These pulses only reach the write head if the write gate line has first been set low.

MOTOR ON, pin 06 – This line does exactly what the name suggests. A low on this line turns the drive’s motor on and starts the diskette spinning. Some drives do not use this line as their motors are permanently running. Some drives also load the read/write head as the motor is started.

STEP DIRECTION, pin 18 – This line determines the direction that the head will move in response to the next pulse on the step line. If it is low it will move towards the center of the disk.

STEP PULSE, pin 20 – This line causes the head to move by one track in the direction determined by the direction select line. A pulse on the step line causes the head to move.

DRIVE SELECT LINES DS1,2,3,4 (D0 – D3), pins 10,12,14 & 06 – The drive select lines (DS1 – DS4) are in use when more than one drive is used. It is normal to connect all of the interface lines to all of the drives; this is “daisy chaining”.

The individual drive select lines, DS1 – DS4 are also connected to each drive but only one line is setup to respond to each line. A drive is selected and will respond to the disk controller’s commands if its drive select line is low. If the line is high, then all signals on the input lines are ignored and no signals are entered into the output line.

EDGE CONNECTOR PINOUTS

PIN NO.        FUNCTION

 02            HEAD LOAD/SPARE      (not used)
 04            IN USE/HEAD LOAD     (not used)
 06            DS4 - DRIVE SELECT 4, "D" DRIVE
 08            INDEX SELECTOR PULSE
 10            DS1 - DRIVE SELECT 1, "A" DRIVE
 12            DS2 - DRIVE SELECT 2, "B" DRIVE
 14            DS3 - DRIVE SELECT 3, "C" DRIVE
 16            MOTOR ON
 18            STEP DIRECTION
 20            STEP PULSE
 22            WRITE DATA
 24            WRITE GATE
 26            TRACK ZERO PULSE  (T00)
 28            WRITE PROTECT
 30            READ DATA
 32            SIDE SELECT/RESERVED (not used)
 34            READY

NOTE: All odd numbered pins are ground returns.

Edge connector outline showing the key slot and pins 2 to 34
Edge connector outline showing the key slot and pins 2 to 34

4 PIN POWER CONNECTOR (AMP P/N 350211-1)

PIN 1 +12 VDC
PIN 2 GROUND
PIN 3 GROUND
PIN 4 + 05 VDC

4 pin power connector: pin 1 +12V, pins 2 and 3 0V, pin 4 +5V
4 pin power connector: pin 1 +12V, pins 2 and 3 0V, pin 4 +5V

Acknowledgement: Electronics & Computing Monthly -Mike James

Side note: I have been operating the Timex Portugal Disk System with 5 1/4 inch disk drives. If you intend to operate your system with 5 1/4 inch drives , DO NOT USE THE ORIGINAL TIMEX POWER SUPPLY; you will damage it if you do. I use an ASTEC switcher supply with an additional isolated 5 volt circuit for the controller. The circuit for this modification to the ASTEC switcher will be included next month with Part 2 of this article.

The following Mail Order firms have what I feel the best buys for disk drive associated hardware, however their supplies may be limited:

Remex 5 1/4 inch drives $39.95 + $2.00 shipping each drive. MC HOWARD ELECTRONICS, INC, 9419 Neils Thompson Dr., Austin, Texas 78759 (512) 837-2525

Dual 34 Pin disk drive interface cable: 14 1/2 inch, 34 conductor ribbon cable with one 34 pin edge connectors and one 34 pin header socket. $2.88 ea, 5/$13.00 + PP. HI TECH SALES (B & F), 119 Foster St., Peabody, Mass 01961-3357 (617) 532-2323

Astec disk drive switching power supply +5 VDC 2Amps, +12 VDC 1.8 Amps, -12 VDC 100 Ma. Will operate 3 5 1/4 drives. $17.50 Each +PP. HALTED SPECIALISTS CO., INC; 827 E. Evelyn Ave., Sunnyvale, Ca. 94086 (408) 732-1573 Note: JDR Microdivices also has this item at $19.95 ea.

Amdisk III B dual 3 inch Hatichi drives with power supply, fan and case at $125.00 +$8.00 PP. Operates well with the Timex Portugal system: PERIPHERALS DIRECT LTD., P. O. Box 4301, Northbrook, Il 60065 (312) 498-9244

Nashua 5 1/4 inch diskettes: Box of 10, $9.90; 50, $44.50. PP additional. JDR MICRODIVICES, 1224 S. Bascom Ave., San Jose, Ca. 95218 (800) 538-5000 (408) 995-5430

AMDEK 3 inch diskettes: 1 – 9 at $3.00 ea, 10 at $27.50, 50 at $112.50, 100 at $220.00: DIGI-KEY CORP., P. O. Box 677, 701 Brooks Ave. South, Thief River Falls, Mn 56701 (800) 344-4539

Bob Gilder…..


80 COLUMN PRINTER FOR $20.00?

Yes, it is possible. Using last months centronics interface port, the Gavilan printer mechanism, and a little skill you can have 80 cloumn print from your TIMEX. Details on assembly and software next month. Here is a sample of the Gavalin’s print quality:

Gavilan printer character set sample
Gavilan printer character set sample