请输入您要查询的百科知识:

 

词条 Floppy-disk controller
释义

  1. Overview

      Floppy disk controller functions (FDC)    External hardware functions  

  2. Input/output ports for common x86-PC controller

      Data port    Main status register (MSR)    Digital control port  

  3. Interface to the floppy disk drive

  4. Format data

  5. {{anchor|3mode}}"3-mode" floppy drive

  6. See also

  7. References

  8. Further reading

  9. External links

{{Use dmy dates|date=August 2013}}

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 8272A 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.

Overview

A single floppy-disk 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 disk controller usually performs data transmission in direct memory access (DMA) mode.

The diagram below shows a floppy disk controller which communicates with the CPU via an Industry Standard Architecture (ISA) bus or similar bus and communicates with the Floppy Disk drive with a 34 pin ribbon cable. 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.

Most of the floppy disk 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 FM, MFM, M²FM, 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 disk 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 for common x86-PC controller

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

  • Data port
  • Main status register (MSR)
  • Digital 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 port 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

Interface to the floppy disk drive

The controller connects to the drive using a flat ribbon cable with 34 connectors split between the host, the 3.5" drive, and the 5.25" drive. This type of cable is called a universal connector.[1] In the IBM PC family and compatibles, a twist in the cable is used to distinguish disk drives by the socket to which they are connected. All drives are installed with the same drive select address set, and the twist in the cable interchange the drive select line at the socket. The drive that is at furthest end of the cable additionally would have a terminating resistor installed to maintain signal quality.[2]

Pin No.Signal nameDescription

2

/REDWC

Density Select 1=Low/0=High

4

N/C

Reserved

6

N/C

Reserved

8

/INDEX

0=Index

10

/MOTEA

0=Motor Enable Drive 0

12

/DRVSB

Drive Select 1

14

/DRVSA

Drive Select 0

16

/MOTEB

0=Motor Enable Drive 1

18

/DIR

0=Direction Select

20

/STEP

0=Head Step

22

/WDATE

Write Data

24

/WGATE

Floppy Write Enable, 0=Write Gate

26

/TRK00

0=Track 00

28

/WPT

0=Write Protect

30

/RDATA

Read Data

32

/SIDE1

1=Side 0/0=Side 1

34

/DSKCHG

1=Disk Change/0=Ready

Floppy Drive A Pin Out

Odd pins 1 thru 33 are ground

ControllerDrive ADrive BDescription

Wire 1-9

1-9

1-9

1-9

No Change

Wire 10

10

16

10

Motor Enable Drive 0/1

Wire 11

11

15

11

Ground, No Change

Wire 12

12

14

12

Drive Select 0/1

Wire 13

13

13

13

Ground, No Change

Wire 14

14

12

14

Drive Select 0/1

Wire 15

15

11

15

Ground, No Change

Wire 16

16

10

16

Motor Enable Drive 0/1

Wire 17-34

17-34

17-34

17-34

No Change

Floppy Drive A/B Twist Pin Out

Further description of the interface signals are contained in specifications of the controllers or drives[3].

Format data

{{main|List of floppy disk formats}}

Many mutually incompatible floppy disk formats are possible; aside from the physical format on the disk, incompatible file systems are also possible.

Drive Format Capacity Transfer
speed
[kbit/s]
RPM Tracks TPI Comment
8-inch SD8-inch SD80 KB33.3333603248 Only on old controllers.[3]
5.25-inch SD5.25-inch SD160 KB12540 Only on old controllers.
5.25-inch SD5.25-inch SD171 KB{{nowrap|250–308}}3003548[4] Only on C1541 compatibles.
5.25-inch SD5.25-inch SD180 KB15040 Only on old controllers.
5.25-inch DD5.25-inch DD320/360/400 KB2503004048 [5] 8/9/10 512K sectors respectively.
5.25-inch DD {{nowrap|(96 tpi)}}5.25-inch QD (2DD)800 KB2503008096[6]
5.25-inch HD5.25-inch DD360 KB3003604048[8][9]
5.25" HD5.25" HD1200 KB5003608096 Up to 83 tracks. Different biasing current.[7][8]
5.25" HD5.25" HD720 KB30036080 Up to 83 tracks.[5]
3.5" DD3.5" DD720 KB25030080135 Up to 83 tracks.[5][9]
3.5" DD3.5" DD800 KB394–59080 Used by Apple Macintosh.[10]
3.5" DD3.5" DD800 KB25030080 Used by Commodore 1581.
3.5" DD3.5" DD880 KB25030080 Up to 83 tracks. Used by Amiga computers.
3.5" DD3.5" DD360 KB25030040[5]
3.5" HD3.5" DD720 KB25030080 Up to 83 tracks.[5]
3.5" HD3.5" HD1440 KB50030080135 Up to 83 tracks.[5][11]
3.5" HD3.5" HD1760 KB25015080 Used by Amiga computers.
3.5" ED3.5" ED2880 KB100030080135 Up to 83 tracks.[9][12]
[13]

Sides:

  • SS (or 1S) – Single sided
  • DS (or 2S) – Double sided

Density:

  • SD (or 1D) – Single density (FM)
  • DD (or 2D) – Double density (most often MFM)
  • QD (or 4D) – Quad density
  • HD – High density
  • ED – Extra-high density
  • TD – Triple density

{{anchor|3mode}}"3-mode" floppy drive

Primarily in Japan there are 3.5" high-density floppy drives that support three modes of disk formats instead of the normal two – 1440 KB (2 MB unformatted), 1.2 MB (1.6 MB unformatted) and 720 kB (1 MB unformatted). Originally, the high-density mode for 3.5" floppy drives in Japan only supported a capacity of {{nowrap|1.2 MB}} instead of the {{nowrap|1440 KB}} capacity that was used elsewhere.[14] While the more common 1440 KB format spun at 300 rpm, the 1.2 MB format instead spun at 360 rpm, thereby closely resembling the 1.2 MB format with 15 sectors per track previously found on 5.25" high-density floppy drives. Later Japanese floppy drives incorporated support for both high-density formats (as well as the double-density format), hence the name 3-mode. Some BIOSes have a configuration setting to enable this mode for floppy drives supporting it.[15]

See also

  • List of floppy disk formats
  • Western Digital FD1771
  • Integrated Woz Machine (IWM)
  • Paula (Amiga controller)

References

1. ^{{cite web |last1=Davis |first1=Larry |title=Floppy Drive Pinout, Signal names, Pin out Description and Cable twist wiring |url=http://www.interfacebus.com/PC_Floppy_Drive_PinOut.html |website=www.interfacebus.com |accessdate=January 29, 2019 |date=June 13, 2015}}
2. ^ Scott Mueller, Upgrading and Repairing PCs, Second Edition, Que, 1992, {{ISBN|0-88022-856-3}},page 487
3. ^hypertextbook.com – Angular Speed of a Floppy Disk
4. ^{{cite web|title=C 64 Workshop / C= 8 Bit & Peripherals|date=1998-05-19 |accessdate=2016-04-18|url=https://ist.uwaterloo.ca/~schepers/MJK/1541__.html}}
5. ^{{Cite web |url=http://diuf.unifr.ch/pai/education/2005_2006/courses/os/minix/idx/S/sys%20src%20kernel%20floppy.c.html |title=unifr.ch – sys/src/kernel/floppy.c |access-date=5 May 2011 |archive-url=https://web.archive.org/web/20110719150025/http://diuf.unifr.ch/pai/education/2005_2006/courses/os/minix/idx/S/sys%20src%20kernel%20floppy.c.html |archive-date=19 July 2011 |dead-url=yes |df=dmy-all }}
6. ^{{cite web|url=http://www.colorcomputerarchive.com/coco/Documents/Manuals/Hardware/Tandon%20TM100%20Floppy%20Drive%20(Tandon).pdf|title=Product specification single-sided and double-sided TM100 series 5 1/4-inch flexible disk drives 48, 96, and 100 tracks per inch|accessdate=2014-11-05}}
7. ^iesleonardo.info – This diskette tutorial provides technical information concerning diskettes
8. ^oldskool.org – Let HD 5,25" FDDs operate at 300 rpm instead of 360 rpm
9. ^intel.com – Intel 82077SL for Super Dense Floppies {{webarchive|url=https://web.archive.org/web/20121008000235/http://download.intel.com/design/archives/periphrl/docs/29209302.pdf |date=8 October 2012 }}
10. ^{{cite web |url=http://www.retrotechnology.com/herbs_stuff/drive.html#data |title=Floppy Drive Tech Info |author-last=Johnson |author-first=Herbert R. |date=2016-12-22 |access-date=2017-01-14}}
11. ^yi.org – High Density Floppy Disks Mf2hd Disk 3 5 1 Pk{{dead link|date=October 2017 |bot=InternetArchiveBot |fix-attempted=yes }}
12. ^mcamafia.de – IBM Personal system/2, 3,5"-inch Diskette Drives, Technical Reference
13. ^{{cite web|title=Linux-2.6.17/drivers/block/floppy.c|url=http://www.gelato.unsw.edu.au/lxr/source/drivers/block/floppy.c}}{{dead link|date=October 2017 |bot=InternetArchiveBot |fix-attempted=yes }} 090504 gelato.unsw.edu.au
14. ^[https://books.google.com/books?id=BIplH6DHz6UC&pg=PA509&lpg=PA509 books.google.com – Fix Your Own PC by Corey Sandler]
15. ^[https://web.archive.org/web/20041028094210/http://www.rojakpot.com/default.aspx?location=8&var1=0&var2=89 rojakpot.com – 3mode floppy support]
  • {{cite web|work=Frequently Given Answers|author-first=Jonathan|author-last=de Boyne Pollard|url=//jdebp.eu./FGA/floppy-discs-are-90mm-not-3-and-a-half-inches.html|title=There is no such thing as a 3.5-inch floppy disc.|year=2003}}
  • ISO/IEC 8860-1:1987 Double-Density (DD)
  • ISO/IEC 9529-1:1989 High-Density (HD)
  • ISO 10994-1:1992 Extra-high-density (ED)
  • ECMA-147

Further reading

  • {{cite book |title=NEC µPD72070 - Floppy Disk Controller Specification Version 2.0 |version=2.0 preliminary |publisher=NEC Corporation |date=October 1991 |url=http://dec8.info/Apple/uPD72070.pdf |access-date=2017-03-20 |dead-url=no |archive-url=https://web.archive.org/web/20170320235834/http://dec8.info/Apple/uPD72070.pdf |archive-date=2017-03-20}}
  • {{cite book |title=Intel 82077SL for Super-Dense Floppies |author-first=Katen A. |author-last=Shah |publisher=Intel Corporation, IMD Marketing |orig-year=September 1992, April 1992 |edition=2 |date=1996 |id=AP-358, 292093-002 |type=Application Note |url=http://www.pix.net/languard/pdfs/29209302.pdf |access-date=2017-06-19 |dead-url=no |archive-url=https://web.archive.org/web/20170619210818/http://www.pix.net/languard/pdfs/29209302.pdf |archive-date=2017-06-19}}

External links

  • viralpatel.net A Tutorial on Programming Floppy Disk Controller
  • isdaman.com Programming Floppy Disk Controllers

3 : Computer storage devices|Floppy disk computer storage|Integrated circuits

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 18:49:05