Floppy disk controller

Floppy disk controller

A floppy disk controller (FDC) is a special-purpose chip and associated disk controller circuitry that directs and controls reading from and writing to a computer's floppy disk drive (FDD). This article contains concepts common to FDCs based on the NEC µPD765 and Intel 8072A or 82072A and their descendants, as used in the IBM PC and compatibles from the 1980s and 1990s. The concepts may or may not be applicable to, or illustrative of, other controllers or architectures.

Contents


Overview

A single floppy disc controller (FDC) board can support up to four floppy disk drives. The controller is linked to the system bus of the computer and appears as a set of I/O ports to the CPU. It is often also connected to a channel of the DMA controller. On the x86 PC the floppy controller uses IRQ 6, on other systems other interrupt schemes may be used. The floppy disc controller usually performs data transmission in direct memory access (DMA) mode.

The diagram below shows an floppy disc controller which communicates with the CPU via an Industry Standard Architecture (ISA) bus. An alternative arrangement which is more usual in recent designs has the FDC included in a super I/O chip which communicates via a Low Pin Count (LPC) bus.

Block diagram showing FDC communication with the CPU and the FDD.

Most of the floppy disc controller (FDC) functions are performed by the integrated circuit but some are performed by external hardware circuits. The list of functions performed by each is given below.

Floppy disk controller functions (FDC)

  • Translate data bits into MFM or GCR format to be able to record them
  • Interpret and execute commands such as seek, read, write, format, etc
  • Error detection with checksums generation and verification, like CRC
  • Synchronize data with phase-locked loop (PLL)

External hardware functions

  • Selection of floppy disk drive (FDD)
  • Switching-on the floppy drive motor
  • Reset signal for the floppy controller IC
  • Enable / disable interrupt and DMA signals in the floppy disc controller (FDC)
  • Data separation logic
  • Write pre-compensation logic
  • Line drivers for signals to the controller
  • Line receivers for signals from the controller

Input / Output ports

The FDC has three I/O ports. These are:

  • Data port
  • Main status register (MSR)
  • Control port

The first two reside inside the FDC IC while the Control port is in the external hardware. The addresses of these three ports are as follows.

Port Address
[hex]
Port Name Location Port Type
3F5 Data Register FDC IC Bidirectional I/O
3F4 Main Status Register FDC IC Input
3F2 Digital Control Port External Hardware Output

Data port

This port is used by the software for three different purposes:

  • While issuing a command to the FDC IC, command and command parameter bytes are issued to the FDC IC through this port. The FDC IC stores the different parameters and the command in its internal registers.
  • After a command is executed, the FDC IC stores a set of status parameters in the internal registers. These are read by the CPU through this port. The different status bytes are presented by the FDC IC in a specific sequence.
  • In the programmed and interrupt mode of data transfer, the data port is used for transferring data between the FDC IC and the CPU IN or OUT instruction.

Main Status Register (MSR)

This port is used by the software to read the overall status information regarding the FDC IC and the FDD's. Before initiating a floppy disk operation the software reads this port to confirm the readiness condition of the FDC and the disk drives to verify the status of the previously initiated command. The different bits of this register represent :

Bit Representation
0 FDD 0 : Busy in seek mode
1 FDD 1 : Busy in seek mode
2 FDD 2 : Busy in seek mode
3 FDD 3 : Busy in seek mode
4 FDC Busy; Read/Write command in progress
5 Non-DMA mode
6 DIO; Indicates the direction of data transfer between the FDC IC and the CPU
7 MQR; Indicates data register is ready for data transfer
Explanations
MQR 1 = data register ready, 0 = data register not ready
DIO 1 = controller has data for CPU, 0 = controller expecting data from CPU
Non-DMA 1 = Controller Not In DMA Mode, 0 = Controller In DMA Mode
FDC Busy 1 = Busy, 0 = Not Busy
FDD 0,1,2,3 1 = Running, 0 = Not Running

Digital Control Port

This port is used by the software to control certain FDD and FDC IC functions. The bit assignments of this port are:

Bit Representation
0 and 1 Device number to be selected
2 RESET FDC IC (Low)
3 Enable FDC interrupt and DMA request signals
4 to 7 Turn ON the motor in disk drive 0, 1, 2 or 3 respectively

Format data

Drive Format Capacity Transfer
speed
[kbit/s]
RPM Tracks TPI Comment
8" SD 8" SD 80 kB 33.333 360 32 48 Only on old controllers.[1]
5.25" SD 5.25" SD 160 kB 125 40 Only on old controllers.
5.25" SD 5.25" SD 171 kB 250 - 308 35 Only on C1541 compatibles.
5.25" SD 5.25" SD 180 kB 150 40 Only on old controllers.
5.25" DD 5.25" DD 360 kB 250 300 40 [2]
5.25" HD 5.25" DD 360 kB 300 360 40 48 [3][4]
5.25" HD 5.25" HD 1.2 MB 500 360 80 96 Up to 83 tracks. Different biasing current.[3][4]
5.25" HD 5.25" HD 720 kB 300 360 80 Up to 83 tracks.[2]
3.5" DD 3.5" DD 720 kB 250 300 80 135 Up to 83 tracks.[2][5]
3.5" DD 3.5" DD 800 kB 250 300 80 Used by C1581.
3.5" DD 3.5" DD 880 kB 250 300 80 Up to 83 tracks. Used by Amiga computers.
3.5" DD 3.5" DD 360 kB 250 300 40 [2]
3.5" HD 3.5" DD 720 kB 250 300 80 Up to 83 tracks.[2]
3.5" HD 3.5" HD 1.44 MB 500 300 80 135 Up to 83 tracks.[2][6]
3.5" HD 3.5" HD 1.76 MB 250 300 80 Used by Amiga computers.
3.5" ED 3.5" ED 2.88 MB 1000 300 80 135 Up to 83 tracks.[7][5]

[8]

Sides:

Density:

[9]

Floppy 3 mode

Primarily in Japan there are 3,5" floppy drives that support 3 modes of disk formats - 1.44MB, 1.2MB and 720kB. Hence the name "Floppy 3 mode". Some BIOS have this setting. If your floppy drive is a Japanese 3-mode type. Then you must enable this setting for that drive to make it work correctly.[10] Originally the high-density mode for 3,5" floppy drives in Japan only supported 1.2 MB capacity unlike the 1.44 MB capacity that is used elsewhere. [11]

Further reading

See also

References

  1. ^ hypertextbook.com - Angular Speed of a Floppy Disk
  2. ^ a b c d e f unifr.ch - sys/src/kernel/floppy.c
  3. ^ a b iesleonardo.info - This diskette tutorial provides technical information concerning diskettes
  4. ^ a b oldskool.org - Let HD 5,25" FDDs operate at 300 rpm instead of 360 rpm
  5. ^ a b intel.com - Intel 82077SL for Super Dense Floppies
  6. ^ yi.org - High Density Floppy Disks Mf2hd Disk 3 5 1 Pk
  7. ^ mcamafia.de - IBM Personal system/2, 3,5"-inch Diskette Drives, Technical Reference
  8. ^ "Linux-2.6.17/drivers/block/floppy.c". http://www.gelato.unsw.edu.au/lxr/source/drivers/block/floppy.c.  090504 gelato.unsw.edu.au
  9. ^ "What is the difference between the traditional floppy disk and the high capacity floppy disks? - Yahoo! Answers". http://answers.yahoo.com/question/index?qid=20091020155207AAkQb3i.  100626 answers.yahoo.com
  10. ^ [http://classic-web.archive.org/web/20041028094210/http://www.rojakpot.com/default.aspx?location=8&var1=0&var2=89 rojakpot.com - Floppy 3 Mode Support]
  11. ^ books.google.com - Fix Your Own PC by Corey Sandler

Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Floppy Disk Controller —   [dt. »Disketten Controller«], Controller für das Diskettenlaufwerk, heute meist in dieses Laufwerk integriert. Er steuert vor allem die Zugriffe und die Datenübertragung …   Universal-Lexikon

  • 4FDC Floppy Disk Controller — The Cromemco 4FDC Floppy Disk Controller is designed to interface both 5 and 8 inch floppy disk drives to the S 100 computer bus used in Cromemco and other IEEE 696 computers. It also contains an RS232 serial I/O channel with software selectable… …   Wikipedia

  • Floppy disk — Floppy redirects here. For other uses, see Floppy (disambiguation). 8 inch, 5 1⁄4 inch, and 3 1⁄2 inch floppy disks …   Wikipedia

  • Floppy-Disk-Adapter —   [dt. »Diskettenadapter«], Floppy Disk Controller in Form einer separaten Steckkarte …   Universal-Lexikon

  • Disk controller — The disk controller is the circuit which enables the CPU to communicate with a hard disk, floppy disk or other kind of disk drive. Early disk controllers were identified by their storage methods and data encoding. They were typically implemented… …   Wikipedia

  • Floppy Disk — Speichermedium Diskette 90 mm (3,5″) Diskette Allgemeines Typ Magnetischer Datenträger Kapazität bis 240 MB[1] Lebensdauer …   Deutsch Wikipedia

  • Floppy Disk Drive — Speichermedium Diskette 90 mm (3,5″) Diskette Allgemeines Typ Magnetischer Datenträger Kapazität bis 240 MB[1] Lebensdauer …   Deutsch Wikipedia

  • Floppy disk — Speichermedium Diskette 90 mm (3,5″) Diskette Allgemeines Typ Magnetischer Datenträger Kapazität bis 240 MB[1] Lebensdauer …   Deutsch Wikipedia

  • disk controller —    The electronic circuitry that controls and manages the operation of floppy disks and hard disks. A single disk controller may manage more than one hard disk. Many disk controllers also manage floppy disks and compatible tape drives. In the… …   Dictionary of networking

  • hard-disk controller —    An expansion board that contains the necessary circuitry to control and coordinate a hard disk drive. Many hard disk controllers can manage more than one hard disk, as well as floppy disks and tape drives. On some PCs, the hard disk controller …   Dictionary of networking

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”