1986 Storage Management Products Handbook Corita Kent, the cover artist, is an American whose work presents an optimistic, yet philosophical view of the world we live in. A former Catholic nun and teacher, Corita now devotes her life and energies to her artwork and the "human needs she feels transcend national and religious barriers." A true "citizen of the world," Corita's philosophy positions her "on the positive side of hope." Her depiction of the Western Digital mission ... "Making the leading edge work for you" ... dramatizes the spectrum of solutions we provide our customers. Information furnished by Western Digital Corporation is believed to be accurate and reliable. However, no responsibility is assumed by Western Digital Corporation for its use; nor for any infringements of patents or other rights of third parties which may result from Its use. No license is granted by Implication or otherwise under any patent or patent rights of Western Digital Corporation. Western Digital Corporation reserves the right to change specifications at any time without notice. COPYRIGHT © 1984, 1985, 1986 WESTERN DIGITAL CORPORATION ALL RIGHTS RESERVED This document Is protected by copyright, and contains Information proprietary to Western Digital Corporation. Any copying, adaptation, distribution, public performance, or public display of this document without the express written consent of Western Digital Corporation is strictly prohibited. The receipt or possesion of this document does not convey any rights to reproduce or distribute its contents, or to manufacture, use, or sell anything that It may describe, in whole or in part, without the specific written consent of Western Digital Corporation. ii Making the Leading Edge Work for You This handbook is designed for you, the engineer. It's intended to be a useful tool, enabling you to make a preliminary evalua- tion of our products and later, with samples in hand, design our products into your own systems. The data in these pages have been reviewed by our Marketing, Engineering, Manufacturing, and Quality groups. Now we would like you to review the information we've provided and tell us how we can improve it. Please feel free to suggest any changes, additions, or clarifications that occur to you. And don't hesitate to call to our attention any sins of omission or commission we may have made. We're eager to help upgrade the quality of information our industry provides to its customers. So, please, help us. Direct your comments to: WESTERN DIGITAL CORPORATION Literature Department 2445 McCabe Way Irvine, CA 92714 (714) 863-0102 iii WESTERN DIGITAL COR P 0 RAT o N Regional and District Sales Offices NORTHEASTERN SOUTHERN WESTERN UNITED STATES/EASTERN CANADA UNITED STATES UNITED STATES/WESTERN CANADA Corporate Place 1·95 3483 Satellite Blvd. 2302 Martin Street 100 Corporate Place Suite 221 Suite 325 Suite 302 Duluth, GA 30136 Irvine, CA 92714 Peabody, MA 01960 (404) 476·7704 (714) 851·1221 (617) 535·5914 2300 W. Meadowview Road 5743 Corsa Avenue 111 Madison Avenue Suite 209 Suite 201 Morristown, NJ 07960 Greensboro, NC 27407 Westlake Village, CA 91361 (201) 292·1490 (919) 299·6733 (818) 991·2556 2611 Westgrove Drive 201 San Antonio Circle NORTH CENTRAL Suite 113 Building E, Suite 172 UNITED STATES Carrollton, TX 91361 Mountain View, CA 94040 3600 West 80th Street (214) 248·6785 (415) 941·0216 Bloomington, MN 55431 AMTEC CENTER (612) 835·1003 6405 Congress Avenue 1827 Walden Office Sq. Suite 110 Suite 308 Boca Rotan, FL 33431 Schaumburg, IL 60195 (305) 994·6900 (312) 397·3111 INTERNATIONAL OFFICES Western Digital (U.K.) Ltd. Western Digital Corp. 55 East Street 12 Rue Auber Epsom, Surrey KT17 1BP 75009 Paris, France United Kingdom (01) 266·1020 (03727) 42955 Western Digital Japan Ltd. Western Digital Deutschland GmbH 8th Floor Dai-44 Kowa Bldg Prinzregentenstr. 120 1·2·7, Higashiyama, Meguro·Ku 0·8000 Muenchen 80 Tokyo 153 Japan Federal Republic of Germany (03) 791·2001 (089) 470·7021 WESTERN DIGITAL CORPORATION 2445 McCabe Way Irvine, CA 92714 (714) 863-0102 iv Table of Contents Functional Index ........................................................................ vii Numerical Index ........................................................................ ix System Product Quality/Reliability ......................................................... 1 Quality/Reliability to Leading Edge Technology .............................................. 5 Announcing Burn-In Program AvailabilitylWarranties .......................................... 11 Hi-Rei UK" Testing Program ............................................................... 13 Floppy Disk Controller Devices ............................................................ 1-1 Floppy Disk Support Devices ............................................................. 2-1 Winchester Disk Controller Devices ........................................................ 3-1 Winchester Disk Support Devices .......................................................... 4-1 SCSI-Bus Interface Controller ............................................................. 5-1 Winchester Board Products ............................................................... 6-1 Tape Drive Controller Products ............................................................ 7-1 Main Memory Devices ................................................................... 8-1 Integrated Drive Electronics ............................................................... 9-1 Ordering Information ................................................................... ~ 10-1 Package Diagrams ........................................................... " ......... 11-1 Terms and Conditions ................................................................... 11-5 Data Sheets with the Heading below: Advance Information: This product has not been produced in volume and is subject to functional and tim- ing revisions. Prior to designing with the product, it is necessary to contact Western Digital Corporation for current information. v vi Functional Index STORAGE MANAGEMENT PRODUCTS FLOPPY DISK CONTROLLER DEVICES WD177X-00 Floppy Disk Formatter/Controller ..................................... 1-1 WD177X-00 Appl Notes ....................................................... 1-25 WD1772-02 Floppy Disk Formatter/Controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 1-27 WD1772-02 Appl Notes ....................................................... 1-51 FD179X-02 Floppy Disk Formatter/Controller Family .............................. 1-53 FD179X-02 Appl Notes ....................................................... 1-77 WD279X-02 Floppy Disk Formatter/Controller Family .............................. 1-91 WD279X-02 Appl Notes ....................................................... 1-117 FLOPPY DISK SUPPORT DEVICES WD1691 Floppy Support Logic .............................................. 2-1 WD16C92 Floppy Disk Read/Write Support ..................................... 2-9 WD2143-03 Four Phase Clock Generator ........................................ 2-13 WD9216-00/01 Floppy Disk Data Separator ......................................... 2-17 WD92C32-00 Floppy Digital Data Separator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 2-21 WINCHESTER DISK CONTROLLER DEVICES WD1010-05 Winchester Disk Controller .......................................... 3-1 WD1010-05 Appl Notes ....................................................... 3-25 WD1050 SMD Controller/Formatter ........................................... 3-31 WD1050 Appl Notes ....................................................... 3-61 WD1100 Series Winchester Controller Chips ................................... 3-69 WD1100-01 Serial/Parallel Converter ............................................ 3-71 WD1100-03 AM Detector ...................................................... 3-75 WD1100-04 CRC Generator/Checker ............................................ 3-79 WD1100-05 Parallel/Serial Converter ............................................ 3-83 WD1100-06 ECC/CRC Logic ................................................... 3-87 WD1100-07 Host Interface Logic ............................................... 3-93 WD1100-09 Data Separator Support Logic ....................................... 3-97 WD1100-12 Improved MFM Generator ........................................... 3-101 WD2010-05 Winchester Disk Controller .......................................... 3-107 WINCHESTER DISK SUPPORT DEVICES WD10C20-05 Self-Adjusting Data Separator ....................................... 4-1 WD1014 Error Detection/Support Logic Device ................................. 4-15 WD1015 Buffer Manager Control Processor ................................... 4-27 WD1100-21 Buffer Manager Support Device ...................................... 4-31 WD11COO-13 ECC Support Device ............................................... 4-37 WD11COO-17 PC/XT Host Interface Logic Device .. ', ................................ 4-45 SCSI-BUS INTERFACE CONTROLLER WD33C92193 SCSI-Bus l':1terface Controller ........................................ 5-1 vii WINCHESTER BOARD PRODUCTS WD1002-05 Winchester/Floppy Controller ........................................ 6-1 WD1002-HDO Winchester Controller .............................................. 6-11 WD1002-SHD Winchester Disk Controller .......................................... 6-19 WD1002-SAS Winchester/Floppy Disk Controller .................................... 6-31 WD1002-WX1 Winchester Disk Controller .......................................... 6:49 WD1002S-SHD Winchester Disk Controller .......................................... 6-51 WD1002C-WX2 Winchester Controller Board ........................................ 6-89 WD1002S-WX2 Winchester Controller Board ........................................ 6-91 WD1002-WAH Winchester Disk Controller .......................................... 6-119 WD1002-WA2 Winchester Disk Controller .......................................... 6-137 WD1003-SCS Winchester Disk Controller .......................................... 6-157 WD1003-WA2 Winchester Disk Controller .......................................... 6-173 WD1003-WAH Winchester Disk Controller .......................................... 6-175 TAPE DRIVE CONTROLLER PRODUCTS WD2401 Buffer Management Tape Controller .................................. 7-1 WD2404 Tape Data Separator Module ........................................ 7-17 WD24C02 ReadlWrite Formatter .............................................. 7-21 WD1036R-SHD Streaming Tape Controller .......................................... 7-25 WD1036S-WX2 Streaming Tape Controller .......................................... 7-35 MAIN MEMORY DEVICE WD8206 Error Detection and Correction Unit .................................. 8-1 INTEGRATED DRIVE ELECTRONICS WD93020 Integrated Drives .................................................. 9-1 viii Numerical Index Part Number Page WD1002-05 ............................................................................. 6-1 WD1002-HDO ........................................................................... 6-11 WD1002-SAS ........................................................................... 6-31 WD1002-SHD ........................................................................... 6-19 WD1002-WAH .......................................................................... 6-119 WD1002-WA2 ........................................................................... 6-137 WD1002-WX1 ........................................................................... 6-49 WD1002S-SHD .......................................................................... 6-51 WD1002C-WX2 ............................... " ......................................... 6-89 WD1002S-WX2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-91 WD1003-SCS ........................................................................... 6-157 WD1003-WAH .......................................................................... 6-175 WD1003-WA2 ........................................................................... 6-173 WD1010-05 ............................................................................. 3-1 WD1014 ............................................................................... 4-15 WD1015 .............................................. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-27 WD1036R-SHD .......................................................................... 7-25 WD1036S-WX2 .......................................................................... 7-35 WD1050 ............................................................................... 3-31 WD10C20-05 ............................................................................ 4-1 WD1100 ............................................................................... 3-69 WD1100-01 ........................................-..................................... 3-71 WD1100-03 ............................................................................. 3-75 WD1100-04 ............................................................................. 3-79 WD1100-05 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-83 WD1100-06 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-87 WD1100-07 ............................................................................. 3-93 WD1100-09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-97 WD1100-12 ............................................................................. 3-101 WD1100-21 ......................... , ................................................... 4-31 WD11COO-13 ............................................................................ 4-37 WD11 COO-17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-45 WD1691 ............................................................................... 2-1 WD16C92 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9 WD177X-00 ............................................................................. 1-1 WD1772-02 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 1-27 FD179X-02 ............................................................................. 1-53 WD2010-05 ............................................................................. 3-107 WD2143-03 ............................................................................. 2-13 WD2401 ............................................................................... 7-1 WD2404 ............................................................................... 7-17 WD24C02 .............................................................................. 7-21 WD279X-02 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 1-91 WD33C9213 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 WD8206 ............................................................................... 8-1 WD9216-00101 .......................................................................... , 2-17 WD92C32 .............................................................................. 2-21 WD93020 .............................................................................. 9-1 ix x WESTERN DIGITAL c o R p o R A T o N System Product Quality/Reliability QUALITY PROGRAM DESCRIPTION DESIGNING FOR RELIABILITY The Quality Organization shown on the attached The premise upon which board and system manufac- organization chart (Figure 2) reports directly to the turing operations are based is that quality is planned President of Western Digital. It assures compliance and designed-in, not screened-in or selected. A well- to design control, quality, and reliability specifications tested, high-quality design is far more reliable than pursuant to corporate policy. Quality assurance pro- a marginal design with any amount of burn-in or fixes. visions are derived in part from MIL-Q-9858, as applied To assure top quality design, Western Digital main- to high grade commercial products. tains one of the most experienced board/system design staffs in the industry. A tightly controlled CORPORATE QUALITY POLICY design review team comprising members from Quality Assurance, Marketing, Manufacturing and several It is the policy of Western Digital Corporation that experienced design engineers, provides review of every employee be committed to quality excellence each new design several times during its development in producing products/processes which conform to to ensure widest possible performance margins. The acceptable requirements. The total quality program production release procedure assures a checklist for: is managed and monitored by the quality assurance organization. Quality assurance is chartered to review Ci1' Test Method/Program Qualifications marketing product requirements, qualify hardware and Ci1' Characterization Report software designs, certify manufacturing operations Ci1' Field Test (Beta Test) Report and monitor performance/control conformance to pro- Ci1' Product Qualification Audit duct specifications. Ci1' Documentation Package Release for Document Control Primary responsibility for execution of the quality pro- Ci1' SoftwarelDiagnostics Qualification gram rests with functional organizations to design, produce, and market high quality and high reliability products specified to our customers. MAINTAINING QUALITY/RELIABILITY IN PRODUCTION The Quality Control Testing Flow Chart shown on Figure 1 defines the exact stages contained in the production process. Internally manufactured LSI com- ponents undergo 100% testing at maximum specified operating temperatures as well as strict quality con- trols defined to assure high quality and reliability. Components not designed and manufactured by Western Digital are also 100% screened during incoming inspection at 70°C. The tests performed include selective active component burn-in performed at 125°C for 160 hours to insure guaranteed levels of reliability. This 125°C accelerated testing eliminates defects that cannot effectively be accelerated by burning-in boards and systems which have temperature limitations. Key quality control pro- cedures include: ' [g Incoming Inspection Procedure [g In-Process Travel Card Traceability [g Workmanship Standards [g Quality Corrective Action Notice/MRS Procedure [g Quality Audit Procedure PRODUCT FINAL TEST/CORRECTIVE ACTION All boards are 100% in-circuit tested and 100% func- tional tested for acceptable performance according to applicable test specifications on testers qualified by QA. Products are tested at maximum specified temperature and voltage margins using diagnostic software to ensure greater performance margins. Failures are logged on a travel card specifically designed to insure traceability to manufacturing steps and to maintain failure records for QA corrective action. If the board is designed to perform in a Host system, further diagnostics are performed in an environment configured to actual customer requirements. PRODUCT ACCEPTANCE Upon completing the final test, the board/system undergoes QC final workmanship standards inspec- tion and selective samples are audited to the func- tional product specification to guarantee quality at specified operating margins to the customer. 2 Receiving Inspection • 100% Bare Board Testing • 100% lSI Test (max. temp.) • 100% IC Test at 70·C • Power Supply Inspections • Mechanical/visual Inspections Selective Static/Dynamic Burn·in (Active components) Mainframe Mechanical P.C. Board Assembly Assembly Travel Card Traceability Assembly Test (Bed of Nalls) • Shorts/Opens • Orientation Assembly Outgoing Inspection Test Incoming/Travel Card Traceability Functional Test • Voltage Margins • Temperature Margins • Diagnostic Software Mainframe Inspection Final Inspection • Revision Control System Configuration Functional Test • Temp. Margins • Diagnostic Software Functional Audit Travel Card Review Final Inspection Ship System Ship Board Product o LEGEND: Mfg. Operation D Mfg. Inspection Gate 'WaCGate Figure 1. QUALITY CONTROL TESTING FLOW CHART 3 WESTERN DIGITAL CORPORATION CHIEF EXECUTIVE • Systems Quality • LSI Qualification • Document Control • Incoming QC • New Product • Burn·ln/Stress • Wafer Defects Control • Vendor Quality Qualification Requirements • Subsidiary/Offshore QC • LSI Burn·ln • System Test • Reliability Monitor • Process Qualification • LSI Package Monitors Qualification Data • Precap Visuals (883 optional) • Software • Reliability Testing • 100% Test Audit Qualification • Failure Analysis • Package Qualification • Calibration Control '---------'11'----_11'----_ _ _-----' "Systems Design Control" "LSI Design Control" "Manufacturing Assurance" Figure 2. QUALITY ORGANIZATION 4 WESTERN DIGITAL c o R p o R A T o N Quality/Reliability To Leading Edge Technology QUALITY ASSURANCE PROGRAM HIGHLIGHTS Defect control within the process assures the highest levels of built-in reliability. • LSI manufacturing assurance provisions are derived in part from MIL-M-38510 and MIL- • Quality audits and gates are located throughout STD-883B as applied to high grade commerical the manufacturing process in order to assure a components. stable process and thus, a quality product to our customers. Figure 1 illustrates the manufactur- • All process raw materials used in the Mask/Wafer ing/screeninglinspection flow diagram and iden- fabrication and assembly operations are monitored by Material Assurance. tifies the steps as they relate to the production of LSI devices. • Material Assurance maintains a thorough control of incoming material and has developed unique • Testing assures quality margins through 100% testing by manufacturing and, in addition, all pro- "use/stress tests" (look ahead sample build accep- ducts must pass a specified AQL sample test per- tance) which critical material must pass before acceptance. formed by QA at maximum operating temperature as follows: • The product assurance Department continuously Outgoing Quality Levels monitors the internal and external manufacturing flow (shown in Figure 1) and issues process con- SUBGROUPS INSPECTION LEVEL trol reports displaying detailed data and trends for Subgroup 1-Final 100% Electrical the associated areas. Audit @ Max °C 0.5 AQL Document control is an integral part of Product Subgroup 2-Visual (Marking, Lead Assurance. All specifications are issued and Integrity, Package, Verify customer controlled by this activity. shipper) 1.0 AQL - The Western Digital Malaysian assembly Subgroup 3-Shipping Visual Audit 1.0 AQL operation uses specifications and quality con- trol provisions controlled by Document Control. "The double sampling techniques used allow con- Indicators of Malaysia quality are reviewed siderably better AQL's in most all cases. weekly. • LSI devices are 100% tested on industry standard Purchased FAB and assembly operations are test systems. Quality outgoing testing (auditing) individually qualified and are certified against is done on the Fairchild Sentry Series 20 where standard specifications during vendor possible to allow better correlation with qualification and monitored against reliability customers. criteria. 5 • PROGRAMS TO ASSURE OPTIMUM RELIABILITY Improved levels of reliability are available under custom reliability programs using static and dynamic burn-in to further improve reliability. These programs focus on MOS failure mechanisms as follows: FAILURE MECHANISMS IN MOS FAILURE EFFECT ON ESTIMATED SCREENING MECHANISM DEVICE ACTIVATION ENERGY METHOD Slow Trapping Wearout 1.0 eV Static Burn-In Contamination Wearoutl 1.4 eV Static Burn-In Infant Surface Charge Wearout 0.5-1.0 eV Static Burn-In Polarization Wearout 1.0 eV Static Burn-In Electromigration Wearout 1.0 eV Dynamic Burn-in Microcracks Random 100% Temp. Cycling Contacts Wearout/ - Dynamic Burn-in Infant Oxide Defects Infant 0.3 eV Dynamic Burn-In Random at max. voltage Electron Injection Wearout - Low Temp. Voltage Operating Life. Temperature Acceleration of Failure ,---------------------- The Arrhenius Plot defines a failure rate propor- 10" tional to exp (- Ea/kt) where Ea is the activation energy for the failure mechanism. The figure on 10' the right indicates that lower activation energy failures are not effectively accelerated by 10' temperature alone; hense, maximum voltage operation is selectively applied to optimize the .< o I Step 0 0 1 u h V r1 ro C = Side Compare Flag (Bit 1) (1773 only) o I Step-in 0 1 0 u h V r1 ro C = 0, Disable Side Compare I Step-out II Read Sector 0 1 1 0 1 0 u h m hIs V r ro E O/C 0 C = 1, Enable Side Compare For all Type III commands bit 1 must be O. II Write Sector 1 0 1 m hIs E PIC So III Read P = Write Precompensation (Bit 1) (1770/2/3) Address 1 1 0 0 hlo E 0 0 P = O,Enable Write Precomp III Read Track 1 1 1 0 hlo E 0 0 P = 1,Disable Write Precomp III Write Track 1 1 1 1 hlo E PIO 0 IV Force Interrupt 1 1 0 1 13 12 11 10 TYPE IV COMMANDS 13-1 0 Interrupt Condition (Bits 3-0) FLAG SUMMARY 10 = Not Used (WD1770-00, WD1772-00) Not Ready to Ready Transition (WD1773-00) TYPE I COMMANDS 11 = Not Used (WD1770-00, WD1772-00) Ready to Not Ready Transition (WD1773-00) h = Motor On Flag (Bit 3) (1770/2). 12 = Interrupt on Index Pulse h = 0, Enable Spin-up Sequence 13 = Immediate Interrupt h = 1, Disable Spin-up Sequence 13-10 = Terminate without interrupt V = Verify Flag (Bit 2) (1770/2/3) V = 0, No Verify TYPE I COMMANDS V = 1, Verify on Destination Track The Type I Commands include the Restore, Seek, r1' ro = Stepping Rate (Bits 1,0) Step, Step-in, and Step-Out Commands. Each of the WD177o-00 Type I Commands contains a rate field (rO,r1)' which r1 ro WD1773-00 WD1772-00 determines the stepping motor rate. o 0 6 ms 6 ms A 4 /-lsec (MFM) or 8 /-lsec (FM) pulse is provided as o 1 12 ms 12 ms an output to the drive. For every step pulse issued, 1 0 20 ms 2 ms the drive moves one track location in a direction deter- 1 1 30 ms 3 ms mined by the direction output. The chip steps the drive u = Update Flag (Bit 4) (1770/2/3) in the same direction it last stepped unless the com- u = 0, No Update mand changes the direction. u = 1, Update Track Register The Direction signal is active high when stepping in and low when stepping out. The Direction signal is valid 24 /-lsec before the first stepping pulse is TYPE II & III COMMANDS generated. m = Multiple Sector Flag (Bit 4) (1770/2/3) After the last directional step an additional *30 msec of head settling time takes place if the Verify flag is m = 0, Single Sector set in Type I Commands. There is also a *30 msec m = 1, Multiple Sector head settling time if the E flag is set in any Type II H = Motor on Flag (Bit 3) (1770/2) or III Command. H = 0, Enable Spin-up Sequence When a Seek, Step or Restore Command is executed, H = 1, Disable Spin-up Sequence an optional verification of Read/Write head position S = Side Compare Flag (Bit 3) (1773 only) can be performed by setting bit 2 (V = 1) in the com- mand word to a logic 1. The verification operation S = 0, Compare for side 0 begins at the end of the *30 msec settling time after S = 1, Compare ;for side 1 the head is loaded against the media. The track For all Type III commands bit 3 must be O. number from the first encountered 10 Field is com- ao = Data Address Mark (Bit 0) (1770/213) pared against the contents of the Track Register. If So = 0, Write Normal Data Mark the track numbers compare and the 10 Field CRC is So = 1, Write Deleted Data Mark correct, the verify operation is complete and an INTRQ is generated with no errors. If there is a match but not 1-6 Floppy Disk Controller Devices a valid CRC, the CRC error status bit is set (Status grammed via the h Flag to delay for spindle motor Bit 3), and the next encountered ID Field is read from start up time. If the h Flag is not set and the MO the disk for the verification operation. signal is low when a command is received, the WD1770/2-00 forces MO to a logic 1 and waits 6 The WD177X·00 finds an ID Field with correct track revolutions before executing the command. At 300 number and correct CRC within 5 revolutions of the RPM, this guarantees a one second spindle start up media, or the seek error is set and an INTRQ is time. If after finishing the command, the device generated. If V = 0, no verification is performed. remains idle for 9 revolutions, the MO signal goes On the WD1770·00 and WD1772-00 only, all com· back to a logic O. If a command is issued while MO mands, except the Force Interrupt Command, are pro· TYPE I COMMAND FLOW TYPE I COMMAND FLOW Floppy Disk Controller Devices 1-7 is high, the command executes immediately, A verification operation also takes place if the V flag defeating the 6 revolution start up. This feature allows is set. The h bit allows the Motor On option at the consecutive Read or Write commands without waiting start of a command. for motor start up each time; the WD1770/2-00 SEEK assumes the spindle motor is up to speed. This command assumes that the Track Register con- RESTORE (SEEK TRACK 0) tains the track number of the current position of the Upon receipt of this command, the Track 00 ReadjWrite head and the Data Register contains the (TROO) input is sampled. If TROO is active low desired track number. The WD177X-00 updates the indicating the ReadlWrite head is positioned over Track Register and issues stepping pulses in the track 0, the Track Register is loaded with zeroes and appropriate direction until the contents of the Track an interrupt is generated. If TROO is not active low, Register are equal to the contents of the Data stepping pulses at a rate specified by the r1,rO field Register (the desired track location). A verification are issued until the TROO input is activated. operation takes place if the V flag is on. The h bit At this time, the Track Register is loaded with zeroes allows the Motor On option at the start of the com- and an interrupt is generated. If the TROO input mand. An interrupt is generated at the completion of does not go active low after 255 stepping pulses, the the command. Note: When using multiple drives, the WD177X.QO terminates operation, interrupts, and sets Track Register is updated for the drive selected before the Seek Error status bit, providing the V flag is set. seeks are issued. STEP Upon receipt of this command, the WD177X.QO issues one Stepping Pulse to the disk drive. The stepping motor direction is the same as in the previous step VERIFY command. After a delay determined by the r1,rO field, SEQUENCE a verification takes place if the V flag is on. If the U flag is on, the Track Register is updated. The h bit allows the Motor On option at the start of the com- mand. An interrupt is generated at the completion of the command. STEP-IN Upon receipt of this command, the WD177X.QO issues one Stepping Pulse in the direction towards track 76. If the U flag is on, the Track Register is incremented by one. After a delay determined by the r1,rO field, a verification takes place if the V flag is on. The h bit allows the Motor On option at the start of the com- mand. An interrupt is generated at the completion of the command. STEP-OUT Upon receipt of this command, the WD177X-OO issues one stepping pulse in the direction towards track O. If the;U flag is on, the Track Register is decremented by one. After delay determined by the r1,rO field, a verification takes place if the V flag is on. The h bit allows the Motor On option at the start of the com- mand. An interrupt is generated at the completion of the command. TYPE II COMMANDS The Type II Commands are the Read Sector and Write SET Sector commands. Prior to loading the Type II Com- CRC ERROR mand into the Command Register, the computer loads the Sector Register with the desired sector number. Upon receipt of the Type II command, the Busy Status bit is set. If the E flag = 1 the command INTRO executes after a 30 msec delay. RESET BUSY When an ID field is located on the disk, the WD177X-00 compares the Track Number on the ID field with the Track Register. If there is not a match, TYPE I COMMAND FLOW the next encountered ID field is read and a com- parison is again made. If there is a match, the Sec- 1-8 Floppy Disk Controller Devices Each of the Type II Commands contains an m flag which determines if multiple records (sectors) are read or written', depending upon the command. If m = 0, a single sector is read or written and an interrupt is generated at the completion of the command. If m = 1, multiple records are read or written with the Sec- tor Register internally updated so that an address verification occurs on the next record. The WD177X{)() continues to read or write multiple records and updates the Sector Register in numerical ascending sequence until the Sector Register exceeds the number of sectors on the track or until the Force Inter- rupt Command is loaded into the Command Register, which terminates the command and generates an interrupt. For example: If the WD177X-OO is instructed to read sector 27 and there are only 26 on the track, the Sec- tor Register exceeds the number available. The WD177X{)() searches for 5 disk revolutions, interrupts out, resets Busy, and sets the Record Not Found Status Bit. READ SECTOR SETMO Upon receipt of the Read Sector Command, the Busy WAIT 61NDEX PULSES Status Bit is set, then when an ID field is encountered that has the correct track number, correct sector number, and correct CRC, the data field is presented to the computer. The Data Address Mark of the data field is found with 30 bytes in single density and 43 bytes in double density of the last ID field CRC byte. If not, the ID field is searched for and verified again followed by the Data Address Mark search. If, after five revolutions the DAM is not found, the Record Not Found Status Bit is set and the operation is ter- minated. When the first character or byte of the data field is shifted through the DSR, it is transferred to the DR, and DRa is generated. When the next byte is accumulated in the DSR, it is transferred to the DR and another DRa is generated. If the computer has not read the previous contents of the DR before a new character is transferred that character is lost and the Lost Data Status Bit is set. This sequence continues until the complete data field is inputted to the com- puter. If there is a CRC error at the end of the data field, the CRC Error Status bit is set, and the com- mand is terminated (even if it is a multiple record command). At the end of the Read operation, the type of Data INTRQ, RESET BUSY Address Mark encountered in the data field is SET WRITE PROTECT recorded in the Status Register (Bit 5) as shown: STATUS BIT 5 TYPE II COMMAND 1 Deleted Data Mark tor Number of the ID field is compared with the o Data Mark Sector Register. If there is no Sector match, the next encountered ID field is read off the disk and com- WRITE SECTOR parisons again made. If the ID field CRC is correct, the data field is located and is either written into, or Upon receipt of the Write Sector Command, the Busy read from, depending upon the command. The Status Bit is set. When an ID field is encountered that WD177X{)() finds an ID field with a Track number, Sec- has the correct track number, correct sector number, tor number, and CRC within four revolutions of the and correct CRC, a DRa is generated. The WD177X{)() disk, or, the Record Not Found Status bit is set (Status counts off 11 bytes in single density and 22 bytes in Bit 4) and the command is terminated with an INTRa. double density from the CRC field and the WG Floppy Disk Controller Devices 1-9 INTRO, RESET BUSY SET RECORD-NOT FOUND NO NO NO BRING IN SECTOR LENGTH FIELD STORE LENGTH IN INTERNAL REGISTER SET CRC STATUS ERROR TYPE II COMMAND output is made active if the ORO is serviced (Le., the 80 DATA ADDRESS MARK (BIT 0) DR is loaded by the compute~. If ORO is not serviced, the command is terminated and the Lost Data Status 1 Deleted Data Mark Bit is set. If the ORO Is serviced, the WG is made o Data Mark active and six bytes of zeroes in single density and 12 bytes in double density are written on the disk. The The WD177X-OO writes the data field and generates Data Address Mark is then written on the disk as de- ORa's to the computer. If the ORO is not serviced termined by the Cia field of the command as shown: in time for continuous writing the Lost Data Status 1-10 Floppy Disk Controller Devices READ SECTOR SEQUENCE NO SET DATA LOST INTRQ, RESET BUSY SET CRC ERROR INTRQ RESET BUSY TYPE II COMMAND Floppy Disk Controller Devices 1-11 SEQUENCE SET DATA LOST WRITE BYTE OF ZEROES NO TYPE II COMMAND 1-12 Floppy Disk Controller Devices Bit is set and a byte of zeroes is written on the disk. included in the data stream; and the Address Mark The command is not terminated. After the last data Detector is on for the duration of the command. byte is written on the disk, the two-byte CRC is com- Because the AM detector is always on, write splices puted internally and written on the disk fOllowed by or noise may cause the chip to look for an AM. one byte of logic ones in FM or in MFM. The WG out- The ID AM, ID field, ID CRC bytes, DAM, Data, and put is then deactivated. INTRa sets 24 I-lsec (MFM) Data CRC Bytes for each sector are correct. The Gap after the last CRC byte is written. For partial sector Bytes may be read incorrectly during write-splice time writing, the proper method is to write data and fill the because of synchronization. balance with zeroes. WRITE TRACK FORMATTING THE DISK TYPE III COMMANDS (Refer to section on TYPE III commands for flow Read Address diagrams.) Upon receipt of the Read Address Command, the Data and gap information are provided at the com- Busy Status Bit is set. The next encountered ID field puter interface. Formalling the disk is accomplished is then read in from the disk, and six data bytes of by positioning the R/W head over the desired track the ID field are assembled and transferred to the DR, number and issuing the Write Track Command. and a DRa is generated for each byte. The six bytes of the ID field are shown: Upon receipt of the Write Track Command, the Busy Status Bit is set. Writing starts with the leading edge TRACK SIDE SECTOR SECTOR CRC CRC of the first encountered Index Pulse and continues ADDR NUMBER AD DR LENGTH 1 2 until the next Index Pulse, at which time the interrupt is activated. The Data Request is activated 1 2 3 4 5 6 immediately upon receiving the command, but writing does not start until after the first byte is loaded into Although the CRC characters are transferred to the the Data Register. If the DR is not loaded within three computer, the WD177X-OO checks for validity and the byte times, the operation is terminated making the CRC error status bit is set if there is a CRC error. The device Not Busy, the lost Data Status Bit is set, and Track Address of the ID field is written into the sec- the interrupt is activated. If a byte is not present in tor register so that a comparison can be made by the the DR when needed, a byte of zeroes is substituted. user. At the end of the operation an interrupt is This sequence continues from one Index Pulse to the generated and the Busy Status is reset. next. Normally whatever data pattern appears in the Read Track Data Register is written on the disk with a normal Upon receipt of the Read Track Command, the head clock pattern. However, if the WD177X-00 detects a is loaded and the Busy Status bit is set. Reading data pattern of F5 through FE in the Data Register, starts with the leading edge of the first encountered this is interpreted as Data Address Marks with miss- index pulse and continues until the next index pulse. ing clocks or CRC generation. All Gap, Header, and data bytes are assembled and The CRC generator is initialized when any data byte transferred to the data register and DRa's are from F8 to FE is transferred from the DR to the DSR generated for each byte. The accumulation of bytes in FM or by receipt of F5 in MFM. An F7 pattern is synchronized to each address mark encountered. generates two CRC characters in FM or MFM. As a An interrupt is generated at the completion of the consequence, the patterns F5 through FE do not command. appear in the gaps, data field, or ID fields. Also, CRC's This command has several characteristics which are generated by an F7 pattern. make it suitable for diagnostic purposes. They are: Disks are formatted in IBM 3740 or System 34 formats no CRC checking is performed; gap information is with sector lengths of 128, 256, 512, or 1024 bytes. DATA PATTERN -- -- I IN DR (HEX) IN FM (DDEN = 1) IN MFM (DDEN = 0) 00 thru F4 Write 00 thru F4 with ClK = FF Write 00 thru F4, in MFM F5 Not Allowed Write A1* in MFM, Present CRC F6 Not Allowed Write C2** in MFM F7 Generate 2 CRC bytes Generate 2 CRC bytes F8 thru FB Write F8 thru FB, ClK = C7, Preset CRC Write F8 thru FB, in MFM FC Write FC with ClK = D7 Write FC in MFM FD Write FD with ClK = FF Write FD in MFM FE Write FE, ClK = C7, Preset CRC Write FE in M FM FF Write FF with ClK = FF Write FF in MFM *Missing clock transition between bits 4 and 5. **Missing clock transition between bits 3 and 4. Floppy Disk Controller Devices 1-13 DELAY 6 INDEX PULSES NO SETINTRQ LOST DATA RESET BUSY TYPE III COMMAND WRITE TRACK 1-14 Floppy Disk Controller Devices WRITE 2 CRC CHARS. ClK =FF WRITE FC ClK = 07 WRITE FO, FE OR F8·F9, ClK =C7 INITIALIZE CRC WRITE BYTE OF ZEROES SET OAT A lOST WRITE A1 IN MFM WITH MISSING CLOCK INITIALIZE CRC WRITE C2 IN MFM WITH MISSING CLOCK WRITE 2 CRC CHARS. TYPE III COMMAND WRITE TRACK Floppy Disk Control/er Devices 1-15 TYPE IV COMMANDS The Busy Bit in the status may be monitored with a user program to determine when a command is com- The Forced Interrupt Command is used to terminate plete, in lieu of using the INTRa line. When using the a multiple sector read or write command or to insure INTRa, a Busy Status check is not recommended Type I status in the Status Register. This command because a read of the Status Register to determine is loaded into the Command Register at any time. If the condition of busy resets the INTRa line. there is a current command under execution (Busy Status Bit set) the command is terminated and the The format of the Status Register is shown below: Busy Status Bit reset. (BITS) The lower four bits of the command determine the conditional interrupt as follows: 7 I 6 I 5 I 4 131 2 I 1 I 0 10 = Not used (WD1770-00, WD1772-00), Not Ready To Ready Transition (WD1773-00) S7 I S6 I S5 I S4 I S3 I S2 I S1 I SO 11 = Not Used (WD1770-00, WD1772-00), Ready To Not Ready Transition (WD1773-00) Because of internal sync cycles, certain time delays 12 = Every Index Pulse are observed when operating under programmed I/O, 13 = Immediate Interrupt as shown. The conditional interrupt is enabled when the cor- Delay Req'd_ responding bit positions of the command (13-10) are Operation Next Operation FM MFM set to a 1. When the condition for interrupt is met the INTRa line goes high signifying that the condition Write to Read Busy Bit 48J.lsec 24J.lsec specified has occurred. If 13-10 are all set to zero (Hex Command Reg. (Status Bit 0) DO), no interrupt occurs but any command presently Write to Read Status 64J.lsec 32J.lsec under execution is immediately terminated. When us- ing the immediate interrupt condition (13 = 1) an in- Command Reg. Bits 1-7 terrupt is immediately generated and the current Write Read Same 321lsec 16J.lsec command terminated. Reading the status or writing Register Register to the Command Register does not automatically clear the interrupt. The Hex DO is the only command that enables the immediate interrupt (Hex D8) to clear RECOMMENDED - 128 BYTES/SECTOR on a subsequent load Command Register or Read The recommended single-density format with 128 Status Register operation. Follow a Hex 08 with DO bytes/sector is shown. In order to format a diskette, command. the user issues the Write Track Command, and loads Wait 16 Ilsec (double density) or 32 Ilsec (single den- the Data Register with the following values. For every sity) before issuing a new command after issuing a byte to be written, there is one Data Request. forced interrupt. Loading a new command sooner than this nullifies the forced interrupt. NUMBER OF BYTES HEX VALUE OF BYTE WRITTEN Forced interrupt stops any command at the end of an internal micro-instruction and generates INTRa ~ FF (or 00) when the specified condition is met. Forced interrupt 6 00 waits until ALU operations in progress are complete 1 FE (10 Address Mark) (CRC calculations, compares, etc.). 1 Track Number 1 Side Number (00 or 01) Status Register 1 Sector Number (1 thru 10) Upon receipt of any command, except the Force Inter- 1 00 (Sector Length) rupt Command, the Busy Status Bit is set and the rest 1 F7 (2 CRC's written) of the status bits are updated or cleared for the new 11 FF (or 00) command. If the Force Interrupt Command is received 6 00 when there is a current command under execution, 1 FB (Data Address Mark) the Busy Status Bit is reset, and the rest of the status 128 Data (IBM uses E5) bits are unchanged. If the Force Interrupt Command 1 F7 (2 CRC's written) is received when there is not a current command 10 FF (or 00) under execution, the Busy Status Bit is reset and the 369** FF (or 00) rest of the status bits are updated or cleared. In this *Write bracketed field 16 times. case, Status reflects the Type I commands. * *Continue writing until WD177X-00 interrupts out. The user has the option of reading the Status Register Approx. 369 bytes. through program control or using the ORO line with DMA or interrupt methods. When the Data Register is read the ORO bit in the Status Register and the ORO line are automatically reset. A write to the Data Register also causes both ORa's to reset. 1-16 Floppy Disk Controller Devices .g!! ~ o Cii" n ____ _ ~ g ~~~~~ a I. REPEATED FOR EACH SECTOR -I ~ ~ ~" m ~---------ID F I E L D - - - - - - - - - - - - - - ' ~------DATA FIELD------" WRITEGATE -L __ SINGLE DENSITY FORMAT INDEX _ _ _ _ _ REPEATED ~I PULSE FOR EACH SECTOR I" USER DATA 256 BYTES ~-----------------IDFIELD----------------~ L-__________ DATA FIELD------------' WRITE GATE - - - - -.... DOUBLE DENSITY FORMAT "t ~ OO·xLL~aM 256 BYTES/SECTOR 1. Non-Standard Formats Shown below is the recommended dual-density for- Variations in the recommended formats are possible mat with 256 bytes/sector. In order to format a to a limited extent if the following requirements are diskette the user issues the Write Track Command met: and loads the Data Register with the following values. 1) Sector size must be 128, 256, 512 of 1024 bytes. For every byte to be written, there is one data request. 2) Gap 2 cannot be varied from the recommended format. NUMBER 3) 3 bytes of A 1 must be used in MFM. OF BYTES HEX VALUE OF BYTE WRITTEN In addition, the Index Address Mark is not required for operation by the WD177X-00. Gap 1, 3 and 4 ~ 4E lengths are as short as 2 bytes for WD177X-OO opera- 12 00 3 F5 (Writes A1) tion, however PLL lock up time, motor speed varia- 1 FE (10 Address Mark) tion, write-splice area, etc. adds more bytes to each 1 Track Number (0 thru 4C) gap to achieve proper operation. For highest system 1 Side Number (0 or 1) reliability use the recommended format. 1 Sector Number (1 thru 10) 1 01 (Sector Length) 1 F7 (2 CRC's written) FM MFM 22 4E Gap I 16 bytes FF 32 bytes 4E 12 00 Gap II 11 bytes FF 22 bytes 4E 3 F5 (Writes A 1) * 6 bytes 00 12 bytes 00 1 FB (Data Address Mark) 3 bytes A1 256 DATA Gap 111** 10 bytes FF 24 bytes 4E 1 F7 (Data Address Mark) 4 bytes 00 8 bytes 00 24 4E 3 bytes A1 668** 4E Gap IV 16 bytes FF 16 bytes 4E *Write bracketed field 16 times. * Byte counts must be exact. **Continue Writing until WD177X-00 interrupts out. **Byte counts are minimum, except exactly 3 bytes Approx. 668 bytes. of A 1 must be written. STATUS REGISTER DESCRIPTION (WD1770-00 and WD1772-00 only) BIT NAME MEANING S7 MOTOR ON This bit reflects the status of the Motor On output. S6 WRITE PROTECT On Read Record: Not Used. On Read Track: Not Used. On any Write: It indicates a Write Protect. This bit is reset when updated. S5 RECORD When set, this bit indicates that the Motor Spin-Up sequence has completed TYPE/SPIN-UP (6 revolutions) on Type I commands. Type 2 & 3 commands, this bit indicates record Type. 0 = Data Mark. 1= Deleted Data Mark. S4 RECORD NOT When set, it indicates that the desired track, sector, or side were not found. This FOUND (RNF) bit is reset when updated. S3 CRG ERROR If S4 is set, an error is found in one or more 10 fields; otherwise it indicates error data field. This bit is reset when updated. S2 LOST DATAl When set, it indicates the computer did not respond to DRQ in one byte time. BYTE This bit is reset to zero when updated. On Type I commands, this bit reflects the status of the TROO signal. S1 DATA REQUEST This bit is a copy of the DRQ output. When set, it indicates the DR is full on a INDEX Read Operation or the DR is empty on a Write operation. This bit is reset to zero when updated. On Type 1 commands, this bit indicates the status of the IP signal. SO BUSY When set, command is under execution. When reset, no command is under execution. 1-18 F/oppy Disk Controller Devices STATUS REGISTER SUMMARY (WD1773-00 only) ALL TYPE I READ READ READ WRITE WRITE =E BIT COMMANDS ADDRESS SECTOR TRACK SECTOR TRACK c.... S7 NOT READY NOT READY NOT READY NOT READY NOT READY NOT READY ..... ..... S6 WRITE 0 0 0 WRITE WRITE >.< PROTECT PROTECT PROTECT o S5 HEAD LOADED 0 RECORD TYPE 0 WRITE FAULT WRITE FAULT o S4 SEEK ERROR RNF RNF 0 RNF 0 S3 CRC ERROR CRC ERROR CRC ERROR 0 CRC ERROR 0 S2 TRACK 0 LOST DATA LOST DATA LOST DATA LOST DATA LOST DATA S1 INDEX PULSE DRO DRO DRO DRO DRO SO BUSY BUSY BUSY BUSY BUSY BUSY STATUS FOR TYPE I COMMANDS (WD1773-00 only) BIT NAME MEANING S7 NOT READY This bit when set. indicates the drive is not ready. When reset it indicates that the drive is ready. This bit is an inverted copy of the Ready input and logically "ORed" with MR. S6 PROTECTED When set, indicates Write Protect is activated. This bit is an inverted copy of WRPT input. S5 HEAD LOADED When set, it indicates the head is loaded and engaged. This bit is a logical "and" of HLD and HLT signals. S4 SEEK ERROR When set, the desired track was not verified. This bit is reset to 0 when updated. S3 CRC ERROR CRC encountered in ID field. S2 TRACK 00 When set, indicates Read/Write head is positioned to Track O. This bit is an inverted copy of the TROO input. S1 INDEX WheJlset, indicates index mark detected from drive. This bit is an inverted copy of the IP input. SO BUSY When set, command is in progress. When reset no command is in progress. STATUS FOR TYPE II AND III COMMANDS (WD1773-00 ONLy) BIT NAME MEANING S7 NOT READY This bit when set indicates the drive is not ready. When reset, it indicates that the drive is ready. This bit is an inverted copy of the Ready input and "ORed" with MR. The Type II and III Commands will not execute unless the drive is ready. S6 WRITE PROTECT On Read Record: Not Used. On Read Track: Not Used. On any Write: It indicates a Write Protect. This bit is reset when updated. S5 RECORD TYPE On Read Record: It indicates the record-type code from data field address mark. 1 = Deleted Data Mark. 0 = Data Mark. On any Write: Forced to a Zero. S4 RECORD NOT When set, it indicates that the desire track, sector, or side were not found. This bit FOUND (RNF) is reset when updated. S3 CRC ERROR If S4 is set, an error is found in one or more ID fields; otherwise it indicates error in data field. This bit is reset when updated. S2 LOST DATA When set, it indicates the computer did not respond to DRO in one byte time. This bit is reset to zero when updated. S1 DATA REOUEST This bit is a copy of the DRO output. When set, it indicates the DR is full on a Read Operation or the DR is empty on a Write operation. This bit is reset to zero when updated. SO BUSY When set, command is under execution. When reset, no command is under execution. Floppy Disk Controller Devices 1-19 DC ELECTRICAL CHARACTERISTICS NOTE MAXIMUM RATINGS Maximum limits indicate where permanent device Storage Temperature ............. 55°C (67°F) to damage occurs. Continuous operation at these limits is not intended and should be limited to those con- + 125°C (257°F) Operating Temperature............0oC (32°F) to ditions specified in the DC Operating Characteristics. 70°C (158°F) Ambient Maximum Voltage to Any Input with Respect to Vss ................ + 7V to -0.5V DC OPERATING CHARACTERISTICS TA = 0°C(32°F) to 70°C (158°F), Vss = OV, Vee = +5V ± .25V SYMBOL CHARACTERISTIC MIN MAX UNITS CONDITIONS IlL Input Leakage 10 JJA VIN = Vee IOL Output Leakage 10 JJA VOUT = Vee V IH Input High Voltage 2.0 V V IH Input Low Voltage 0.8 V V OH Output High Voltage 2.4 V 10 = -100 JJA VOL Output Low Voltage 0.40 V 10 = 1.6 mA Po Power Dissipation .75 W Rpu Internal Pull-Up 100 1700 JJA VIN = OV lee Supply Current 75(Typ) 150 rnA AC TIMING CHARACTERISTICS TA = OOC (32°F) to 70°C (158°F), vss = OV, vCC = + 5V ± .25V g~LS ___________--;___~x VALID X'-____ ~'DV_1 r-'DOH~ R/W _ _ --J/~I-~I\\.....---- cs ----~I~~\- tRE- - 7 . ) - 1 - - - - - .......f - - - - - - - - t O R R - - - - - - - . - t · 1 ORQ \'--- READ ENABLE TIMING READ ENABLE TIMING - RE such that: R/W = 1, CS = O. SYMBOL CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS tRE RE Pulse Width of CS 200 nsec CL = 50 pf tORR ORO Reset from RE 200 300 nsec tov Data Valid from RE 100 200 nsec CL = 50 pf tOOH Data Hold from RE 20 150 nsec CL = 50 pf INTRa Reset from RE 8 JJsec Note: ORO and INTRa reset are from rising edge (lagging) of RE, whereas resets are from falling edge (leading) of WE. Worst ease service time for ORO is 23.5 JJsec for MFM and 47.5 JJsec for FM. 1-20 Floppy Disk Controller Devices DALS 0-7 X VALID X i ~'DS±'DH~ ~ Cs I tWE ;{' 'SET=j ~ /;='HLD RiiN '\ Y -1 1'- AO,A1 t AS I tAH1 t ORO ""- tDRW ~ I '\ WRITE ENABLE TIMING WRITE ENABLE TIMING - WE such that: R/W = 0, CS = O. SYMBOL CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS t AS Setup ADDR to CS 50 nsec tSET Setup RIW to CS _ 0 nsec tAH Hold ADDR from CS 10 nsec tHLD Hold RlW from CS 0 nsec tWE WE Pulse Width 200 nsec tORW ORO Reset from WE 100 200 nsec tos Data Setup to WE 150 nsec tOH Data Hold from WE 0 nsec I NTRO Reset from WE 8 J.lsec READ DATA TIMING: CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS Raw Read Pulse Width .200 3 J.lsec MFM .400 3 FM Raw Read Cycle Time 3 J.lsec Floppy Disk Controller Devices 1-21 WRITE DATA TIMING: :E SYMBOL CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS c ..... ....... Write Gate to Write Data 4 p,sec FM ....... >< 2 p,sec MFM 6 Write Data Cycle Time 4,6,8 p,sec o Write Gate off from WD 4 p,sec FM 2 p,sec MFM twp Write Data Pulse Width 820 nsec Early MFM 690 nsec Nominal MFM 570 nsec Late MFM 1.38 p,sec FM 1-22 Floppy Disk Controller Devices I I----------1f VIH ...c......=E...... ~IIP~ >.< o o MR ~lr---------""I Ir-----------#t.$ VIH J.-IMR~ ClK ______---'1 STEP IN DIRC STEP MISCELLANEOUS TIMING MISCELLANEOUS TIMING: SYMBOL CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS tC01 Clock Duty (low) 50 67 nsec tC02 CLock Duty (high) 50 67 nsec t STP Step Pulse Output 4 Jlsec MFM 8 FM tOIR Dir Setup to Step 24 Jlsec MFM 48 FM tMR Master Reset Pulse Width 50 Jlsec tiP Index Pulse Width 20 Jlsec Floppy Disk Controller Devices 1-23 1-24 Floppy Disk Controller Devices WESTERN DIGITAL COR PO RAT ION WD177X-OO Floppy Disk Formatter/Controller Family Application Notes INTRODUCTION During Direct Memory Access (DMA) data transfers To meet the demand for a low cost compact lSI Flop- between the WD177X-OO and Host Memory, the Data py Disk Controller device, Western Digital has Request (DRa) line is used in Data Transfer Control. developed the WD177X-OO. The WD177X-OO is a NMOS This signal also appears as status bit 1 during Floppy Disk Controller device that incorporates the Read/Write operations. On Disk Read operations the FD179X, a digital data separator and write DRa is active when an assembled byte is present in precompensation circuitry all in a single chip. The the Data Register, then reset when read by the Host. device offers soft sector formatting, selectable step- If the Host fails to read the Data Register before the ping rates, automatic track seek with verify, and following byte is assembled in the Data Register, the variable sector lengths. The FD177X-OO comes in a lost data bit is set in Status Register. 28-pin dual-in-line package or quad pack and operates At the completion of every command INTRa is from a single 5 volt only power supply. asserted. INTRa is de-asserted by either reading the status or by loading the Command Register. APPLICATIONS The Mini-Floppy Controller is targeted for the low cost DISKETTE DRIVE INTERFACING sector of the disk drive market, where digital data The WD177X-OO has two modes of operation depend- separation is preferred over analog phase lock loop. ing on the state of DDEN, regardless of the state of Included in this market are Personal Computers, Por- DDEN the ClK input remains at 8 MHz. Disk Reads table Computers and Small Business Computers. with sector lengths of 128, 256, 512 and 1024 byte sec- tor in both FM or MFM diskettes is accomplished via FOLLOW ON DEVICES the internal digital data separator. Disk Write opera- tion in MFM on inner tracks may require write WD1772-02 precompensation. Write precompensation is enabl- The device is the same as the WD1772-00 except for ed when bit 1 = 0, in the Write command and a an enhanced digital data separator. precompensation value of 125 nsec is produced. The diskettes spindle motor is controlled by bit 3 of HOST INTERFACING any Type I, II or III command, upon receiving a com- Interfacing to a Host processor is accomplished mand with bit 3 = 0, the spin up sequence is through the eight bit bi-clirectional Data Access Lines enabled. (DAl) and associated control lines. The DAl is used GENERAL INFORMATION to transfer data, status and control words out of or A + 5 volt supply ± 5% is used as Vce , and the into WD177X-OO. The DAl having three states enabled clock input requires a free running 50% duty cycle as an output when Chip Select (CS) is active low and at 8 MHz ±O.1 %. Read/Write (R/W) is high or as input receiver when CS and R/W is low. When transfer of data with the device is required by the Host CS is made low. The address bits AO and A 1 combined with the R/W line select the register and the direction of data. Floppy Disk Controller Devices 1-25 1-26 Floppy Disk Controller Devices WESTERN DIGITAL COR P 0 RAT o N WD1772-02 Floppy Disk Formatter/Controller FEATURES CS INTRa • 28 PIN DIP RiW DRO • SINGLE 5V SUPPLY AO DDEN A1 WPFff • HIGH PERFORMANCE DPLL BUILT-IN DIGITAL DATA DAlO iP SEPARATOR DAl1 TRoD • BUILT·IN WRITE PRECOMPENSATION, DAl2 WD INCREASED TO 187 MS DAl3 WG DAl4 MO • SINGLE AND DOUBLE DENSITY DAl5 AD • MOTOR CONTROL DAl6 ClK • 128, 256, 512 OR 1024 SECTOR LENGTHS DAl7 DIRC MR STEP • TTL COMPATIBLE GND vcc • 8·BIT BI·DIRECTIONAL DATA BUS • 100% PIN COMPATIBLE WITH WD1770·00 AND PIN DESIGNATION WD1772·00 • ENHANCED STEP/RATES 2,3,6,12 MS DESCRIPTION A single read line (RD, Pin 19) is the only input The WD1772·02 is a MOS/LSI device which performs required to recover serial FM of MFM data from the the functions of a Floppy Disk Formatter/Controller. disk drive. The device is designed for control of floppy It is similar to its predecessor, the FD179X, but also disk drives with data rates of 125 KBits/Sec (single contains a digital data separator and write density) and 250 KBits/Sec (double density). In addi- precompensation circuitry. The drive side of the inter- tion, write precompensation of 187 nsec from nominal face needs no additional logic except for buf- is enabled at any point through simple software com· fers/receivers. Designed for single (FM) or double mands. Another programmable feature, Motor On, (MFM) density operation, the device contains a pro- enables the spindle motor automatically prior to grammable Motor On signal. operating a selected drive. The WD1772"()2 is implemented in NMOS silicon gate The WD1772"()2 offers stepping rates of 2, 3, 6 and technology and is available in a 28 pin dual-in·line. 12 msec. The processor interface consists of an 8-bit The WD1772-02 is a low cost version of the FD179X bi-directional bus for transfer of status, data, and com- Floppy Disk Controller/Formatter. It is similar to the mands. All Host communication with the drive occurs FD179X, but has a built-in digital data separator and through these lines. They are capable of driving one write precompensation circuits. standard TTL load or three LS loads. F/oppy Disk Controller Devices 1-27 PIN =E NUMBER MNEMONIC SIGNAL NAME I/O FUNCTION C ...I. ...... 1 CS CHIP SELECT I A logic low on this input selects the chip and enables ...... N Host communication with the device. 0• 2 RIW READ/WRITE I A logic high on this input controls the placement of N data on the DO-D7 lines from a selected register, while a logic low causes a write operation to a selected register. 3,4 AO,A1 ADDRESS 0,1 I These two inputs select a register to Read/Write data: CS A1 AO R/W = 1 R/W = 0 0 0 0 Status Reg Command Reg 0 0 1 Track Reg Track Reg 0 1 0 Sector Reg Sector Reg 0 1 1 Data Reg Data Reg 5-12 DAlO-DAl7 DATA ACCESS I/O Eight-bit bi-directional bus used for transf~f data, LINES control, or status. This bus is enabled by CS and o THROUGH 7 RIW. Each line will drive one TTL load. 13 MR MASTER RESET A logic low pulse on this line resets the device and initializes the Status Register (internal pull-up). 14 GND GROUND Ground. 15 Vcc POWER SUPPLY I + 5V ± 5% power supply input. 16 STEP STEP 0 The Step output contains a pulse for each step of the drive's RIW head. 17 DIRC DIRECTION 0 The Direction output is high when stepping in towards the center of the diskette, and low when stepping out. 18 ClK CLOCK I This input requires a free-running 50% duty cycle clock (for internal timing) at 8 MHz ±0.1 %. 19 RD READ DATA I This active low input is the raw data line containing both clock and data pulses from the drive. 20 MO MOTOR ON 0 Active high output used to enable the spindle motor prior to read, write or stepping operations. 21 WG WRITE GATE 0 This output is made valid prior to writing on the diskette. 22 WD WRITE DATA FM or MFM clock and data pulses are placed on this line to be written on the diskette. 23 TROO TRACK 00 I This active low input informs the WD1772-02 that the drive's RIW heads are positioned over Track zero. 24 iP INDEX PULSE I This active low input informs the WD1772-02 when the physical index hole has been encountered on the diskette. 25 WPRT WRITE PROTECT I This input is sampled whenever a Write Command is received. A logiC low on this line will prevent any Write Command from executing (internal pull-up). 1-28 Floppy Disk Controller Devices PIN NUMBER MNEMONIC SIGNAL NAME I/O FUNCTION 26 DDEN DOUBLE I This input pin selects either single (FM) or double DENSITY (MFM) density. When DDEN = 0, double density is ENABLE selected (internal pull-up). 27 DRQ DATA REQUEST 0 This active high output indicates that the Data Register is full (on a Read) or empty (on a Write operation). 28 INTRQ INTERRUPT 0 This active high output is set at the completion of any REQUEST command, is reset by a read of the Status Register. ped in and decremented by one when the head is stepped out (towards track 00). The contents of the register are compared with the recorded track number in the ID field during disk Read, Write, and Verify operations. The Track Register can be loaded from 5'/4" or transferred to the DAL This Register is not loaded H 0 F when the device is busy. S L T 0 Sector Register (SR) - This 8-bit register holds the P I P address of the desired sector position. The contents N Y T of the register are compared with the recorded sec- E A D A tor number in the ID field during disk Read or Write F A I V operations. The Sector Register contents can be C E loaded from or transferred to the DAL. This register E is not loaded when the device is busy. Command Register (CR) - This 8-bit register holds the command presently being executed. This register is not loaded when the device is busy unless the new command is a forced interrupt. The Command WD1772-02 SYSTEM BLOCK DIAGRAM Register is loaded from the DAL, but not read onto the DAL. ARCHITECTURE Status Register (STR) - This 8-bit register holds device The primary sections of the Floppy Disk Formatter are Status information. The meaning of the Status bits the parallel processor interface and the Floppy disk is a function of the type of command previously interface. executed. This register is read onto the DAL, but not Data Shift Register - This 8-bit register assembles loaded from the DAL. serial data from the Read Data input (RD) during CRC Logic - This logic is used to check or to generate Read operations and transfers serial data to the Write the 16-bit Cyclic Redundancy Check (CRG). The Data output during Write operations. polynomial is: Data Register - This 8-bit register is used as a holding G(x) = X 16 + X 12 + x 5 + 1. register during Disk Read and Write operations. In The CRC includes all information starting with the disk Read operations, the assembled data byte is address mark and up to the eRC characters. The CRC transferred in parallel to the Data Register from the Register is preset to ones prior to data being shifted Data Shift Register. In Disk Write operations, infor- through the circuit. mation is transferred in parallel from the Data Register to the Data Shift Register. Arithmetic/Logic Unit (ALU) - The ALU is a serial com- parator, incrementer, and decrementer and is used When executing the Seek Command, the Data for register modification and comparisons with the Register holds the address of the desired Track posi- disk recorded ID field. tion. This register is loaded from the DAL and gated onto the DAL under processor control. Track Register - This 8-bit register holds the track number of the current Read/Write head position. It is incremented by one every time the head is step- Floppy Disk Controller Devices 1-29 (DAL) :ec ..... "o"• N N DRQ WG INTRQ WPRT MR ~ TP II TROO .. R/W COMPUTER CONTROL PLA CONTROL DISK INTERFACE CONTROL II INTERFACE AO CONTROL (240 X 19) CONTROL STEP A1 DIRC (MOTOR ON) CLK(S-MHZ) cmrn FIGURE 1. WD1772-o2 BLOCK DIAGRAM Timing and Control - All computer and Floppy Disk Fc capture range ± 6% (min) interface controls are generated through this logic. TI lock response 4 bytes OOH (max) The internal device timing is generated from an exter- Wt window tolerance 50% for 10E-9 error rate nal crystal clock. The WD1772-02 has two different PROCESSOR INTERFACE modes of operation according to the state of DDEN. The interface to the processor is accomplished through the eight Data Access Lines (DAL) and When DDEN = 0, double density (MFM) is enabled. associated control signals. The DAL are used to When DDEN =1, single density is enabled. transfer Data, Status, and Control words out of, or AM Detector - The address mark detector detects ID, into the WD1772-02. The DAL are three state buffers data, and index address marks during read and write that are enabled as output drivers when CS and operations. R/W = 1 are active or act as input receivers when CS Data Separator - A digital phase lock loop (DPLL) of and RW = 0 are active. type 2, second order performs the data separator When transfer of data with the Floppy Disk Controller function. DPLL has a filter transfer function used to is required by the Host processor, the device address remove jitter effects thereby achieving adequate win- is decoded and CS is made low. The address bits A 1 dow margin. The algorithm used gives performance and AO, combined with the signal R/W during a equal to second order analog deSigns. Read operation or Write operation are interpreted as DPLL performance specifications are as follows: selecting the following registers: 1-30 Floppy Disk Controller Devices The number of sectors per track for the WD1772-02 A1 - AO READ (R/W = 1) WRITE (RlW = 0) are from 0 to 244. The number of tracks for the WD1772-02 are 0 to 244. 0 0 Status Register Command Register 0 1 Track Register Track Register GENERAL DISK WRITE OPERATION 1 0 Sector Register Sector Register When writing on the diskette, the WG output is ac- 1 1 Data Register Data Register tivated, allowing current to flow into the Read/Write head. As a precaution to erroneous writing, the first After any register is written to, the same register can- data byte is loaded into the Data Register in response not be read from until 16 J..Lsec in MFM or 32 J..Lsec in to a Data Request from the device before the WG is FM have elapsed. activated. During Direct Memory Access (DMA) types of data Writing is inhibited when the WPRT input is asser- transfers between the Data Register of the WD1772-02 ted, in which case any Write Command is and the processor, the Data Request (DRa) output immediately terminated, an interrupt is generated and is used in Data Transfer control. This signal also the Write Protect Status bit is set. appears as status bit 1 during Read and Write operations. For Write operations, the WD1772-02 provides WG to enable a Write condition, and WD which consists of On Disk Read operations, the Data Request bit is ac- a series of active high pulses. These pulses contain tivated (set high) when an assembled serial input byte both Clock and Data information in FM and MFM. WD is transferred in parallel to the Data Register. This bit provides the unique missing clock patterns for recor- is cleared when the Data Register is read by the pro- ding Address Marks. cessor. If the Data Register is read after one or more characters are lost, by having new data transferred On the WD1772-02, the Precomp Enable bit in Write into the register prior to processor readout, the lost Commands allows automatic Write precompensation to take place. The outgoing Write Data stream is Data bit is set in the Status Register. The Read opera- tions continue until the end of sector is reached. delayed or advanced from nominal by 187 nsec accor- ding to the following table: On Disk Write operations, the Data Request bit is ac- tivated when the Data Register transfers its contents PATTERN MFM FM to the Data Shift Register, and requires a new data byte. It is reset when the Data Register is loaded with X 1 1 0 Early N/A new data by the processor. If new data is not loaded X 0 1 1 late N/A at the time the next serial byte is required by the Flop- 0 0 0 1 Early N/A py Disk, a byte of zeroes is written on the diskette 1 0 0 0 late N/A and the lost Data bit set in the Status Register. I- -t_ L........l Next Bit to be sent At the completion of every command, an INTRa is - Current Bit sendmg generated. INTRa is reset by either reading the Status ' - - - - - Previous Bits sent Register or by loading the Command Register with a new command. In addition, INTRa is generated if Precompensation is typically enabled on the inner- a Force Interrupt Command condition is met. most tracks where bit shifts usually occur and bit density is at its maximum. The WD1772-02 has two modes of operation accor- ding to the state DDEN. When DDEN = 1, single COMMAND DESCRIPTION density is selected. In either case, the ClK input is The WD1772-02 accepts 11 commands. Command at 8 MHz. words are only loaded in the Command Register when the Busy Status bit is off (Status bit 0). The one ex- GENERAL DISK READ OPERATIONS ception is the Force Interrupt Command. Whenever Sector lengths of 128, 256, 512 or 1024 are obtainable a command is being executed, the Busy Status bit in either FM or MFM formats. For FM. DDEN is set. When a command is completed, an interrupt is placed to logical 1. For MFM formats, DDEN is is generated and the Busy status bit is reset. The placed to a logical O. Sector lengths are determined Status Register indicates whether the completed at format time by the fourth byte in the ID field. command encountered an error or was fault free. Commands are divided into four types and are sum- marized in the following pages. SECTOR LENGTH TABLE SECTOR LENGTH NUMBER OF BYTES FIELD (HEX) IN SECTOR (DECIMAL) 00 128 01 256 02 512 03 1024 Floppy Disk Controller Devices 1-31 COMMAND SUMMARY BITS TYPE IV COMMANDS 7 TYPE COMMAND I Restore 0 6 0 5 0 4 3 0 h 2 V 1 r1 ° ro 13-1 0 Interrupt Condition (Bits 3-0) I Seek 0 0 0 1 h V r1 ro 10 = 1, Not Used I Step 0 0 1 u h V r1 ro 11 = 1, Not Used I Step-in 0 1 0 u h V r1 ro I Step-out 0 1 1 u h V r ro 12 = 1, Interrupt on Index Pulse 13 = 1, Immediate Interrupt " Read Sector 1 0 0 m h E 0 0 ao '"" Write Sector 1 0 1 m h E P 13-10 = 0, Terminate without interrupt Read Address 1 1 0 0 h E 0 0 ''"" Read Track Write Track IV Force 1 1 1 1 1 1 0 1 h h E E 0 P 0 0 TYPE I COMMANDS The Type I Commands include the Restore, Seek, Interrupt 1 1 0 1 13 12 11 10 Step, Step-in, and Step-Out Commands. Each of the Type I Commands contains a rate field (rO,r1), which determines the stepping motor rate. FLAG SUMMARY A 4 ",sec (MFM) or 8 ",sec (FM) pulse is provided as an output to the drive. For every step pulse issued, TYPE I COMMANDS the drive moves one track location in a direction deter- mined by the direction output. The chip steps the drive h = Motor On Flag (Bit 3) in the same direction it last stepped unless the com- h = 0, Enable Spin-up Sequence mand changes the direction. h = 1, Disable Spin-up Sequence The Direction signal is active high when stepping in V = Verify Flag (Bit 2) and low when stepping out. The Direction signal is V = 0, No Verify valid 24 ",sec before the first stepping pulse is V = 1, Verify on Destination Track generated. r1' ro = Stepping Rate (Bits 1,0) After the last directional step, an additional 15 msec of head settling time takes place if the Verify flag is WD1772-Q2 set in Type I Commands. There is also a 15 msec o o 6 ms head settling time if the E flag is set in any Type II o 1 12 ms or III Command. 1 o 2 ms When a Seek, Step, or Restore Command is executed, 1 1 3 ms an optional verification of Read/Write head position u = Update Flag (Bit 4) can be performed by setting bit 2 (1/ = 1) in the com- u = 0, No Update mand word to a logic 1, The verification operation u = 1, Update Track Register begins at the end of the 15 msec settling time after the head is loaded against the media. The track number from the first encountered ID Field is com· TYPE" & III COMMANDS pared against the contents of the Track Register. If the track numbers compare and the ID Field CRC is m = Multiple Sector Flag (Bit 4) correct, the verify operation is complete and an INTRQ is generated with no errors. If there is a match but m = 0, Single Sector not a valid CRC, the CRC error status bit is set (Status m = 1, Multiple Sector Bit 3), and the next encountered ID Field is read from H = Motor On Flag (Bit 3) the disk for the verification operation. H = 0, Enable Spin Up Sequence The WD1772-02 finds an ID Field with correct track H = 1, Disable Spin Up Sequence number and correct CRC within 5 revolutions of the ao = Data Address Mark (Bit 0) media, or the seek error is set and an INTRQ is generated. If V = 0, no verification is performed. ao = Write Normal Data Mark On the WD1772-02, all commands, except the Force ao = 1, Write Deleted Data Mark Interrupt Command, are programmed via the h Flag E = 15ms Settling Delay (Bit 2) to delay for spindle motor start up time. If the h Flag E = 0, No Delay is not set and the MO signal is low when a command E = 1, Add 15ms Delay is received, the WD1772-02 forces MO to a logic 1 and waits 6 index pulses before executing the command. P = Write Precompensation (Bit 1) At 300 RPM, this guarantees a one second spindle P = O,Enable Write Precomp start up time. If after finishing the command, the P = 1,Disable Write Precomp device remains idle for 9 revolutions, the MO 1-32 Floppy Disk Controller Devices signal goes back to a logic O. If a command is issued RESTORE (SEEK TRACK 0) while MO is high, the command executes Upon receipt of this command, the Track 00 (TROO) immediately, defeating the 5 revolution start up. This input is sampled. If TROO is active low, indicating feature allows consecutive Read or Write commands the Read/Write head is positioned over track 0, the without waiting for motor start up each time; the Track Register is loaded with zeroes and an interrupt WD1n2'{)2 assumes the spindle motor is up to speed. is generated. If TROO is not active low, stepping pulses at a rate specified by the r1,rO field are issued until the TROO input is activated. SET DIRECTION -HOTA OTOTR NO TYPE I COMMAND FLOW TYPE I COMMAND FLOW Floppy Disk Controller Devices 1-33 At this time, the Track Register is loaded with allows the Motor On option at the start of the com- zeroes and an interrupt is generated. If the TROO mand. An interrupt is generated at the completion of input does not go active low after 255 stepping pulses, the command. Note: When using multiple drives, the the W01772-02 terminates operation, interrupts, and Track Register is updated for the drive selected before sets the Seek Error status bit, providing the V flag seeks are issued. is set. A verification operation also takes place if the STEP V flag is set. The h bit allows the Motor On option at the start of a command. Upon receipt of this command, the W01772-02 issues one Stepping Pulse to the disk drive. The stepping SEEK motor direction is the same as in the previous step This command assumes that the Track Register con- command. After a delay determined by the r1,rO field, tains the track number of the current position of the a verification takes place if the V flag is on. If the U ReadlWrite head and the Oata Register contains the flag is on, the Track Register is updated. The h bit desired track number. The W01772-02 updates the allows the Motor On option at the start of the com- Track Register and issues stepping pulses in the mand. An interrupt is generated at the completion of appropriate direction until the contents of the Track the command. Register are equal to the contents of the Oata STEP-IN Register (the desired track location). A verification Upon receipt of this command, the W01772-02 issues operation takes place if the V flag is on. The h bit one Stepping Pulse in the direction towards the in- ner most track. If the U flag is on, the Track Register is incremented by one. After a delay determined by VERIFY the r1,rO field, a verification takes place if the V flag SEQUENCE is on. The h bit allows the Motor On option at the start of the command. An interrupt is generated at the com- pletion of the command. STEP-OUT Upon receipt of this command, the W01772-02 issues one stepping pulse in the direction towards track o. If the U flag is on, the Track Register is decremented by one. After delay determined by the r1,rO field, a verification takes place if the V flag is on. The h bit allows the Motor On option at the start of the com- mand. An interrupt is generated at the completion of the command. TYPE" COMMANDS The Type II Commands are the Read Sector and Write Sector commands. Prior to loading the Type II Com- mand into the Command Register, the computer loads the Sector Register with the desired sector number. Upon receipt of the Type II command, the Busy Status bit is set. If the E flag=1, the command executes after a 15 msec delay. (When an 10 field is located on the disk, the W01772-02 compares the Track Number on the 10 field with the Track Register. If there is not a match, SET cRe the next encountered 10 field is read and a com- ERROR parison is again made). If there is a match, the Sec- tor Number of the 10 field is compared with the Sector Register. If there is no Sector match, the next INTRQ encountered 10 field is read off the disk and com- RESET BUSY parisons again made. If the 10 field CRC is correct, the data field is located and is either written into, or TYPE I COMMAND FLOW. read from, depending upon the command. 1-34 Floppy Disk Controller Devices generated at the completion of the command. If m = 1, multiple records are read or written with the Sec- tor Register internally updated so that an address verification occurs on the next record. The WD1772-02 continues to read or write multiple records and updates the Sector Register in numerical ascending sequence until the Sector Register exceeds the number of sectors on the track or until the Force Inter- rupt Command is loaded into the Command Register, which terminates the command and generates an interrupt. For example: If the WD1772-02 is instructed to read sector 27 and there are only 26 on the track, the Sec- tor Register exceeds the number available. The WD1772-02 searches for 5 disk revolutions, interrupts out, resets Busy, and sets the Record Not Found Status Bit. READ SECTOR Upon receipt of the Read Sector Command, the Busy Status Bit is set, then when an ID field is encountered that has the correct track number, correct sector SETMO number, and correct CRC, the data field is presented WAIT 61NDEX PULSES to the computer. The Data Address Mark of the data field is found with 30 bytes in single density and 43 bytes in double density of the last ID field CRC byte. If not, the ID field is searched for and verified again followed by the Data Address Mark search. If, after five revolutions the DAM is not found, the Record Not 4 Found Status Bit is set and the operation is ter- minated. When the first character or byte of the data field is shifted through the DSR, it is transferred to the DR, and DRo is generated. When the next byte is accumulated in the DSR, it is transferred to the DR and another DRo is generated. If the computer has not read the previous contents of the DR before a new character is transferred, that character is lost and the Lost Data Status Bit is set. This sequence continues until the complete data field is inputted to the com- puter. If there is a CRC error at the end of the data field, the CRC Error Status bit is set, and the com- mand is terminated (even if it is a multiple record command). At the end of the Read operation, the type of Data Address Mark encountered in the data field is recorded in the Status Register (Bit 5) as shown: INTRQ, RESET BUSY SET WRITE PROTECT STATUS BIT 5 1 Deleted Data Mark TYPE II COMMAND o Data Mark The WD1772-02 finds an ID field with a Track number, Sector number, and CRC within 5 revolutions of the WRITE SECTOR disk, or, the Record Not Found Status bit is set (Status Upon receipt of the Write Sector Command, the Busy Bit 4) and the command is terminated with an INTRa. Status Bit is set. When an ID field is encountered that Each of the Type II Commands contains an m flag has the correct track number, correct sector number, which determines if multiple records (sectors) are read and correct CRC, a DRo is generated. The WD1772-02 or written, depending upon the command. If m = 0, counts off 11 bytes in single density and 22 bytes in a single sector is read or written and an interrupt is double density from the CRC field and the WG Floppy Disk Controller Devices 1-35 INTRa, RESET BUSY SET RECORD·NOT FOUND NO NO NO SET CRC STATUS ERROR READ TYPE II COMMAND ouput is made active if the ORO is serviced (Le., the 80 DATA ADDRESS MARK (BIT 0) DR is loaded by the computer). If ORO is not serviced, the command is terminated and the Lost Data Status 1 Deleted Data Mark Bit is set. If the ORO is serviced, the WG is made o Data Mark active and six bytes of zeroes in single density and 12 bytes in double density are written on the disk. The The WD1772-02 writes the data field and generates Data Address Mark is then written on the disk as de- ORO's to the computer. If the ORO is not serviced termined by the ao field of the command as shown: in time for continuous writing, the Lost Data Status 1-36 Floppy Disk Controller Devices READ SECTOR SEQUENCE NO SET DATA LOST INTRO, RESET BUSY SET CRC ERROR INTRO RESET BUSY TYPE II COMMAND Floppy Disk Controller Devices 1-37 WRITE SEQUENCE SET DATA LOST WRITE BYTE OF ZEROES NO TYPE II COMMAND 138 Floppy Disk Controller Devices Bit is set and a byte of zeroes is written on the disk. gap information is included in the data stream; and The command is not terminated. After the last data the Address Mark Detector is on fer the duration of byte is written on the disk, the two·byte CRC is com- puted internally and written on the disk fOllowed by one byte of logic ones in FM or in MFM. The WG out- the command. Because the AM detector is always on, write splices or noise may cause the chip to look for an AM. ...=E.....c put is then deactivated. INTRa sets 24 ",sec (MFM) The ID AM, ID field, ID CRC bytes, DAM, Data, and ..... N after the last CRC byte is written. For partial sector Data CRC Bytes for each sector are correct. The Gap o• writing, the proper method is to write data and fill the Bytes may be read incorrectly during write-splice time N balance with zeroes. because of synchronization. TYPE III COMMANDS WRITE TRACK FORMATTING THE DISK Read Address Data and gap information are provided at the com- Upon receipt of the Read Address Command, the puter interface. Formatting the disk is accomplish- Busy Status Bit is set. The next encountered ID field ed by positioning the head over the desired track is then read in from the disk, and six data bytes of number and issuing the Write Track Command. the ID field are assembled and transferred to the DR, Upon receipt of the Write Track Command, the Busy and a DRa is generated for each byte. The six bytes Status Bit is set. Writing starts with the leading edge of the ID field are shown: of the first encountered Index Pulse and continues until the next Index Pulse, at which time the interrupt TRACK SIDE SECTOR SECTOR CRC CRC is activated. The Data Request is activated im-· ADDR NUMBER ADDR LENGTH 1 2 mediately upon receiving the command, but writing 4 does not start until after the first byte is loaded into 1 2 3 5 6 the Data Register. If the DR is not loaded within three byte times, the operation is terminated making the Although the CRC characters are transferred to the device Not Busy, the lost Data Status Bit is set, and computer, the WD1772-02 checks for validity and the the interrupt is activated. If a byte is not present in CRC error status bit is set if there is a CRC error. The the DR when needed, a byte of zeroes is substituted. Track Address of the ID field is written into the sec- tor register so that a comparison can be made by the This sequence continues from one Index Pulse to the user. At the end of the operation, an interrupt is next. Normally, whatever data pattern appears in the generated and the Busy Status is reset. Data Register is written on the disk with a normal clock pattern. However, if the WD1772-02 detects a Read Track data pattern of F5 through FE in the Data Register, Upon receipt of the Read Track Command, the head this is interpreted as Data Address Marks with miss- is loaded and the Busy Status bit is set. Reading ing clocks or CRC generation. starts with the leading edge of the first encountered The CRC generator is initialized when any data byte index pulse and continues until the next index pulse. from F8 to FE is transferred from the DR to the DSR All Gap, Header, and data bytes are assembled and in FM or by receipt of F5 in MFM. An F7 pattern transferred to the data register and DRa's are generates two CRC characters in FM or MFM. As a generated for each byte. The accumulation of bytes consequence, the patterns F5 through FE do not ap- is synchronized to each address mark encountered. pear in the gaps, data field, or ID fields. Also, CRC's An interrupt is generated at the completion of the are generated by an F7 pattern. command. Disks are formatted in IBM 3740 or System 34 formats This command has several characteristics which with sector lengths of 128, 256, 512, or 1024 bytes. make it suitable for diagnostic purposes. These characteristics are: no CRC checking is performed; DATA PATTERN -- -- IN DR (HEX) IN FM (DDEN = 1) IN MFM (DDEN = 0) 00 thru F4 Write 00 thru F4 with ClK = FF Write 00 thru F4, in MFM F5 Not Allowed Write A1 * in MFM, Present CRC F6 Not Allowed Write C2** in MFM F7 Generate 2 CRC bytes Generate 2 CRC bytes F9 thru FB Write F8 thru FB, ClK = C7, Preset CRC Write F8 thru FB, in MFM FC Write FC with ClK = D7 Write FC in MFM FD Write FD with ClK = FF Write FD in MFM FE Write FE, ClK = C7, Preset CRC Write FE in MFM FF Write FF with ClK = FF Write FF in MFM *Missing clock transition between bits 4 and 5. **Missing clock transition between bits 3 and 4. Floppy Disk Controller Devices 1-39 =E ....c ...... ...... N o• N DELAY 6 INDEX PULSES NO SETINTRQ LOST DATA RESET BUSY TYPE III COMMAND WRITE TRACK 1-40 Floppy Disk Controller Devices :E c ..... ...... ...... N o• N WRITE 2 CRC CHARS. ClK = FF WRITE FC ClK :: 07 WRITE FD, FE OR FB·F9, ClK :: C7 INITIALIZE CRC WRITE BYTE OF ZEROES SET DATA lOST WRITE A1 IN MFM WITH MISSING CLOCK INITIALIZE CRC WRITE C2 IN MFM WITH MISSING CLOCK WRITE 2 CRC CHARS. TYPE III COMMAND WRITE TRACK Floppy Disk Controller Devices 1-41 TYPE IV COMMANDS user program to determine when a command is com- plete, in lieu of using the INTRa line. When using the The Forced Interrupt Command is used to terminate INTRa, a Busy Status check is not recommended a multiple sector read or write command or to ensure because a read of the Status Register to determine Type I status in the Status Register. This command the condition of busy resets the INTRa line. is loaded into the Command Register at any time. If there is a current command under execution, (Busy The format of the Status Register is shown below: Status Bit set), the command is terminated and the Busy Status Bit reset. (BITS) The lower four bits of the command determine the 7 1 6 -r 5 1 4 1 3 I 2 I 1 I 0 conditional interrupt as follows: S7 I S6 I S5 I S4 I S3 I S2 I S1 I SO 10 = Not used 11 = Not Used Because of internal sync cycles, certain time delays 12 = Every Index Pulse are observed when operating under programmed I/O, 13 = Immediate Interrupt as shown. The conditional interrupt is enabled when the cor· Delay Req'd. responding bit positions of the command (1 3-1 0) are Operation Next Operation FM MFM set to a 1. When the condition for interrupt is met, the INTRa line goes high signifying that the condi- Write to Read Busy Bit 48J-1sec 24J-1sec tion specified has occurred. If 13-1 0 are all set to zero Command Reg. (Status Bit 0) (Hex ~O), no interrupt occurs but any command Write to Read Status 64J-1sec 32J-1sec presently under execution is immediately terminated. Command Reg. Bits 1-7 When using the immediate interrupt condition (13 = 1), an interrupt is immediately generated and the cur- Write Read Same 32J-1sec 16J-1sec rent command terminated. Reading the status or Register Register writing to the command register does not automatically clear the interrupt. The Hex DO is the RECOMMENDED· 128 BYTES/SECTOR only command that enables the immediate interrupt (Hex 08) to clear on a subsequent load Command The recommended single-density format with 128 Register or Read Status Register operation. Follow bytes/sector is shown below. In order to format a a Hex 08 with DO command. diskette, the user issues the Write Track Command, and loads the Data Register with the following values. Wait 16 J-Isec (double density) or 32 J-Isec (single den- For every byte to be written, there is one Data sity) before issuing a new command after issuing a Request. forced interrupt. Loading a new command sooner than this nullifies the forced interrupt. NUMBER Forced interrupt stops any command at the end of OF BYTES HEX VALUE OF BYTE WRITTEN an internal micro-instruction and generates INTRa ~ FF (or 00) when the specified condition is met. Forced interrupt 6 00 waits until ALU operations in progress are complete 1 FE (10 Address Mark) (CRC calculations, compares, etc.). 1 Track Number Status Register 1 Side Number (00 or 01) Upon receipt of any command, except the Force Inter- 1 Sector Number (1 thru 1A) rupt Command, the Busy Status Bit is set and the rest 1 00 (Sector Length) of the status bits are updated or cleared for the new 1 F7 (2 CRC's written) command. If the Force Interrupt Command is received 11 FF (or 00) when there is a current command under execution, 6 00 the Busy Status Bit is reset, and the rest of the status 1 FB (Data Address Mark) bits are unchanged. If the Force Interrupt Command 128 Data (IBM uses E5) is received when there is not a current command 1 F7 (2 CRC's written) ~ FF (or 00) under execution, the Busy Status Bit is reset and the rest of the status bits are updated or cleared. In this 369* * FF (or 00) case, Status reflects the Type I commands. *Write bracketed field 16 times. The user has the option of reading the Status Register **Continue writing until W01772-02 interrupts out. through program control or using the ORa line with Approx. 369 bytes. OMA or interrupt methods. When the Data Register is read, the ORa bit in the Status Register and the ORa line are automatically reset. A write to the Data Register also causes both ORa's to reset. The Busy Bit in the status may be monitored with a 1-42 Floppy Disk Control/er Devices :n .g ~ o ~ g :::J aiji= .., ~J~~ n I" ____ _ REPEATED _I ~ FOR EACH SECTOR :So o DATA 40 BYTES 6 BYTES ID TRACK SIDE SECTOR LENGTH CRC CRC 11 BYTES 6 BYTES USER DATA CRC CRC 10 BYTES m 'FF' '00' 'FE' 1# 1# 1# 1# 1 2 'FF' '00' ADR 128 BYTES 1 2 'FF' MARK --- - - ~-------------------IDFIELD--------------------~ ~-----------DATA FIELD--------......... WRITE GATE - L __ SINGLE DENSITY FORMAT INDEX PULSE ____ _ REPEATED 14 FOR EACH SECTOR _I I 60 BYTES 12 BYTES 3 BYTES ID TRACK '4E' '00' I 'A1' 'FE' # SIDE # SECTOR LENGTH CRG GRG 22 BYTES 12 BYTES 3 BYTES ID # InC'CI n # 1 2 '4E' I '00' 'A1' I 'FB' USER DATA 256 BYTES nATA ~Ir-I r""\_ GRG 1 GRG 2 -- 24 BYTES '4E' ! WRITE GATE - - - - - - - ' DOUBLE DENSITY FORMAT ...... t ~O-~ll~aM 256 BYTES/SECTOR 1. Non-Standard Formats Shown above is the recommended dual-density for- Variations in the recommended formats are possible mat with 256 bytes/sector. In order to format a to a limited extent if the following requirements are diskette, the user issues the Write Track Command met: and loads the Data Register with the following values. 1) Sector size must be 128, 256, 512 of 1024 bytes. For every byte to be written, there is one data request. 2) Gap 2 cannot be varied from the recommended format. NUMBER 3) 3 bytes of A1 must be used in MFM. OF BYTES HEX VALUE OF BYTE WRITTEN In addition, the Index Address Mark is not required ,.§!) 4E for operation by the WD1772-02. Gap 1, 3 and 4 12 00 lengths are as short as 2 bytes for WD1772-02 opera- 3 F5 (Writes A 1) tion, however PLL lock up time, motor speed varia- 1 FE (10 Address Mark) tion, write-splice area, etc. adds more bytes to each 1 Track Number (0 thru 4C) gap to achieve proper operation. For highest system 1 Side Number (0 or 1) reliability, use the recommended format. 1 Sector Number (1 thru 1A) 1 01 (Sector Length) 1 F7 (2 CRC's written) FM MFM 22 4E Gap I 16 bytes FF 32 bytes 4E 12 00 Gap II 11 bytes FF 22 bytes 4E 3 F5 (Writes A1) * 6 bytes 00 12 bytes 00 1 FB (Data Address Mark) 3 bytes A1 256 DATA Gap 111** 10 bytes FF 24 bytes 4E 1 F7 (Data Address Mark) 4 bytes 00 8 bytes 00 24 4E 3 bytes A1 668** 4E Gap IV 16 bytes FF 16 bytes 4E *Write bracketed field 16 times. * Byte counts must be exact. * *Continue Writing until WD1772-02 interrupts out. **Byte counts are minimum, except exactly 3 bytes Approx. 668 bytes. of A 1 must be written. STATUS REGISTER DESCRIPTION BIT NAME MEANING S7 MOTOR ON This bit reflects the status of the Motor On output. S6 WRITE PROTECT On Read Record: Not Used. On Read Track: Not Used. On any Write: It indicates a Write Protect. This bit is reset when updated. S5 RECORD When set, this bit indicates that the Motor Spin·Up sequence has completed TYPE/SPIN-UP (5 revolutions) on Type I commands. Type 2 & 3 commands, this bit indicates record Type. 0 = Data Mark. 1 = Deleted Data Mark. S4 RECORD NOT When set, it indicates that the desired track, sector, or side were not found. This FOUND (RNF) bit is reset when updated. S3 CRC ERROR If S4 is set, an error is found in one or more 10 fields; otherwise it indicates error data field. This bit is reset when updated. S2 LOST DATN When set, it indicates the computer did not respond to DRQ in one byte time. BYTE This bit is reset to zero when updated. On Type I commands, this bit reflects the status of the TROO signal. S1 DATA REQUEST This bit is a copy of the DRQ output. When set, it indicates the DR is full on a INDEX Read Operation or the DR is empty on a Write operation. This bit is reset to zero when updated. On Type 1 commands, this bit indicates the status of the IP signal. SO BUSY When set, command is under execution. When reset, no command is under execution. 1-44 Floppy Disk Controller Devices DC ELECTRICAL CHARACTERISTICS NOTE MAXIMUM RATINGS Maximum limits indicate where permanent device damage occurs. Continuous operation at these limits Storage Temperature .......... - 55°C( - 67°F) to is not intended and should be limited to those con· + 125°C (257°F) ditions specified in the DC Operating Characteristics. Operating Temperature ............. OOC(32°F) to 70°C (158°F) Ambient Maximum Voltage to Any Input with Respect to Vss ........... + 7V to - 0.5V DC OPERATING CHARACTERISTICS TA = 0°C(32°F) to 70°C (158°F), Vss = OV, Vcc = +5V ± .25V SYMBOL CHARACTERISTIC MIN MAX UNITS CONDITIONS IlL Input Leakage 10 J.LA VIN = Vcc 10L Output Leakage 10 J.LA VOUT = Vcc VIH Input High Voltage 2.0 V VIH Input Low Voltage 0.8 V VOH Output High Voltage 2.4 V 10 = ·100 J.LA VOL Output Low Voltage 0.40 V 10 = 1.6 rnA Po Power Dissipation .75 W Rpu Internal Pull·Up 100 1700 J.LA VIN = OV Icc Supply Current 75(fyp) 150 rnA DPLL SPECIFICATION Fe Capture Range ± 6% (min) TI Lock Response 4 bytes 00 hex (max) WT Window Tolerance 50% for 10E·9 Error Rate (min) Floppy Disk Controller Devices 1-45 AC TIMING CHARACTERISTICS TA = OOC (32°F) to 70°C (158°F), vss = OV, vCC = + 5V ± .25V g~LS ___________---::---__~X VALID X'-___ ~IDV_1 r-IDOH~ R/W _ _- - - - - J 1I I\~-- ~----------~I~:==_IRE==~~7~--------- ORO ... ~If_-------IORR-------~·I ----------------------------------------~ \'---- READ ENABLE TIMING READ ENABLE TIMING - RE such that: RIW = 1, CS = O. SYMBOL CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS tRE RE Pulse Width of CS 200 nsec CL = 50 pf tORR ORO Reset from RE 200 300 nsec tov Data Valid from RE 100 200 nsec CL = 50 pf tOOH Data Hold from RE 20 150 nsec C L = 50pf INTRO Reset from RE 8 Il sec Note: Worst case service time for ORO is 23.5 Ilsec for MFM and 47.5 Ilsec for FM. 1-46 Floppy Disk Controller Devices DALS 0-7 X VALID X =E c .... ~'DS I ....... tDH---.1 ....... N o• * N ~ Cs tWE 'SET~ ~ ,,'HLD R/W '\ Y -1 I L AS t tAH1 I AO,Al DRO tDRW \ WRITE ENABLE TIMING WRITE ENABLE TIMING - WE such that: R1W = 0, CS = O. SYMBOL CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS t AS Setup ADDR t~S 50 nsec tSET Setup RIW to CS a nsec tAH Hold AD DR from CS - - 10 nsec t HLO Hold RIW from CS a nsec tWE WE Pulse Width 200 nsec tORW ORa Reset from WE 100 200 nsec tos Data Setup to WE 150 nsec tOH Data Hold from WE a nsec INTRa Reset from WE 8 J1sec READ DATA TIMING: CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS Raw Read Pulse Width .200 3 J.tsec MFM .400 3 FM Raw Read Cycle Time 3 J1sec Floppy Disk Control/er Devices 1-47 WRITE DATA TIMING: SYMBOL CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS Write Gate to Write Data 4 ",sec FM 2 ",sec MFM Write Data Cycle Time 4,6,8 ",sec Write Gate off from WD 4 ",sec FM 2 ",sec MFM twp Write Data Pulse Width 820 nsec Early MFM 690 nsec Nominal MFM 570 nsec Late MFM 1.38 ",sec FM WRITE DATA TIMING 1-48 Floppy Disk Controller Devices iP f VIH :E I I C ..... ...... ...... r--IIP~ NI 0 N MR 5 5 I VIH I ~IMR---1 ~tCYc..J CLK LSL ~ ( ' - tC0 2 OIRC I STEPIN ~~ 4 - R1 RO·'-" ~tOIR~ ISTP J .. "IISTP 14-- r- tOIA ~ tSPT b--- STEP n ~r--1L- MISCELLANEOUS TIMING MISCELLANEOUS TIMING: SYMBOL CHARACTERISTIC MIN TYP MAX UNITS CONDITIONS tC01 Clock Duty (low) 50 67 nsec tC02 CLock Duty (high) 50 67 nsec t STP Step Pulse Output 4 J1sec MFM 8 FM tOIR Dir Setup to Step 24 J1sec MFM 48 FM tMR Master Reset Pulse Width 50 J1sec tiP Index Pulse Width 20 J1sec Floppy Disk Controller Devices 1-49 1-50 Floppy Disk Control/er Devices WESTERN DIGITAL COR P 0 RAT ION WD1772-02 Floppy Disk Formatter/Controller Family Application Notes INTRODUCTION During Direct Memory Access (DMA) data transfers To meet the demand for a low cost compact lSI between the WD1772-02 and Host Memory, the Data Floppy Disk Controller device, Western Digital has Request (DRO) line is used in Data Transfer Control. developed the WD1772-02. The WD1772-02 is a NMOS This signal also appears as status bit 1 during Floppy Disk Controller device that incorporates the Read/Write operations. On Disk Read operations the FD179X, a digital data separator and write DRO is active when an assembled byte is present in precompensation circuitry all in a single chip. The the Data Register, then reset when read by the Host. device offers soft sector formatting, selectable step- If the Host fails to read the Data Register before the ping rates, automatic track seek with verify, and following byte is assembled in the Data Register, the variable sector lengths. The WD1772-02 comes in a lost data bit is set in Status Register. 28-pin dual-in-line package or quad pack and operates At the completion of every command INTRa is from a single 5 volt only power supply. asserted. INTRa is de-asserted by either reading the status or by loading the Command Register. APPLICATIONS The Mini-Floppy Controller is targeted for the low cost DISKETTE DRIVE INTERFACING sector of the disk drive market, where digital data The WD1772-02 has two modes of operation depen- separation is preferred over analog phase lock loop. ding on the state of DDEN, regardless of the state Included in this market are Personal Computers, Por- DDEN the ClK input remains at 8 MHz. Disk Reads table Computers and Small Business Computers. with sector lengths of 128, 256, 512 and 1024 byte sec- tor in both FM or MFM from diskettes is HOST INTERFACING accomplished via the internal digital data separator. Disk Write operation in MFM on inner tracks may Interfacing to a Host processor is accomplished require write precompensation. Write precompensa- through the eight bit bi-directional Data Access Lines tion is enabled when bit 1 = 0, in the Write command (DAl) and associated control lines. The DAl is used and a precompensation value of 187 nsec is to transfer data, status and control words out of or produced. into WD1772-02. The DAl having three states enabled as an output when Chip Select (CS) is active low and The diskettes spindle motor is controlled by bit 3 of Read/Write (RIW) is high or as input receiver when CS any Type I, II or III command, upon receiving a com- and RIW is low. When transfer of data with the device mand with bit 3 = 0, the spin up sequence is enabled. is required by the Host CS is made low. The address bits AO and A 1 combined with the RIW line select the register and the direction of data. GENERAL INFORMATION A +5 volt supply ±5% is used as Vec, and the clock input requires a free running 50% duty cycle at 8 MHz ± 0.1 %. Floppy Disk Controller Devices 1-51 1-52 Floppy Disk Controller Devices WESTERN DIGITAL c o R p o R A T o N "T1 C ..a. FD179X-02 Floppy Disk Formatter/Controller Family ....... CD >r-------~~R~AW~R~EA~O~-----, AO ~S~ ~~- EARLY F CS L RE WO o p WE p i ··OAlO +S'OK Y BAIl '79X OAL2 FLOPPY DISK WF7VFOE CONTROllER DAn FORMATTER WPRT I OAL" N WG OAl5 T +511 r;m 13 E R TROO 27 RAWREAb F 'OK READY A C TG43 E STEP INTRO DIRC ClK r:~ I HLDC = ·179113 RG 179517 =SSO ··179317 TRUE BUS •• ·1792/4 OPEN DDEN IISS liDO IICC HL T J ONE SHOT (IF USED) PIN DESIGNATION ~ 1 I I +12 +511 T +511 FD179X SYSTEM BLOCK DIAGRAM Floppy Disk Controller Devices 1-53 PIN OUTS "T1 C PIN ....L ...... NUMBER PIN NAME SYMBOL FUNCTION (0 X 1 NO CONNECTION NC Pin 1 is internally connected to a back bias generator 0• and must be left open by the user. I\) - 19 MASTER RESET MR A logic low (50 microseconds min.) on this input resets the device and loads HEX 03 into the command register. The Not Ready (Status Bit 7) is reset during MR ACTIVE. When MR is brought to a logic high a RESTORE Command is executed, regardless of the state of the Ready signal from the drive. Also, HEX 01 is loaded into sector register. 20 POWER SUPPLIES Vss Ground 21 Vee +5V ±5% 40 VDD + 12V±5% COMPUTER INTERFACE: - 2 WRITE ENABLE WE A logic low on this input gates data on the DAL into the selected register when CS is low. - 3 CHIP SELECT CS A logic low on this input selects the chip and enables computer communication with the device. - 4 READ ENABLE RE A logic low on this input controls the placement of data from a selected register on the DAL when CS is low. 5,6 REGISTER SELECT LINES AO,A1 These inputs select the register to receive/transfer data on the DAL lines under RE and WE control: - CS A1 AO RE WE 0 0 0 Status Reg Command Reg 0 0 1 Track Reg Track Reg 0 1 0 Sector Reg Sector Reg 0 1 1 Data Reg Data Reg 7-14 DATA ACCESS LINES DALO-DAL7 Eight bit bi-directional bus used for transfer of data, control, and status. This bus is receiver enabled by WE or transmitter enabled by RE. Each line will drive 1 standard TTL load. 24 CLOCK CLK This input requires a free-running 50% duty cycle square wave clock for internal timing reference, 2 MHz ± 1 % for 8" drives, 1 MHz ± 1 % for mini-floppies. 38 DATA REQUEST DRQ This open drain output indicates that the DR contains assembled data in Read operations, or the DR is empty in Write operations. This signal is reset when serviced by the computer through reading or loading the DR in Read or Write operations, respectively. Use 10K pull-up resistor to + 5. 39 INTERRUPT REQUEST INTRQ This open drain output is set at the completion of any command and is reset when the STATUS register is read or the command register is written to. Use 10K pull-up resistor to + 5. 1-54 Floppy Disk Controller Devices PIN NUMBER PIN NAME SYMBOL FUNCTION FLOPPY DISK INTERFACE: 15 STEP STEP The step output contains a pulse for each step. 16 DIRECTION DIRC Direction Output is active high when stepping in, active low when stepping out. 17 EARLY EARLY Indicates that the WRITE DATA pulse occuring while Early is active (high) should be shifted early for write precompensation. 18 LATE LATE Indicates that the write data pulse occurring while Late is active (high) should be shifted late for write precompensation. -- 22 TEST TEST This input is used for testing purposes only and should be tied to + 5V or left open by the user unless inter- facing to voice coil actuated steppers. 23 HEAD LOAD TIMING HLT When a logic high is found on the HLT input the head is assumed to be engaged. It is typically derived from a 1 shot triggered by HLD. 25 READ GATE RG (1791,1792,1793,1794) This output is used for synchronization of external data separators. The output goes high after two Bytes of zeroes in single density, or 4 Bytes of either zeroes or ones in double density operation. 25 SIDE SELECT OUTPUT SSO (1794,1797) The logic level of the Side Select Output is directly controlled by the'S' flag in Type II or III commands. When U = 1, SSO is set to a logic 1. When U = 0, SSO is set to a logic O. The SSO is compared with the side information in the Sector 10 Field. If they do not compare Status Bit 4 (RNF) is set. The Side Select Output is only updated at the beginning of a Type II or III command. It is forced to a logic 0 upon a MASTER RESET condition. 26 READ CLOCK RCLK A nominal square-wave clock signal derived from the data stream must be provided to this input. Phasing (Le., RCLK transitions) relative to RAW READ is impor- tant but polarity (RCLK high or low) is not. 27 RAW READ RAW READ The data input signal directly from the drive. This input shall be a negative pulse for each recorded flux transition. 28 HEAD LOAD HLD The HLD output controls the loading of the Read-Write head against the media. 29 TRACK GREATER THAN 43 TG43 This output informs the drive that the Read / Write head is positioned between tracks 44-76. This output is valid only during Read and Write Commands. 30 WRITE GATE WG This output is made valid before writing is to be per- formed on the diskette. 31 WRITE DATA WD A 50ns (MFM) or 500 ns (FM) output pulse per flux tran- sition. WD contains the unique Address marks as well as data and clock in both FM and MFM formats. Floppy Disk Controller Devices 1-55 PIN NUMBER PIN NAME SYMBOL FUNCTION 32 READY READY This input indicates disk readiness and is sampled for a logic high before Read or Write commands are performed. If Ready is low the Read or Write opera- tion is not performed and an interrupt is generated. Type I operations are performed regardless of the state of Ready. The Ready input appears in inverted format as Status Register bit 7. 33 WRITE FAULT WFNFOE This is a bi-directional signal used to signify writing VFO ENABLE faults at the drive, and to enable the external PLO data separator. When WG = 1, Pin 33 functions as a WF input. If WF = 0, any write command will im- mediately be terminated. When WG = 0, Pin 33 func- tion as a VFOE output. VFOE will go low during a read operation after the head has loaded and settled (H LT = 1). On the 1795/7, it will remain low until the last bit of the second CRC byte in the ID field. VFOE will then go high until 8 bytes (MFM) or 4 bytes (FM) before the Address Mark. It will then go active until the last bit of the second CRC byte of the Data Field. On the 1791/3, VFOE will remain low until the end of the Data Field. This pin has an internal100K Ohm pull-up resister. -- 34 TRACK 00 TROO This input informs the FD179X that the Read / Write head is positioned over Track 00. - 35 INDEX PULSE IP This input informs the FD179X when the index hole is encountered on the diskette. 36 WRITE PROTECT WPRT This input is sampled whenever a Write Command is received. A logic low terminates the command and sets the Write Protect Status bit. 37 DOUBLE DENSITY DDEN This input pin selects either single or double density operation. When DDEN = 0, double density is selected. When DDEN = 1, single density is selec- ted. This line must be left open on the 179214. GENERAL DESCRIPTION The FD179X is set up to operate on a multiplexed bus with other bus-oriented devices. The FD179X are N-Channel Silicon Gate MOS LSI devices which perform the functions of a Floppy Disk The FD179X is TTL compatible on all inputs and out- Formatter/Controller in a single chip implementation. puts. The outputs will drive ONE TTL load or three The FD179X, which can be considered the end result LS loads. The 1793 is identical to the 1791 except the of both the FD1771 and FD1781 designs, is IBM 3740 DAL lines are TRUE for systems that utilize true data compatible in single density mode (FM) and System busses. 34 compatible in Double Density Mode (MFM). The The 1795/7 has a side select output for controlling FD179X contains all the features of its predecessor double sided drives, and the 1792 and 1794 are "Single the FD1771, plus the added features necessary to Density Only" versions of the 1791 and 1793 respec- ReadlWrite and format a double density diskette. tively. On these devices, DDEN must be left open. These include address mark detection, FM and MFM encode and decode logic, window extension, and ORGANIZATION write precompensation. In order to maintain com- The Floppy Disk Formatter is illustrated in the block patibility, the FD1771, FD1781, and FD179X designs diagram. The primary sections include the parallel were made as close as possible with the computer interface, instruction set, and I/O registers being iden- processor interface and the Floppy Disk Interface. tical. Also, head load control is identical. In each case, the actual pin assignments vary by only a few pins Data Shift Register - This 8-bit register assembles from anyone to another. serial data from the Read Data input (RAW READ) The processor interface consists of an 8-bit bit direc- during Read operations and transfers serial data to tional bus for data, status, and control word transfers. the Write Data output during Write operations. 1-56 Floppy Disk Controller Devices Data Register - This 8-bit register is used as a holding should not be loaded when the device is busy unless register during Disk Read and Write operations. In the new command is a force interrupt. The command Disk Read operations the assembled data byte is register can be loaded from the DAL, but not read transferred in parallel to the Data Register from the onto the DAL. Data Shift Register. In Disk Write operations informa- Status Register (STR) - This 8-bit register holds device tion is transferred in parallel from the Data Register Status information. The meaning of the Status bits to the Data Shift Register. is a function of the type of command previously When executing the Seek command the Data Register executed. This register can be read onto the DAL, but holds the address of the desired Track position. This not loaded from the DAL. register is loaded from the DAL and gated onto the CRC Logic - This logic is used to check or to generate DAL under processor control. the 16-bit Cyclic Redundancy Check (CRG). The Track Register - This 8-bit register holds the track polynomial is:G(x) = x 16 + X 12 + x6 + 1. number of the current Read/Write head position. It The CRC includes all information starting with the is incremented by one every time the head is step- address mark and up to the CRC characters. The CRC ped in (towards track 76) and decremented by one register is preset to ones prior to data being shifted when the head is stepped out (towards track 00). The through the circuit. contents of the register are compared with the recorded track number in the 10 field during disk Arithmetic/Logic Unit (ALU) - The ALU is a serial com- Read, Write, and Verify operations. The Track Register parator, incrementer, and decrementer and is used can be loaded from or transferred to the DAL. This for register modification and comparisons with the Register should not be loaded when the device is disk recorded 10 field. busy. Timing and Control - All computer and Floppy Disk Sector Register (SR) - This 8-bit register holds the interface controls are generated through this logic. address of the desired sector position. The contents The internal device timing is generated from an exter- of the register are compared with the recorded sec- nal crystal clock. tor number in the 10 field ,during disk Read or Write The FD179X has two different modes of operation operations. The Sector Register contents can be according to the state of DDEN. When DDEN = 0 loaded from or transferred to the DAL. This register double density (MFM) is assumed. When DDEN should not be loaded when the device is busy. = 1, single density (FM) is assumed. 1792 & 1794 are Command Register (CR) - This 8-bit register holds the single density only. command presently being executed. This register -~ FD179X BLOCK DIAGRAM Floppy Disk Controller Devices 1-57 AM Detector - The address mark detector detects ID, At the completion of every command an INTRa is data and Index address marks during read and write generated. INTRa is reset by either reading the status operations. register or by loading the command register with a new command. In addition, INTRa is generated if a PROCESSOR INTERFACE Force Interrupt command condition is met. The interface to the processor is accomplished The 179X has two modes of operation according to through the eight Data Access Lines (DAL) and the state of DDEN (Pin 37). When DDEN = 1, associated control signals. The DAL are used to single density is selected. In either case, the CLK transfer Data, Status, and Control words out of, or Input (Pin 24) is at 2 MHz. However, when interfac- into the FD179X. The DAL are three state buffers ing with the mini-floppy, the CLK input is set at 1 MHz that are enabled as output drivers when Chip Select for both single density and double density. (CS) and Read Enable (RE) are active (low logic state) or act as input receivers when CS and Write GENERAL DISK READ OPERATIONS Enable (WE) are active. Sector lengths of 128, 256, 512 or 1024 are obtainable When transfer of data with the Floppy Disk Controller in either FM or MFM formats. For FM, DDEN is required by the host processor, the device address should be placed to logical "1." For MFM formats, is decoded and CS is made low. The address bits A1 DDEN should be placed to a logical "0." Sector and AO, combined with the signals RE during a lengths are determined at format time by the fourth Read operation or WE during a Write operation are byte in the "ID" field. interpreted as selecting the following registers: Sector Length Table* - A1 - AO READ (RE) WRITE (WE) Sector Length Number of Bytes 0 0 Status Regiser Command Register Field (hex) in Sector (decimal) 0 1 Track Register Track Register 1 0 Sector Register Sector Register 00 128 1 1 Data Register Data Register 01 256 02 512 During Direct Memory Access (DMA) types of data 03 1024 transfers between the Data Register of the DF179X *1795/97 may vary - see command summary. and the processor, the Data Request (DRa) output is used in Data Transfer control. This signal also The number of sectors per track as far as the FD179X appears as status bit 1 during Read and Write is concerned can be from 1 to 255 sectors. The operations. number of tracks as far as the FD179X is concerned is from 0 to 255 tracks. For IBM 3740 compatibility, On Disk Read operations the Data Request is sector lengths are 128 bytes with 26 sectors per track. activated (set high) when an assembled serial input For System 34 compatibility (MFM), sector lengths are byte is transferred in parallel to the Data Register. This 256 bytes/sector with 26 sectors/track; or lengths of bit is cleared when the Data Register is read by the 1024 bytes/sector with 8 sectors/track. (See Sector processor. If the Data Register is read after one or Length Table.) more characters are lost, by having new data transfer- red into the register prior to processor readout, the For read operations in 8" double density the FD179X Lost Data bit is set in the Status Register. The Read requires RAW READ Data (Pin 27) signal which is a operation continues until the end of sector is reached. 200 ns pulse per flux transition and a Read clock (RCLK) signal to indicate flux transition spacings. THE On Disk Write operations the data Request is RCLK (Pin 26) signal is provided by some drives but activated when the Data Register transfers its con- if not it may be derived externally by Phase lock loops, tents to the Data Shift Register, and requires a new one shots, or counter techniques. In addition, a Read data byte. It is reset when the Data Register is loaded Gate Signal is provided as an output (Pin 25) on with new data by the processor. If new data is not 1791/92193/94 which can be used to inform phase lock loaded at the time the next serial byte is required by loops when to acquire synchronization. When reading the Floppy Disk, a byte of zeroes is written on the from the media in FM. RG is made true when diskette and the Lost Data bit is set in the Status Register. 1-58 Floppy Disk Controller Devices 2 bytes of zeroes are detected. The FD179X must find For write operations, the FD179X provides Write Gate an address mark within the next 10 bytes; otherwise (Pin 30) and Write Data (Pin 31) outputs. Write data RG is reset and the search for 2 bytes of zeroes consists of a series of 500 ns pulses in FM (DDEN begins all over again. If an address mark is found = 1) and 200 ns pulses in MFM (DDEN = 0). within 10 bytes, RG remains true as long as the Write Data provides the unique address marks in both FD179X is deriving any useful information from the formats. data stream. Similarly for MFM, RG is made active when 4 bytes of "00" or "FF" are detected. The Also during write, two additional Signals are provided FD179X must find an address mark within the next for write precompensation. These are EARLY (Pin 17) 16 bytes, otherwise RG is reset and search resumes. and LATE (Pin 18). EARLY is active true when the WD pulse appearing on (Pin 30) is to be written EARLY. During read operations (WG = 0), the VFOE (Pin LATE is active true when the WD pulse is to be writ- 33) is provided for phase lock loop synchronization. ten LATE. If both EARLY and LATE are low when the VFOE will go active low when: WD pulse is present, the WD pulse is to be written at nominal. Since write precompensation values vary a) Both H LT and H LD are True from disk manufacturer to disk manufacturer, the b) Settling Time, if programmed, has expired actual value is determined by several one shots or c) The 179X is inspecting data off the disk delay lines which are located external to the FD 179X. The write precompensation signals EARLY and LATE If WFVFOE is not used, leave open or tie to a 10K are valid for the duration of WD in both FM and MFM resistor to + 5. formats. GENERAL DISK WRITE OPERATION READY When writing is to take place on the diskette the Write Whenever a Read or Write command (Type II or III) Gate (WG) output is activated, allowing current to flow is received the FD179X samples the Ready input. If into the Read / Write head. As a precaution to this input is logic low the command is not executed erroneous writing the first data byte must be loaded and an interrupt is generated. All Type I commands into the Data Register in response to a Data Request are performed regardless of the state of the Ready from the FD179X before the Write Gate signal can be input. Also, whenever a Type II or III command is activated. received, the TG43 signal output is updated. Writing is inhibited when the Write Protect input is COMMAND DESCRIPTION a logic low, in which case any Write command is immediately terminated, an interrupt is generated and The FD179X will accept eleven commands. Command the Write Protect status bit is set. The Write Fault words should only be loaded in the Command Input, when activated, signifies a writing fault condi- Register when the Busy status bit is off (Status bit tion detected in disk drive electronics such as failure 0). The one exception is the Force Interrupt command. to detect write current flow when the Write Gate is Whenever a command is being executed, the Busy activated. On detection of this fault the FD179X ter- status bit is set. When a command is completed, an minates the current command, and sets the Write interrupt is generated and the Busy status bit is reset. Fault bit (bit 5) in the Status Word. The Write Fault The Status Register indicates whether the completed Input should be made inactive when the Write Gate command encountered an error or was fault free. For output becomes inactive. ease of discussion, commands are divided into four types. Commands and types are summarized in Table 1. TABLE 1. COMMAND SUMMARY A. Commands for Models: 1791, 1792, 1793, 1794 B. Commands for Models: 1795, 1797 Bits Bits Type Command 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 I Restore 0 0 0 0 h V r1 ro 0 0 0 0 h V r1 ro I Seek 0 0 0 1 h V r1 ro 0 0 0 1 h V r1 ro I Seek 0 0 0 1 h V r1 ro 0 0 1 T h V r1 ro I Step-in 0 1 0 T h V r1 ro 0 1 0 T h V r1 ro I Step-out 0 1 1 T h V r1 ro 0 1 1 T h V r1 ro II Read Sector 1 0 0 m S E C 0 1 0 0 m L E U 0 II Write Sector 1 0 1 m S E C ao 1 0 1 m L E U ao III Read Address 1 1 0 0 0 E 0 0 1 1 0 0 0 E U 0 III Read Track 1 1 1 0 0 E 0 0 1 1 1 0 0 E U 0 III Write Track 1 1 1 1 0 E 0 0 1 1 1 1 0 E U 0 IV Force Interrupt 1 1 0 1 13 12 11 10 1 1 0 1 13 12 11 10 Floppy Disk Controller Devices 1-59 TABLE 2. FLAG SUMMARY "TI FLAG SUMMARY C ..... Command Bit ...... Type No(s) Description CO X 0• I 0, 1 r1rO = Stepping Motor Rate I\) See Table 3 for Rate Summary I 2 v = Track Number Verify Flag V = O,No verify V = 1,Verify on destination track I 3 h = Head Load Flag h = 1,Load head at beginning h = 0 Unload head at beginning I 4 T = Track Update Flag T = O,No update T = 1,Update track register 0 " ao = Data Address Mark ao = O,FB(DAM) ao = 1,F8(deleted DAM) 1 C = Side Compare Flag C = O,Disable side compare " C = 1,Enable side compare ,,& III 1 U = Update SSO U = O,Update SSO to 0 U = 1,Update SSO to 1 ,,& "I 2 E = 15 MS Delay E = O,No 15 MS delay E = 1,15 MS delay 3 S = Side Compare Flag S = O,Compare for side 0 " S = 1,Compare for side 1 L = Sector Length Flag LSB's Sector Length in ID Field " 3 00 01 10 11 L= 0 256 512 1024 128 L= 1 128 256 512 1024 m = Multiple Record Flag m = O,Single record " 4 m = 1,Multiple records IV 0-3 Ix = Interrupt Condition Flags 10 = 1 Not Ready To Ready Transition 11 = 1 Ready To Not Ready Transition 12 = 1 Index Pulse 13 = 1 Immediate Interrupt, Requires A Reset 13-10 = 0 Terminate With No Interrupt (INTRQ) NOTE: See Type IV Command Description for further information. 1-60 Floppy Disk Controller Devices TYPE I COMMANDS Type II or III command. Once HLD is active it remains active until either a Type I command is received with The Type I Commands include the Restore, Seek, Step, Step-in, and Step-Out commands. Each of the (h = a and V = 0); or if the FD179X is in an idle state (non-busy) and 15 index pulses have occurred. Type I Commands contains a rate field (ro r1), which determines the stepping motor rate as defined in Head Load Timing (HLD is an input to the FD179X Table 3. which is used for the head engage time. When HLT A 2J1-s (MFM) or 4J1-s (FM) pulse is provided as an out- = 1, the FD179X assumes the head is completely engaged. The head engage time is typically 30 to 100 put to the drive. For every step pulse issued, the drive ms depending on drive. The low to high transition on moves one track location in a direction determined HLD is typically used to fire a one shot. The output by the direction output. The chip will step the drive of the one shot is then used for HLT and supplied in the same direction it last stepped unless the com- mand changes the direction. as an input to the FD179X. The Direction signal is active high when stepping in and low when stepping out. The Direction Signal is valid 12J1-s before the first stepping pulse is generated. HLD tl-----' The rates (shown in Table 3) can be applied to a Step- ~50T0100mS_____1 Direction Motor through the device interface. TABLE 3. STEPPING RATES sf- - - - i ,..------ HL T (FROM ONE SHOT) ClK 2 MHz 2 MHz 1 MHz 1 MHz 2 MHz 1 MHz DO EN 0 0 1 X X HEAD LOAD TIMING R1 RO TEST = 1TEST= 1 TEST = 1 TEST = 1 TEST = OTEST=O 0 0 3 ms 3 ms 6 ms When both HLD and HLT are true, the FD179X will 6 ms 1851"s 3681"s then read from or write to the media. The "and" of 0 1 6 ms 6 ms 12 ms 12 ms 19O1"s 38Ol"s 1 0 10 ms HLD and HLT appears as status Bit 5 in Type I status. 10 ms 20 ms 20 ms 1981"s 3961"s 1 1 15 ms 15 ms 30 ms 30 ms 2081"s 4161"s In summary for the Type I commands: if h = a and V = 0, HLD is reset. If h = 1 and V = 0, HLD is set After the last directional step an additional 15 at the beginning of the command and HLT is not milliseconds of head settling time takes place if the sampled nor is there an internal 15 ms delay. If h = Verify flag is set in Type I commands. Note that this = a and V 1, HLD is set near the end of the com- time doubles to 30 ms for a 1 MHz clock. If TEST mand, an internal 15 ms occurs, and the FD179X waits = 0, there is zero settling time. There is also a 15 for HLT to be true. If h = 1 and V = 1, HLD is set ms head settling time if the E flag is set in any Type at the beginning of the command. Near the end of II or III command. the command, after all the steps have been issued, When a Seek, Step or Restore command is executed an internal 15 ms delay occurs and the FD 179X then waits for HLT to occur. an optional verification of Read-Write head position can be performed by setting bit 2 (V =1) in the com- For Type II and III commands with E flag off, HLD mand Word to a logic 1. The verification operation is made active and HLT is sampled until true. With begins at the end of the 15 millisecond settling time E flag on, HLD is made active, an internal 15 ms delay after the head is loaded against the media. The track occurs and then HLT is sampled until true. number from the first encountered ID Field is com- RESTORE (SEEK TRACK 0) pared against the contents of the Track Register. If the track numbers compare and the ID Field Cyclic Upon receipt of this comand the Track 00 Redundancy Check (CRG) is correct, the verify opera- (TROD) input is sampled. If TROD is active low indi- tion is complete and an INTRa is generated with no cating the ReadlWrite head is positioned over track errors. If there is a match but not a valid CRC, the 0, the Track Register is loaded with zeroes and an CRC error status bit is set (Status bit 3), and the next interrupt is generated. If TROO is not active low, encountered ID field is read from the disk for the stepping pulses (pins 15 to 16) at a rate specified by verification operation. the r1rO field are issued until the TROO input is acti- vated. At this time the Track Register is loaded with The FD179X must find an ID field with correct track zeroes and an interrupt is generated. If the TROO number and correct CRC within 5 revolutions of the input does not go active low after 255 stepping pulses, media; otherwise the seek error is set and an INTRa the FD179X terminates operation, interrupts, and sets is generated. If V = 0, no verification is performed. the Seek error status bit, providing the V flag is set. The Head Load (HLD) output controls the movement A verification operation also takes place if the V flag of the read / write head against the media. HLD is is set. The h bit allows the head to be loaded at the activated at the beginning of a Type I command if start of command. Note that the Restore command the h flag is set (h = 1), at the end of the Type I com- is executed when MR goes from an active to an mand if the verify flag (V = 1), or upon receipt of any inactive state and that the DRa pin stays low. Floppy Disk Cqntro/ler Devices 1-61 ." o -" ...... CO ><• o N TYPE I COMMAND FLOW TYPE I COMMAND FLOW SEEK STEP This command assumes that the Track Register con- Upon receipt of this command, the FD179X issues tains the track number of the current position of the one stepping pulse to the disk drive. The stepping ReadlWrite head and the Data Register contains motor direction is the same as in the previous step the desired track number. The FD179X will update the command. After a delay determined by the r1rO field, Track register and issue stepping pulses in the a verification takes place if the V flag is on. If the U appropriate direction until the contents of the Track flag is on, the Track Register is updated. The h bit register are equal to the contents of the Data Register allows the head to be loaded at the start of the com- (the desired track location). A verification operation mand. An interrupt is generated at the completion of takes place if the V flag is on. The h bit allows the the command. head to be loaded at the start of the command. An STEP-IN interrupt is generated at the completion of the com- mand. An interrupt is generated at the completion of Upon receipt of this command, the FD179X issues the command. Note: When using multiple drives, the one stepping pulse in the direction towards track 76. register must be updated for the drive selected before If the U flag is on, the Track Register is incremented seeks are issued. by one. After a delay determined by the r1rO field, a verification takes place if the V flag is on. The h bit allows the head to be loaded at the start of the 1-62 Floppy Disk Controller Devices command. An interrupt is generated at the comple- load the Sector Register with the desired sector tion of the command. number. Upon receipt of the Type II command, the "T1 busy status Bit is set. If the E flag = 1 (this is the C STEP-OUT normal case) HLO is made active and HLT is sampled -"" Upon receipt of this command, the F0179X issues after a 15 msec delay. If the E flag is 0, the head is one stepping pulse in the direction towards track O. loaded and HLT sampled with no 15 msec delay. """ co X If the U flag is on, the Track Register is decremented When an 10 field is located on the disk, the F0179X o• by one. After a delay determined by the r1rO field, a I\) verification takes place if the V flag is on. The h bit compares the Track Number on the 10 field with the allows the head to be loaded at the start of the com- Track Register. If there is not a match, the next mand. An interrupt is generated at the completion of encountered 10 field is ready and a comparison is the command. again made. If there was a match, the Sector Number of the 10 field is compared with the Sector Register. EXCEPTIONS If there is not a Sector match, the next encountered On the 1795/ 7 devices, the SSO output is not 10 field is read off the disk and comparisons again affected during Type I commands, and an internal made. If the 10 field CRC is correct, the data field is side compare does not take place when the M Verify then located and will be either written into, or read Flag is on. from depending upon the command. The F0179X must find an ID field with a Track number, Sector number, side number, and CRC within four revolutions of the disk; otherwise, the Record Not Found status bit is set (Status bit 3) and the command is terminated VERIFY SEQUENCE with an interrupt. NOTE: I1lTrr = 0, THERE IS NO 15MS DELAY ir ~ = 1 AND eLK = t MHz, THERE IS A JOM$ DELAY TYPE I COMMAND FLOW TYPE II COMMANDS The Type II Commands are the Read Sector and Write Sector commands. Prior to loading the Type II Com- mand into the Command Register, the computer must TYPE II COMMAND Floppy Disk Controller Devices 1-63 Each of the Type II Commands contains an (m) flag The Type II and III commands contain a side select which determines if multiple records (sectors) are to flag (Bit 1). When U = 0, SSO is updated to o. Similar- -n be read or written, depending upon the command. If ly, U = 1 updates SSO to 1. The chip compares the C ...... m = 0, a single sector is read or written and an inter- SSO to the ID field. If they do not compare within 5 ....... rupt is generated at the completion of the command. revolutions the interrupt line is made active and the co If m = 1, multiple records are read or written with RNF status bit is set. >e of synchronization. ·10 liS IF CLOCK .1MHz TYPE III COMMAND WRITE TRACK TYPE III COMMAND WIRTE TRACK 1-66 Floppy Disk Controller Devices CONTROL BYTES FOR INITIALIZATION "T1 DATA PATIERN FD179X INTERPRETATION FD179~NTERPRETATION C IN DR (HEX) IN FM (DDEN 1) = IN MFM (DDEN = 0) ~ ........ 00 thru F4 Write 00 thru F4 with ClK FF= Write 00 thru F4,in MFM CD >< F5 Not Allowed Write A 1* in MFM, Present CRC I F6 Not Allowed Write C2** in MFM o I\,) F7 Generate 2 CRC bytes Generate 2 CRC bytes F8 thru FB Write F8 thru FB, ClK = C7, Preset CRC Write F8 thru FB, in MFM FC Write FC with ClK = 07 Write FC in MFM FD Write FD with ClK = FF Write FD in MFM FE Write FE, ClK =C7, Preset CRC Write FE in MFM FF Write FF with ClK = FF Write FF in MFM *Missing clock transition between bits 4 and 5. * *Missing clock transition between bits 3 and 4. WRITE TRACK FORMATTING THE DISK or to insure Type I status in the status register. This (Refer to section on Type III commands for flow command can be loaded into the command register diagrams.) at any time. If there is a current command under execution (busy status bit set) the command will be Formatting the disk is a relatively simple task when terminated and the busy status bit reset. operating programmed I / 0 or when operating under The lower four bits of the command determine the DMA with a large amount of memory. Data and gap conditional interrupt as follows: information must be provided at the computer inter- face. Formatting the disk is accomplished by posi- 10 = Not-Ready to Ready Transition tioning the R / W head over the desired track number 11 = Ready to Not-Read Transition and issuing the Write Track command. 12 = Every Index Pulse Upon receipt of the Write Track command, the head 13 = Immediate Interrupt is loaded and the Busy Status bit is set. Writing starts The conditional interrupt is enabled when the cor- with the leading edge of the first encountered index responding bit positions of the command 13-1 0) are pulse and continues until the next index pulse, at set to a 1. Then, when the condition for interrupt is which time the interrupt is activated. The Data met, the INTRQ line will go high signifying that the Request is activated immediately upon receiving the condition specified has occurred. If 13-10 are all set to command, but writing will not start until after the first zero (HEX DO), no interrupt will occur but any com- byte has been loaded into the Data Register. If the mand presently under execution will be immediately DR has not been loaded by the time the index pulse terminated. When using the immediate interrupt con- is encountered the operation is terminated making dition (13 = 1) an interrupt will be immediately the device Not Busy, the lost Data Status Bit is set, generated and the current command terminated. and the interrupt is activated. If a byte is not present Reading the status or writing to the command register in the DR when needed, a byte of zeroes is will not automatically clear the interrupt. The HEX DO substituted. is the only command that will enable the immediate This sequence continued from one index mark to the interrupt (HEX 08) to clear on a subsequent load com- next index mark. Normally, whatever data pattern mand register or read status register operation. Follow appears in the data register is written on the disk with a HEX 08 with DO command. a normal clock pattern. However, if the FD179X Wait 8 micro sec (double density) or 16 micro sec detects a data pattern of F5 through FE in the data (single density) before issuing a new command after register, this is interpreted as data address marks with issuing a forced interrupt (times double when clock missing clocks or CRC generation. = 1 MHz). loading a new command sooner than this The CRC generator is initialized when any data byte will nullify the forced interrupt. from F8 to FE is about to be transferred from the DR Forced interrupt stops any command at the end of to the DSR in FM or by receipt of F5 in MFM. An F7 an internal micro-instruction and generates INTRQ pattern will generate two CRC characters in FM or when the specified condition is met. Forced interrupt MFM. As a consequence, the patterns F5 through FE will wait until AlU operations in progress are com- must not appear in the gaps, data fields, of 10 fields. plete (CRC calculations, compares, etc.). Also, CRC's must be generated by an F7 pattern. Disks may be formatted in IBM 3740 or System 34 More than one condition may be set at a time. If for formats with sector lengths of 128, 256, 512, or 1024 example, the READY TO NOT-READY condition (11 = bytes. 1) and the Every Index Pulse (1 2 = 1) are both set, the resultant command would be HEX "DA". The "OR" TYPE IV COMMANDS function is performed so that either a READY TO The Forced Interrupt command is generally used to NOT-READY or the next Index Pulse will cause an in- terminate a multiple sector read or write command terrupt condition. Floppy Disk Controller Devices 1-67 READ TRACK "...... c...... SEQUENCE co XI o I\) INTRQ RESET BUSY SET INTRQ RESET BUSY YES READ ADDRESS °11 TEST= f, NO DELAY IITEST=l and ClK=l MHZ~ 30 MS DELAY TYPE III COMMAND Read Track / Address 1-68 Floppy Disk Controller Devices STATUS REGISTER READ ADDRESS Upon receipt of any command, except the Force Inter- SEQUENCE rupt command, the Busy Status bit is set and the rest of the status bits are updated or cleared for the new command. If the Force Interrupt Command is received when there is a current command under execution, RESET BUSY SET INTRO the Busy status bit is reset, and the rest of that status SET RNF bits are unchanged. If the Force Interrupt command is received when there is not a current command under execution, the Busy Status bit is reset and the rest of the status bits are updated or cleared. In this case, Status reflects the Type I commands. The user has the option of reading the status register through program control or using the DRO line with DMA or interrupt methods. When the Data register is read the DRO bit in the status register and the DRO line are automatically reset. A write to the Data register also causes both DRO's to reset. The busy bit in the status may be monitored with a user program to determine when a command is com- plete, in lieu of using the INTRO line. When using the INTRO, a busy status check is not recommended because a read of the status register to determine the condition of busy will reset the INTRO line. The format of the Status Register is shown below: BITS 7 6 5 4 3 2 1 0 S7 S6 S5 S4 S3 S2 S1 SO Status varies according to the type of command executed as shown in Table 4. Because of internal sync cycles, certain time delays must be observed when operating under programmed 1/ O. They are: (times double when clock = 1 MHz) Delay Req'd. Operation Next Operation FM MFM Write to Read Busy Bit 12p.s 6p.s Command Reg. (Status Bit 0) Write to Read Status 28p.s 14p.s Command Reg. Bits 1-7 Write Any Read From Ditt. 0 0 Register Register IBM 3740 FORMAT - 128 BYTES / SECTOR Shown below is the IBM single-density format with 128 bytes / sector. In order to format a diskette, the user must issue the Write Track command, and load TYPE III COMMAND the data register with the following values. For every Read Track / Address byte to be written, there is one Data Request. Floppy Disk Controller Devices 1-69 IBM 3740 FORMAT· 128 BYTES / SECTOR Shown below is the IBM dual-density format with 256 bytes / sector. In order to format a diskette the user c" ..... Shown below is the IBM single-density format with must issue the Write Track command and load the ...... data register with the following values. For every byte 128 bytes / sector. In order to format a diskette, the co user must issue the Write Track command, and load to be written, there is one data request. XI o the data register with the following values. For every NUMBER HEX VALUE OF N byte to be written, there is one Data Request. OF BYTES BYTE WRITTEN NUMBER HEX VALUE OF 80 4E OF BYTES BYTE WRITTEN 12 00 3 F6 (Writes C2) 40 FF (or 00)1 1 FC (Index Mark) 6 00 * 50 4E 1 FC (Index Mark) 12 00 * 26 FF (or 00)1 3 F5 (Writes A 1) 6 00 1 FE (10 Address Mark) 1 FE (10 Address Mark) 1 Track Number (0 thru 4C) 1 Track Number 1 Side Number (0 or 1) 1 Side Number (00 or 01) 1 Sector Number (1 thru 1A) 1 Sectdr Number (1 thru 1A) 1 01 (Sector Length) 1 00 (Sector Length) 1 F7 (2 CRC's written) 1 F7 (2 CRC's written) 22 4E 11 FF (or OO)ses E5)1 12 00 6 00 3 F5 (Writes A 1) 1 FB (Data Address Mark) 1 FB (Data Address Mark) 128 Data (IBM uses E5) 256 DATA 1 F7 (2 CRC's written) 1 F7 (2 CRC's written) 27 FF (or 00)1 4E 54 247** FF (or 00)1 598** 4E *Write bracketed field 26 times. * *Continue writing until FD179X interrupts out. *Write bracketed field 26 times. Approx. 247 bytes. **Continue writing until FD179X interrupts out. 1-0ptional '00' on 1795/7 only. Approx. 598 bytes. ,,,,"''' .. OfrllYIDAMANOOATA ... W AIIIE .... ECEOEO.TTHAEE.TTESOF AI WItH CLOCK TAAN$ITIONIfTWEEN 8,TS.ANO$"tSSlNG •• .. rSSIHGCLOCI(TAANSITIOH IETWEEN"TS1AND. IBM TRACK FORMAT 1-70 Floppy Disk Controller Devices 1. NON·IBM FORMATS Variations in the IBM formats are possible to a limited "T1 c extent if the following requirements are met: 1) Sector size must be 128, 256, 512, 1024 bytes. 1 - - - - - - - - - '6' OR 32' "s _ _ _ _---I -I -I. ....... co 2) Gap 2 cannot be vaired from the IBM format. VOH >< once between bit cell 4 and 5. Using this encoding by tying to a port device such as the 8255, 6820, etc. scheme, pulses can occur 2, 3 or 4 microseconds As a diagnostic tool when checking out the CPU inter- apart. The bit cell time is now 2 microseconds; twice face, the Track and Sector registers should respond as much data can be recorded without increasing the like "RAM" when the 179X is idle (Busy = INTRa = Frequency rate due to the encoding scheme. 0). The 179X was designed to be compatible with the IBM Because of internal synchronization cycles, certain 3740 (FM) and System 34 (MFM) Formats. Although time delays must be introduced when operating under most users do not have a need for data exchange with Programmed I/O. The worst case delays are: IBM mainframes, taking advantage of these well studied formats will ensure a high degree of system OPERATION NEXT DELAY REa'D performance. The 179X will allow a change in gap OPERATION fields and sector lengths to increase usable storage WRITE TO READ STATUS MFM = 14J..l s* capacity, but variations away from these standards COMMAND REG REGISTER FM = 28J..l s is not recommended. Both IBM standards are soft- sector format. Because of the wide variation in WRITE TO READ FROM A NO DELAY address marks, the 179X can only support soft- ANY REGISTER DIFFERENTREG sectored media. Hard sectored diskettes have con- tinued to lose popularity, mainly due to the *NOTE: Times Double when ClK = 1MHz (5%" drive). unavailability of a standard and the limitation of sec- tor lengths imposed by the physical sector holes in Other CPU interface lines are ClK, MR and DDEN. the diskette. The ClK line should be 2 MHz (8" drive) or 1 MHz (5 %" drive) with a 50% duty cycle. Accuracy should PROCESSOR INTERFACE be + 1 % (crystal source) since all internal timing, The Interface of the 179X to the CPU consists of an including stepping rates, are based upon this clock. 8-bit Bi-directional bus, read/write controls and The MR or Master Reset Line should be strobed a optional interrupt lines. By selecting the device via the CHIP SELECT Line, each of the five internal minimum of 50 microseconds upon each power-on condition. This line clears and initializes all internal registers can be accessed. registers and issues a Restore Command (Hex '03') Shown below are the registers and their addresses: on the rising edge. A quicker stepping rate can be written to the Command Register after a MR, in PIN 3 PIN 6 PIN 5 PIN 4 PIN 2 which case the remaining steps will occur at the CS A1 Ao RE=O WE= 0 faster programmed rate. The 179X will issue a max- 0 0 0 STATUS REG COMMAND imum of 255 stepping pulses in an attempt to expect 0 0 1 TRACK REG REG the TROO line to go active low. This line should be 0 1 0 SECTOR REG TRACK REG connected to the drive's TROO sensor. 0 1 1 DATA REG SECTOR REG The DDEN line causes selection of either single 1 X X H1-Z DATA REG density (DDEN = 1) or double density operation. H1-Z DDEN should not be switched during a read or write operation. Each time a command is issued to the 179X, the Busy Bit is set and the INTRa (Interrupt Request) Line is reset. The user has the option of checking the Busy Bit or use the INTRa Line to denote command com- pletion. The Busy Bit will be reset whenever the 179X is idle and awaiting a new command. The INTRa Line, once set, can only be reset by a READ of the Status Register or issuing a new command. The MR (Master Reset) Line does not affect INTRa. 1-78 Floppy Disk Controller Devices FLOPPY DISK INTERFACE With the 8" drive, Precompensation may be specified The Floppy Disk Interface can be divided into three from TRACK 43 on, or in most cases, all TRACKS. "T1 sections: Motor Control, Write Signals and Read If the recommended Precompensation is not C specified, check with the manufacturer for the pro- ...... Signals. All of these lines are capable of driving one ...... per configuration required. (0 TIL load and not compatible for direct connection to the drive. Most drives require an open-collector TIL The amount of Precompensation time also varies. A >< interface with high current drive capability. This must typical value will usually be specified from 100-300ns. be done on all outputs from the 179X. Inputs to the Regardless of the parameters used, Write Precompen- 179X may be buffered or tied to the drive's outputs, sat ion must be done external to the 179X. When providing the appropriate resistor termination net- DDEN is tied low, EARLY or LATE will be activated works are used. Undershoot should not exceed -0.3 at least 125ns. before and after the Write Data pulse. volts, while integrity of V1H and VOH levels should be An Algorithm internal to the 179X decides whether kept within spec. to raise EARLY or LATE, depending upon the previous MOTOR CONTROL bit pattern sent. As an example, suppose the recom- mended Precomp value has been specified at 150ns. Motor Control is accomplished by the STEP and DIRC The following action should be taken: Lines. The STEP Line issues stepping pulses with a period defined by the rate field in all Type I com- mands. The DIRC Line defines the direction of steps EARLY LATE ACTION TAKEN (DIRC = 1 STEP IN/DIRC = 0 STEP OUn. o o delay WD by 150 ns (nominal) Other Control Lines include the fP or Index Pulse. o 1 delay WD by 300ns (2X value) This Line is tied to the drives Index L.E.D. sensor and 1 o do not delay WD 'makes an active transition for each revolution of the There are two methods of performing Write diskette. The TROO Line is another L.E.D. sensor Precompensation: that informs the 179X that the stepper motor is at its furthest position, over Track 00. The READY Line can 1) External Delay elements be used for a number of functions, such as sensing 2) Digitally "door open," Drive motor on, etc. Most drives provide Shown in Figure 6 is a Precomp circuit using the a programmable READY Signal selected by option Western Digital 2143 clock generator as the delay ele- jumpers on the drive. The 179X will look at the ready ment. The WD pulse from the 179X creates a strobe signal prior to executing READIWRITE commands. to the 2143, causing subsequent output pulses on the READY is not inspected during any Type I commands. 01, 02 and 03 signals. The 5K Precomp adjust sets All Type I commands will execute regardless of the the desired Precomp value. Depending upon the con- Logic Level on this Line. dition of EARLY and LATE, 01 will be used for EARLY, WRITE SIGNALS 02 for nominal (EARLY = LATE =0), and 03 for LATE. The use of "one-shots" or delay line in a Write Writing of data is accomplished by the use of the WD, Precompensation scheme offers the user the ability WG, WF, TG43, EARLY and LATE Lines. The WG or to vary the Precomp value. The 04 output resets the Write Gate Line is used to enable write current at the 74LS175 Latch in anticipation of the next WD pulse. drive's R/W head. It is made active prior to writing data Figure 7 shows the WD-EARLY/LATE relationship, on the disk. The WF or WRITE FAULT Line is used while Figure 8 shows the timing of this write Precomp to inform the 179X of a failure in drive electronics. scheme. This signal is multiplexed with the VFOE Line and must be logically separated if required. Figure 5 Another method of Precomp is to perform the func- illustrates three methods of demultiplexing. tion digitally. Figure 9 illustrates a relationship bet- ween the WD pulse and the CLK pin, allowing a digital The TG43 or "TRACK GREATER than 43" Line is used Precomp scheme. Figure 10 shows such a scheme to decrease the Write Current on the inner tracks, with a preset Write Precompensation value of 250ns. where bit densities are the highest. If not required on The synchronous counter is used to generate 2 MHz the drive, TG43 may be left open. and 4 MHz clock Signals. The 2MHz clock is sent to WRITE PRECOMPENSATION the CLK input of the 179X and the 4 MHz is used by the 4-bit shift register. When a WD pulse is not pre- The 179X provides three signals for double density sent, the 4 MHz clock is shifting "ones" through the Write Precompensation use. These signals are WRITE shift register and maintaining Q D at a zero level. DATA, EARLY and LATE. When using single density When a WD pulse is present, a zero is loaded at either drives (eighter 8" or 5 1/4"), Write Precompensation A, B, or C depending upon the states of LATE, EN is not necessary and the WRITE DATA line is PRECOMP and EARLY. The zero is then shifted by generally TIL Buffered and sent directly to the drive. the 4 MHz clock until it reaches the Q D output. The In this mode, EARLY and LATE are left open. number of shift operations determines whether the For double density use, Write Precompensation is a WRITE DATA pulse is written early, nominal or late. function of the drive. Some manufacturers recom- If both FM and MFM operations is a system require- mend Precompensating the 5 1/4" drive, while others ment, the output of this circuit should be disabled do not. and the WD pulse should be sent directly to the drive. Floppy Disk Controller Devices 1-79 DATA SEPARATION of zero's or ones. RG is not available on the 1795/1797 devices, since this signal was replaced with the SSO The 179X has two inputs (RAW READ & RClK) and c" ..... one output (VFOE) for use by an external data (Side Select Output) Line. ~ separator. The RAW READ input must present clock Shown in Figure 11 is a 2% IC Counter/Separator. -_-"\,;'V\,.-------+--1~7 $>W PRECOMP. ADJUST FIGURE 6. 179X WRITE PRE·COMP 1-84 Floppy Disk Controller Devices 'TI C ..... co """" ~ 2. 4"s !; CLK TOL >< -..j ~ 500 NS !; 50 WD WD I I -------------~ n EARLY EARLY OR LATE OR LATE DOUBLE TIMES FOR 5· (MINI-FLOPPY) 250 NS MIN. 450 NS MIN. 125 NS MIN. VALID FOR DURATION OF DOUBLE TIMES FOR 5· (MINI-FLOPPY) WD PULSE VALID BEFORE LEADING EDGE OF WD WRITE PRE-COMP TIMING FOR MFM WRITE PRE-COMP TIMING FOR FM FIGURE 7. WRITE PRE·COMP TIMING BIT CELL 0 I BIT CELL 1 I BIT ~ELL 2 I ~ELL I BIT 3 BIT CELL 4 BIT CELL 5 I BIT 1ELL 6 I BIT'IELL 7 I P BIT CELL 8 I BIT CELL 9 " t we: .JclL....-__...,jQ > 1~1oo>1f- I ~ 200NS _ _ _--' g 9 rcI ~ rct " EARLY _ _ _ _ _ _ _ _ ~n . . _________'n n LATE _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _- J n n C-EARLY ____________~r_l~___________ n n C-LATE n n C-NOMINAL .~L....-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ____' FIGURE 8. PRE·COMP TIMING FOR CIRCUIT IN FIGURE 6 Floppy Disk Controller Devices 1-85 "TI C SOOns SOOns -.L ........ CLK l @1MHz CD >< I I • I WD (DDEN - 0) ~ , I ! ~ / \ ~100ns ~100ns 2SOn$ 250ns CLK @2MHz 1250s Ii I WD (DDEN - 0) ~SOns :o3Ons FIGURE 9. WD/CLK RELATIONSHIP FOR WRITE PRECOMP USE 7415181 'ern 3 A • B • C ~ ~ ----------0 0.1-".:..,.3 9 I5 (TO 1791) WRITE DATE rrODAIVE) Wii (FROM 179t) 0-----1 LATE (FAOMt791) TG43 (EN PRECQMP) EARLY (FROM 1791) ....-----<-~ FIGURE 10. DIGITAL WRITE PRECOMP CIRCUIT (PROVIDED COURTESY OF MPI, OKLAHOMA CITY, OK 73112) 1-86 Floppy Disk Controller Devices +5 R R. C = 150 NS :!: 50 74123 RAW READ 27 FROM DRIVE RAWREAD 1791/1793 26 RCLK +5 >--"""'---'-',..1 A B Oo/-'-----i N.U. RG C o CU 74LS74 DDEN +5 4 CO C _14_ _ 74LS193 CRYCLK TYPE CRYCLK 8" FM 8 MHz 5" MFM 8 MHz 5" FM 4 MHz FIGURE 11. COUNTER / SEPARATOR Floppy Disk Controller Devices 1-87 X6l~a:l ~ I -:u:0 0 ~ 0 m 0 745288 PROGRAMMING TABLE +5 0 0 ADDRESS DATA ACTION TAKEN C :0 00 01 NONE -l m 01 01 RETARD BY 1 COUNT ~ en 02 02 -< 03 03 74lS04 o:!! 04 03 RETARD BY 2 COUNTS "'TlC> »c 05 04 z~ 06 07 05 06 27 RAW READ 0 ..... :ON 08 OB ADVANCE BY 2 COUNTS o· 09 00 s:~ OA OC m co OB OE RE~~g~TA ) . I~ OX »0 oc OF DRIVE 26 RCLK enl> OD OF ADVANCE BY 1 COUNT -<-t enl> OE 00 OF 01 -len 01 FREE RUN mm 10 +5 S:-O 11 02 _en l> :xJ 12 03 179X·Ol 13 04 -ul> »-t 14 05 zO 15 06 o:xJ 16 07 +5 :0 17 » 08 s: 18 09 » .g:n OA ---.!!... lA OB 0 lB OC ~ -~ lC 10 00 OE S? cri 0 IE OF » "'g" ~ .j!o. IF 00 :;:, o - S- 0 tb" "'" ~ ~ S o· ~ :n :g0 '.c: -12 0 ..... 9. R16 ~ +5 Rll 10KO 1400 R25 1% ~ 1600 1I2W :::s RIB a 2700 1j2W C74 1300~F ~ R21 101ffi + 12o--IVr---.....--......, VR2 ~ I "a 2% 1% 5.6V 5% R12 B060 ::D +5 1% ~. 0 < R19 R20 ~ 2.2Kn 3.431<0 1% CR2 IN914 m" c- VFOCLK oG) STEERING 1 R23 o§ 1.2Kn em +5 6 ~HZ ~ -", R32 R33 veo m~ 2.2Kn 3.4BKn U3 CRI IN914 ~;E VFO CLK 1% Or- STEERING 2 CB3 C72 .1~F "0 .047~F s:~ +5 0 ... '~I TP2 C82 R34 :::Q» 1300~F 10Kn -12 o~ 2% 1% ="0 ):0 R30 CB9 :I:~ 5.1KO 8~F II VFOCLK :20R4 RAWREAD (E) 1 ~ ~ I1CD VFOE »0 Oij 4 -0 ~ ,~74S112 ~c: o~ 2 K CLK a =" +5 15 R ...... lKO 74lS04 (,) -L -L ~ DoEN I'G TG43 EN PRE-COMP (G) 1 1(91 ~ X6L~a:l X6l~a:l "t ~ - ~ 200 NS:!: 25 RAWDATA-U ~ RAW READ FROM DRIVE +5 - ! SINGLE DENSITY DOUBLE ~DENSITYI FD179X ~ +5V ,~ +5 "TI CPU i5 c ~ VCC ~ CLK,MR / INTERFACE :D Cl m WDOUT r,; ~ tj ~VCO R2 4.0MHZ I DDEN DDEN C2 RCLK 12 RCLK 11 ROD ~ +5V F2 .;1 WG en - 74S124 I 2 WD1691 WG WDIN WD Z - FC C') r- 50K 'l RNG 47K lOOK BIAS VOLTAGE 13 PU EARlY~ EARLY m ADJ LATE 18 LATE .......... 14 PO TG43 9 TG43 c 0 r -l:=: 33}lF STB VFOE VFOE/WF C -=- 10 D:I 47K I r- m ~TE 3{ 33n 04 ~ 19 WPRT c TO m _ _1 DRIVE z -=- - 35 en 04 03 02 01 Vee 18 +5 IP FROM ~ STBIN DRIVE -~ WD2143-03 9 16 I 17 IjfPW I DIRC TROO en Vss -< en +12V 15 I 32 -f I STEP READY m .g I 1) ALL RESISTORS V.W :!: 5% ::D ;: 2. SPECIFICATIONS = 2K CAPTURE RANGE: :!:20% ~ LOCK-UP TIME: 25}lsec 10K PRECOMPADJ t:J (ALL QNE·S PAITERN, MFM) (j)" '" & 3) FOR 51/4" .68/Lf 8 .33/Lf ::J a<-b 68il 330 ~ ~ ~" (]) C/) WESTERN DIGITAL c o R P o R A T o N WD279X-02 Floppy Disk Formatter/Controller Family FEATURES • ON·CHIP PLL DATA SEPARATOR ENP HLT • ON·CHIP WRITE PRECOMPENSATION LOGIC We INTRa • SINGLE + 5V SUPPLY Cs ORa • ACCOMMODATES SINGLE AND DOUBLE RE DDEN AO WPRT DENSITY FORMATS Al iP IBM 3740 (FM) DALO ffiOO IBM 34 (MFM) DAll WPW • AUTOMATIC SEEK WITH VERIFY DAL2 READY DAL3 WD • MULTILE SECTOR READIWRITE DAL4 WG • TTL COMPATIBLE DAL5 TG43 • PROGRAMMABLE CONTROL HLD SELECTABLE TRACK·TO·TRACK ACCESS RAWRD veo HEAD LOAD TIMING SSO/ENM"F • SOFTWARE COMPATIBLE WITH THE FD179X eLK SERIES PUMP • SOFT SECTOR FORMAT COMPATIBILITY ~ Vee DESCRIPTION PIN DESIGNATION The WD279X are N·Channel Silicon Gate MOS LSI devices which perform the functions of a Floppy Disk The WD279X is TTL compatible on all inputs and out- Formatter/Controller in a single chip implementation. puts. The outputs will drive one TTL load or three LS The WD279X, which can be considered the end result loads. The WD2793 is identical to the WD2791 except of both the FD1771 and FD179X designs, is IBM 3740 the DAL lines are TRUE for systems that utilize true compatible in single density mode (FM) and System data busses. 34 compatible in Double Density Mode (MFM). The WD279X contains all the features of its predecessor The WD279517 has a side select output for controll- the FD179X plus a high performance Phase·Lock· ing double-sided drives. Loop Data Separator as well as Write Precompensa- tion Logic. In Double Density mode, Write Precompen- sation is automatically engaged to a value programmed via an external potentiometer. In order to maintain compatibility, the FD1771, FD179X and WD279X designs were made as close as possible with VCO the computer interface, instruction set, and I/O SSO/ENMF registers being identical. ClK PUMP Also, head load control is identical. In each case, the TEST actual pin assignments vary by only a few pins from Vee anyone to another. GND MR RPW The processor interface consists of an 8·bit bi- 5/8 directional bus for data, status, and control word DIRC transfers. The WD279X is set up to operate on a multiplexed bus with other bus-oriented devices. NOD 0 0 0 DOD S ~ c tt t t t t t t ~ 01234567P Floppy Disk Control/er Devices 1-91 PIN DESCRIPTION :E c I\) PIN NUMBER SIGNAL NAME MNEMONIC FUNCTION ...... ENABLE PRECOMP ENP A Logic high on this input enables write c.c precompensation to be performed on double XI density Write Data output only. o I\) 19 MASTER RESET A logic low (50 microseconds min.) on this input resets the device and loads HEX 03 into the command register. The Not Ready (Status Bit 7) is reset during MR ACTIVE. When MR is brought to a logic high a RESTORE Command is executed, regardless of the state of the Ready signal from the drive. Also, HEX 01 is loaded into sector register. 20 POWER SUPPLIES Vss Ground 21 Vcc +5V2f1 COMPUTER INTERFACE: 2 WRITE ENABLE A logic low on this input gates data on the DAL into the selected register when CS is low. 3 CHIP SELECT A logic low on this input selects the chip and enables computer communication with the device. 4 READ ENABLE A logic low on this input controls the place- ment of data from a selected register on the DAL when CS is low. 5,6 REGISTER SELECT LINES AO,A1 These inputs select the register to receive/transfer data on the DAL lines under RE and WE control: CS A1 AO RE WE a a a Status Reg Command Reg a a 1 Track Reg Track Reg a 1 a Sector Reg Sector Reg a 1 1 Data Reg Data Reg 7-14 DATA ACCESS LINES DALO-D~L7 Eight bit bi-directional bus used for transfer of commands, status, and data. These lines are inverted (active low) on WD2791 and WD2795. 24 CLOCK CLK This input requires a free-running 50% duty cycle square wave clock for internal timing reference,2 MHz ± 1 % for 8" drives, 1 MHz ± 1 % for mini-floppies. 38 DATA REQUEST DRQ This output indicates that the Data Register contains assembled data in Read operations, or the DR is empty in Write operations. This Signal is reset when serviced by the com- puter through reading or loading the DR. 1-92 F/oppy Disk Controller Devices PIN DESCRIPTION (Continued) PIN NUMBER SIGNAL NAME MNEMONIC FUNCTION 39 INTERRUPT REQUEST INTRQ This output is set at the completion of any command and is reset when the Status register is read or the command register is written to. FLOPPY DISK INTERFACE: 15 STEP STEP The step output contains a pulse for each step. 16 DIRECTION DIRC Direction Output is active high when stepp· ing in, active low when stepping out. - 17 5 1/4," 8" SELECT 5/8 This input selects the internal VCO fre· quency for use with 51/4" drives or 8" drives. 18 READ PULSE WIDTH RPW An external potentiometer tied to this input controls the phase comparator within the data separator. 22 TEST TEST A logic low on this input allows adjustment of external resistors· by enabling internal signals to appear on selected pins. 23 PUMP PUMP High·lmpedance output signal which is forced high or low to increase or decrease the VCO frequency. 25 ENABLE MINI·FLOPPY ENMF A logic low on this input enables an inter· (2791, 2793) nal ..;. 2 of the Master Clock. This allows both 5 1/4" and 8" drive operation with a single 2 MHz clock. For a 1 MHz clock on Pin 24, this line must be left open or tied to a Logic 1. 25 SIDE SELECT OUTPUT SSO The logic level of the Side Select Output is (2795, 2797) directly controlled by the'S' flag in Type II or III commands. When U == 1, SSO is set to a logic 1. When U = 0, SSO is set to a logic O. The SSO is compared with the side information in the Sector 10 Field. If they do not compare Status Bit 4 (RNF) is set. The Side Select Output is only updated at the beginning of a Type II or III command. It is forced to a logic 0 upon a MASTER RESET condition. 26 VOLTAGE· VCO An external capacitor tied to this pin adjusts CONTROLLED the VCO center frequency. OSCILLATOR 27 RAW READ RAW READ The data input signal directly from the drive. This input shall be a negative pulse for each recorded flux transition. 28 HEAD LOAD HLD The HLD output controls the loading of the Read·Write head against the media. 29 TRACK GREATER TG43 This output informs the drive that the THAN 43 Read/Write head is positioned between track 44 and the inside track. This output is valid only during Read and Write Commands. Floppy Disk Control/er Devices 1-93 PIN DESCRIPTION (Continued) PIN NUMBER SIGNAL NAME MNEMONIC FUNCTION 30 WRITE GATE WG This output is made valid before writing is to be performed on the diskette. 31 WRITE DATA WD MFM or FM output pulse per flux transition. WD contains the unique Address marks as well as data and clock in both FM and MFM formats. 32 READY READY This input indicates disk readiness and is sampled for a logic high before Read or Write commands are performed. If Ready is low the Read or Write operation is not per- formed and an interrupt is generated. Type I operations are performed regardless of the state of Ready. The Ready input appears in inverted format as Status Register bit 7. 33 WRITE PRECOMP WPW An external potentiometer tied to this input WIDTH controls the amount of delay in Write precompensation mode. 34 TRACK 00 TROO This input informs the WD279X that the ReadNllrite head is positioned over Track 00. 35 INDEX PULSE iP This input informs the WD279X when the index hole is encountered on the diskette. 36 WRITE PROTECT WPRT This input is sampled whenever a Write Com- mand is received. A logic low terminates the command and sets the Write Protect Status bit. 37 DOUBLE DENSITY DDEN This input pin selects either single or dou- ble density operation. When DDEN = 0, double density is selected. When DDEN = 1, single density is selected. 40 HEAD LOAD TIMING HLT When a logic high is found on the HLT input the head is assumed to be engaged. It is typically derived from a 1 shot triggered by HLD. 1-94 Floppy Disk Controller Devices Figure 2. The primary sections Include the parallel pro- cessor Interface and the Floppy Disk Interface. ITII- I------~ Data Shift Register - This 8-bit register assembles =E ~ ~--------( serial data from the Read Data Input (RAW READ) c N during Read operations and transfers serial data to --.... CD the Write Data output during Write operations. Data Register-This 8-bit register is used as a holding >< I o HOST ;;;;0 ! . - - - - - - - - l S' register during Disk Read and Write operations. In N PROCESSOR w.;;; 14-----____( DRIVE DISK Disk Read operations the assembled data byte is transferred in parallel to the Data Register from the Data Shift Register. In Disk Write operations informa· tion Is transferred in parallel from the Data Register to the Data Shift Register. When executing the Seek command the Data Register holds the address of the desired Track position. This register Is loaded from the DAL and gated onto the DAL under processor control. Track Register - This 8-bit register holds the track number of the current Read/Write head position. It is incremented by one every time the head is stepped in (towards track 76) and decremented by one when the head is stepped out (towards track 00). The con· tents of the register are compared with the recorded track number in the ID field during disk Read, Write, and Verify operations. The Track Register can be loaded from or transferred to the DAL. This Register should not be loaded when the device Is busy. Figure 1, Sector Register (SR) - This 8-bit register holds the address of the sector position. The contents of the APPLICATIONS register are compared with the recorded sector number in the ID field during disk Read or Write opera· 8" FLOPPY AND 5 1/4" MINI·FLOPPY CONTROLLER tions. The Sector Register contents can be loaded SINGLE OR DOUBLE DENSITY CONTROLLER/· from or transferred to the DAL. This register should FORMATTER not be loaded when the device is busy. The WD279X Family are MOS/LSI devices which per· Command Register (CR)'-This 8-bit register holds the form the functions of a Floppy Disk Controller/For- command presently being executed. This register matter. Software compatible with its predecessor, the should not be loaded when the device is busy unless FD179X, the device also contains a high performance the new command is a force interrupt. The command Phase·Lock-Loop Data Separator as well as Write register can be loaded from the DAL, but not read Precompensation Logic. onto the DAL. When operating in Double Density mode, Write Status Register (STR)-This 8-bit register holds device Precompensation may be enabled, its value predeter· Status information. The meaning of the Status bits mined by an external potentiometer. An on-chip VCO is a function of the type of command previously and phase comparator allows adjustable frequency executed. This register can be read onto the DAL, but range for 5 1/4" or 8" Floppy Disk interfacing. not loaded from the DAL. The WD279X is fabricated in NMOS silicon gate CRC Loglcl- This logic is used to check or to generate technology and available in a 40-pin dual-in-line the 16-bit Cyclic Redundancy Check (CRG). The package, as well as 44-pin quad packs. polynomial is: G(x) = X 16 + x12 + x5 + 1. FEATURES 2791 2793 2795 2797 The CRC includes all information starting with the address mark and up to the CRC characters. The CRC Single Density (FM) X X X X register is preset to ones prior to data being shifted Double Density (MFM) X X X X through the circuit. True Data Bus X X Inverted Data Bus X X Arithmetic/logic Unit (ALU)- The ALU is a serial com· Side Select Out X X parator, incrementer, and decrementer and is used Internal CLK Divide X X for register modification and comparisons with the disk recorded ID field. ORGANIZATION Timing and Control - All computer and Floppy Disk Refer to the Floppy Disk Formatter block diagram in interface controls are generated through this logic. Floppy Disk Controller Devices 1-95 The internal device timing is generated from an exter- AM Detector· The address mark detector detects ID, nal crystal clock. data and Index address marks during read and write operations. Write Precompensation • enables write precompensa- tion to be performed on the Write Data ouput. WRITE DATA WRITE (TO DISK) PRECOMP PLA __ CONTROL 0151< CONTROL 1230 X 16) 1~~~RTfRAG E --~ Figure 2. WD279X BLOCK DIAGRAM Data Separator - a high performance Phase-Lock-Loop and AO, combined with the signals RE during a Data Separator with on-chip VCO and phase com- Read operation or WE during a Write operation are parator allows adjustable frequency range for 5 %" interpreted as selecting the following registers: or 8" Floppy Disk interfacing. - - PROCESSOR INTERFACE A1 AD READ (RE) WRITE (WE) The Interface to the processor is accomplished 0 0 Status Regiser Command Register through the eight Data Access Lines (DAL) and 0 1 Track Register Track Register associated control signals. The DAL are used to 1 0 Sector Register Sector Register transfer Data, Status, and Control words out of, or 1 1 Data Register Data Register into the WD279X. The DAL are three state buffers that are enabled as output....Qrivers when Chip Select During Direct Memory Access (DMA) types of data (CS) and Read Enable (RE) are activL(low logic transfers between the Data Register of the WD279X state) or act as input receivers when CS and Write and the processor, the Data Request (DRO) output Enable (WE) are active. is used in Data Transfer control. This Signal also appears as status bit 1 during Read and Write When transfer of data with the Floppy Disk Controller operations. is required by the host processor, the device address is decoded and CS is made low. The address bits A 1 1-96 Floppy Disk Controller Devices " On Disk Read operations the Data Request is In addition to the WD179X, the WD279X contains an activated (set high) when an assembled serial input internal Data Separator and Write precompensation byte is transferred in parallel to the Data Register. This circuit. The TEST (Pin 22) line is used to adjust both bit is cleared when the Data Register is read by the data separator and precompensation. When processor. If the Data Register is read after one or TEST = 0, the WD (Pin 31) line is internally connected more characters are lost, by having new data transfer- to the output of the write precomp one-shot. Adjust- red into the register prior to processor readout, the ment of the WPW (Pin 33) line can then be lost Data bit is set in the Status Register. The Read accomplished. operation continues until the end of sector is reached. A second one-shot tracks the precomp setting at On Disk Write operations the Data Request is approximately 3:1 to insure adequate Write Data pulse activated when the Data Register transfers its con- widths. tents to the Data Shift Register, and requires a new Similarly, Data separation is also adjusted with TEST data byte. It is reset when the Data Register is loaded = O. The TG43 (Pin 29) line is Internally connected with new data by the processor. If new data is not to the output of the read data one-shot, which is loaded at the time the next serial byte is required by adjusted via the RPW (Pin 18) line. The DIRC (Pin 16) the Floppy Disk, a byte of zeroes is written on the line contains the Read Clock output (.5 MHz for 8" diskette and the lost Data bit is set in the Status drives). The VCO Trimming capacitor (Pin 26) is Register. adjusted for center frequency. At the completion of every command an INTRQ is Internal timing signals are used to generate pulses generated. INTRQ is reset by either reading the status during the adjustment mode so that these register or by loading the command register with a adjustments can be made while the device is in- new command. In addition, INTRQ is generated if a circuit. The TEST line also contains a pull-up resistor, Force Interrupt command condition is met. so adjustments can be performed simply by groun- The WD279X has two modes of operation according ding the TEST pin, overriding the pull-up. The TEST to the state of DDEN (Pin 37). When DDEN = 1, pin cannot be used to disable stepping rates during Single Density (FM) is selected. When DDEN = 0, operation as its function is quite different from the Double Density (MFM) is selected. In either case, the WD179X. ClK input (Pin 24) is set at 2 MHz for 8" drives or 1 Other pins on the device also include pull-up resistors MHz for 5 1/4" drives. and may be left oBen to satisfy a lo~ondition. On the WD2791IWD2793, the ENMF input (Pin 25) These are: ENP, 5/8, ENMF, WPRT, DDEN, HlT, can be used for controlling both 5 1/4" and 8" drives TEST, and MR. with a single 2 MHz clock. When ENMF = 0, an GENERAL DISK READ OPERATIONS internal -;- 2 of the ClK is performed. When ENMF Sector lengths of 128, 256, 512 or 1024 are obtain- = 1, no divide takes place. This allows the use of a 2 MHz clock for both 5 1/4" and 8" configurations. able in either FM or MFM formats. For FM, DDEN should be placed to logical "1." For MFM formats, The internal VCO frequency must also be set to the DDEN should be placed to a logical "a". Sector proper value. The 5/8 input (Pin 17) is used to select lengths are determined at format time by the fourth data separator operation by internally dividing the byte in the "10" field. Read Clock. When 5/8 = 0, 5 1/4" data separation is selected; when 5/8 = 1, 8" drive data separation Sector length Table * is selected. Sector length Number of Bytes -- CLOCK (24) ENMF (25) 5/8 (17) DRIVE Field (hex) in Sector (decimal) 2 MHz 8" 00 128 1 1 01 256 2 MHz a a 5% 02 512 1 MHz 1 a 5% 03 1024 FUNCTIONAL DESCRIPTION *2795/97 may vary - see command summary. The WD279X-02 is software compatible with the The WD279X recognizes tracks and sectors numbered FD179X-02 series of Floppy Disk Controllers. Com- OQ-FF Hex. However, due to programming restrictions, mands, status, and data transfers are performed in only tracks and sectors 00 through F4 can be the same way. Software generated for the 179X can formatted. be transferred to a 279X system without modification. Floppy Disk Controller Devices 1-97 GENERAL DISK WRITE OPERATION READY :ec When writing is to take place on the diskette the Write Whenever a Read or Write command (Type II or III) N Gate ~G) output is activated, allowing current to flow is received the WD279X samples the Ready input. If ...... into the ReadlWrite head. As a precaution to this Input is logic low, the command is not executed CD erroneous writing the first data byte must be loaded and an interrupt is generated. All Type I commands ~ into the Data Register in response to a Data Request are performed regardless of the state of the Ready o N from the WD279X before the Write Gate signal can input. Also, whenever a Type II or III command is be activated. received, the TG43 signal output is updated. TG43 Writing is inhibited when the Write Protect input is may be tied to ENP to enable write precompensation a logic low, in which case any Write command is on tracks 44-76. immediately terminated, an interrupt is generated and COMMAND DESCRIPTION the Write Protect status bit is set. The WD279X will accept eleven commands. Com- For write operations, the WD279X provides Write Gate mand words should only be loaded in the Command (Pin 30) and Write Data (Pin 31) outputs. Write data Register when the Busy status bit is off (Status bit consists of a series of pulses set to a width approx- 0). The one exception is the Force Interrupt command. imately three times greater then the precomp adjust- Whenever a command is being executed, the Busy ment. Write Data provides the unique address marks status bit is set. When a command is completed, an in both formats. interrupt is generated and the Busy status bit is reset. The Status Register indicates whether the completed command encountered an error or was fault free. For ease of discussion, commands are divided into four types. Commands and types are summarized in Table 1. 1-98 Floppy Disk Controller Devices TABLE 1. COMMAND SUMMARY A. Commands for Models: WD2791, WD2793 B. Commands for Models: WD2795, WD2797 Bits Bits Type Command 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 I Restore a a a a h V r1 a a a a h ro V r1 ro I Seek a a a 1 h V r1 a a a 1 h ro V r1 ro I Step a a 1 T h V ro a a 1 T h ro V r1 ro I Step-in a 1 a T h V r1 a 1 a T h ro V r1 ro I Step-out a 1 1 T h V r1 a 1 1 T h ro V r1 ro II Read Sector 1 a a m S E C a 1 a a m L E U a II Write Sector 1 a 1 m S E C aO 1 a 1 m L E U aO III Read Address 1 1 a a a E a a 1 1 a 0 a E U a III Read Track 1 1 1 a a E a a 1 1 1 0 a E U a III Write Track 1 1 1 1 a E a a 1 1 1 1 a E U a IV Force Interrupt 1 1 a 1 '3 '2 '1 'a 1 1 a 1 '3 '2 '1 'a TABLE 2. FLAG SUMMARY Command Bit Type No(s) Description I 0, 1 r1 rO =Stepping Motor Rate See Table 3 for Rate Summary I 2 V = Track Number Verify Flag V = O,No verify V = 1,Verify on destination track I 3 h = Head Load Flag h = O,Unload head at beginning h = 1,Load head at beginning I 4 T = Track Update Flag T = O,No update T = 1,Update track register II & III a ao = Data Address Mark aO = O,FB(DAM) aO = 1,F8(deleted DAM) II 1 C = Side Compare Flag C = O,Disable side compare C = 1,Enable side compare II & III 1 U = Update SSO U = O,Update SSO to a U = 1,Update SSO to 1 II & III 2 E = 15 MS Delay E = O,No. 15 MS delay E = 1,15 MS delay (30 MS for 1 Mhz) II 3 S = Side Compare Flag S = O,Compare for side a S = 1,Compare for side 1 II 3 L = Sector Length Flag LSB's Sector Length in ID Field 00 01 10 11 L = a 256 512 1024 128 L = 1 128 256 512 1024 II 4 m = Multiple Record Flag m = O,Single record m = 1,Multiple records IV 0-3 'x = Interrupt Condition Flags 'a = 1 Not Ready To Ready Transition '1 = 1 Ready To Not Ready Transition '2 = 1 Index Pulse '3 = 1 Immediate Interrupt, Requires A Reset" '3-'0 = a Terminate With No Interrupt (INTRQ) NOTE: See Type IV Command Description for further information. Floppy Disk Controller Devices 1-99 WRITE PRECOMPENSATION response of the VCP to bit-shifted data (jitter) as well as the response to normal frequency shift, i.e., the When operating in Double Density mode (DDEN = 0), lock-up time. A balance must be accomplished bet- the WD279X has the capability of providing a user- ween the two conditions to inhibit over- defined precompensation value for Write Data. An responsiveness to jitter and to prevent an extremely external potentiometer (10K) tied to the WPW signal wide lock-up response, leading to PUMP runaway. The (Pin 33) allows a setting of 100 to 300 ns from nominal. filter affects these two reactions in mutually opposite Setting the Wr.i1e.precomp value is accomplished by directions. forcing the TEST line (Pin 22) to a logic O. A stream The following Filter Circuit is recommended for 8" of pulses can then be seen on the Write Data (Pin FM/MFM: 31) line. Adjust the WPW Potentiometer for the desired pulse width. This adjustment may be performed..ln: circuit since Write Gate (Pin 30) is inactive while TEST PUMP =0. (PIN 23) ~ DATA SEPARATION .1~fh The WD279X can operate with either an external data separator or its QWDJnternal recovery circuits. The condi1i2n of the TEST line (Pin 22) in conjunction with MR (Pin 19) will select internal or external mode. lKQP IN914 To program the 279X for extem.al VCO, a MR pulse must be applied while TEST = O. A clock Since 5114" Drives operate at exactly one-half the data equivalent to eight times the data rate (e.g., 4.0 MHz rate (250 Kb/sec) the above capacitor should be for 8" Double Density) is applied to the VCO input doubled to .2 or .22 ",f. (Pin 26). The feedback reference voltage is available NOTE 1: A Diode with the lowest on resistance will on the Pump output .(Ein.23) for external integration enhance PUMP response. to control the VCO. TEST is returned to a logic 1 for normal operation. NOTE 2: It is recommended to replace the 1K resistor with a 1K (nominal at 25°c) thermister (approximating Note: To maintain this mode, TEST must be held 400 ohms at 50°c and approximatley 2.8K ohms at low whenever MR is applied. OOc) to improve capture range. For internal VCQQperation, the TEST line must be TYPE I COMMANDS high during the MR pulse, then set to a logic 0 for the adjustment procedure. The Type I Commands include the Restore, Seek, Step, Step-in, and Step-Out commands. Each of the A 50K Potentiometer tied to the RPW input (Pin 18) is used to set the internal Read Data pulse for pro- Type I Commands contains a rate field (ro r1), which per phasing. With a scope on Pin 29 (TG 43), adjust determines the stepping motor rate as defined in the RPW pulse (250 ns for 8" Double Density). An ex- Table 3. ternal variable capacitor of C-60 pf is tied to the VCO A q,s (MFM) or 4",s (FM) pulse is provided as an out- input (Pin 26). It is highly recommended to use at least put to the drive. For every step pulse issued, the drive a negative 3500 PPM Temperature coefficient trim- moves one track location in a direction determined mer capacitor. With a frequency counter on Pin 16 by the direction output. The chip will step the drive (DIRC) adjust the trimmer cap to yield the appropriate in the same direction it last stepped unless the com- Data....Ba1e. (500 KHz for 8" Double .Density). mand changes the direction. . The DDEN line must be low while the 5/8 line is held high or the adjustment times above will be The direction signal is active high when stepping in doubled. and low when stepping out. The direction signal is After adjustments have been made, the TEST pin valid before the first stepping pulse is generated. The is returned to a logic 1 and the device is ready for rates (shown in Table 3) can be applied to a Step- operation. Adjustments may be made in-circuit since Direction Motor through the device interface. the DIRe and TG43 lines may toggle without affec- TABLE 3. STEPPING RATES ting the drive. The PUMP output (Pin 23) consists of positive and ClK 2 MHz 1 MHz negative pulses, which their duration is equivalent to R1 RO TEST= 1 TEST =1 the phase difference of incoming Data vs. VCO fre- 0 0 3 ms 6 ms quency. This signal is intemally connected to the VCO 0 1 6 ms 12 ms input, but a filter is needed to connect these pulses 1 0 10 ms 20 ms to a slow moving DC voltage. 1 1 15 ms 30 ms The internal phase-detector is unsymmetrical for a random distribution of data pulses by a factor of two, After the last directional step, an additional 15 in favor of a PUMP UP condition. Therefore, it is milliseconds of head settling time takes place if the desirable to have a PUMP DOWN twice as respon- Verify flag is set in Type I commands. Note that this sive to prevent run-away during a lock attempt. time doubles to 30 ms for a 1 MHz clock. There is A first order lag-lead filter can be used at the PUMP also a 15 ms head settling time if the E flag is set output (Pin 23). This filter controls the instantaneous in any Type" or '" command. 1-100 Floppy Disk Controller Devices When a Seek, Step, or Restore command is executed RESTORE (SEEK TRACK 0) an optional verification of Read-Write head position Upon receipt of this command the Track OO(TROO) can be performed by setting bit 2 (1/ = 1) in the com- input is sampled. If TROO is active low indicating the mand word to a logic 1. The verification operation begins at the end of the 15 millisecond settling time Read- Write head is positioned over track 0, the Track after the head is loaded against the media. The track Register is loaded with zeroes and an interrupt is number from the first encountered ID Field is com- generated. If TROO is not active low, stepping pulses pared against the contents of the Track Register. If at a rate specified by the r1 rO field are issued until the track numbers compare and the ID Field Cyclic the TROO input is activated. At this time the Track Redundancy Check (CRG) is correct, the verify opera- Register is loaded with zeroes and an interrupt is tion is complete and an INTRQ is generated with no generated. If the TROO input does not go active low errors. If there is a match but not a valid CRC, the after 255 stepping pulses, the WD279X terminates CRC error status bit is set (Status bit 3), and the next operation, interrupts, and sets the Seek error status encountered ID field is read from the disk for the bit. A verification operation also takes place if the V verification operation. flag is set. The h bit allows the head to be loaded The WD279X must find an ID field with correct track at the start of command. Note that the Restore com- number and correct CRC within 5 revolutions of the mand is executed when MR goes from an active to media; otherwise the seek error is set and an INTRQ an inactive state. is generated. If V = 0, no verification is performed. SEEK The Head Load (HLD) output controls the movement T~is command assumes that the Track Register con- of the read/write head against the media. HLD is tains the track number of the current position of the activated at the beginning of a Type I command if Read/Write head and the Data Register contains the h flag is set (h = 1), at the end of the Type I com- the desired tr~ck num~er. The WD279X will update mand if the verify flag (1/ = 1), or upon receipt of any the Track register and Issue stepping pulses in the Type II or III command. Once HLD is active it remains ° active until either a Type I command is received with (h = and V = 0); or if the WD279X is in an idle state (non-busy) and 15 index pulses have occurred. Head Load timing (HLT) is an input to the WD279X which is used for the head engage time. When HLT = 1, the WD279X assumes the head is completely engaged. The head engage time is typically 30 to 100 ms depending on drive. The low to high transition on HLD is typically used to fire a one shot. The output of the one shot is then used for H LT and supplied as an input to the WD279X. HLD~ t----;I HLT (FROM ONE SHOTI HEAD LOAD TIMING When both HLD and HLT are true, the WD279X will then read from or write to the media. The "and" of HLD and HLT appears as status Bit 5 in Type I status. In summary for the Type I commands: if h = and V = 0, HLD is reset. If h = 1 and V = 0, HLD is set ° at the beginning of the command and HLT is not = ° sampled nor is there an internal 15 ms delay. If h and V = 1, HLD is set near the end of the com- mand, an internal 15 ms occurs, and the WD279X waits for HLT to be true. If h = 1 and V = 1, HLD is set at the beginning of the command. Near the end of the command, after all the steps have been issued an internal 15 ms delay occurs and the WD279X the~ waits for HLT to occur. For Type II and III commands with E flag off, HLD is made active and HLT is sampled until true. With E flag on, HLD is made active, an internal 15 ms delay occurs and then HLT is sampled until true. TYPE I COMMAND FLOW F/oppy Disk Controller Devices 1-101 ~ C VERIFY N SEQUENCE ...... ,co ,~ o N NOTE'MHI THERE I" A '\()M.., OEt A'f TYPE I COMMAND FLOW TYPE I COMMAND FLOW appropriate direction until the contents of the Track An interrupt is generated at the completion of the register are equal to the contents of the Data Register command. (the desired track location). A verification operation takes place if the V flag is on. The h bit allows the STEP-IN head to be loaded at the start of the command. An interrupt is generated at the completion of the com- Upon receipt of this command, the WD279X issues one stepping pulse in the direction away from track mand. Note: When using multiple drives, the track register must be updated for the drive selected before zero. If the T flag is on, the Track Register is incremented by one. After a delay determined by the seeks are issued. r1 rO field, a verification takes place if the V flag is on. The h bit allows the head to be loaded at the start STEP of the command. An interrupt is generated at the com- Upon receipt of this command, the WD279X issues pletion of the command. one stepping pulse to the disk drive. The stepping motor direction is the same as in the previous step STEP-OUT command. After a delay determined by the r1 rO field, a verification takes place if the V flag is on. If the T Upon receipt of this command, the WD279X issues flag is on, the Track Register is updated. The h bit one stepping pulse in the direction towards track O. If the T flag is on, the Track Register is decremented allows the head to be loaded at the start of the by one. After a delay determined by the r1 rO field, a command. 1-102 Floppy Disk Controller Devices verification takes place if the V flag is on. The h bit allows the head to be loaded at the start of the com- mand. An interrupt is generated at the completion of the command. EXCEPTIONS On the W02795/7 devices, the SSO output is not affected during Type I commands, and an internal side compare does not take place when the M Verify Flag is on. TYPE II COMMANDS The Type II Commands are the Read Sector and Write Sector commands. Prior to loadng the Type II Com- mand into the Command Register, the computer must load the Sector Register with the desired sector number. Upon receipt of the Type II command, the busy status Bit is set. If the E flag = 1 (this is the normal case) HLO is made active and HLT is sampled after a 15 msec delay. If the E flag is 0, the head is loaded and HLT sampled with no 15 msec delay. TYPE II COMMAND When an 10 field is located on the disk, the W0279X compares the Track Number on the 10 field with the Track Register. If there is not a match, the next en- countered 10 field is ready and a comparison is again made. If there was a match, the Sector Number of the 10 field is compared with the Sector Register. If there is not a Sector match, the next encountered 10 field is read off the disk and comparisons again made. If the 10 field CRC is correct, the data field is then located and will be either written into, or read from depending upon the command. The W0279X must find an 10 field with a Track number, Sector number, side number, and CRC within 5 revolutions of the disk; otherwise, the Record Not Found status bit is set (Status bit 4) and the command is terminated with an interrupt. Each of the Type II Commands contains an (m) flag which determines if multiple records (sectors) are to be read or written, depending upon the command. If m = 0, a single sector is read or written and an in- TYPE II COMMAND terrupt is generated at the completion of the command. Floppy Disk Controller Devices 1-103 WRITE SECTOR SEQUENCE READ SECTOR SEQUENCE NO TYPE II COMMAND TYPE II COMMAND If m = 1, multiple records are read or written with the WD279X continues with the ID search. If a com- sector register internally updated so that an address parison is not made within 5 index pulses, the inter- verification can occur on the next record. The WD279X rupt line is made active and the Record-Not-Found will continue to read or write multiple records and status bit is set. update the sector register in numerical ascending The Type" and III for the WD2795-97 contain a side sequence until the sector register exceeds the number of sectors on the track or until the Force Inter- select flag (Bit 1). When U = 0, SSO is updated to O. Similarly, U = 1 updates SSO to 1. The chip com- rupt command is loaded into the Command Register pares the SSO to the ID field. If they do not compare which terminates the command and generates a~ within 5 revolutions the interrupt line is made active interrupt. and the RNF status bit is set. For example: If the WD279X is instructed to read sec- The WD279517 READ SECTOR and WRITE SECTOR tor 27 and there are only 26 on the track the sector ~omm~nds include a "L' flag. The "L' flag, in conjunc- register exceeds the number available. The WD279X will search for 5 disk revolutions, interrupt out, reset tion with the sector length byte of the ID field allows busy, and set the Record Not Found status bit. different byte lengths to be implemented in e~ch sec- tor. For IBM compatibility. the "L' flag should be set The Type II commands for WD2791-93 also contain side to one. = select compare flags. When C 0 (Bit 1) no side com- parison is made. When C = 1, the LSB of the side READ SECTOR number is read off the ID field of the disk and compared Upon receipt of the Read Sector command, the head with the contents of the (S) flag (Bit 3). If the S flag com- pares with the side number recorded in the ID field, is loaded, the Busy status bit set, and when an ID 1-104 Floppy Disk Controller Devices field is encountered that has the correct track number, The WD279X then writes the data field and generates correct sector number, correct side number, and cor- DRO's to the computer. If the DRO is not serviced rect CRC, the data field is presented to the computer. in time for continuous writing the Lost Data Status The Data Address Mark of the data field must be Bit is set and a byte of zeroes is written on the disk. found within 30 bytes in single density and 43 bytes The command is not terminated. After the last data in double density of the last ID field CRC byte; if not, byte has been written on the disk, the tWO-byte CRC the ID field search is repeated. is computed internally and written on the disk When the first character or byte of the data field has followed by one byte of FE in FM or in MFM. The WG been shifted through the DSRj it is transferred to the output is then deactivated. For a 2 MHz clock the DR, and DRO is generated. When the next byte is ac- INTRa will set 8 to 1211sec after the last CRC byte cumulated in the DSR, it is transferred to the DR and is written. For partial sector writing, the proper another DRO is generated. If the computer has not method is to write the data and fill the balance with read the previous contents of the DR before a new zeroes. By letting the chip fill the zeroes, errors may character is transferred that character is lost and the be masked by the lost data status and improper CRC Lost Data Status Bit is set. This sequence continues Bytes. until the complete data field has been inputted to the TYPE III COMMANDS computer. If there is a CRC error at the end of the READ ADDRESS data field, the CRC error status bit is set, and the com- Upon receipt of the Read Address command, the head mand is terminated (even if it is a multiple sector is loaded and the Busy Status Bit is set. The next command). encountered ID field is then read in from the disk, and At the end of the Read operation, the type of Data the six data bytes of the ID field are assembled and Address Mark encountered in the data field is transferred to the DR, and a DRO is generated for recorded in the Status Register (Bit 5) as shown: each byte. The six bytes of the ID field are shown STATUS below: BIT 5 1 Deleted Data Mark TRACK SIDE SECTOR SECTOR CRC k:;RC o Data Mark ADDR NUMBER AD DR LENGTH 1 2 WRITE SECTOR 1 2 3 4 5 6 Upon receipt of the Write Sector command, the head Although the CRC characters are transferred to the is loaded (HLD active) and the Busy status bit is set. computer, the WD279X checks for validity and the When an ID field is encountered that has the correct CRC error status bit is set if there is a CRC error. The track number, correct sector number, correct side Track Address of the ID field is written into the sec- number, and correct CRC, a DRO is generated. The tor register so that a comparison can be made by the WD279X counts off 11 bytes in single density and 22 host. At the end of the operation an interrupt is bytes in double density from the CRC field and the generated and the Busy Status is reset. Write Gate ~G) output is made active if the DRO is serviced (Le., the DR has been loaded by the com- READ TRACK puter). If DRO has not been-serviced, the command Upon receipt of the READ track command, the head is terminated and the Lost Data status bit is set. If is loaded, and the Busy Status bit is set. Reading the DRO has been serviced, the WG is made active starts with the leading edge of the first encountered and six bytes of zeroes in single density and 12 bytes index pulse and continues until the next index pulse. in double density are then written on the disk. At this All Gap, Header, and data bytes are assembled and time the Data Address Mark is then written on the transferred to the data register and DRO's are disk as determined by the aO field of the command generated for each byte. The accumulation of bytes as shown below: is synchronized to each address mark encountered. An interrupt is generated at the completion of the command. aO Data Address Mark (Bit 0) This command has several characteristics which 1 Deleted Data Mark make it suitable for diagnostic purposes. They are: o Data Mark no CRC checking is performed; gap information is Floppy Disk Controller Devices 1-105 included in the data stream; the internal side com- pare is not performed; and the address mark detec- tor is on for the duration of the command. Because the AM. detector is always on, write splices or noise may cause the chip to look for an AM. If an address mark does not appear on schedule the Lost Data status flag will be set. The ID AM., ID field, ID CRC bytes, DAM, Data and Data CRC Bytes for each sector will be correct. The Gap Bytes may be read incorrectly during write-splice time because of synchronization. Because these synchronization problems almost always occur in the Data Area, this command will not function as a Track Copy and should be used only as a Diagnostic Program to test the ability to read addresses. WRITE TRACK FORMATTING THE DISK (Refer to section on Type III commands for flow diagrams.) Formatting the disk is a relatively simple task when operating programmed 1/0 or when operating under DMA with a large amount of memory. Data and gap information must be provided at the computer inter- face. Formatting the disk is accomplished by posi- tioning the RNJ head over the desired track number and issuing the Write Track command. Upon receipt of the Write Track command, the head is loaded and the Busy Status bit is set. Writing starts with the leading edge of the first encountered index pulse and continues until the next index pulse, at which time the interrupt is activated. The Data Request is activated immediately upon receiving the command, but writing will not start until after the first byte has been loaded into the Data Register. If the DR has not been loaded by (within three byte times) the operation is terminated making the device Not Busy, the Lost Data Status Bit is set, an the interrupt is activated. If a byte is not present in the DR when needed, a byte of zeroes is substituted. This sequence continues from one index mark to the next index mark. Normally, whatever data pattern TYPE III COMMAND WRITE TRACK appears in the data register is written on the disk with a normal clock pattern. However, if the WD279X detects a data pattern of F5 through FE in the data register, this is interpreted as data address marks with missing clocks or CRC generation. The CRC generator is initialized when any data byte from Fa to FE is about to be transferred from the DR to the DSR or by receipt of F5 in MFM. An F7 pat- tern will generate two CRC characters in FM or MFM 1-106 Floppy Disk Controller Devices or by receipt of F5 in MFM. An F7 pattern will generate two CRC characters in FM or MFM. As a consequence, the patterns F5 through FE must not appear in the gaps, data fields, or ID fields. Also, CRC's must be generated by an F7 pattern. Disks may be formatted in IBM 3740 or System 34 formats with sector lengths of 128, 256, 512, or 1024 bytes. TYPE IV COMMANDS The Forced Interrupt command is generally used to terminate a multiple sector Read or Write Command or to insure Type I status in the Status Register. This command can be loaded into the command register at any time. If there is a current command under ex· ecution (busy status bit set) the command will be ter· minated and the busy status bit reset. The lower four bits of the command determine the conditional interrupt as follows: 10 = Not-Ready to Ready Transition 11 = Ready to Not-Read Transition 12 =Every Index Pulse 13 = Immediate Interrupt The conditional interrupt is enabled when the cor- responding bit positions of the command (13 .I0) are set to a 1. Then, when the condition for interrupt is met, the INTRQ line will go high signifying that the condition specified has occurred. If 13 .10 are all set to zero (HEX DO), no interrupt will occur but any com- mand presently under execution will be immediately terminated. When using the immediate interrupt con- dition (13 = 1), an interrupt will be immediately generated and the current command terminated. Reading the status or writing to the command register will not automatically clear the interrupt. The HEX DO is the only command that will enable the immediate interrupt (HEX D8) to clear on a subsequent load com- mand register or read status register operation. Follow a HEX D8 with DO command. Wait 8 micro sec (double density) or 16 micro sec (single density) before issuing a new command after issuing a forced interrupt (times double when clock = 1 MHz). loading a new command sooner than this will nullify the forced interrupt. Forced interrupt stops any command at the end of an internal micro-instruction and generates INTRQ when the specified condition is met. Forced interrupt will wait until AlU operations in progress are com- TYPE III COMMAND WRITE TRACK plete (CRC calculations, compares, etc.). CONTROL BYTES FOR INITIALIZATION DATA PATTERN WD279X INTERPRETATION WD279X INTERPRETATION IN DR (HEX) IN FM (DDEN = 1) IN MFM (DDEN = O) 00 thru F4 Write 00 thru F4 with ClK = FF Write 00 thru F4, in MFM F5 Not Allowed Write A1* in MFM, Preset CRC F6 Not Allowed Write C2** in MFM F7 Generate 2 CRC bytes Generate 2 CRG bytes F8 thru FB Write F8 thru FB, ClK = C7, Preset CRC Write F8 thru FB, in MFM FC Write FC with ClK = D7 Write FC in MFM FD Write FD with ClK = FF Write FD in MFM FE Write FE, ClK = C7, Preset CRC Write FE in MFM FF Write FF with ClK = FF Write FF in MFM *Missing clock transition between bits 4 and 5. **Missing clock transition between bits 3 and 4. Floppy Disk Controller Devices 1-107 More than one condition may be set at a time. If for command. If the Force Interrupt Command is receiv- example. the READY TO NOT·READY condition (11 ed when there is a current command under execu- :E cI\,) = 1) and the Every Index Pulse (12 = 1) are both set, tion, the Busy status bit is reset, and the rest of the ...... the resultant command would be HEX "DA." The status bits are unchanged. If the Force Interrupt Com- CD "OR" function is performed so that either a READY mand is received when there is not a current com- >< I\) 12 3 1 00 F6 (Writes C2) FC (Index Mark) 2. Gap 2 cannot be vaired from the IBM format. 3. 3 bytes of A1 must be used in MFM. *50 4E In addition, the Index Address Mark is not required 'l2 00 for operation by the WD279X. Gap 1, 3, and 4 lengths 3 F5 (Writes A 1) can be as short as 2 bytes for WD279X operation, 1 FE (ID Address Mark) however PLL lock up time, motor speed variation, 1 Track Number (0 thru 4C) write splice area, etc. will add more bytes to each gap 1 Side Number (0 or 1) to achieve proper operation. It is recommended that 1 Sector Number (1 thru 1A) the IBM format be used for highest system reliability. 1 01 (Sector Length) 1 F7 (2 CRC's written) FM MFM 22 4E Gap I 16 bytes FF 32 bytes 4E 12 00 Gap II 11 bytes FF 22 bytes 4E 3 F5 (Writes A 1) * 6 bytes 00 12 bytes 00 1 FB (Data Address Mark) * 3 bytes A1 256 DATA Gap 111** 10 bytes FF 24 bytes 4E 1 F7 (2 CRC's written) 4 bytes 00 8 bytes 00 54 4E 3 bytes A1 598** 4E Gap IV 16 bytes FF 16 bytes 4E *Write bracketed field 26 times. *Byte counts must be exact. * *Continue writing until 279X interrupts out. * * Byte counts are minimum, except exactly 3 bytes Approx. 598 bytes. of A 1 must be written. IN IoI~M O""lV ,0"'''' "''''0 OAT ......... AA(PAECEOEOBYTHA£E8YTfSDF ... 'WIT .. CLOCKH' .... SOT'ONBnw(fti IBM TRACK FORMAT 1-110 Floppy Disk Controller Devices NOTE: Maximum limits indicate where permanent ELECTRICAL CHARACTERISTICS device damage occurs. Continuous operation at these Absolute Maximum Ratings limits is not intended and should be limited to those Voltage to any input with conditions specified in the DC Operating respect to VSS = + 7 to -0.5V characteristics. Operating Temperature: + 15°C to + 50°C (NPO Capacitor, Pin 26) + 5°C to + 60°C (minimum, Neg. 3500 TC capacitor, Pin 26) OoC to + 70°C (minimum, Neg. 3500 TC capacitor, Pin 26 and a thermistor in pump circuit) Storage temperature = -55°C to + 125°C OPERATING CHARACTERISTICS (DC) T A = See Electrical Characteristics SYMBOL CHARACTERISTIC MIN_ TYP. MAX. UNITS CONDITIONS IlL Input Leakage 10 JiA vlN = VCC 10L Output Leakage 10 JiA vOUT = VCC V IH Input High Voltage 2.0 V V IL Input Low Voltage 0.8 V V OH Output High Voltage 2.4 V 10 = -100JiA VOL Output Low Voltage 0.45 V 10 = 1.6mA VOHP Output High PUMP 2.2 V lOp = -1.0 mA V OLP Output Low PUMP 0.2 V lOp = + 1.0 mA Po Power Dissipation .75 W All Outputs Open Rpu Internal Pull-Up* 100 1700 JiA vlN = OV Icc Supply Current 70 150 mA All Outputs Open *Internal Pull-up resistors on PINS 1, 17, 19, 22, 36, 37 and 40. Also pin 25 on WD2791 and 3. TIMING CHARACTERISTICS TA See Electrical Characteristics Vss = OV,V cc = +5 ±.25V READ ENABLE TIMING (See Note 2.) SYMBOL CHARACTERISTIC MIN. TYP. MAX. UNITS CONDITIONS TSET Setup ADDR & CS to RL 50 nsec See Note 3 T HLO Hold ADDR & CS from RE 10 nsec TRE RE Pulse Width 200 nsec CL = 50 pf TORR ORO Reset from RE 100 200 nsec TIRR INTRa Reset from RE 500 3000 nsec See Fig. 3 T OACC Data Valid from RE 100 200 nsec = C L 50 pf TOOH Data Hold From RE 20 150 nsec = CL 50 pf WRITE ENABLE TIMING (See Note 2) SYMBOL CHARACTERISTIC MIN. TYP. MAX. UNITS CONDITIONS TSET Setup ADDRS & CS TO WE 50 nsec See Note 3 T HLO Hold ADDR & CS from WE 10 nsec TWE WE Pulse Width 200 nsec TORR ORO Reset from WL 100 200 nsec TIRR INTRa Reset from WE 500 3000 nsec See Fig. 4 Tos Data Setup to WE 150 nsec TOH Data Hold from WE 50 nsec Floppy Disk Controller Devices 1-111 '""I1 :ec 16° OR 32° uS _ _ _ _ _... I'\) L -_ _ _ _ _ _ _ _ _ _ _ _...JVOl ...... co VOH _TIAA'-~ XI ~-:----t_------__, o INTRQ I'\) RE - - - + -.... 1i5ili -----+---4 NOTE I CS MAY BE PERMANENTLY TIED LOW IF DESIRED ~OTE 1 CS MAY BE PERMA~ENlL y TIED lOw If DESIRED 2 WHEN WRITING DATA INTO SECTOR TRACK OR OATA 'TIME DOUBLES WHEN CLOCK REGISTER USER CANNOT READ THIS REGISTER UNTI. AT LEAST •• SEC IN MFM AFTER THE RISING EDGE Of' WE WHEN WRITING INTO THE ~D REGISTER STATUS I SERVICE (WORST CASEI I SERVICE ,WORST CASEI IS NOT VALlO UNTIL SOME 2I.SEC IN FM o 1. "SEC IN MFM 'FM 275 uS °FM: 23~uS 'MFM 11 ~us LATER. THESE TIMES ARE DOUBLED WHEN CLl( - 1 MH. 'MFM 'J~ uS ·TIME DOUBLES WHEN CLOCK • , - ' ORO RISING EDGE. INDICATES THAT THE DATA REGISTER HAS ASSEMBLED OArA DAQ ~'SlNG EDGE; ONOfCAT!S THAT THE OATA REGISTEA IS EMI'TY DAQ 'ALLING EDGE: INOfCATEI THAT THE DATA MOIITEA IS LOADeD ORa FALLING EDGE INDICATES THAT THE OArA REGISTER WAS READ INTAG AISING EDGE: INOfCA TE THE END OF A COM ...... D INTRa RISING EOGE OCCURS AT END OF COMMANO INTAG 'ALLING EDGE: INOfCATES THAT THE COMMAND "EGISTER INTRa FALLING EDGE INDICATES THAT THE STATUS REGISTER WAS REAO II WAITTEN TO FIGURE 3. READ ENABLE TIMING FIGURE 4. WRITE ENABLE TIMING INPUT DATA TIMING SYMBOL CHARACTERISTIC MIN. TYP. MAX. UNITS CONDITIONS Tpw Raw Read Pulse Width 100 200 nsec T BC Raw Read Cycle Time 1500 2000 nsec WRITE DATA TIMING: (All TIMES DOUBLE WHEN ClK 1 MHzXNO WRITE PRECOMPENSATION) SYMBOL CHARACTERISTIC MIN. TYP. MAX. UNITS CONDITIONS Twp Write Data Pulse Width 400 500 600 nsec FM 200 250 300 nsec MFM TWG Write Gate to Write Data 2 J1sec FM 1 J-lsec MFM TWF Write Gate off from WD 2 J-lsec FM 1 J-lsec MFM 1-112 Floppy Disk Controller Devices MISCELLANEOUS TIMING: SYMBOL CHARACTERISTIC MIN. TYP. MAX. UNITS CONDITIONS :E c N TC01 Clock Duty (low) 230 250 20000 nsec "'-I TC02 Clock Duty (high) 230 250 20000 nsec c.o T STP Step Pulse Output 2 or 4 Jisec See Notes 1 & 2 XI o TOIR Dir Setup to Step 12 Jisec ± ClK ERROR N TMR Master Reset Pulse Width 50 Jisec TIP Index Pulse Width 10 Jisec See Notes 1 & 2 RPW Read Window Pulse Width Input 0-5V 120 700 nsec MFM 240 1400 nsec FM±15% Precomp. Adjust 100 300 nsec MFM WPW Write Data Pulse Width Precomp = 100 nsec 200 300 400 nsec MFM WPW Write Data Pulse Width Precomp = 300 nsec 600 900 1200 nsec MFM VCO Free Run Voltage Controlled 6.0 MHz Cext = 0 Oscillator. Adjustable by 4.0 MHz Cext = 35 pf ext. capacitor on Pin 26 Pump Up + 25% 5.0 MHz PU = 2.2V Cext = 35 pf VCO Pump Down -25% 3.0 MHz PO = 0.2V Cext = 35 pf 5 % Change Vcc 3.8 4.2 MHz Cext = 35 pf VCO TA = 75°C 3.5 MHz Cext = 35 pf Cext Adjustable external capacitor 6 25 60 pf VCO = 4.0 MHz nom RClK Derived read clock VCO = 4.0 MHz = VCO + 8, 16, 32 500 KHz DDEN = 0 5/8 =1 250 KHz DDEN = 0 5/8 =0 250 KHz DDEN = 1 5/8 =1 125 KHz DDEN = 1 - 5/8 =0 PUIDON PU/PD time on 250 ns MFM (pulse width) 500 ns FM Floppy Disk Controller Devices 1-113 iP 5 J VI> NOTES: 1. Times double when clock = 1 MHz. :e0 r--T1P--1 2. Output timing readings are at VOL = O.Bv and V OH I\) w- J VIH = 2.0v. ........ CD I I 3. TSET may be reduced to a nsec if TRE and TWE are >< I I~Tw,-~ increased the same amount. 0 MR ~ I\) ~ VIH I I -.J ~TWp 1- .T.R---l I-Tc:vc-i WD~---~ -.: : . -TWG .......: ~ TWF WG~: ----~ WRITE DATA TIMING I" TBC---I·~I RCAD-U DATA --.J re- Tpw U MISCELLANEOUS TIMING *FROM STEP RATE TABLE READ DATA TIMING Table 4. STATUS REGISTER SUMMARY ALL TYPE I READ READ READ WRITE WRITE BIT COMMANDS ADDRESS SECTOR TRACK SECTOR TRACK S7 NOT READY NOT READY NOT READY NOT READY NOT READY NOT READY S6 WRITE a a a WRITE WRITE PROTECT PROTECT PROTECT S5 HEAD LOADED a RECORD TYPE a a a S4 SEEK ERROR RNF RNF a RNF a S3 CRC ERROR CRC ERROR CRC ERROR a CRC ERROR a S2 TRACK a LOST DATA LOST DATA LOST DATA LOST DATA LOST DATA S1 INDEX PULSE ORO ORO ORO ORO ORO SO BUSY BUSY BUSY BUSY BUSY BUSY STATUS FOR TYPE I COMMANDS BIT NAME MEANING S7 NOT READY This bit when set indicates the drive is not ready. When reset, it indicates that the drive is ready. This bit is an inverted copy of the Ready input and logically "ORed" with MR. S6 PROTECTED When set, indicates Write Protect is activated. This bit is an inverted copy of WRPT input. S5 HEAD LOADED When set, it indicates the head is loaded and engaged. This bit is a logical "and" of HLD and HLT signals. S4 SEEK ERROR When set, the desired track was not verified. This bit is reset to when updated. a S3 CRC ERROR CRC encountered in 10 field. S2 TRACK 00 When set, indicates Read/Write head is positioned to Track O. This bit is an inverted copy of the TROO input. S1 INDEX When set, indicates index mark detected from drive. This bit is an inverted copy of the IP input. SO BUSY When set command is in progress. When reset no command is in progress. 1-114 Floppy Disk Controller Devices STATUS FOR TYPE II AND III COMMANDS BIT NAME MEANING :E c I\) S7 NOT READY This bit when set indicates the drive is not ready. When reset, it indicates that the drive is ready. This bit is an inverted copy of the Ready input and "ORed" with MR. The Type II and III Commands will not execute unless the drive is ready. '". co X S6 WRITE On Read Record: Not Used. On Read Track: Not Used. On any Write: It indicates a o I\) PROTECT Write Protect. This bit is reset when updated. S5 RECORD TYPE On Read Record: It indicates the record·type code from data field address mark. 1 Deleted Data Mark. 0 = Data Mark. On any Write: Forced to a zero. = S4 RECORD NOT When set, it indicates that the desired track, sector, or side were not found. This bit is FOUND (RNF) reset when updated. S3 CRC ERROR If S4 is set, an error is found in one or more ID fields; otherwise it indicates error in data field. This bit is reset when updated. S2 LOST DATA When set, it indicates the computer did not respond to DRO in one byte time. This bit is reset to zero when updated. S1 DATA REOUEST This bit is a copy of the ORO output. When set, it indicates the DR is full on a Read Operation or the DR is empty on a Write operation. This bit is reset to zero when updated. SO BUSY When set, command is under execution. When reset, no command is under execution. SUMMARY OF ADJUSTMENT PROCEDURE WRITE PRECOMPENSATION 1) Set TEST (Pin 22) to a logic high. 2) Strobe MR (Pin 19). 3) Set TEST (Pin 22) to a logic low. 4) Observe pulse width on WD (Pin 31). 5) Adjust WPW (Pin 33) for desired pulse width (Precomp Value). 6) Set TEST (Pin 22) to a logic high. DATA SEPARATOR 1) Set TEST (Pin 22) to a logic high. __ 2) Strobe MR (Pin 19). Insure that 5 /8, and DDEN are set properly. 3) Set TEST (Pin 22) to a logic low. 4) Observe Pulse Width on TG43 (Pin 29). 5) Adjust RPW (Pin 18) for (205ns for 8" DD 450ns for 5 1/4" DD, etc.). 6) Observe Frequency on DIRC (Pin 16). 7) Adjust variable capacitor on VCO pin for Data Rate (500 KHz for 8" DD, 250 KHz for 5 1/4" DD, etc.)._ 8) Set TEST (Pin 22) to a logic high. NOTE: To maintain internal VCO operation, insure that TEST = 1 whenever a master reset pulse is applied. Floppy Disk Controller Devices 1-115 1-116 Floppy Disk Controller Devices WESTERN DIGITAL COR PO RAT ION WD279X-02 Floppy Disk Formatter/Controller Family Application Notes INTRODUCTION may also be used under Program Control by tying to In an effort to simplify Floppy Diskette interfacing, a port device such as the 8255, 6250, etc. As a Western Digital has been constantly improving the diagnostic tool when checking out the CPU interface, lSI Controller/Formatter, the most recent of which is the Track and Sector registers should respond like the WD279X Family of lSI controller devices, incor- "RAM" when the WD279X is idle (Busy = INTRa 0). = porating advanced technology to include controller, Because of internal synchronization cycles, certain Write Compensation and Analog Phase lock loop time delays must be introduced when operating under in a single 40·pin dual·in·line package. With this Programmed I/O. The worst case delays are: package we can now offer the designer the simplest ever interfacing option. NEXT DELAY REQ'D. OPERATION OPERATION FM MFM The family consists of four members: WD2791, WD2793, WD2795 and WD2797. WD2791 and WD2793 Write to Read Busy Bit 12f.1s 6f.1s offer internal clock divide in true and inverted data Command Reg. (Status Bit 0) bus. The WD2795 and WD2797 offer internal side Write to Read Status 28f.1s 14f.1s select. The family supports both 5 1/4" and 8" Diskette Command Reg. Bits 1·7 Drives and both single and double density. Write Any Read From Ditt. 0 0 HOST INTERFACING Register Register The lSI Diskette Controller has been developed to Other CPU interface lines are elK, MR and DDEN. ease the interfacing of Processor to Disk Device. The The ClK line should be 2 MHz (8" drive) or 1 MHz (5 Host interfacing with WD279X Family is 1/4" drive) with 50% duty cycle. Accuracy should be accomplished with minimum external devices via an + 1 % (crystal source) since all internal timing, 8·bit bi-directional bus, read/write controls, register including stepping rates, are based upon this clock, select lines and optional control line for chip select, or a single 2 MHz ClK on WD2791 and WD2793 since 5 1/4" or 8" select, enable mini floppy, double den· ENMF line will internally divide ClK. sity enable. The basic operation at the controller is accomplished by selecting the device via (CS) chip The Master Reset Line should be strobed a minimum select line, enabling selection of one of the five inter- of 50 microseconds upon each power·on condition. nal registers (Figure 1). This line clears and initializes all internal registers and issues a restore command (Hex '03') on the riSing A1 - AO READ (RE) WRITE (WE) edge. A quicker stepping rate can be written to the 0 0 Status Regiser Command Register command register after a MR, in which case the 0 1 Track Register Track Register remaining steps will occur at the faster programmed 1 0 Sector Register Sector Register rate. The WD179X will issue a maximum of 255 step· 1 1 Data Register Data Register ping pulses in an attempt to expect the TROO line FIGURE 1. to go active low. This line should be con· nected to the drive's TROO sensor. Each time a command is issued to the WD279X, the busy bit is set and INTRa (Interrupt Request) line is The DDEN line causes selection of either single den· reset. The user has the option of testing for the busy sity (DDEN = 1) or double density operation. DDEN bit or polling INTRa to determine if command has should not be switched during a read or write been completed. operation. The busy bit will be reset whenever the WD279X is The 5/8 Line selects internal VCO frequency to be idle and awaiting a new command. The INTRa line used with 5 1/4" or 8" drives. once set, can only be reset by reading of the status FLOPPY DISK INTERFACE register or issuing a new command. The Floppy Disk Interface can be divided into three The Ao, A1 Lines used for register selections can be sections: Motor Control, Write Signals and Read configured at the CPU in a variety of ways. These lines Signals. All of these lines are capable of driving one may actually tie to CPU addressed like RAM. They TTL load and not compatible for direct connection Floppy Disk Controller Devices 1-117 to the drive. Most drives require an open-collector TIL SEEK interface with high current drive capability. This must This command assumes that the Track Register con- be done on all outputs rom the WD279X. Inputs to tains the track number of the current position of the the WD279X may be buffered or tied to the Drives' ReadlWrite head and the Data Register contains the outputs, providing the appropriate resistor termina- desired track number. The WD279X will update the tion networks are used. Undershoot should not Track register and issue stepping pulses in the exceed -0.3 volts, while integrity of V1H and VOH appropriate direction until the contents of the Track levels should be kept within spec. register are equal to the contents of the Data Register MOTOR CONTROL (the desired track location). A verification operation takes place if the V flag is on. The h bit allows the Motor Control is accomplished by the STEP and DIRC head to be loaded at the start of the command. An Lines. The STEP Line issues stepping pulses with interrupt is generated at the completion of the com- period defined by the rate field in all Type I com- mand. Note: When using multiple drives, the track mands. The DIRC Line defines the direction of steps register must be updated for the drive selected before (DIRC = 1 STEP IN/DIRC = 0 STEP OUl). seeks are issued. Other Control Lines include the TP or Index Pulse. STEP This Line is tied to the drives' Index L.E.D. sensor that informs the WD279X that the stepper motor is at is Upon receipt of this command, the WD279X issues furthest position, over Track 00. The READY Line can one stepping pulse to the disk drive. The stepping be used for a number of functions, such as sensing motor direction is the same as in the previous step "door open," Drive motor on, etc. Most drives provide command. After a delay determined by the r1rO field, a programmable READY Signal selected by option a verification takes place if the V flag is on. If the T jumpers on the drive. The WD279X will look.at the flag is on, the Track Register is updated. The h bit ready Signal prior to executing READIWRITE com- allows the head to be loaded at the start of the com- mands. READY is not inspected during any Type 1 mand. An interrupt is generated at the completion of commands. All Type 1 commands will execute the command. regardless of the Logic Level on this Line. STEP-IN GENERAL DISK WRITE OPERATION Upon receipt of this command, the WD279X issues When writing is to take place on the diskette the Write one stepping pulse in the direction away from track Gate rt'/G) output is activated, allowing current to flow o. If the T flag is on, the Track Register is decremented into the ReadlWrite head. As a precaution to by one. After a delay determined by the r1 ro field, a erroneous writing the first data byte must be loaded verification takes place if the V flag is on. The h bit into the Data Register in response to a Data Request allows the head to be loaded at the start of the com- from the WD279X before the Write Gate signal can mand. An interrupt is generated at the completion of be activated. the command. Writing is inhibited when the Write Protect input is EXCEPTIONS a logic low, in which case any Write command is On the WD2795/7 devices, the SSO output is not immediately terminated, an interrupt is generated and affected during Type I commands, and an internal the Write Protect status bit is set. side compare does not take place when the (V) Verify RESTORE (SEEK TRACK 0) Flag is on. Upon receipt of this command the Track 00 (TROO) For write operations, the WD279X provides Write Gate input is sampled. If TROO is active low indicating the (Pin 30) and Write Data (Pin 31) outputs. Write data consists of a series of pulses set to a width approx- Read-Write head is positioned over track 0, the Track imately three times greater than the precomp adjust- Register is loaded with zeroes and an interrupt is ment. Write Data provides the unique address marks generated. If TROO is not active low, stepping pulses in both formats. (pins 15 to 16) at a rate specified by the r1 ro field are issued until the TROO input is activated. At this time READY the Track Register is loaded with zeroes and an inter- Whenever a Read or Write command (Type II or III) rupt is generated. If the TROD input does not go active is received the WD279X samples the Ready input. If low after 255 stepping pulses, the WD279X terminates this input is logic low the command is not executed operations, interrupts, and sets the Seek error status and an interrupt is generated. All Type I commands bit. A verification operation also takes place if the V are performed regardless of the state of the Ready flag is set. The h bit allows the head to be loaded input. Also, whenever a Type II or III command is at the start of command. Note that the Restore com- received, the TG43 Signal output is updated. TG43 mand is executed when MR goes from an active to may be tied to ENP to enable write precompensation an inactive state. on tracks 44-76. 1-118 Floppy Disk Controller Devices COMMAND DESCRIPTION The WD279X will accept eleven commands. Com- interrupt is generated and the Busy status bit is reset. mand words should only be loaded in the Command The Status Register indicates whether the completed Register when the Busy status bit is off (Status bit command encountered an error or was fault free. For 0). The one exception is the Force Interrupt command. ease of discussion, commands are divided into four Whenever a command is being executed, the Busy types. Commands and types are summarized in Table status bit is set. When a command is completed, and 1 and Table 2. TABLE 1. COMMAND SUMMARY A. Commands for Models: 2791, 2793 B. Commands for Models: 2795, 2797 Bits Bits Type Command 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 I Restore 0 0 0 0 h V r1 rO 0 0 0 0 h V r1 rO I Seek 0 0 0 1 h V r1 rO 0 0 0 1 h V r1 rO I Step 0 0 1 T h V r1 rO 0 0 1 T h V r1 rO I Step·in 0 1 0 T h V r1 rO 0 1 0 T h V r1 rO I Step-out 0 1 1 T h V r1 rO 0 1 1 T h V r1 rO II Read Sector 1 0 0 m S E C 0 1 0 0 m L E U 0 II Write Sector 1 0 1 m S E C aO 1 0 1 m L E U aO III Read Address 1 1 0 0 0 E 0 0 1 1 0 0 0 E U 0 III Read Track 1 1 1 0 0 E 0 0 1 1 1 0 0 E U 0 III Write Track 1 1 1 1 0 E 0 0 1 1 1 1 0 E U 0 IV Force Interrupt 1 1 0 11 13 12 11 10 1 1 0 1 13 12 11 10 Floppy Disk Controller Devices 1-119 TABLE 2. FLAG SUMMARY =E c N Command Bit ....... Type No(s) Description CD >.< I 0,1 r1 rO = Stepping Motor Rate o See Table 3 for Rate Summary N I 2 V = Track Number Verify Flag V = O,No verify V = 1,Verify on destination track I 3 h = Head Load Flag h = O,Load head at beginning h = 2,Unload head at beginning I 4 T = Track Update Flag T = O,No update T = 1,Update track register aO = Data Address Mark aO = O,FB(DAM) " 0 aO = 1,F8(deleted DAM) ,,& III 1 C = Side Compare Flag C = O,Disable side compare C = 1,Enable side compare ,,& III 1 U = Update SSO U = O,Update SSO to 0 U = 1,Update SSO to 1 11&111 2 E = 15 MS Delay E = O,No 15 MS delay E = 1,15 MS delay (30 MS for 1 MHz) 3 S = Side Compare Flag S = O,Compare for side 0 " S = 1,Compare for side 1 3 L = Sector Length Flag " LSB's Sector Length in ID Field 00 01 10 11 L =0 256 512 1024 128 L =1 128 256 512 1024 4 m = Multiple Record Flag m = O,Single record " m = 1,Multiple records IV 0-3 'x = Interrupt Condition Flags '0 = 1 Not Ready To Ready Transition '1 = 1 Ready To Not Ready Transition '2 = 1 Index Pulse '3 = 1 Immediate Interrupt, Requires A Reset* '3-'0= 0 Terminate With No Interrupt (INTRQ) *NOTE: See Type IV Command Description for further information. 1-120 Floppy Disk Controller Devices WESTERN DIGITAL COR P 0 RAT o N WD1691 Floppy Support Logic (F.S.L) FEATURES GENERAL DESCRIPTION • DIRECT INTERFACE TO THE FD179X The WD1691 F.S.L. has been designed to minimize • ELIMINATES EXTERNAL FDC LOGIC the external logic required to interface the 179X • DATA SEPARATION / RCLK GENERATION Family of Floppy Disk Controllers to a drive. With the • WRITE PRECOMPENSATION SIGNALS use of an external VCO, the WD1691 will generate the • VFOE/WF DEMULTIPLEXING RCLK signal for the WD179X, while providing an • PROGRAMMABLE DENSITY adjustment pulse (PUMP) to control the VCO • 8" OR 5.25" DRIVE COMPATIBLE frequency. VFOE/WF de·multiplexing is also • ALL INPUTS AND OUTPUTS TTL COMPATIBLE accomplished and Write Precompensation signals • SINGLE + 5V SUPPLY have been included to interface directly with the WD2143 Clock Generator. The WD1691 is implemented in N·MOS silicon gate technology and is available in a plastic or ceramic 20 pin dual·in·line package. RCLK veo PU 20 PO WDIN VCC l2 2 19 l4 ADO l3 3 18 LATE 11 4 17 EARLY T043 STB 5 16 VCO WD1691 li VFOE WDOUT 6 15 DDEN fWF l2 7 14 ~ WG PO li VFOE/WF 8 13 PU WQ 9 12 RCLK EARLY WDIN VSS 10 11 ROD LATE WOOUl STB Figure 1. WD1691 PIN DESIGNATION Figure 2. WD1691 SLOCK DIAGRAM Floppy Disk Support Devices 2-1 PIN NAME SYMBOL FUNCTION 1 WRITE DATA WDIN Ties directly to the FD179X WD pin. INPUT 2,3,4,19 PHASE 020301 04 4 Phase inputs to generate a desired Write Precompen- 2,3,1,4 sation delay. These signals tie directly to the WD2143 Clock Generator. 5 STROBE STB Strobe output from the 1691. Strobe will latch at a high level on the leading edge of WDIN and reset to a low level on the leading edge of 04. 6 WRITE DATA WDOUT Serial, pre-compensated Write data stream to be sent OUTPUT to the disk drive's WD line. 7 WRITE GATE WG Ties directly to the FD179X pin. 8 VFO ENABLE/ VFOE/WF Ties directly to the FD179X VFOE/WF pin. WRITE FAULT 9 TRACK 32 TG43 Ties directly to the FD179X TG43 pin, If Write Precompensation is required on TRACKS 44-76. 10 Vss Vss Ground 11 READ DATA RDD Composite clock and data stream input from the drive. 12 READ CLOCK RCLK RCLK signal generated by the WD1691, to be tied to the FD179X RCLK pin. 13 PUMP UP PU Tri-state output that will be forced high when the WD1691 requires an increase in VCO frequency. 14 PUMP DOWN PD Tri-state output that will be forced low when the WD1691 required a decrease in VCO frequency. 15 Double Density DDEN Double Density Select input. When Inactive (High), the Enable VCO frequency is internally divided by two. 16 Voltage VCO A nominal 4.0 MHz (8" drive) or 2.0 MHz (5.25" drive) Controlled master clock input. Oscillator 17,18 EARLY EARLY EARLY and LATE signals from the FD179X, used to LATE LATE determine Write Precompensation. 20 Vcc Vcc + 5V ± 10% power supply Table 1. PIN DEFINITIONS 2-2 Floppy Disk Support Devices The signals, DDEN, TG43, and RDD have internal pull-up resistors and may be left open if a logic 1 is L -PU---Pl5--- desired on any of these lines. ---ms: RCLK --~ I I : I I I WG VFOE/WF ROD PU+PO HI·Z ROD :: HI·Z I :: : I I I 1 X X HI-Z U HI·Z I I I 0 1 X HI-Z I I I I I I 0 0 1 HI-Z ----:-!-IU : : : I I I HI·Z 0 0 0 Enable I : I : HI·Z Figure 4 DATA RECOVERY LOGIC I iLl I! ! When VFOE/WF and WRITE GATE are low. the data recovery circuit is enabled. When the RDD line goes Active Low, the PU or PD signals will be- come active. See Figure 4. If the RDD line has made its transition in the beginning of the RCLK win- Figure 3 PUMP SIGNAL TIMING DIAGRAM dow, PU will go from a HI-Z state to a Logic 1, requesting an increase in VCO frequency. If the DEVICE DESCRIPTION RDD line has made its transition at the end of the RCLK window, PU will remain in a HI-Z state while PD The WD1691 is divided into two sections: will go to a logic zero, requesting a decrease in VCO frequency. When the leading edge of RDD occurs 1. Data Recovery Circuit in the center of the RCLK window, both PU and PD 2. Write Precompensation Circuit will remain tri-stated, indicating that no adjustment The Data Separator or Recovery Circuit has four of the VCO frequency is needed. See Figure 3. The inputs: DDEN, VCO, RDD, and VFOE/WF; and RCLK signa~divide-by-16 (DDEN = 1) or a three outputs: PU, PD, and RCLK. The VFOE/WF divide-by-8 (DDEN = 0) of the VCO frequency. input is used in conjunction with the Write Gate signal The minimum Voh level on PU is specified at 2.4V, to enable the Data recovery circuit. When Write Gate sourcing 200ua. During PUMP UP time, this output is high, a write operation is taking place, and the data will 9QJrom a tri-state to .4V minimum. By typing PU recovery circuits are disabled, regardless of the state and PD together, a PUMP signal is created that will be forced low for a decrease in VCO frequency and on any other inputs. forced high for an increase in VCO frequency. To The Write Precompensation circuit has been designed speed up rise times and stabilize the output voltage, to be used with the WD2143-03 clock generator. When a resistor divider can be used to set the tri-state level the WD1691 is operated in a "single density only" to approximately 1.4V. This yields a worst case swing mode, write precompensation as well as the of + 1V; acceptable for most VCO chips with a linear WD2143-03 is not needed. In this case, 01,02,03,04, voltage-to-frequency characteristic. and STB should be tied together, DDEN left open, Both PU and PO signals are affected by the width and TG43, WDIN, Early, and Late tied to ground. of the RAW READ (RDD) pulse. The wider the RAW READ pulse, the longer the PU or PO signal (de- In the double-density mode (DDEN = 0), the signals pending upon the phase relationship to RCLK) will Early and Late are used to select a phase input remain active. If the RAW READ pulse exceeds 250ns, (01 - 04) on the leading edge of WDIN. The STB line is (VCO = 4 MHz, DDEN =0), or 500 n~CO = 2 latched high when this occurs, causing the MHz, DDEN = 1), then both a PU and PD will oc- WD2143-03 to start its pulse generation. 02 is used cur in the same window. This is undesirable and = as the write data pulse on nominal (Early Late 0) = reduces the accuracy of the external integrator or low- 01 is used for ec!!:!y, and 03 is used for late. The pass filter to convert the PUMP signals into a slow leading edge of 04 resets the STB line in anticipation moving D.C. correction voltage. of the next write data pulse. When TG43 = 0 or Eventually, the PUMP signals will have corrected the DDEN = 1, Precompensation is disabled and any tran- VCO input to exactly the same frequency multiple as sitions on the WDIN line will appear on the WDout the RAW READ Signal. The leading edge of the RAW line. If write precompensation is desired on all tracks, READ pulse will then occur in the exact center of the leave TG43 open (an internal pull-up will force a Logic RCLK window, an ideal condition for the FD179X 1) while DDEN = O. internal recovery circuits. Floppy Disk Support Devices 2-3 SPECIFICATIONS Storage Temperature :ec ABSOLUTE MAXIMUM RATINGS Ceramic-65°C (-85°F) to + 150°C (302°F) Plastic-55°C (-67°F) to + 125°C (257°F) ..... Ambient Temperature en NOTE: Maximum limits indicate where permanent co ..... under Bias ....... -25°C (-13°F) to 70°C (158°F) device damage occurs. Continuous operation at these Voltage on any pin with respect limits is not intended and should be limited to those to Ground (Vss) ................. -0.2 to + 7V conditions specified in the DC Electrical Power Dissipation ......................... 1W Characteristics. DC ELECTRICAL CHARACTERISTICS TA = OOC (32°F) to 70°C (158°F); Vcc = 5.0V + 10%;Vss = OV SYMBOL PARAMETER MIN TYP MAX UNIT CONDITIONS VIL Input Low Voltage -0.2 +0.8 V VIH Input High Voltage 2.0 V VOL Output Low Voltage 0.45 V 10L = 3.2 MA VOH High Level Output Voltage 2.4 V IOH = -200iJ a Vcc Supply Voltage 4.5 5.0 5.5 V Icc Supply Current 40 100 MA A" outputs open NOTE: For AC and functional testing purposes, a Logic '0' is measured at 0.8V, and a Logic '1' at 2.0V. AC ELECTRICAL CHARACTERISTICS TA = OOC (32°F) to 70°C (158°F);Vcc = 5V + 10%; Vss = OV SYMBOL PARAMETER MIN. TYP. MAX. UNITS TEST CONDITIONS FIN VCO Input Frequency .5 4 6 MHz DDEN =0 .5 2 6 MHz DDEN =1 Rpw RDD Pulse Width 100 200 ns. Wei EARLY (LATE) to WDIN 100 ns. Pon PUMP UP/DN Time 0 250 ns. Wpi WDIN to WDOUT 80 ns. DDEN =1 Inr Internal Pull-up Resistor 4.0 6.5 10 K I FIN ~ Vee VCO PINS 1 - - - - + - - - - - + - - - - 8 , 9, 11, 15 only ROD u I ---. I I I 4- Rpw u- RCu< _ _~ '-----. . . .1 ~ ........- - - Voo + 16---!... Figure 5. INTERNAL PULL-UP RESISTOR Figure 6. ROD AND RCLK PULSE DIAGRAMS 2-4 Floppy Disk Support Devices Wei ~I 1- ----. ..- Wpw WDIN .--ll n n n n I EARLY LATE @1 iD2 00 ~ STS WDOUT NOM EARLY LATE NOM TG43 = "1" DDEN = "0" Figure 7. WRITE DATA TIMING (MFM) ~ 4-- Wpw WDIN ~nL--_---In~ I 1 __ WDOUT ____~:n II ~II_ :n~ __________ Wpi II II TG43 = "0" DDEN = "1" Figure 8. WRITE DATA TIMING (FM) Floppy Disk Support Devices 2-5 =E C ..... RAW DATA 1771-01 CD ..... CO 25 XTDS 1691 RDD 11 - 74LS08 12 RCLK 27 FDDATA 26 FDCLOCK DDEN 15 N.C. EARLY LATE:vFOE 17 Figure 9. WD1691 to FD1771-o1 INTERFACE TYPICAL APPLICATIONS potentiometer for 1.4V on pin 2 of the 74S124. Then Figure 9 illustrates the WD1691 to FD1771-01 floppy adjust the range control to yield 4.0 MHz on pin 7 of disk controller. The RCLK signal is used to gate the the 74S124. RAW data pulses which are inverted by the 74LS04 SUBSTITUTING VCO'S inverter. Since RLCK will be high during data and low There are other VCO circuits available that may be during clock a 74LS08 is used to switch the proper substituted for the 74S124. The specifications clock or data pulse to the FD1771_ required are: Shown in Figure 10 is a Phase-Lock Loop data 1) The VCO must free run at 4.0 MHz with a 1.4V con- separator and the support logic for a single and trol signal. The WD1691 will force this voltage 1 double-density 8" drive. The raw data (both clock and Volt in either direction (Le., .4V = decrease fre- data bits) are fed to the WD1691 and FD179X. The quencY,2.4V = increase frequency). If a + 15% WD1691 outputs its PU or PD signal, which is capture range is desired, then a 1 Volt change on integrated by the .33uf capacitor and 330hm resistor the VCO input should change the frequency by to form a control voltage for the 74S124 VCO device_ 15%. Capture range should be limited to about The 4.0 MHz nominal output of the VCO then feeds + 25%, to prevent the VCO from breaking into back to the WD1691 completing the loop. The oscillation and/or losing lock because of noise WD2143-03 is also used, providing write precompen- spikes (causing abnormally quick adjustments of sation when in double-density, from tracks 44-77. The the VCO frequency). Jitter in the VCO output fre- DDEN line can either be controlled by a toggle switch quency may further be reduced by increasing the or a logic level from the host system. integration capaCitor/resistor, but this will also ALIGNMENT decrease the final capture range and lock-up time. To adjust write precompensation, issue a command 2) The sink output current of the WD1691 is 3.2ma to the FD179X so that write data pulses are present. minimum. The source output current is -200ua. This can be done with a 'WRITE TRACK' command Therefore, source current is the limiting factor. and the iP line open, or a continuous 'WRITE Insure that the input circuitry of the VCO does not SECTOR' operation. With a scope on pin 4 of the require source current in excess of -200ua. WD1691, adjust the precomp pot for the desired value. Another alternative is to use a voltage follower/level This will range from 100 to 300 ns typically. shifter circuit to match the input requirements of the The pulse width set on pin 4 (01) will be the desired VCO chosen. A more complex filter can be used to precomp delay from nominal. convert the PUMP UP/PUMP DOWN pulses to the varying DC voltage signal required by the VCO, Th~ ~arator must be adjusted with the RDD achieving an optimum condition between lock-up time or VFOEjWF line at Logic 1. Adjust the bias voltage and high frequency rejection. 2-6 Floppy Disk Support Devices !! Q :g -.::: ~ 200 NS :!: 25 ~ - NOTE 4 ;;.;- C/) -§ RAW DATA FROM DRIVE LJ ~ 271 RAW READ "0 +5 Q I SINGLE ~ .l> DENSITY 0 . 'f DOUBLE "c I CD s. lB· -LDENSITY FD179X (') CD Q +5V C/) .... ~ +5 ? IINTRQ~AQ....A,) CPU ~ 20 '( WE,RE,CS INTERFACE ~ 4 C/J VCC 6 Z C1 WDOUT r-- C) 14 15 R2 DDEN ~VCO r- 4.0MHZ DDEN !!! 1_1 C2 RCLK 12 RCLK c +5V F2 11 ROD 7 0 I WD1691 WG WG C III 1 r- WDIN WD +5V m 47K lOOK EARLY 17 EARLY c BIAS VOLTAGE 13 PU 18 m ADJ LATE LATE z 9 C/J l~PD TG43 TG43 =i -< 5 STB VFOE 8 I VFOElWF "T1 10 r- 47K 0 04 03 02 01 I~ ~TO ~ "'tI 191 31 ? 14 1 36 "'tI -< WPRT !1pw Vss DIRC TROO 0 m 1) ALL RESISTORS V.W :!: 5% 2) SPECIFICATIONS = 2K 15 32 CAPTURE RANGE: :!:20% -=- /I STEP READY LOCK·UP TIME: 251o'5ec (ALL ONE'S PATTERN, MFM) PRECOMPADJ 10K 3) FOR 5 1/4" __8_ .6810'1 .3310'1 san 330 82PI 47PI 4) ROD = ONE EIGHTH RCLK WIDTH MAXIMUM 250n5 lor 4MHz 500n5 lor 2MHz ~ ....... ~69~aM 2-8 Floppy Disk Support Devices WESTERN DIGITAL c o R p o R A T o N WD16C92 Floppy Read/Write Circuit Device FEATURES DESCRIPTION • Compatible with NEC 765A Floppy Disk Controller The WD16C92 is a 40-pin CMOS custom LSI device • CMOS with full TIL level compatibility on input and output. • TIL Compatible It is intended to replace a number of discrete com- • Single + 5V Supply ponents needed with the NEC765A Floppy Disk Con- • Phase Detector and Pulse shaping for Read Data troller. The WD16C92 handles four primary functions: • Write Data Precompensation • PLL Logic • Floppy Controller Read/Write Clock Generation • Clock Generation • IBM PC/PC AT Bus Timing Compatible • Write Precompensation • Interrupt/DMA timing PC/PC AT Bus Vee This floppy support device augments the 765A con- L FOClK troller while it reduces overall cost. FOATA PLL LOGIC FFDDATA VCOEN FRO DET VCOEN 2 PHASE DET UP 4 OSC 2 VCO SELECT PULSE SHAPE ON 4 FWCLK Vee XTl 2 ORV ORO CLOCK/REF GEN 24MHZ SOB 2 FORO IDACK DRV DATA RATE SELECT SOB1 FOMAEN 1 OF 4 DATA RATE FREP lDFCR OPT 2 SPEED DRIVE SOBO FINT MR XTAlOSC FWClK FIRO lOFCR FOC ClKS OSC1 FORO WDA WROATA OSC2 ONOO WE FOCLK ~ PSO WRITE PRECOMP LOGIC FORO VCOEN1 ON01 PS1 30 UP01 VCOEN2 FREP ON02 FINT FIRO FFOOATA 28 UP02 VCOEN ON03 ORO INT/DMA FDMAEN PC BUS TIMING PSO 26 UP03 FORO DACK PS1 XTL WOA Iv55 WE WROATA 1 40 PIN DIP/44 PIN PLCC GNO MR Floppy Disk Support Devices 2-9 SIGNAL DESCRIPTION PIN MNEMONIC DESCRIPTION 1 FWCLK WRITE CLOCK - TTL output, clock for write data. 2 DRV DRIVE TYPE - TTL input with internal pullup resistor. Low level indicates special drive. 3 FDRO SPEED SELECT - TTL output, latched image SDBO. (effective only on dual speed drives.) 4 SDB1 DATA BUS BIT 1 - TTL input, of data bus bit 1. 5 SDBO DATA BUS BIT 0 - TTL input, of data bus bit O. 6 LDFCR LOAD FLOPPY CONTROL REGISTER - TTL input causes SDBO and SDB1 to be latched internally. 7 OSC1 OSCILLATOR 1 - TTL input, for 500 Kbs, 250 Kbs and 125 Kbs data rates (nominally 2.0 MHz) 8 OSC2 OSCILLATOR 2 - TTL input for 300 Kbs data rate (nominally 2.4 MHz) 9 FDCLK READ DATA CLOCK - TTL output, provides window for floppy read data pulse. 10 VCOEN1 VCO ENABLE 1 - TTL output, enables VCO for 300 Kbs data rate. 11 VCOEN2 VCO ENABLE 2 - TTL output, enables VCO for 500, 250 and 125 Kbs data rates. 12 FREP CLOCK OUTPUT - TTL output, provides clock signal for the JAPD765A. 13 FFDDATA READ DATA - TTL output, floppy read data pulses. 14 VCOEN VCO ENABLE - TTL input, from the JAPD765A when high enables reading from the floppy disk. 15 PSO PRECOMP BIT 0 - TTL input, decodes for precompensation.of write data. 16 PS1 PRECOMP BIT 1 - TTL input, decodes for precompensation of write data. 17 WDA WRITE DATA - TTL input, write floppy data from the JAPD765A. 18 WE WRITE ENABLE - TTL input, from the JAPD765A to enable writing data on the floppy disk. 19 WRDATA WRITE DATA - TTL output, precompensated data from the WD16C92 to be written on the floppy drive. 20 GND GROUND 21 MR MASTER RESET - TTL input, clears all internal conditions to be reset. WD16C92 will default to the 500 Kbs data rate following a MR. 22 FDATA READ DATA - TTL input, raw read data from the floppy drive. 23 24MCLK 24 MHz CLOCK TEST POINT - TTL output, for test monitoring only; NOT to be used to drive any external circuitry. 24 XTL CRYSTAL RETURN - TTL output, return for 24 MHz crystal when used; otherwise not connected. 25 XTL CRYSTAL INPUT - TTL input connection for 24 MHz crystal. Can optionally be used for 24 MHz TTL level square wave clock input. 26 UP03 UP PUMP 3 - Open drain output, provides up pump for 125 Kbs data rate. 27 DN03 DOWN PUMP 3 - Open drain output, provides down pump for 125 Kbs data rate. 28 UP02 UP PUMP 2 - Open drain output, provides up pump for 250 Kbs data rate. 29 - - DN02 DOWN PUMP 2 - Open drain output, provides down pump for 250 Kbs data rate. 30 UP01 UP PUMP 1 - Open drain output, provides up pump for 300 Kbs data rate. 31 DN01 DOWN PUMP 1 - Open drain output, provides down pump for 300 Kbs data rate. 32 UPOO UP PUMP 0 - Open drain output, provides up pump for 500 Kbs data rate. 33 - - DNOO DOWN PUMP 0 - Open drain output, provides down pump for 500 Kbs data rate. 2-10 Floppy Disk Support Devices SIGNAL DESCRIPTION (cont.) PIN MNEMONIC DESCRIPTION :ec 34 FDRQ DELAYED DATA REQUEST - TTL TRI-STATE output, is the DRQ delayed by 2 j.As and ..... 0') enabled by FDMAEN. (') co 35 FIRQ INTERRUPT REQUEST - TTL TRI-STATE output, generates an interrupt request on the N PC/AT compatible bus and is gated by FDMAEN. 36 FINT FLOPPY INTERRUPT - TTL input from j.APD765A to generate bus interrupt request. 37 FDMAEN FLOPPY DMA ENABLE - TTL input to gate FIRQ and FDRQ onto the PC/AT compatible bus. -- 38 DACK DATA ACKNOWLEDGE - TTL input, data acknowledge signal from the PC/AT compatible bus. 39 DRQ DATA REQUEST - TTL input, from the j.APD765A to request a data transfer between the data bus. 40 VCC + 5 volt ± 5% power supply input. Floppy Disk Support Devices 2-11 2-12 Floppy Disk Support Devices WESTERN DIGITAL COR P 0 RAT o N WD2143-03 Four Phase Clock Generator FEATURES, GENERAL DESCRIPTION • IMPROVED VERSION OF WD2143-01 The WD2143-03 Four·Phase Clock Generator is a • TRUE AND INVERTED OUTPUTS MOS/LSI device capable of generating four phase • SINGLE 5 VOLT SUPPLY clocks. The ouput pulse widths are controlled by tying • TTL COMPATABLE an external resistor to the proper control inputs. All • ON CHIP OSCILLATOR pulse widths may be set to the same width by tying • TTL CLOCK INPUT the ~PW line through an external resistor. Each pulse • TTL CLOCK OUTPUT width can also be individually programmed by tying • PROGRAMMABLE PULSE WIDTHS a resistor through the appropriate ~1PW·~4PW con· • PROGRAMMABLE PHASE WIDTHS trol inputs. • NO EXTERNAL CAPACITOR 4 cppw CP3 CP4PW CP3 CP3PW cp2PW CP2 CP2PW cp2 CP1PW CPl NC cp3PW cpl STBIN GND NC CP4PW PIN DESIGNATION CPPW Figure 1. WD2143-03 BLOCK DIAGRAM DEVICE OPERATION Each of the phase outputs can be controlled resistor tied from the ~PW (Pin 17) input to + 12V. individually by tying an external resistor from ~1 PW- STROBE IN (pin 11) is driven by a TTL square wave. ~4PW to a + 5V supply. When it is desired to have Each of the four phase outputs provide both true and ~1 through ~4 outputs the same width, the ~1 PW- inverted signals, capable of driving 1 TTL load each. ~4PW inputs should be left open and an external Floppy Disk Support Devices 2-13 PIN NUMBER SYMBOL DESCRIPTION =E c 1,3,5,7 +1-~4 Four phase clock outputs. These outputs are inverted (active low). .... N :::. 2,4,6,8 ¢1-4>4 Four Phase clock outputs. These outputs are true (active high). wI 9 GND Ground. o W 10 NC No connection. 11 STB IN Input signal to initiate four-phase clock outputs. 12 NC No connection. 13-16 ¢1PW-4>4PW External resistor inputs to control the individual pulse widths of each output. These pins can be left open if ¢PW is used. 17 ¢PW External resistor input to control all phase outputs to the same pulse widths. 18 Vee + 5V ± 5% power supply input. Table 1. PIN DESCRIPTIONS TYPICAL APPLICATIONS ,, '-, 01 02 03 • 2 3 3 7 5 01 02 03 ~ - 7400 11 STBIN l 04 '04 VD1691 WD2143-03 - WD2143-03 STBIN STB 17 0PN J, "\ \ +12~ 10K 2K , \ , Figure 2. WRITE PRECOMP OPERATION Figure 3. TTL SQUARE WAVE OPERATION WITH F.S.L. WD1691 +5 +12 ~ 11 STBIN 8 13 11 I1J1PW <1>1 <1>1 2K STB IN 8 WD2143-03 <1>1 <1>1 14 6 I1J2PW <1>2 <1>2 17 <1>2 <1>2 10K <1>PW WD2143-03 <1>3 <1>3 15 4 I1J3PW <1>3 <1>3 <1>4 <1>4 16 2 I1J4PW <1>4 <1>4 10K Figure 4. EQUAL PULSE WIDTH OUTPUTS Figure 5. INDIVIDUAL PULSE WIDTH OUTPUTS 2-14 Floppy Disk Support Devices l IS WD TO ST. -Jt; tpw :E cI\) ..... ~ Ct.) 0• ;;;I Ct.) 179X rc "'--/ .'.2 -----------~~----------I "'--/ -< Q'W 1 - - -_ _ ----------------~~------I ~---------------------------------------I~ ~ Figure 6. WRITE PRECOMP FOR FLOPPY DISK M _________________ ~ Figure 7. WD2143-03 TIMING DIAGRAM SPECIFICATIONS Note: Maximum ratings indicate limits beyond which permanent damage may occur. Continuous operation Absolute Maximum Ratings Operating at these limits is not intended and should be limited Temperature ...... 0oC (32°F) to + 70°C (15S°F) to the DC electrical characteristics specified. Voltage on any pin with respect to Ground* -0.5 to + 7V ·Pin 27 = -D.5V to + 12V. Increasing voltage on Pin Power Dissipation 1 Watt 17 will decrease Tpw. Storage Temperature plastic ........ -55°C (-67°F) to + 125°C (257°F) ceramic ....... -65°C (-S5°F) to + 150°C (302°F) DC ELECTRICAL CHARACTERISTICS Vcc = 5V ± 5%, GND = OV, TA = OOC (3~F) to 70°C (15S°F). SYMBOL PARAMETER MIN MAX UNITS CONDITIONS VOL TTL low level output 0.4 V 10L = 1.6 rnA VOH TTL high level output 2.0 V 10H = -100IJ A V 1L STS in low voltage O.S V V1H STS in high voltage 2.4 V Icc Supply Current SO rnA All outputs open Table 2. DC ELECTRICAL CHARACTERISTICS Floppy Disk Support Devices 2-15 SWITCHING CHARACTERISTICS :e Vee = 5V ± 5%, GND = OV, TA = OOC (3~F) to 70°C (158°F) c N ...&. SYMBOL CHARACTERISTIC MIN. MAX. UNITS CONDITIONS :::. wI t po STB IN to cf>1 140 ns o W tpw Pulse Width (any output) 100 300 ns CL = 30pf t pR Rise Time (any output) 30 ns CL = 30pf tpF Fall Time (any output) 25 ns CL = 30pf fs STROBE PULSE WIDTH 1.0 ns combined tpw = 400 ns t owp Pulse Width Differential ±10 % Referenced to cf> 1, 100-300 ns Table 3. SWITCHING CHARACTERISTICS Note: Tpw measured at 50% VOH Point; VOL = O.BV, VOH = 2.0V. 2-16 Floppy Disk Support Devices WESTERN DIGITAL COR PO RAT ION WD9216·00IWD9216·01 :E c c.o Floppy Disk Data Separator - FDDS N ""'C')" o• FEATURES GENERAL DESCRIPTION o • PERFORMS COMPLETE DATA SEPARATION The Floppy Disk Data Separator provides a low cost FUNCTION FOR FLOPPY DISK DRIVES solution to the problem of converting a single stream • SEPARATES FM OR MFM ENCODED DATA of pulses from a floppy disk drive into separate Clock FROM ANY MAGNETIC MEDIA and Data Inputs for a Floppy Disk Controller. • ELIMINATES SEVERAL SSI AND MSI DEVICES NORMALLY USED FOR DATA SEPARATION The FDDS consists primarily of a clock divider, a long- • NO CRITICAL ADJUSTMENTS REQUIRED term timing corrector, a short-term timing corrector, • COMPATIBLE WITH WESTERN DIGITAL 179X, and reclocking circuitry. Supplied in an 8-pin Dual- 176X AND OTHER FLOPPY DISK CONTROLLERS in-Line package to save board real estate, the FDDS • SMALL 8-PIN DUAL-IN-LiNE PACKAGE operates on + 5 volts only and is TTL compatible on • +5 VOLT ONLY POWER SUPPLY all inputs and outputs. • TTL COMPATIBLE INPUTS AND OUTPUTS The WD9216 is available in two versions; the WD9216-00, which is intended for 51/4" disks and the WD9216-01 for 5 1 /4" and 8" disks. VCC SEPD CD1 CDO PIN CONFIGURATION REFCLK~ CLOCK - +5V CDO---. DIVIDER -GND CD1-' DATA/CLOCK PULSE SEPCLK SEPARATION REGENERATIO LOGIC LOGIC SEPD EDGE DSKD-. DETECTION LOGIC FLOPPY DISK DATA SEPARATOR BLOCK DIAGRAM Floppy Disk Support Devices 2-17 ELECTRICAL CHARACTERISTICS NOTE: When powering this device from laboratory or :ec MAXIMUM RATINGS· system power supplies, it is important that the Absolute Maximum Ratings not be exceeded or co Operating Temperature Rnge ...... 0oC to + 70°C device failure can result. Some power supplies exhibit N ..... Storage Temperature Range ....... -55°C TO 1250 voltage spikes or "glitches" on their outputs when 0') Positive Voltage on any Pin, the AC power is switched on and off. In addition, o• with respect to ground ............... + 8.0V voltage transients on the AC power line may appear o Negative Voltage on any Pin, on the DC output. If this possibility exists it is sug- with respect to ground ................. -0.3V gested that a clamp circuit be used. ·Stresses above those listed may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the opera- tional sections of this specification is not implied. OPERATING CHARACTERISTICS (fA = OOC to 700 C, Vcc = ± 5%, unless otherwise noted.) PARAMETER MIN. TYP. MAX. UNITS COMMENTS D.C. CHARACTERISTICS INPUT VOLTAGE LEVELS Low Level VIL 0.8 V High Level VIL 2.0 V OUTPUT VOLTAGE LEVELS Low Level VOL 0.4 V 10L = 1.6 rnA High Level VOH 2.4 V 10H = -100 A INPUT CURRENT Leakage IlL 10 p.A o < VIN < Voo INPUT CAPACITANCE All Inputs 10 pF POWER SUPPLY CURRENT 100 50 rnA A.C. CHARACTERISTICS Symbol fCY REFCLK Frequency 0.2 4.3 MHz WD9216-00 fCY REFCLK Frequency 0.2 8.3 MHz WD9216-01 tCKH REFCLK High Time 50 2500 ns tCKL REFCLK Low Time 50 2500 ns tSOON REFCLK to SEPD "ON" Delay 100 ns tSOOFF REFCLK to SEPD "OFF" Delay 100 ns t SPCK REFCLK to SEPCLK Delay 100 ns tOLL DSKD Active Low Time 0.1 100 P.s tOLK DSKD Active High Time 0.2 100 P.s REFCLK SEPO, SEPCLK ------~----:---------- DSKD. Figure 3. AC CHARACTERISTICS 2-18 Floppy Disk Support Devices DESCRIPTION OF PIN FUNCTIONS PIN NUMBER PIN NAME SYMBOL FUNCTION 1 Disk Data DSKD Data input signal direct from disk drive. Contains combined clock and data waveform. 2 Separated Clock SEPCLK Clock signal output from the FDDS derived from floppy disk drive serial bit stream. 3 Referenced Clock REFLCK Reference clock input. 4 Ground GND Ground. 5,6 Clock Divisor CDO,CD1 CDO and CD1 control the internal clock divider circuit. The internal clock is a submultiple of the REFCLK according to the following table: CD1 CDO Divisor 0 0 1 0 1 2 1 0 4 1 1 8 7 Separated Data SEPD SEPD is the data output of the FDDS. 8 Power Supply Vcc + 5 volt power supply. 4 MHz CRYSTAL OSCILLATOR I ., +4 1 lMHz ~ J REFCLK REGENERATED DATA CLK SEPo RAW READ FLOPPY DISK DATA WD179X, 176X or Equiv. DISK DSKD FLOPPY DISK DRIVE WD9216·00,Ol CONTROLLER DERIVED CLOCK SEPCLK RCLK COO COl GND + GND + Figure 1. TYPICAL SYSTEM CONFIGURATION (5 1 / 4" Drive, Double Density) OPERATION Separate short and long term timing correctors assure A reference clock (REFCLK) of between 2 and 8 MHz accurate clock separation. is divided by the FDDS to provide an internal clock. The internal clock frequency is nominally 16 times The division ratio is selected by inputs CDO and CD1. the SEPCLK frequency. Depending on the internal tim- The reference clock and division ratio should be ing correction, the internal clock may be a minimum Ichosen per Table 1. of 12 times to a maximum of 22 times the SEPCLK The FDDS detects the leading edges of the disk data frequency. pulses and adjusts the phase of the internal clock The reference clock (REFCLK) is divided to provide to provide the SEPARATED CLOCK output. the internal clock according to pins CDO and CD1. Floppy Disk Support Devices 2-19 Table 1. CLOCK DIVIDER SELECTION TABLE DRIVE DENSITY REFCLK (8" or 5 1 / 4'') (DO or SO) MHz CD1 COO REMARKS 8 00 8 0 0 8 SO 8 0 1 Select either one 8 SO 4 0 0 5 1/4 00 8 0 1 5 1/4 00 4 0 0 Select either one 5 1/4 SO 8 1 0 5 1/4 SO 4 0 1 Selecct anyone 5 1/4 SO 2 0 0 INTCLK SEPCLK ---.J SEPD---------~~----:--------~~~------------------~LJ~--------------- I I W always two Internal clock cycles Figure 2. REFERENCE CLOCK TIMING 2-20 Floppy Disk Support Devices WESTERN DIGITAL c o R p o R A T o N =E o CD WD92C32 Floppy Disk Digital Data Separator I\) () (,.) I\) I FEATURES GENERAL DESCRIPTION o o • HIGH PERFORMANCE DIGITAL DATA The WD92C32 digital data separator has been SEPARATOR (Low error rates) designed to address the high performance 5 %" or • NO ADJUSTMENTS 8" floppy disk drive market. It is pin function com- • 8 PIN DIP patible with the WD9216, although it provides superior • TTL COMPATIBLE performance in terms of available bit jitter window • CMOS margins. The WD92C32 is designed to operate at data • SINGLE 5V SUPPLY rates of 125, 250 and 300, and 500 Kb/s. • PIN FUNCTION COMPATIBLE WITH THE WD9216 The WD92C32 is a CMOS LSI product with TTL com- patible I/O which operates from a single 5 volt supply. Packaged as an 8 pin DIP, the WD92C32 represents a significant cost savings when compared to the cost of the analog components required to achieve equal performance. The device contains an internal power-up reset along with all of the necessary logic to achieve classical 2nd order phase locked loop performance. Implemented digitally this design does not require any external adjustments or any additional logic to per- form the data separation. PIN CONFIGURATION DESCRIPTIONS OF PIN FUNCTIONS PIN NUMBER MNEMONIC SIGNAL NAME FUNCTION -- 1 DSKD Disk Data Data input signal from the floppy drive containing both clock and data information. 2 SEPCLK Separated Clock Resultant clock recovered from the disk serial bit stream. Sometimes called RCLK. 3 REFCLK Reference Clock Reference clock input from a crystal oscillator. 4 Vss Ground Ground 5 COO, Clock Divisor Encoded bits which are used to select 1 of 4 reference clock 6 CD1 division factors. -- 7 SEPD Separated Data Sometimes called RDATA, this is still the encoded serial bit stream, but which has been re-synchronized to the phase of Recovered Clock. 8 Vee Power Supply + 5V power supply Floppy Disk Support Devices 2-21 2-22 Floppy Disk Support Devices WESTERN DIGITAL c o R p o R A T o N :E c WD1010-05 Winchester Disk Controller """" 0 """" 0I 0 FEATURES CJ1 • ST506-SA1000 COMPATIBLE vcc • MULTIPLE SECTOR READ/WRITE RCLK INTRQ RG • UP TO 5 MBITS/SEC DATA RATE NC RO MR BORQ • UNLIMITED SECTOR INTERLEAVE RE BROY • AUTOMATIC FORMATTING WE ORUN Cs RWC • CRC/ECC CAPABILITY WITH EXTERNAL ECC AO SC GENERATOR/CHECKER A1 TKOOO A2 WF • PROGRAMMABLE RETRIES 07 INOEX • VARIABLE SECTOR SIZE 06 OROY 05 STEP • SINGLE +5V SUPPLY 04 OIRIN 03 WCLK 02 WG 01 EARLY DESCRIPTION 00 LATE The WD1010-05 is a MOS/LSI device which performs vss WO the functions of a Winchester Disk Controller/Format- ter. It is compatible with the Seagate ST506 and the Shugart Associates SA1000 drives, as well as all other PIN DESIGNATION 5 %" and 8" products utilizing the same type of inter- face. On the host side, an 8-bit bi-directional bus accepts all commands, data, and status bytes. The Western Digital WD1000 series of board level con- trollers are software compatible with the WD1 01 0-05. Operating from a single 5 volt supply, the WD1010-05 is implemented in NMOS silicon gate technology and NC is available in a 40-pin dual-in-line and aSM package. WG ARCHITECTURE· RG EARLY RCLK LATE The WD1010-05 Winchester Disk Controller provides Vee WD the necessary link between an 8-bit, parallel processor BCS Vss and a Winchester disk drive. The WD1010-05 may be BCR 00 programmed to either automatically retry errors, or INTRQ 01 to terminate the command. The internal architecture NC 02 of the WD1010-05 is shown in Figure 1. Its major func- NC 03 NC 04 tional blocks are: PLA Controller MRWCAAADDDN The PLA interprets commands and provides all con- R E E S 0 1 2 7 6 5 C trol functions. It is synchronized with WCLK. QUAD PIN DESIGNATION Magnitude Comparator A 10-bit magnitude comparator is used for calcula- tion of drive step, direction, present and desired cylinder position. Winchester Disk Controller Devices 3-1 PIN DESCRIPTION :E c ..... PIN o ..... NUMBER MNEMONIC SIGNAL NAME FUNCTION oI 1 BCS BUFFER CHIP SELECT Active low output used to enable reading or writing o of the external sector buffer. en 2 BCR BUFFER COUNTER Active low output that is strobed by the WD1010-05 RESET prior to read/write operations. This pin is strobed whenever BCS changes state. 3 INTRQ INTERRUPT REQUEST INTRQ is an output asserted upon completion of a command and de-asserted when the Status Register is read or a new command is written into the Command Register. This signal can be pro- grammed to occur with BDRQ and DRQ during Read Command. 4 NC NO CONNECTION - 5 MR MASTER RESET A logic low in this input will initialize all internal logic. 6 -RE READ ENABLE Tri-state bi-directional line used as an input for reading the task register and an output when the WD1010-05 is reading the buffer. 7 WE WRITE ENABLE Tri-state bi-directional line used as an input for writing into the task register and as an output when the WD1010-15 is writing to the buffer. 8 CS CHIP SELECT AJogic low on this input enables both WE and RE signals. 9 AO ADDRESS 0 These three inputs select the register to re- 10 A1 ADDRESS 1 ceiveltransmit data on 00-07. 11 A2 ADDRESS 2 12 07 DATA 7 8-bit tri-state bi-directional bus used for transfer of thru thru thru commands, status, and data. 19 DO DATA 0 20 Vss GROUND Ground. 21 WD WRITE DATA This output contains the MFM clock and data pulses to be written on the disk. 22 LATE LATE Precompensation outputs used to delay the WD 23 EARLY EARLY pulses externally. 24 WG WRITE GATE This output is set to a logic high before writing is to be performed on the disk. 25 WCLK WRITE CLOCK 4.34 or 5.0 MHz clock input used to derive all inter- nal write timing. 26 DIRIN DIRECTION IN This output determines the direction the stepping motor will move the heads. High =in, Low =out. 27 STEP STEP PULSE This output generates a pulse for stepping the drive motor. 28 DRDY DRIVE READY This input must be at a logic high in order for com- mands to execute. 29 INDEX INDEX PULSE A rising edge on this input informs the WD1 01 0-05 when the index hole has been encountered. 30 WF WRITE FAULT An error input to the WD1010-05 which indicates a fault condition at the drive. 31 TKOOO TRACK 000 An input to the WD1010-05 which indicates posi- tioning over track 000. 3-2 Winchester Disk Controller Devices PIN DESCRIPTION (Continued) :E PIN FUNCTION c-" NUMBER MNEMONIC SIGNAL NAME o 32 SC SEEK COMPLETE A rising edge on this input informs the WD1010-05 -" o when head settling time has expired. In the For- o• mat Command, it is used to extend the gap. (J1 33 RWC REDUCED WRITE This output can be programmed to reduce write CURRENT current on a selected starting cylinder. 34 DRUN DATA RUN This input informs the WD1010-05 when a field of ones or zeroes have been detected. 35 BRDY BUFFER READY The rising edge of this input informs the controller that the Sector Buffer is full or empty. 36 BDRQ BUFFER DATA BORA and ORQ (Bit 3 Status Register) are asserted REQUEST when the Buffer is to be read from or written to, by the Host. BDRQ can be used by a OMA con- troller or by the Host during Programmed 1/0. DRQ must be polled by the Host if used during pro- grammed 1/0. 3? RD READ DATA Data input from the Drive. Both MFM clocks and data pulses are entered on this pin. 38 RG READ GATE This output is set to a logic high when data is being inspected from the disk. 39 RCLK READ CLOCK A nominal square wave clock input derived from the external data recovery circuits. 40 Vcc +5 VOLT +5V 00-07 WD WCLK MAGNITUDE COMPARATOR RE i I WE A2-AO . 1 I RCLK INTRa MR RD es PLA CONTROLLER STEP DIRIN BCR EARLY BRDY BUFFER LATE BORa IFC DRDY BCS WF TKOOO Vec ---. INDEX se Vss ---. RWC WG RG DRUN FIGURE 1. WD1 01 0 BLOCK DIAGRAM Winchester Disk Controller Devices 3-3 CRC Logic Drive IFC Generates and checks the cyclic redundancy check This logic controls and monitors all lines from the =E characters appended to the ID and data fields. The drive, with the exception of read and write data. c polynomial is X16 + X12 + X5 + 1. """" o DRIVE INTERFACE MFM Encode/Decode """"I o The drive side of the WD1 01 0-05 controller requires o Encodes and decodes MFM data to be written/read three sections of external logic. These are buf- (J1 from the drive. The MFM encoder operates from fers/receivers, data separator, and write precompen- WCLK; a clock having a frequency equivalent to the sation. Figure 2 illustrates a drive side interface. bit rate. The MFM decode operates from RCLK; a bit The buffer/receivers condition the control lines to be rate clock generated from the external data separator. driven down the cable to the drive. The control lines RCLK and WCLK need not be synchronized. are typically single-ended, resistor terminated TTL AM Detect levels. The data lines to and from the drive also The address mark detector checks the incoming require buffering, but are differential RS-422 levels. The interface specification to the drive can be found data stream for a unique missing clock pattern in the manufacturers' OEM manual. The WD1010-05 (Data = A1 hex, Clock OA hex) used in each supplies TTL compatible signals, and will interface ID and data field. to most buffer/driver devices. Host/Buffer IFC The data recovery circuits consist of a phase-lock This logic contains all of the necessary circuitry loop data separator and associated components. The to communicate with the 8-bit host processor. WD1010-05 interacts with the data separator through the DRUN and RG signals. The block diagram of the RG DRUN DATA RD SEPARATOR RClK WD1010 WD WRITE HOST ( DATA/CTRl t\) EARlY CAfE PRECOMPENSATION AND SYNCHRONIZATION DISK DRIVE RWC 'J V STEP DIRIN DRDY WF BUFFERI TKOOO RECEIVERS INDEX SC WG FIGURE 2. DRIVE INTERFACE BLOCK DIAGRAM RETRIGGERABlE DRUN ONE·SHOT RD WD1010 RClK RG I-------t WClK FIGURE 3. DATA RECOVERY CIRCUIT 3-4 Winchester Disk Controller Devices =E ....co .... o o . en YES FIGURE 4. PLL CONTROL SEQUENCE FOR 10 FIELD Winchester Disk Controller Devices 3-5 data separator circuit is shown in Figure 3. Read data from the drive is presented to the RD input of the =E WD1010·05, the reference multiplexor, and a retrig· c ..... gerable one shot. The read gate output will be low o..... when the WD101()'()5 is not inspecting data. The PLL o at this time should remain locked to the reference o• clock. (J1 When any ReadlWrite command is initiated and a search for address marks begins, the DRUN input is examined. The DRUN one·shot is set for slightly greater than one bit time, allowing it to retrigger con- stantly on a field of ones and zeroes. An internal counter times out to see that DRUN is high for 2 byte times. Read gate is set by the WD1010-05, switching the data separator to lock onto the incoming data stream. If DRUN falls prior to 7 bytes times, RG is lowered and the process is repeated. Read gate will remain active high until a non-zero, non-address mark byte is detected. It then will lower read gate for 2 byte times (to allow the PLL to lock back on the reference clock) and start the DRUN search over again. If an address mark is detected, read gate will be held high and the command will continue searching for the pro- per ID field. This sequence is shown in the flow chart of Figure 4. The write precompensation logic is controlled by the signals RWe, EARLY and LATE. The cylinder in which the RWe line becomes active is controlled by a register in the Task File. It can be used to turn on the precomp circuitry on a predetermined cylinder. If the write precomp register value is FF, then RWe will always be low. The signals EARLY and LATE are used to tell the precomp how much delay is required on the write data pulse about to be sent. The amount of delay is determined externally through a digital~line or equivalent circuitry. Since the signal EARLY oc- curs after the fact, write data should be delayed one interval when both EARLY and LATE are deassert- ed; two intervals when LATE is asserted; and no delay when EARLY is asserted. An interval, for example, is 12-15 ns. on the ST506. EARLY or LATE will be active slightly ahead of the write data pulse; EARLY and LATE will never be asserted at the same time. The EARLY LATE signals function independently of the content of the RWe register. Examples for all three of the above circuits can be found in the WD1010 Application Note. HOST INTERFACE The primary interlace between the host processor and the WD1010-05 is through an 8-bit bi-directional bus. This bus is used to transmit/receive data to both the WD1010-05 and a sector buffer. The sector buffer is constructed with either FIFO memory or static RAM and a counter. Since the WD101().()5 will make the bus active when accessing the sector buffer, a transceiver must be used to isolate the host during this time. FIGURE 4. (CO NT.) Figure 5 shows a typical connection to a sector buf- PPL CONTROL SEQUENCE FOR DATA FIELD fer implemented with RAM memory. 3-6 Winchester Disk Controller Devices Whenever the WD1 01 0-05 is not using the sector buf- buffer is full. (BRDY is a rising edge activated signal). fer, the BCS is de-asserted. This allows the host to The BGS is then asserted, disconnecting the host access the WD1010's Task File, and to set up through the transceivers, and the RE and WE lines :E c...... parameters prior to issuing a command. It also allows become outputs from the WD1010-05 to allow it o ...... the host to access the RAM buffer. A decoder is used access to the buffer. When the WD1 01 0-05 is done to generate a chip select when Ao- A2 are '000'; an using the buffer, it disables BGS which again o I o unused address in the WD1010-05. A binary counter allows host access to this local bus. The read sec- 01 is enabled whenever RE or WE goes active and in- tor commands operate in a similar manner, except cremented on the trailing edge of the chip select. This the buffer is loaded by the W01010-05 instead of the allows the host to access sequential bytes within the host. RAM. The decoder also generates another chip select Another control signal called BORa can be connected when Ao-A2 '000'; allowing access to the to a OMA controller in the Host, or can be polled by WD1010-05's internal registers while keeping the RAM the Host for programmed 110. For further explanation, tri-stated. refer to the description of the individual commands During write sector commands, the processor sets and the A.G. Timing Specifications. In a read com- up data in the Task File and issues the command. mand; an interrupt may be specified to occur either The WD1010 then generates a status to inform the at the end of the command or when BDRa is host it may load the buffer with the data to be writ- activated. The INTRa is cleared either by reading the ten. When the counter reaches its maximum count, status register or by writing a new command in the the BRDY signal is made active (by the "carry" out command register. of the counter), informing the WD1010-05 that the ~ - RE -RE I L-L- -WE -WE l-1;~ - DATA BUS (8) - ~ , DATA 00-07 I ~ I II I -BCR HOST ~ ----;;-. r- r-- " Al DATA _ RE r- PROCESSOR :r--: _ WD1010 ~ >CK MR . : :~: ~ • ~: WE--- TC ax r--- AX -r- cs ~ 0 E C Q -BCS SEL AO-2 3f ry-L 3/ I -CS AO-2 0 BROY 1 a CP N_U_- BORa RST , .I FIGURE 5. HOST INTERFACE Winchester Disk Controller Devices 3-7 TASK FILE Bit 1 - Track Zero Error This bit is set only by the restore command. It =E The Task File is a bank of nine registers used to hold c ...... parameter information pertaining to each command. indicates that the TKOOO has not gone active after the issuance of 1024 stepping pulses . o These registers and their addresses are: ...... Bit 0 - Data Address Mark Not Found oI A2 A1 Ao READ WRITE o This bit is set during a read sector command if the CJ1 0 0 0 (Bus Tri-Stated) (Bus Tri-Stated) data address mark is not found after the proper sec- 0 0 1 Error Flags Write Precomp tor ID is read. Cylinder 0 1 0 Sector Count Sector Count WRITE PRECOMP CYLINDER 0 1 1 Sector Number Sector Number This register is used to define the cylinder number 1 0 0 Cylinder Low Cylinder Low where the RWC is to be asserted: 1 0 1 Cylinder High Cylinder High 765 432 0 1 1 0 SDH SDH 1 1 1 Status Register Command CYLINDER NUMBER .;- 4 Register The value OO-FF loaded into this register is internally multiplied by 4 to specify the actual cylinder where NOTE: Registers are not cleared by master reset (MR). RWC is asserted. Thus, a value of 01 hex will cause ERROR REGISTER RWC to activate on cylinder 4; 02 hex on cylinder 8, and so on. Switching points are then 0, 4, 8, ... The This read-only register contains specific error status RWC will be asserted when the present cylinder is after the completion of a command. These bits are equal to 4 times or more than the value in this register. defined as follows: For example, the ST506 requires precomp on cylinder 7654321 0 128 (80 hex) and above. Therefore, the write precomp I BB ICRC I - I ID I - I AC I TK I DM I cylinder register should be loaded with 32 (20 hex). Bit 7 - Bad Block Detect A value of FF hex will always cause RWC to be low, no matter what the cylinder number values are. This bit is set when an ID field has been encountered that contains a bad block mark. Used for bad sector SECTOR COUNT mapping. This register holds the number of sectors that are to Bit 6 - CRC Data Field be transferred to the buffer. This bit is set when a CRC error occurs in the data 7 6 5 4 3 2 o field. With Retry enabled, ten more attempts are made # OF SECTORS to read the sector correctly. If none of these attempts are successful, the Error Status is set also (bit 0 in This register is used during a multiple sector R/W the Status Register). If one of the attempts is suc- command. The written value is decremented after cessful, this bit remains set to inform the Host that each sector is transferred to the sector buffer. A zero a marginal condition exists. However, the Error Status represents a 256 sector transfer, a 1 = one sector bit is not set. Even if errors exist, the data can be read. transfer, etc. This register is a "don't care" when Bit 5 - Reserved single sector commands are specified. Not used; forced to a zero. SECTOR NUMBER Bit 4 - ID Not Found This register holds the sector number of a desired This bit is set to indicate that the correct cylinder, sector: head, sector number or sector size parameter could not be found, or that a CRC error occurred on the ID 7 6 5 432 o field. This bit is set on the first failure and remains SECTOR NUMBER set even if the error is recovered on a Retry. When recovery is unsuccessful, the Error Status bit is set During a multiple sector command, this register also (bit 0 in the Status Register). specifies the first sector in the transfer. It is internally incremented after each transfer of data to the sec- Bit 3 - Reserved tor buffer. The sector number register may contain Not used; forced to a zero. any value from 0 to 255. Bit 2 - Aborted Command CYLINDER NUMBER LOW This bit is set if a command was issued while the DRDY is de-asserted or the WF is asserted. The This register holds the least significant eight bits of aborted command bit will also be set if an undefined the desired cylinder number. command code is written into the command register, but an implied seek will be executed. 3-8 Winchester Disk Controller Devices 7 6 5 4 3 2 1 o Internal to the WD1010-05 is another pair of registers that hold the actual position number where the R/W LS BYTE OF CYLINDER NUMBER heads are located. The cylinder number high and Ikow :E It is used with the cylinder number high register to registers can be considered the cylinder destination c specify a range of 0 to 1023. """" o for seeks and other commands. After these com· """" o CYLINDER NUMBER HIGH mands are executed, the internal cylinder position I registers' contents are equal to the cylinder high/low o CJ1 This register defines the two most significant bits of registers. If a drive number change is detected on a the cylinder number desired: new command, the WD1010-05 automatically reads 765 4 3 2 o an 10 field to update its internal cylinder position registers. This affects all commands except a Restore. I X I X I X X X X (9) (8) SOH BYTE This register contains the desired sector size, drive number, and head number parameters. The format is: 76543210 -- --- 6 5 SECTOR SIZE 4 3 DRIVE# 2 1 0 -- HEAD # 0 0 256 0 0 DSEL1 0 0 0 HSELO 0 1 512 0 1 DSEL2 0 0 1 HSEL1 1 0 1024 1 0 DSEL3 0 1 0 HSEL2 1 1 128 1 1 DSEL4 0 1 1 HSEL3 1 0 0 HSEL4 1 0 1 HSEL5 1 1 0 HSEL6 1 1 1 HSEL7 Both head number and sector size is compared against the disks' 10 field. Head select and drive select lines are not available as outputs from the WD1010-05, and must be generated externally. Figure SOH byte written into the 10 field is different than the 6 shows the logic to implement these select lines. SOH register contents. The recorded SOH byte does not have the drive number written but does have bad Bit 7, the extension bit, is used to extend the data block mark written. The format is: field by seven bytes when using ECC codes. CRC is not appended to the data field when EXT = 1; the data field becomes "sector size + 7" bytes long. CRC SIZE o o HEAD# is checked on the 10 field regardless of the state of the extention bit. Note that the sector size bits are 7 6 5 4 3 2 0 written to the 10 during a format command. The DO ~----------~~--------------~01 ~--------~~~--------------~02 BUS ~--------~~~---------------I 03 TRANSCEIVER 04 ~-------+~~~--------------~05 ~-------+~H-~--------------~06 ~-------+~H-~--------------~07 DO L 01 HSEL 0 WE)----___. 01 A 02 HSEL 1 02 T 03 HSEL 2 AO >-------+__. L...-_ _~03 C 04 WD1D1D Al >---DoD---~ L...-_ _-I04 H 05 o DSEL 1 A2 >--0<>------.:...- ~ g~~t; CS ) - - - - - - - . - / o DSEL 4 ~ '--_ _---.J FIGURE 6. DRIVE/HEAD SELECT LOGIC Winchester Disk Controller Devices 3-9 STATUS REGISTER COMMAND REGISTER ~ The status register is a read-only register which This write-only register is loaded with desired C informs the host of certain events performed by the command: -L o-L WD1010 as well as reporting status from the drive 7 6 543 2 o control lines. The term INTRa, if set, will be cleared o I when the status register is read. The format is: COM MAN 0 o The command begins to execute immediately upon C1I 765 4 3 2 1 0 I BSY ROY WF SC ORa CIP ERR I loading. This register should not be loaded while the Busy or CIP bits are set in the status register. The Bit 7 - Busy INTRa, if set, will be cleared by a write to the com- This bit is set whenever the WD1010-05 is accessing mand register. the disk. Commands should not be loaded into the INSTRUCTION SET command register while busy is set. Busy is made The WD1010 will execute six commands. Prior to active when a command is written into the WD1 01 0-05 loading the command register, the host must first set and is deactivated at the end of all commands except up the task file with the proper information needed the read sector. While executing a read sector com- for the command. Except for the command byte, the mand, busy is deactivated after the sector buffer has other registers may be loaded in any order. Any subse- been filled. When the BUSY bit is set, no other bits quent writes to the command register will be ignored in either the status or other registers are valid. until execution is completed indicated by the reset- Bit 6 - Ready ting of the CIP bit in the status register. This bit reflects the state of DRDY. COMMAND SUMMARY Bit 5 - Write Fault COMMAND 7 6 5 4 3 2 1 0 This bit reflects the state of the WF. Whenever the RESTORE 0 0 0 1 R3 R2 R1 Ro WF bit goes high, an interrupt will be generated. SEEK 0 1 1 1 R3 R2 R1 Ro Bit 4 - Seek Complete READ SECTOR 0 0 1 0 I M 0 T This bit reflects that state of the SC. When a seek WRITE SECTOR 0 0 1 1 0 M 0 T has been initiated by a command, it will pause until SCAN 10 0 1 0 0 0 0 0 T the seek is completed. WRITE FORMAT 0 1 0 1 0 0 0 0 Bit 3 - Data Request R3-Ro Rate Field For 5 MHz WCLK: This bit reflects the state of the BORa. It is set when R3-Ro = 0000 - 35 IJs. the sector buffer should be loaded with data or read 0001 - .5 ms. by the host, depending upon the command. 0010 - 1.0 ms. DRalBORa remains high until BRDY is sensed, 0011 - 1.5 ms. indicating the operation is completed. The BRDa 0100 - 2.0 ms. signal can be used in DMA interfacing or Programmed 0101 - 2.5 ms. 1/0, while the ORa bit can be used only for pro- 0110 - 3.0 ms. grammed 1/0 transfers. 0111 - 3.5 ms. Bit 2 - Reserved 1000 - 4.0 ms. 1001 - 4.5 ms. Not used. This bit is always forced to a zero. 1010 - 5.0 ms. Bit 1 - Command In Progress 1011 - 5.5 ms. 1100 - 6.0 ms. When this bit is set, a command is being executed 1101 - 6.5 ms. and a new command should not be loaded until reset. 1110 - 7.0 ms. Although a command may be executing, the sector 1111 - 7.5 ms. buffer is still available for access by the host. When the WD1010 is not busy (bit 7 = 0) the status register Bit 0, ("T") Read Sector, Write Sector Commands T = 0 Enable retries may be read. If other registers are read while CIP, the status register contents are returned. T = 1 Disable retries Bit 0 - Error M =Multiple Sector Flag M = 0 Transfer 1 sector This bit indicates that a non-recoverable error has M =1 Transfer multiple sectors occurred. When the Host reads the status and finds = Interrupt Enable this bit set, it must then read the Error Register to = 0 Interrupt at BORa time determine the type of error. This bit is reset when a = 1 Interrupt at end of command new command is written into the command register. 3-10 Winchester Disk Controller Devices out a rising edge of seek complete, the W01010 will switch to sensing the level of the SC line. If after 1,024 ( RESTORE ) stepping pulses, the TKOOO lines do not go active, the :E c l W01010-05 will set the Track Zero error bit in the error register and terminate with an INTRa. An interrupt will also occur if the write fault goes active or the ...". o ...". o RESET INTRa, OROY goes inactive during execution. o• ERRORS, (J1 SET BUSY, CIP The rate field specified (R3-RO) is stored in an inter- nal register for future use in commands with implied seeks. RESET RWC SEEK COMMAND SET DIRECTION = OUT Since except for the SCAN 10 all commands feature STORE STEP RATE an implied seek, the seek command is primarily used for overlap seek operations on multiple drives. The actual step rate used is taken from the rate field, which is also stored in an internal register for future PULSE BCR use. If OROY goes inactive or WF goes active, the SET AC, INTRa RESET BSY, CIP command is terminated and an INTRa is generated. The direction and number of step pulses needed are calculated by comparing the contents of the cylinder register highllow to the cylinder position number stored internally. After all steps have been issued, the internal cylinder pOSition register is updated and the command is terminated. Seek complete is not checked at the beginning or end of the command. If an implied seek was performed, the W01010-05 will wait until a rising edge of SC is received. If 10 revolu- tions occur before the rising edge of SC, the W01010 will switch to level sensing of SC. READ SECTOR The read sector command is used to transfer one or more sectors of data from the disk to the sector buf- fer. Upon receipt of this command, the W01010-05 checks the cylinder registers against its internal cyl- inder position register to see if they are the same. If not, the direction and number of steps calculation is performed and seek takes place. If an implied seek was performed, the W01010-05 will search until a ris- ing edge of seek complete is received. Write Fault and OROY lines are checked throughout the command. After seek complete is found to be true (with or without an implied seek), the search for an 10 field ISSUE A occurs. The W01 01 0-05 must find an 10 with the cor- STEP PULSE rect cylinder, head, sector size, and CRC within 10 revolutions if T bit of command is zero, and within 2 revolutions if T = 1; else the appropriate error bits will be set and the command terminated if T = 1. Both the Read and Write sector commands feature a "simulated completion" to ease programming. RESTORE COMMAND ORa/BORa will be generated upon detecting an error The restore command is usually used on a power-up condition. This allows the same program flow for suc- condition. The actual stepping rate used for the cessful or unsuccessful completion of a command. restore is determined by Seek Complete time. A step If T = 0, an automatic scan 10 is performed to obtain pulse is issued and the W01010-05 waits for a rising cylinder position information and then, if necessary, a seek is performed. The search for the correct 10 field edge on the seek complete line before issuing the is continued for 10 more disk rotations. next pulse. If 10 index pulses are received with- Winchester Disk Controller Devices 3-11 :E c ..L o ..L oI RESET INTRQ, o ERRORS, c.n SET BUSY, CIP STORE STEP RATE YES NO SET ABORTED COMMAND BIT 3-12 Winchester Disk Controller Devices :E c .... .... o o o• (J1 RESET INTRO, ERRORS, SET BSY, CIP SEARCH FORID FIELD NO PULSE~ SETINTRO,AL RESET BSY, CIP, BCS *lfT bit of command = 1 then dashed path is taken after 2 index pulses. Winchester Disk Controller Devices 3-13 :ec -'" o -'" o o• CJ'1 YES DEACTIVATE BCS PULSE ~ SET BDRQ RESET BSY * If T bit of command= 1 then dashed path is taken. * * If T bit of command = 1 then test is for 2 index pulses. 3-14 Winchester Disk Controller Devices When the data address mark is found, the WD1010-05 register. The next logical sector will be transferred, is ready to transfer data to the buffer. After the sec- regardless of the interleave. Sectors are numbered tor data has been transferred, the I flag is checked. at format time by a byte in the ID field. =E If the I flag is 0, the INTRO is made active coincident c...a. For the WD1010 to make multiple sector transfers to with BDRO, indicating a transfer of data is required o the buffer, the BRDY line must be toggled low to high ...a. by the host. If I = 1, the INTRO will occur at the end for each sector. The sector transfers will continue o of the command (Le., after the buffer is unloaded by until the sector count register equals zero. If the sec- o• the host). c.n tor count register is non·zero (indicating more sec- An optional M flag may be set for multiple sector tors are to be transferred but the buffer is full), BDRO transfers. When M = 0, one sector is transferred and will be made active and the host must unload the buf- the sector count register is ignored. When M = 1, fer. Once this occurs, the buffer will again be free to multiple sectors are enabled. After each sector is accept the next sector in this multiple sector read transferred, the WD1010-05 decrements the sector command. count register and increments the sector number When M = 0 (Single Sector Read) ( 1) Host: Sets up parameters; issues read sector command. ( 2) 1010: Strobes BCR; sets BCS = 0 (On). _ ( 3) 1010: Finds sector specified; transfers data to buffer (by WE strobes). ( 4) 1010: Strobes BCR; sets BCS = 1 (Off). ( 5) 1010: Sets BDRO = 1; sets DRO flag. ( 6) 1010: If I bit = 1 then (9). _ ( 7) Host: Reads out contents of buffer (by strobing RE). ( 8) 1010: Waits for BRDY then sets INTRO = 1; End. ( 9) 1010: Sets INTRO = 1. (10) Host: Reads out contents of buffer (by strobing RE); End. When M 1 (Multiple Sector Read) ( 1) Host: Sets up parameters; issues read sector command. ( 2) 1010: Strobes BCR; sets BCS = 0 (On). _ ( 3) 1010: Finds sector specified; transfers data to buffer (by WE strobes). ( 4) 1010: Decrements sector count register; increments sector number register. ( 5) 1010: Strobes BCR; sets BCS = 1 (Off). ( 6) 1010: Sets BDRO = 1; DRO flag = 1._ (7) Host: Reads out content of buffer (by RE strobes). ( 8) Buffer: Indicates data has been transferred by asserting BRDY. ( 9) 1010: When BRDY is asserted, go to (11) if sector count =O. (10) 1010: Go to Step (2). (11) 1010: Activates I NTRO. WRITE SECTOR fact that a bit cell can extend from 295ns to 315ns during a write cycle. If retries are disabled and if the The write sector command is used to write one or ID field cannot be found within 2 revolutions, the ID more sectors of data to the disk. Upon receipt of this not found bit is set and the command is terminated. command, the WD1010-05 checks the cylinder registers against its internal cylinder position register If retries are enabled, and the ID field cannot be tound to see if they are the same. If not, the direction and within 10 revolutions, an automatic scan ID and seek number of steps are calculated and a seek command commands are performed. The ID Not Found error bit takes place. Write fault and DRDY lines are checked is set if the ID field is not found after 10 more throughout the command. revolutions. After Seek complete is found to be true (with or During a multiple sector write operation (M flag = without an implied seek), the BDRO signal is made 1), the sector number is incremented and the sector active and the host proceeds to load the buffer. When count register is decremented. If the BRDY lines is the WD1010-05 senses the BRDY line going high, the asserted after the first sector is read out of the buf- ID field with the specified cylinder, head, and sector fer, the WD1010-05 will continue to read data out of size is searched for. Once found, the write gate signal the buffer for the next sector. If BRDY is inactive, the is raised and the data is written to the disk. It is WD1010-05 will raise BRDO and wait for the host to necessary to resynchronize the write data due to the place more data in the buffer. Winchester Disk Controller Devices 3-15 :ec -" o -" o o• 01 INCREMENT SECTOR NUMBER; DECREMENT SECTOR COUNT SEARCH. SET ABORTED FORID COMMAND FIELD BIT PULSE BCR *If retries disabled then dashe~ path is SETINTRQ RESET BSY, CIP taken after 2 index pulses. DEACTIVATE SC"S 3-16 Winchester Disk Controller Devices In summary then, the write sector operation is as follows: ( 1) ( 2) ( 3) Host: 1010: Host: Sets up parameters; issues write sector command. Sets BORQ = 1, ORO flag -=-- 1. Loads buffer with data (by WE strobes). ....:E o o ( 4) 1010: Waits for BROY = low to high. oI ( 5) 1010: Finds specified 10 field, write out sector. o CJ1 ( 6) 1010: If M = 0, then interrupt; End. ( 7) 1010: Increments sector number, decrements sector count. ( 8) 1010: If sector count = 0, then interrupt; End. ( 9) 1010: Go to (2). SCAN 10 recorded in any interleave factor desired. The remain- ing memory in the sector buffer may be filled with The scan 10 command is used to update the head, any value; its purpose is only to generate a BROY to sector size, sector number and cylinder registers. tell the W01010-05 to begin formatting the track. The ready and write fault lines are checked An implied seek is also in effect on this command. throughout the command. When the first 10 field is As in other commands, if the drive number has encountered, the 10 information is loaded into the changed, an 10 field will be scanned for cylinder posi- SOH, cylinder, and sector number registers. The inter- tion information before the implied seek is performed. nal cylinder position register is also updated. If a bad If no 10 field can be read (because the track had been block is detected, the bad block bit will also be set. erased or because an incompatible format had been CRC is checked and if an error is found, the used), an 10NF error will result and the Format com- W01010-05 will retry up to 10 revolutions to find an mand will be aborted. This can be avoided by issu- error-free 10 field. There is no implied seek with this ing a Restore command before formatting. command and the buffer is left undisturbed. FORMAT The sector count register is used to hold the total number of sectors to be formatted, while the sector The format command is used to format one track number register holds the number of bytes minus 3 using the task file and the sector buffer. During this to be used for Gap 1 and Gap 3. For instance, if the command, the sector buffer is used for additional sector count register value is 2 and the sector number parameter information instead of sector data. Shown register value is 0, then 2 sectors are written and 3 in Figure 7 is the contents of the sector buffer for a bytes of 4E hex are written for Gap 1 and Gap 3. The 32 sector track format with an interleave factor of two. data fields are filled with FF hex, and CRC is Each sector requires a two byte sequence. The first automatically generated and appended. The sector byte designates whether a bad block mark is to be extension bit of the SOH register should not be set. recorded in the sector's 10 field. A 00 is normal; an After the last sector is written, 4E hex is filled until 80 hex indicates a bad block mark for that sector. In index. the example of Figure 7, sector 04 will get a bad block The Gap 3 value is determined by the drive motor mark recorded. speed variation, data sector length, and the interleave The second byte indicates the logical sector number factor. The interleave factor is only important when to be recorded. Using this scheme, sectors may be 1:1 interleave is used. The formula for determining DATA AOOR 0 1 2 3 4 5 6 7 00 00 00 00 10 00 01 00 11 08 00 02 00 12 00 03 00 13 10 80 04 00 14 00 05 00 15 18 00 06 00 16 00 07 00 17 20 00 08 00 18 00 09 00 19 28 00 OA 00 1A 00 OB 00 1B 30 00 OC 00 1C 00 00 00 10 38 00 OE 00 1E 00 OF 00 1F 40 FF FF FF FF FF FF FF FF : FO FF FF FF FF FF FF FF FF FIGURE 7. FORMAT COM,MAND BUFFER CONTENTS Winchester Disk Controller Devices 3-17 the minimum Gap 3 value is: =E Gap 3 = 2*M*S + K + E c .... M = motor speed variation (e.g., .03 for ± 3%) C') .... o o S sector length in bytes K = 25 for interleave factor of 1 o..w «-t C!l o• K = 0 for any other interleave factor 1----4 -- ,.-- CJ1 E. = 7 if the sector is to be extended (J) W 1-0 >-0 Like all commands, a write fault or not ready condi- 10 tion will terminate the command. Figure 8 shows the format that the WD1010-05 will write on the Disk. RESET INTRQ, ERRORS SET CIP, BSY a: u.oo SETINTRQ,AC oI- RESET BSY, CIP U «~ W (J) :x: U « W a: ou. o W ~ 1----4-- (J) W W 0.. W a: ~8 10- C') Ua:UN Ua:U~ o ...J W :X:W«O II II u:: o '#: Q (,) US Q) en r -OWZI- «~ .... * If retries are disabled, path is taken after 2 index pulses. FIGURE 8. FORMAT 3-18 Winchester Disk Controller Devices =E c ...... o ...... o RESET INTRa, 6 CJ1 ERRORS, WRITE GAP 1 SET CIP, BSY OR GAP 3 ACTIVATE BDRa Nq EXTEND GAP DECREMENT SECTOR COl!NT SEEK TO DESIRED CYL WRITE SECTOR WRITE4E'S UNTIL INDEX YES RESETW~m SET ABORTED PULSE B(;R COMMAND BIT SET INTRa RESET BSY, CIP Winchester Disk Controller Devices 3-19 ELECTRICAL CHARACTERISTICS NOTE: Maximum ratings indicate operation where ~ MAXIMUM RATINGS permanent device damage may occur. Continuous c ..... operations at these limits is not intended and should Vcc with respect to Vss (Ground) .......... + 7V be limited to those conditions specified in the DC Q ..... Q Max Voltage on any Pin with operating characteristics. o c.n respect to Vss ............... -0.5V to + 7.0V Operating Temperature ............. 0oC to 70°C Storage Temperature .......... -55°C to + 125°C DC Operating Characteristics TA = OOC to 70°C; Vss OV, Vcc = + 5V ± .25V SYMBOL CHARACTERISTIC MIN MAX UNITS CONDITIONS IlL Input Leakage ±10 ~A VIN = A to Vcc 10L Output Leakage (Tristate & Open Drain) ± 10 ~A VOUT = A to Vcc V IH Input High Voltage 2.0 V V IL Input Low Voltage 0.8 V VOH Output High Voltage 204 V 10 = - 100~A VOL Output Low Voltage 004 V 10 = 1.6mA VOL Output Low Voltage(Pins 21-23) 0045 V 10 = 4.8mA See Note 10 Icc Supply Current 200 mA All Outputs Open For Pins 25, 34, 39: V IH Input High Voltage 4.6 V V IL Input Low Voltage 0.5 V TRS Rise and Fall Time 30 nsec .9V to 4.2V points C IN Input Capacitance 15 pF AC Timing Characteristics TA OOC to 50°C; Vss = OV, Vcc +5V ±.25V HOST READ TIMING HOST READ TIMING WD1 01 0-05 WC 5 MHZ SYMBOL CHARACTERISTIC MIN MAX UNITS CONDITION TASE ADDR Setup to RE 100 nsec T OAC Data Valid from RE 375 nsec TRE Read Enable Pulse Width A 10 ~sec TOOH Data Hold from RE: 20 200 nsec T HLO ADDR, CS, Hold from RE 0 nsec TRDR Read Recovery Time 300 nsec TCSE CS Setup to RE 0 nsec See Note 8 3-20 Winchester Disk Controller Devices :E ADDR -==><0 Ao. Al. A2 STABLE Y c..... I------------------------------~~--------- o..... I TAHW--" F--~ o CS ~i I I TWER~_._ I ~TSEW~ -.! ri.-TCHW '-- o (J1 I I ~ .-~, WE TWE i ~ ~TDH :4--TDS~ I DBO-7 ><><><2><. HOST WRITE TIMING HOST WRITING TIMING WD1 01 0-05 SYMBOL CHARACTERISTIC MIN MAX UNITS CONDITION TSEW ADDR, CS Setup to~E 0 10 fJ.sec Tos Data Bus Setup to WE _2 10 fJ.sec TWE Write Enable Pulse Width - .2 10 fJ.sec TOH Data Bus Hold from WE 10 nsec TAHW ADDR Hold from WE 30 nsec TWER Write Recovery Time 1.0 fJ.sec See Note 1 TCHW CS Hold Time from WE 0 See Note 9 BUFFER READ TIMING BUFFER READ TIMING (WRITE SECTOR CMD) WD1 01 0-05 WC = 5MHZ SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS - - T REV RE Float to RE Valid 15 100 nsec CL = 50 pf TREB RE Output Pul~Width 300 400 500 nsec See Note 4 TROS Data Setup to RE 140 nsec TRR RE Repetition Rate 1.2 1.6 2.0 fJ.sec TRF RE Float from BCS - 100 nsec CL = 50 pf THRE Data Hold from RE 0 nsec Winchester Disk Controller Devices 3-21 :E ~~~:~---T-W-EV------------------------------------------~I~ BCS c..... o ..... oI o WE---I- ~ CJ1 (OUTPUn ~p---"";;""'~"- : I . TVWE -.! 1:40-~ ~ THWE 11_-----.; DB0-7 --------------4-(~~ DATA VALID ')>------__~( DATA VALID )-fIt--- ,.. ~, T R R - - - - - I.. BUFFER WRITE TIMING BUFFER WRITE TIMING (READ SECTOR CMD) WD1 01 0-05 WC = 5 MHZ SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS TWEV WE Float to WE Valid 15 100 nsec CL = 50 pf TWRS WE Output Pulse Width 300 400 500 nsec See Note 4 TVWE Data Valid from WE 150 nsec T HWE Data Hold from WE - 60 nsec TRR WE Repetition Rata 1.2 1.6 2.0 f-Isec See Note 2 TWF WE Float from BCS 15 100 nsec CL = 50 pf RO/ '" ~------ .-------'""" I I I /." I :'-TRO--': I I ~ TX1...,. TX2 I 1 +l ~ 1 - - - -...... ______________________-J. / RCLK _ _-.J ORUN _________________________________________________ ""- TORN / ~ READ DATA TIMING READ DATA TIMING WD1010-05 WC 5 MHZ SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS T RCP RCLK Pulse Width 95 2000 nsec 50% Duty Cycle TX1 RD from RCLK Transition 0 TRCP nsec TX2 RD to RCLK Transition 20 TRCP nsec TRD RD Pulse Width 40 TRCP nsec T DRN DRUN Pulse Width 30 nsec T RCF RCLK Frequency .250 5.25 MHz See Note 6 3-22 Winchester Disk Controller Devices A==;BRY~ ~.WE ~ ~ BRDY ,""TRO.' , I C ...... ~TMR~MRW.J BDRO 0 ...... ~ MR 0 0• I BGR BGR ~ I TMRB~ (J'1 WGLK STEP FWG INDEX RGLK I , .- • FRG .' I I MISCELLANEOUS TIMING MISCELLANEOUS TIMING MISCELLANEOUS TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS T RO BORQ Reset from BROY 40 200 nsec TSCR Buffer Counter Reset Pulse 1.4 1.6 1.B J-Isec See Note 2 Width TSTP Step Pulse Width B.3 B.4 B.7 J-Isec See Note 2 T 1DX Index Pulse Width 500 nsec TMR Master Reset Pulse Width 24 WC See Note 3 Fwd· 05) Write Clock Frequency .25 5.0 5.25 MHz 50% Duty Cycle F Rd·05) Read Clock Frequency .25 5.0 5.25 MHz See Note 6 T SRY - BROY Pulse Width -- BOO nsec See Note 5 T MRS MR Trailing to BCR 1.6 3.2 6.4 J-Isec See Note 2 T MRW MR Trailing to Host Write 6.4 J-Isec See Note 2 NOTES: 1. AC timing measured at VOH = 2.0V, VOL = O.BV, 6. T RCF = TWCF ± 15%. CL = 50 pf. 7. 2 WCLK ± 50 nsec. 2. Based on WCLK = 5.0 MHz. B. RE may precede CS if CS plus RE meets the 3. 24 WCLK periods (4.B J-Isec at 5.0 MHz). TRE width. 4. 2 WCLK ± 100 nsec. 9. WE may precede CS if CS plus WE meets 5. To drive a OMA controller, BROY must be >4 J-Isec the TWE width. or a spurious BORQ pulse may exist for up to 4 10. Pins 21-23 should be loaded with a 1K pull-up J-Isec after riSing edge of BROY. resistor. Winchester Disk Controller Devices 3-23 :ee ..... 0 ..... 0 WO TWO-..! I I I I ,1- \. I I -+4 I 14- TWO TWO~ ,, I . I I l+- \ t I 0• ~ \ t. 1. '-- C11 WCLK - f r . T W C _ LATE\, I.. TWCF / .' ~ I I I ~TWLE I I ~ I I I r+-TELW I I I I I EARLY ~ t WRITE DATA TIMING WRITE DATA TIMING WD1010-05 WC = 5 MHZ SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS I TwC WClK Pulse Width 95 2000 nsec Two Propagation Delay WClK 10 65 nsec to WD TWLE WClK to leading Early/late 10 65 nsec T ELW WClK to Trailing Early/late 10 65 nsec TWCF WClK Frequency .250 5.25 MHz See Note 6 3-24 Winchester Disk Controller Devices WESTERN DIGITAL c o R PO R A T o N :E WD1010 Application Notes c ...... o ...... o FLEXIBLE CONTROLLER MATES WITH POPULAR as cylinder, sector, and head number is written to WINCHESTER DRIVES these registers, which are selected by address lines. The memory-mapped register scheme allows To take advantage of the growing demand for Seagate Individual accesses to each register. Thus, the Host Technology-type 5 1/4-in. Winchester disk drives in need not waste valuable time reading all the registers personal computers, electronic work stations, and to obtain a specific parameter. small-business systems, designers need an The WD1010, which comes in a 40-pin DIP or 44-pin appropriate controller that is inexpensive. In fact, QSM, is run by an internal microcontroller - a PLA today's designs must implement the control link bet- (programmable logic array) serving as a state machine ween a Host CPU and a disk drive at far lower cost (Fig. 1). This logic controls the flow of data throughout than the drive itself. That requires a single-chip con- the chip, recognizes and processes commands, and troller rather than discrete, gate-array-intensive cir- formats the data. cuits that take up valuable board space in ever smaller computer equipment. WRITING AND READING DATA Such a device is now available in the form of an LSI During a write operation, parallel data is read from single-chip Winchester controller-formatter. The chip the data bus and written to a specific sector. But first the cylinder and sector must be located on the incorporates 80% of the circuitry required for Win- requested disk drive. The WD1010's microcontroller chester control, eliminating between 50 and 75 SSI accesses its internal cylinder-position data and com- and MSI devices used in earlier designs. pares it with the requested cylinder number. If A controller that claims Seagate compatibility must necessary, a seek is performed automatically to posi- be sufficiently flexible to meet not only the company's tion the head assembly over the desired cylinder. original ST506 specifications, but also the various If the drive requested Is changed before a Seek Com- deviations from them. The basic specifications mand is executed, the WD1010 enables its read logic include a data rate of 5.0 Mbits/s and open-collector and searches for an ID field on the currently selected outputs and differential signal inputs for the separate drive. Then it reads the cylinder number for the new control and data interface cables. The recording for- ID field and determines whether to seek in or out to mat is modified frequency modulation (MFM), but find the requested cylinder. This so-called implied more importantly, the structure of the format defines seek is a feature of all commands (see "Macro Com- both specific address-mark bytes and ID fields. These mands Provide Multiple Options"). are fixed speCifications, but manufacturers of After the WD1010 finds an ID field that matches the Seagate-type drives sometimes make other changes. cylinder, head, sector, sector size and CRC (cyclic For example, the track density on high-capacity drives redundancy check) value, it writes a field of Os and may be greater than that in the original ST506 a new address mark - later these two fields will be specification. Also, the number of sectors and bytes used for synchronization during a read operation. The per sector on each cylinder can vary according to the chip then reads parallel data in from the data bus, application. In each case, a compatible controller serializes it, and converts it into the MFM format. must be able to handle the original specifications plus Next, a new CRC value is calculated for the incom- the deviations. ing data and is appended to the data field (after the The ST506 interface is a spinoff of the Shugart last byte). If the original command specifies multiple sectors, the next logical sector must be searched for Associates SA1000 drive, first introduced in 1979. Two and the process repeated. After the last sector is writ- important differences between the interfaces are the ten, the WD1010 gives the bus back to the Host and data rates and a timing·clock differential signal on waits for the next command. the SA1000. The latter operates at 4.34 Mbits/s vs 5 Mbits/s for the ST506, but the remaining signals have Although the chip does not generate an error correc- enough similarity to permit a single controller design tion signal, an optional command bit can be set to to run either an B-in. SA1000 drive or the 5 1/4-in. ST506 disable cyclic redundancy checks of the data field. drive. The advantage of the WD1010 Winchester The sector is extended by seven bytes to allow the controller-formatter is that it works with either and Host to write its 56-bit error detection and correction with other manufacturers' variations as well. code. Later, during a read operation, these seven bytes are transferred back to the Host to permit it to Operation of the drive begins when a Host processor identify a syndrome and correct any errors that were initiates a command after first loading a set of inter- encountered. For systems that require such opera- nal task registers called the task file. Information such tions, the WD1014 error detection and correction and Winchester Disk Controller Devices 3-25 WD1015 buffer controller chips are available. buffer at the Host. MFM data is entered on the RD pin along with a synchronous clock (RCLK) generated :ec Reading is similar to writing except that data is sent out on the data bus and written into the sector from an external data separator (Figure 2). ..... o ..... o RE -.I MAGNITUDE I COMPARATOR WE I A2- AO 3 ...I HOST IRO INTERFACE MR cs MICROCONTROLLER DRIVE SCR (PLA) INTERFACE BRDY BUFFER BORO INTERFACE BCS VCC----' VSS----. PHASE-LOCKED LOOP INTERFACE Figure 1. The architecture of the WD1010 Winchester controller-formatter chip is designed to reduce a Host processor's overhead burden. An internal microcontroller (PLA) manages data flow, incoming commands, and formatting. Since the data rate is relatively high, the data r-==~=-----tRD separator must instruct the controller to lock on to the incoming data stream only during a field of 1s and Os. A Data Run (DRUN) signal to the WD1010 t-----4DRUN indicates such an occurrence. When DRUN is active, t----~RG t----~WCLK the WD1010 counts off 16 bits - 2 byte time - sets the Read Gate (RG) Signal, and starts to search the WD1010 data stream for an address mark. IMPLEMENTING THE PRECOMPENSATION ALGORITHM ALREADY TO BE SHIFT SENT SENDING SENT REQUIRED X 1 1 0 Early Figure 2. X 0 1 1 Late 0 0 0 1 Early A separate IC - the WD1012 - performs the data separation for the WD1010. The data separator sends 1 0 0 0 Late a DRUN signal to the controller when it encounters NOTE: All other patterns produce no shift. a data field (1s and Os). 3-26 Winchester Disk Controller Devices An address mark is a unique pattern of clock and data Since the Early signal and the current data (or bits that does not appear in any place that normal clock) bits leaving the WD1010 have already occur- MFM data appears. If an address mark is not detected red, the WD1.Q1Lperforms no delay function on =E within nine bytes or if a non-O pattern is detected Early. If both Early and Late are inactive, the c ..... within nine bytes, RG is turned off and the search is WD1011 inserts a 12-ns delay; if only Late is ac- o repeated. Since the data fields within. sectors can con- tive, it inserts a 24-ns delay. The result is a ± 12-ns ..... o tain Os or all1s, the DRUN algorithm is also triggered shift of the data from its nominal position. An inac- in these cases. But the address mark will not be tive Reduced Write Current (RWC) signal from the detected, preventing erroneous data from being WD1010 disables the WD1011. The WD1010 then fur- transferred. nishes precompensation signals independent of cur- rent cylinder position. After the ID field is compared and verified, a search begins for the address mark. Resynchronization INTERFACING WITH CABLES AND BUSES occurs and the data is transferred to an internal MFM- The remaining function on the drive side is to pro- to-NRZ converter. Data is then shifted through a vide sufficient buffers to drive the cables between the double-buffered shift register and placed on the data chip and the interface connectors. Single-ended open- bus for loading to the buffer. Either the cyclic redun- collector signals are used for the control cable, and dancy code at the end of the data field is checked differential receiver-drivers are used for the data cable or the error detection and correction bytes are (Figure 3). Each line must have such buffers, since transferred in parallel to the host, depending on which the controller is deSigned to drive one TIL load on option is used. Then the host processor can read the all inputs and outputs. data from its local buffer. At a 5-Mbitls data transfer rate to the host interface, Like all magnetic recording media, Winchester disks a byte of data must be read every 1.6 fLs - in 8-bit are not immune to the effects of bit shifts at high parallel form. Few microprocessors can access a port recording densities. The WD1010 uses an algorithm and check status within this period. Consequently, that informs external delay circuits when to shift out- a design objective of the WD1010 is compatibility with a programmed 1/0 environment, as well as the sup- going data. A register within the task file specifies port of off-line error detection and correction. which cylinder receives reduced write current and if Moreover, the chip can transfer multiple sectors on precompensation is needed. Typically, both occur on one command. To achieve such performance within the same cylinder about half way down the disk the constraints of a 4(}pin package, the WD1010 relies surface. on a unique approach to the traditional peripheral The WD1010's precompensation signals are called interface. Early and Late. Depending on the bit pattern leaving Three modes of communication can exist at the host the device, data will be shifted early, late, or not at interface: between the host and the WD1010, between all. The WD1011 data separator implements the the host and the buffer, and between the WD1010 and precompensation delay network (Figure 2). the buffer. For the host-WD1010 communication the 7438 ~--------------~+ TO DRIVE INPUTS a_------a TO DRIVE INPUTS COMMON WD1010 WD1010 +5V 51 51 220 FROM DRIVE ......-~~--a OUTPUTS ~--4--""'-------O + FROM DRIVE OUTPUTS (A) +5V (8) Figure 3. Buffering circuits from the WD1010 to the control cable (A) and the data cable (B) must be used because the controller has a rather limited drive capability (one TIL load each on inputs and outputs). Winchester Disk Controller Devices 3-27 chip, like many microprocessors, talks over an 8-bit In host-buffer or WD101Q-buffer communications bi-directional bus, plus Read, Write and chip select (Figures 4,5), when the chip reads or writes to the buf- :E lines (Figures 4,5). Three address lines access fer, the Buffer Chip Select (BSC) line is pulled low. c .... registers within the chip. This signal should be used to disconnect the host .... o o data bus and Read and Write lines from the WD1010 . ADO~----------+-~+-----+---------------------------~~ A~ ~ A~ ~ ~ ~ DBO-DB7 HOST WD1010 PROCESSOR '-------t--t---tBCR JW t--------t-t >--t+-==----------------------+-+---tR'E WR WE BUSY BCS Figure 4. Communications between a host and the WD1010 can be effected with the static RAM and binary counter cir- cuitry shown in Figure 4. These devices form a sector buffer that stores data sent from the host or the con- troller. This hardware handles both read and write operations on multiple sectors. ADOr-----------~~~----------------------------------~AO AD1 A1 AD2 A2 ~ ~ DBO-DB7 DATA BUS (8) HOST ~;'T5~O MR J - - - - - - D C t--------I BCR PROCESSOR FIFO BUFFER WD1010 EMPTY )-----------t BDRY FULL RDr-------+-t>---~+----------;_--------~------------~~ WR WE BITSYr-------~-L--~--_.-------_+~----~r+------------~BCS Figure 5. A variation on the circuit of Figure 4. uses a WD1510 FIFO buffer to replace the counter-RAM circuitry. The scheme works well at high throughput rates since the buffer need not be filled to transfer data supplied by the WD1 01 0 to the host. 3-28 Winchester Disk Controller Devices The Read (RE) and Write (WR) lines become out- the cylinder register. Then the controller decides puts from the WD1010 and are strobed as each byte which way to seek and how many steps to use. The is placed on the bus. Seek Complete line is not checked, making possible The sector buffer in Figure 4 is implemented with a overlapping seek operations on several drives. binary counter and a static RAM. With each RE or The actual transfer of data from the WD1010 to sec- WE probe, the counter is incremented so that the tor buffer is performed under the Read Sector com- following byte can be read from or written to the next mand. This command also causes a search for the sequential location in the RAM. After all memory loca- specified cylinder, drive, head, and sector. Multiple tions are written to, a carry Signal from the counter sectors are specified and enabled through the sec- goes to the Buffer Ready (BRDY) line of the WD1010. tor count register. If the multiple-option flag is set, This signal informs the controller that the counter has the number of sectors specified are transferred to the rolled over and that the buffer is either full or empty, buffer. depending on the command. Data in the sector buffer is written on the disk under During multiple-sector transfers, the RAM can be as the Write Sector command. Like the Read Sector large as the available sectors on each cylinder. The command, it specifies and enables multiple drives controller continues to load the RAM with data when through the sector count register. a sector is being read. When no more memory is available, BRDY Signals the WD1010. The command Both the Read and Write Sector commands will retry will then pause, wait for the host to dump the up to eight times before automatically performing a memory, and then begin filling the RAM again. This restore operation. After a restoration, the controller scheme permits both read and write operations on seeks out the marginal sector and tries to determine multiple sectors. whether an error condition was caused by a misposi- Signals for host and buffer control include the Buf- tioning of the head or a problem in the actuator. fer Counter Reset (BCR) line, which is pulsed when The Format command is used to initialize a track with BCS makes an active transition. BCR resets the ID fields, gaps, and all information necessary for binary counter before a read or write operation. Since subsequent read and write operations. The sector buf- address location 000 does not exist in the WD1010, fer plays a unique role in this command, since it pro- a decoder can be used to make this address loca- vides information on error mapping and interleaving tion enable the RAM and simulate a data register. For rather than data from a sector. The order in which DMA applications, the Buffer Data Request (BRDQ) each sector is to be recorded is specified in the buf- line is activated when data is available for host use. fer, together with information indicating whether a Numerous other methods can be used with these sector contains a bad block or an error flag. Gap sizes, same control signals. For example, a first-in, first-out number of sectors, and other information are buffer (Figure 5) can replace the counter-RAM. In this specified in the task file to allow further control over scheme, the host can dump data before the WD1010 the format. By incrementing the cylinder number fills the buffer. With sufficient throughput, the FIFO register, an entire surface can be formatted by buffer need not have the storage capacity of an en- accessing just two registers. tire sector if the host can empty it quickly enough with a burst mode. In that case, the BRDY signal THE WD1010'S MACRO COMMANDS becomes the OR function of the Empty and Full CODE Signals from the FIFO buffer. 7 6 5 4 3 2 1 0 MACRO COMMANDS PROVIDE MULTIPLE OPTIONS Restore 0 0 0 1 R3 R2 R1 Ro Each of the WD1010 Winchester controller-formatter's six macro commands contains several option flags. Seek 0 1 1 1 R3 R2 R1 Ro These flags allow the selection of stepping rates, Read Sector 0 0 1 0 1 M 0 0 multiple-sector transfers, and interrupt timing. The Write Sector 0 0 1 1 0 M 0 0 WD1010's task file contains additional options that are programmed before the command is actually Scan ID 0 1 0 0 0 0 0 0 issued. The operations of each command are as Write Format 0 1 0 1 0 0 0 0 follows: Restore causes the readlwrite head assembly to move to track 000. The stepping rate is determined by the M = Multiple Sector Flag state of Seek Complete (pin 32), which is activated M = 0 - transfer 1 sector by the drive to indicate its readiness. The stepping M = 1 - transfer multiple sectors rate specified in the Restore Command is not actually used but retained internally for an implied track later = Interrupt Enable on. = 0 - interrupt at BDRQ time Activation of Seek causes a seek operation for any desired cylinder. The selected cylinder is loaded into = 1 - interrupt at end of command Winchester Disk Controller Devices 3-29 A MULTIPLE-DRIVE SYSTEM For multiple drive-head configurations, the WD1010's the status register to determine whether any bits are sector-drive-head (SDH) register is decoded at address set in the error register. 110 to produce individual, latched drive-selection Bit 0 of the status register is set if any of 5 bits in signals whenever the host writes to this address loca- the 8-bit error register are set - bit 0 establishes the tion. Binary head selection does not require a logical OR of the status register. Other error indicators separate decoder, since one is located at the drive. include a Bad Block Detect bit, which is activated When the WD1010 senses a change in drive number, when an ID field contains a bad block mark, and an it automatically reads a cylinder. This takes place ID Not Found bit, which is set when the desired before the execution of the current command. The cylinder, head, sector, or size parameter is not found chip records the new cylinder number it has read and after 16 revolutions of the disk. The latter is also set stores it internally as a reference for future seek if the data address mark of the data field is incorrect operations on the current drive. when a read is executed. After the execution of any command, the WD1010 informs the host processor of any errors encountered during execution. On-board status and error registers report error conditons and signal status from the drive. To eliminate tedious error detection procedures, the host processor need only check the error bit in DO 01 ~ A 02 03 .... 04 05 06 TO 07 ( HOST WE "( , AO .. ( A1 ( A2 .., ~ ., ( BCS HEAD SELECT 0 HEA o SELECT 1 00 01 DO 01 1~7 I~ WD1010 IY I- HEAD SELECT 2 02 02.- I-~ ~ ~ TO DRIV ESELECT 1 . - Yo DRIVE A 03 03'-1- DRIV ESELECT2.- Y1 041- DR IV E SELECT 3 . . - Y2 Lr°4 CP DRIV E SELECT 4..- Y3 ----- B 2·TO·4·LlNE DECODER LATCH Figure 6. Four Winchester drives can be controlled by the WD1010 using an external latch and a 2-to-4-line decoder. If the drive being accessed changes, the controller performs an automatic read operation. It records the cylinder number of the read for future seeks. 3-30 Winchester Disk Controller Devices WESTERN DIGITAL c o R p o R A T o N :E c-'" WD1050 SMD Controller/Formatter o 01 o CJ) FEATURES ~ • 16 BIT HOST INTERFACE C • 9.677 MBITS/SEC DATA RATE • SINGLE/MULTIPLE SECTOR TRANSFERS • FIXED SECTOR FROMAT • TTL COMPATIBLE INPUT/OUTPUT NC CPO • 68 PIN JEDEC TYPE C CHIP CARRIER PACKAGE CP1 • COMPATIBLE WITH SMD, MMD, FHT, LMD, AND CP2 CMD FAMILIES CP3 GP4 • SINGLE +5V SUPPLY CP5 CP6 DESCRIPTION CP7 The WD1050 SMD Controller/Formatter is an CPB cpg MOS/LSI device designed to interface an SMD com- US3 patible rigid disk drive to a Host processor. The device US2 is compatible with all rigid disk drives adhering to US1 usa Control Data Corporation's flat cable interface for 45 TAG3 SMD, MMD, FHT, FMD, LMD and CMD families (CDC TAG2 specification 64712400 Rev H). It is TTL compatible on most inputs and outputs, with interface capability for 8 or 16 bit data buses. The WD1050 contains a powerful set of Macro Cern- mands for ReadIWrite and control functions. An inter- nal 16 bit task file is used to process a selected PIN DESIGNATION command based upon parameter information in the file. The WD1050 operates from a single + 5V supply and is available in a 68 pin JEDEC Type C chip-carrier package. Winchester Disk Control/er Devices 3-31 PIN :E NUMBER NAME SYMBOL DESCRIPTION c ..... o 1 Vcc Vcc + 5V ± 5% power supply input en o 2 NO CONNECTION NC en 3 READ ENABLE RE Tri-state bi-directional line, used as an input when 3: reading the task file and an output when the WD1050 c is reading from the buffer. 4 WRITE ENABLE WE Tri-state bi-directional line used as an input when writing to the task file and an output when the WD1050 Is writing to the buffer_ 5 CHIP SELECT CS A logic low on this input enables both WE andRE signals as inputs. 6-8 ADDRESS 0-2 AoA2 These three inputs select a task file register to receive/transmit data. 9 NO CONNECTION NC 10-25 DATA BUS 0-15 00-015 Sixteen bit bi-directional bus used for transfer of commands, status, and data. 26 WRITE DATA WD Open drain, NRZ data output which is synchronized to the Servo Clock Input. 27 READ CLOCK RCLK Input clock from the drive which is synchronized with the Read Data input. 28 SERVO CLOCK SCLK A nominal 9.6n MHz clock input from the drive. This clock must be valid when Unit Ready (Pin 31) is active and Fault (Pin 34) is inactive. 29 READ DATA RD NRZ data input from the drive which must be syn- chronized to the Read Clock (Pin 25) input. 30 INDEX PULSE IP Active high input used to monitor the Index signal from the drive. 31 SECTOR SEC Active high input used to monitor sector pulses from the drive. 32 UNIT SELECTED USEL Active high input used to verify the selected drive. 33 UNIT READY URDY Active high input used to inform the WD1050 of a ready condition on a selected drive. If this line is made inactive during any command, command execution is terminated. 34 UNIT BUSY UBSY Active high input used to monitor drive status dur- ing a unit selection. If the unit had previously been selected and/or reserved prior to issuing a USTAG, the UBSY must be made active within one microse- cond of the USTAG selection. This signal is used for dual-channel access applications and should be tied to ground when not used. 35 GROUND Vss Ground. 36 FAULT FAULT Active high input used to detect a fault condition at the drive. Command execution is terminated if Fault is made active during any command. Only the Fault Clear Command may be issued while this line is asserted. 3-32 Winchester Disk Controller Devices PIN NUMBER NAME SYMBOL DESCRIPTION ::E c ~ 37 SEEK ERROR SKERR Active high input used to detect a seek error at the o drive. c.n o 38 ON CYLINDER ONCYL Active high input used to inform the WD1050 when en the heads are settled and positioned over a cylinder. ~ 39 WRITE PROTECT WPROT Active high input used to monitor the Write Protect c signal from the drive. 40 NO CONNECTION NC(TP) Test Point. 41 NO CONNECTION NC 42 UNIT SELECT TAG USTAG Active high output used for selection of a unit on USO-US3 lines. 43-45 TAG1-TAG3 TAG1-TAG3 Active high outputs used to strobe specific data out on the Control Port Lines. Tag definitions are: TAG1 _ Cylinder address TAG2 _ Head/Volume select TAG3 _ Control Tag 46-49 UNIT SELECT 0-3 USO-US3 These four outputs reflect the contents of the unit address field of the task file and are used to select one of 16 drives. 50-59 CONTROL PORT CP9-CPO Ten bit output bus used to issue tag parameters to BITS 9-0 the selected drive. 60 NO CONNECTION NC 61 NO CONNECTION NC(TP) Test Point. 62 BUFFER CHIP BCS Active low output used to enable reading or writing SELECT to the e:------I~ SECTOR COUNT INDX OR SCTR PULSE) RESET RG YES YES NO 8 Winchester Disk Controller Devices 3-47 :ec ...... o 9 CJ1 o CJ) :is: c COMPARE 10 SYNC CYLINDER, AND HEAD 10 FIELD, BYTES FROM DISK YES COMPARE SECTOR 10 FIELD BYTE FROM DISK NO SETIDCE 3-48 Winchester Disk Controller Devices =E c..... o CJ1 o CJ) s: c YES NO NO YES NO NO YES YES NO Note: If the R Flag is not set, 8 additional bytes are included in the Data Field for appended ECC. Winchester Disk Controller Devices 3-49 :ec ..... o CJ1 o en s: c YES YES WRITE PAD, SYNC, DATA & CRC (IF ENABLED) TO DISK YES YES NO RESET CP1 ~ ______________ ~.~, 12 (READ GATE) 3-50 Winchester Disk Controller Devices =E c -"" o (J'1 o (J) ~ c INCREMENT INCREMENT SECTOR ADDRESS SECTOR ADDRESS DECREMENT SECTOR COUNT RESETBDRQ PULSE BCR SETBCS Note: if the R flag is not set, 8 additional E5 bytes are included in the Data Field for ECC extension. Winchester Disk Controller Devices 3-51 :e c ...t. o U1 o en ~ c WRITE: SYNC BYTE E5 DATA FIELD TO DISK RESET CPO (WRITE GATE) NO 14 NO • Abort upon loss of URDY or USEL, or receipt of UBSY (all commands). Abort upon receipt of FLT (all commands except Fault Clear). 3-52 Winchester Disk Controller Devices :ec -" o en o (J) s: c RESET TAG 3 YES FREEZE RESET USTAG STATUS REGISTER FREEZE STATUS REGISTER PULSE Cpg RESET TAG 3 RESETSCS PULSE SCR RESET USTAG YES RESET BORQ PULSE BCR SET BORQ SETINTR • Abort upon loss of URDY or USEL, or receipt of UBSY (all commands). Abort upon receipt of FLT (all commands except Fault Clear). Winchester Disk Controller Devices 3-53 ELECTRICAL CHARACTERISTICS NOTE: ABSOLUTE MAXIMUM RATINGS Maximum limits Indicate where permanent device damage occurs. Continuous operation at these limits ... Vee with respect to Vss (Ground) .......... + 7V t Max Voltage on any Pin with is not Intended and should be limited to those con- c ditions specified In the DC Electrical characteristics. c; respect to Vss ................. -0.5V to + 7V c Operating Temperature ... OOC(3~F) to 70°C(158°F) (j Storage Temperature ............. -55°C(-6?OF) 50 ~ + 125°C(257°F) t: DC Operating Characteristics TA = OOC to 70°C; Vss = OV, Vee = + 5V ± .25V SYMBOL CHARACTERISTIC MIN MAX UNITS CONDITIONS IlL Input Leakage 10 ~ . VIN = Vee IOL Output Leakage 10 ~ Your = Vee VIH Input High Voltage 2.0 V VIL Input Low Voltage 0.8 V VOH Output High Voltage 2.4 V 10 = 1oo~ VOL Output Low Voltage 0.4 V 10 = 1.6 rnA Icc Supply Current 200 rnA All Outputs Open FOR PINS 25, 26,27: See Note 1 VIH Input High Voltage Vee V VIL Input Low Voltage Vss + V ~0.4V AC Timing Characteristics TA = OOC to 70°C; Vss = OV, Vee = +5V ±.25V ADDR ~ • AO,A1,A2STABLE I X i ......- - - cs :_TSET1~ I 1 I THLD! ~ " - __ _ RE TSET2-": I :- 'r I r-TDACC-.: TRC :v. ---! -; I ........ I I-+--TRDR~ I TDOH L I DO-15 -------------<.~:,...-D-AT-A-V-AL-ID-:...>>---- HOST READ TIMING HOST READ TIMING SYMBOL CHARACTERISTIC MIN MAX UNITS CONDITIONS tSET 1 ADDR, Set up to RE 80 nsec tSET 2 CS Set up to RE 0 nsec tDACC Data Valid from RE 375 nsec CL =100pF tRC Read Enable Pulse Width .375 5.0 ",sec tOOH Data Hold from RE 150 nsec tHLD ADDR. CS, Hold from RE \ 0 nsec tRDR Read Recovery Time ·500 nsec 3-54 Winchester Disk Controller Devices AOOR ~ AO,A1,A2STABLE yo :E c --./'k---=--------""I'f', - - ...&. a....-TSET1""""': • THL01,2 ~ ~ o , TSET2~ "'I :\. .'1 :.. l¥ I, .. CJ'1 o en ~..._ _- T W E - - -.... ;t. s: c ---------"!~ I.... ToH 00·15 \. Jc+--- TOS----". : OOc:t i TOH..... . . . DATA VALID • ...! ~I T R R - - - - -.. &..-TVWE DATA VALID ~~1------ I I BUFFER WRITE TIMING BUFFER WRITE TIMING (READ SECTOR CMD) SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tWRB WE Output Pulse Width 4 SC See Note 2 tVWE Data Set up to WE 4 SC See Note 2 tDH Data Hold from WE 4 SC See Note 2 tRR WE Repetition Rate 16 SC See Note 2 tWF WE Float from BCS 0 nsec Winchester Disk Controller Devices 3-55 I =e o .cs~ ~ ..... ~------------------------------------------~s TAF~ ~ o CJ1 ~I ,----§~ ~Ii\"" o AE (OUTPUT) \..~TAEB~! - '~- -/ en I s: o I I I I" TAOS I ;.a .... TOOH • I I I I I I ~--------_TAA--------~ BUFFER READ TIMING BUFFER READ TIMING (WRITE SECTOR CMD) SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tREB RE output Pulse Width 4 SC See Note 2 tRDS Data Setup to RE 140 nsec tRR RE Repetition Rate 16 SC See Note 2* tDOH Data Hold From RE 80 nsec tRF RE Float from BCS 0 nsec TAG3 ~J ~TIS IPORSEC ~ ........- - - - - - - - - - - - - - - - - - - - - - - TICI~ CPI (RGATE) lJ. I 1 I , - - T R C _ I_ _ TCp~ t -I. I 1,.__---------"" (READ) TDC~ I ~'------ ' - I RD(RDATA) I I .iTf. 10 \: - I- DATA 1£ T I I 1 I~ ________ ___ ~I ~ I I_TCW~I /wRITE) \ CPO (WGATE) • ,-,- - - --..l '-- T,SW I I--~~----~-----------~r~'------ CPO (WGATE) H1 DISK R/W CONTROL TIMING DISK R/W CONTROL TIMING (SCLK = 9.677 MHZ) SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tiS Index/Sector Pulse Width .2 1.25 3.0 ",sec tiC Index/Sector to CP1 High 60 SC See Note 3 tRC CP1 Low from Read Data 56 SC See Note 3 tcp CP1 Low to CP1 High 12 SC See Note 3 tDC Last Read Data to CP1 Low 16 SC See Note 3 tcw CPO High from Read Data 60 SC See Note 3 tsw Index/Sector High to CPO 250 nsec High on FORMAT 3-56 Winchester Disk Controller Devices =E US3-USO ZZZX~ I _____ --..1 VAL1D ____ I.... TUH ~XZZZZZZ I c """" o CJ'1 I I I I o C~ __________~i-----J~.TCG~: ~_________~~!~~~-T-S-H------------- en s: c USTAG a.---- TSG - - - . : I ~r-------- __ ___________________ ~ I UNIT SELECT TIMING UNIT SELECT TIMING (SCLK = 9.677 MHZ) SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tSG US3-USO Setup to USTAG 1.0 llsec tCG CPS Setup to USTAG 4 ClK See Note 4 tUH CPS Hold Time from USTAG 4 ClK See Note 4 tSH US3-USO Hold Time from 1.0 llsec USTAG c~-cpo ZZZZXI'-_____ ------'III'XZZZ V_ALID __ TAG 1,2 /f•. a....-TCT--+-: -l\ I : - - - - - T G W - - -.. :....-TTC---.J I TAG 3 ----------------------~~--------------------------------------- . CP4, 6, 9 ------------------------------T:.- TCP~l''''------- CP TAG TIMING CP TAG TIMING 9SCLK = 9.677 MHZ) SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tCT CP9-CPO Set up to 5 ClK See Note 4 TAGS 1, 2, or 3 t6GW TAGS 1 & 2 Pulse Width 4 ClK See Note 4 tTC CP9-CPO Hold Time from 2 ClK See Note 4 TAG 1, 2 low tcp CP4, 6, 9 Pulse Width 4 ClK See Note 4 During TAG 3 True Winchester Disk Controller Devices :E c ..... o ,..........----- TAF-----....~, (J1 • o • ". / '"",-i: _ _-J/ en S ACLK - . - / :...- TAA--..t. . . .:.:.:.:.:.-T-A-H::~--I...I: ~ c AD_>¢; · ~----_>C READ DATA TIMING READ DATA TIMING SYMBOL CHARACTERISTICS MIN TYP MAX UNIT CONDITIONS tRF RCLK Frequency 1.0 9.677 10.1 MHZ tRR Read Data Setup to 35 nsec RCLK Low tRH Read Data Hold Time 0 nsec from RCLK Low I1 ----TSF-----......~I ........... SCLK -A f4 Tws+l I ,,~ _ _ ___..J)-!l-----"_____ r WIT ~r---------------------><~ _____________________ WRITE DATA TIMING WRITE DATA TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tSF Servo Clock Frequency 1.0 9.677 10.1 MHZ tws WD Valid from Servo 85 nsec CL =15 pf. Clock High See Note 5 3-58 Winchester Disk Controller Devices I. I TCF------~ =E c-'" o ClK U1 o en 3: c ..... TRS BCR---~~ -y I TBCR I SC RC RD MISCELLANEOUS TIMING MISCELLANEOUS TIMING MISCELLANEOUS TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tCF Master Clock Frequency 2.0 2.5 MHZ 50% Duty Cycle t MR Master Reset Pulse Width 12 JJsec ClK Active t BCR BCR Pulse Width 4 ClK See Notes 4&7 t BRQ BDRa Reset from BRDY 50 600 nsec tRS Rise of Fall Time 15 nsec See Note 1 t BDBR BRDY High from 4 See Note 8 BDRa High tBRDY BRDY Pulse Width 4 See Note 8 NOTES: 1. It is recommended to buffer the line receiver stage with a TTL or Schottky TTL stage on pins 27, 28 and 29. A current sink capability of.,48 mA with a 100 ohm pull-up resistor will provide both the required rise and fall times and also the required voltage swing. It is recommended to locate these buffers physically near the WD 1050 to minimize inductive ringing. 2. Timing is a function of the Servo Clock (SClK) frequency. The number of negative SClK transitions plus 400 nsec. SClK periods is specified. (Disregard "TYP" in this case). 3. Timing is a function of the Servo Clock (SClK) frequency. The number of negative SClK transitions plus 400 nsec. max. is specified. (Disregard the "TYP" in this case). 4. Timing is a function of the Master Clock (ClK) frequency. The number of ClK periods is specified. (Disregard the "TYP" in this case). 5. WD is an open drain output and requires an external 1K ohm pull-up to Vcc. This pin is inverted relative to the SMD interface cable. It is recommended that this output go to the 'D' input of a 74S74 flip-flop that is clocked by the SClK buffer described in Note 1. The 74S74 a output may then connect to the interface line driver. It is recommended that the 74S74 be located physically near the Wd1050. 6. All AC timing is measured at VOL = 0.8 V, VOH = 2.0V. 7. Certain occurrences of BCR can have variable pulse widths. Deactivation of BCR is dependent upon the next occurance of INDX or SCTR for these instances. 8. Timing is a function of the Master Clock (ClK) frequency. The number of ClK periods, plus 100 nsec. min. is specified. Winchester Disk Controller Devices 3-59 3-60 Winchester Disk Controller Devices WESTERN DIGITAL c o R p o R A T o N :E o ...L WD1050 SMD Controller/Formatter Application Notes o CJ'1 o INTRODUCTION one for data. The control cable (commonly referred en S Prior to the introduction of 5% and 8 inch Winchester to as the "A" cable) is responsible for all head move- o disks drives in the late 1970's, minicomputers and ment, status reportings and issuing commands. The mainframes were the only systems that utilized rigid data cable (or "B" cable) is used for reading and disks. These drives were relatively expensive; writing NRZ data to a particular sector on the drive. sometimes as high as $200 per megabyte. They Note that all lines on both cables are differential offered the minicomputer deSigner a fixed or signals; they require a differential driver/receiver at removable drive with capacities from 10 to 300 both ends. megabytes. Initially, there was no need for interface Primary control over the "A" cable is based upon a standards. IBM Corporation was the predominant 10 bit bus called the Tag Bus. These 10 lines send leader in the marketplace, and anyone else who particular information to the driver and initiate a com- decided to build drives were IBM compatible units. mand. Three Tag lines (Tag 1-3) are used to tell the But as competition increased, more and more com- drive what the bus contains during the strobing of the panies began producing lower cost units with Tags. For example, Tag 1 tells the drive that the Tag increased capacity. Minicomputer companies were bus contains a cylinder number that the head being formed, offering complete systems that were assemblies should be moved to for reading or writing. non-IBM compatible. The disk drive race was on. Tag 2 tells the drive the Head/Volume to select, while In order to standardize a common interface and to Tag 3 is used to initiate read or write commands and prevent product obsolescence, Control Data Corpora- to perform special recovery routines. tion developed an intelligent interface called the Drives are selected by separate UNIT SELECT lines Storage Module Device or SMD. This interface on the "A" cable, which have their own strobe line allowed a variety of drives to use the same hardware called Unit Select Tag. Other signals on the "A" cable signals, even though their capacities and physical serve status reporting type functions. SEEK ERROR sizes differed. Variations of the SMD were also and ON CYLINDER are examples of status lines. introduced. Some of these are the CMD (Cartridge The "B" cable is used to transmit serial, NRZ data Module Drive) and the MMD (Memory Module Drive). to and from the drive. Associated with the R/W lines The SMD interface began to gain acceptance in the are clocks: Write Clock for write recovery and Read marketplace as competitive manufacturers offered Clock for read recovery. Additional signals aid in "SMD-compatible" drives as well. The SMD was well determining the status of each drive on the bus. on its way to becoming a defacto standard in the industry. Its longevity has been proved by over 10 In a multiple drive configuration, the two cables are years worth of product based on this "intelligent" connected as shown in Figure 2. The "A" cable is interface. daisy-chained; each drive is tied together in parallel with termination resistors on the last drive. The "B" With today's smaller diameter low cost drives, where cable is radial-connected; a separate cable from each does SMD stand? Oddly enough, the higher capacity drive connects to the controller. 5% and 8 inch Winchesters are reviving the SMD pro- tocol. Because the SMD interface offers several It is probably obvious by now that a great deal of con- advantages over the ST506 type interface in the high trol is necessary to perform even a simple Read or capacity arena (such as parallel seek instead of serial Write operation on the SMD Bus. The drive controller step pulses), several manufacturers are planning to must perform simultaneous operations on both offer the SMD on their traditional small system disk cables, as well as monitoring status signals to deter- drives. The SMD, however, is not a trivial interface mine successful execution of operation. A typical when it comes down to designing a controller. SMD controller can consist of 150 SSIjMSllntegrated Circuits and a local microprocessor or bit-slice to per- A LOOK AT THE SMD form the necessary functions. SMD controller Figure 1 illustrates the electrical Signals of the SMD. designers of today can take advantage of a new LSI Two separate cables are used: one for control and chip that will reduce the number of I.C.'s to well under 40. Winchester Disk Controller Devices 3-61 :E c ..... CONTROLLER A CABLE " - ""+" DRIVE o UNIT SELECT TAG 22,52 (J1 o UNIT SELECT 20 23,53 UNIT SELECT 21 24,54 en UNIT SELECT 22 26,56 S c UNIT SELECT 23 27,57 TAG 1 ~ 1,31 TAG 2 ~ 2,32 : TAG 3 ~ 3,33 BITO fA 4,34 BIT 1 ~ 5,35 BIT 2 fA 6,36 BIT 3 ~ 7,37 BIT 4 ffi 8,38 .. BIT 5 fA 9,39 BIT6 ~ 10,40 BIT 7 ~ 11,41 BIT 8 ~ 12,42 .. BIT9 ~ 13,43 OPEN CABLE DETECTOR 14,44 INDEX fA 18,48 SECTOR i2\ 25,55 -- ~ FAULT SEEK ERROR h\ & 15,45 16,46 ON CYLINDER It\ 17,47 UNIT READY fA 19,49 ---.. ADDRESS MARK FOUND WRITE PROTECTED ~ffi ~ 20,50 28,58 PICK && 29 }ONE1WISTED PAIA HOLD 11\ 59 • BUSY & 21,51 NOT USED (SPARE) 30,60 NOT E: 60 Position 30 Twisted pair-straight flat cable Maximum Length-100 ft. (30.48 meters) Special signal, not a balanced transmission signal 2 Gated by unit selected 3 Not interpreted, is Daisy chained, no driver connection within the LMD 4 Not activated, is Daisy chained, always a logic zero output if unit is selected 5 Not generated, is Daisy chained, no driver connection within the LMD Figure 1(A). Tag Bus I / 0 Interface ("A" Cable) 3-62 Winchester Disk Controller Devices CONTROLLER "B"CABLE DRIVE - , + WRITE DATA 820 :E. GROUND WRITE CLOCK 7 6 19 o-'" GROUND SERVO CLOCK 18 2 14 o (1'1 GROUND READ DATA 1 3 16 o GROUND 15 CJ) READ CLOCK GROUND 5,17 4 s: o SEEK END 1023 UNIT SELECTED 229 GROUND 21 INDEX 1224 GROUND 11 SECTOR 1326 GROUND 25 NOTES: 1. 26 conductor flat cable. Maximum Length-50 ft. (15.24 meters) 2. No signals gated by "A" cable unit select Figure 1 (B). "B" Cable Interface NOTES: 1. Maximum individual A cable lenghts 100 feet (30.48 meters) 2. Maximum individual 8 cable lenghts 50 feet (15.24 meters) DAISY CHAINED SYSTEM SYSTEM GROUND 1 CONTROLLER 1 A B B B B NOTES: 1. Termination of "A" cable lines are required at controller and the last unit of the Daisy chain or each unit in a radial configuration. 2. Termination of "8" cable receiver lines are required at the controller and are on the unit, receiver cards. 3. Maximum cumulative "A" cable length per controller = 100 feet (30.48 meters) maximum individual "8" cable lenght = 50 feet (15.24 meters). Figure 2. Daisy Chained System Winchester Disk Controller Devices 3-63 WD1050 SMD CONTROLLER CHIP register if any errors were encountered. The device :ec Western Digital Corporation offers an LSI controller chip for the SMD protocol. This device, called the is then ready for the next command. Figure 4 illustrates the Task File and its contents. The -" o(J1 WD1050, has been designed to interface an SMD rigid Host processor generates the three address lines o disk drive to a 16-bit Host processor. A set of shown, then performs a read or write operation to the macrocommands allows the Host to request a selected 16·bit register. All registers can be read or en s: specific operation such as seek, read, etc., in which written to with the exception of the Command/Status c all Tag and control lines on the drive interface per· Register. Since both of these registers share a com· form their appropriate signaling. By using this device, mon address location, a "write" will cause a com· the designer is free to concentrate on operating mand to execute, while a "read" will cause the status system software intervention, rather than meeting to be fetched from the device. This memory mapped electrical requirements of the drive protocol. Figure architecture allows the Host to randomly access any 3 shows the Block Diagram of the WD1050. Data or location in the Task File without disrupting or commands are entered in 16-bits through the Data reloading the data in other registers. I/O Buffers. This information is stored in the Task File The Instruction Set of the WD1050 is shown in Figure and tells the device parameters about a specific com· 5. Return to Zero, and Seek Cylinder commands are mand. This could be a cylinder address, a sector used for head movement, while the remaining number to search for, a particular drive that should commands are responsible for reading or writing data. be selected, etc. After this information is loaded, a Each Read/Write command also contains an command is issued. The Control Unit instructs the "Implied Seek" feature. This allows the Host pro· various pins on the drive interface to generate their cessor to issue a read or a write function even though proper signals. Upon completion of a command, the the heads are sitting over the wrong cylinder. The WD1050 interrupts the Host and reports via the status WD1050 will perform an automatic seek operation CONTROL CPO- PORT CP9 UNIT SEL USO- 00- DATA PORT US3 015 I/O BUFFER RC RDS RD AO-A2 RDH cs RE WE WDH BCS HOST! ~----------~~~WD BCR BUFFER WDS SC BRDY CONTROL BDRQ INTRQ TAG 1- TAG 3 CONTROL INDEX UNIT SECTOR DRIVE FAULT CONTROL SKER PORT ONCYL URDY WPROT UBUSY USEL ~ __________ J-~_ECC USTAG FIGURE 3. WD1050 BLOCK DIAGRAM 3-64 Winchester Disk Controller Devices before the actual read or write. Because of this, the has more sectors to transfer, BDRQ will be made head movement commands (Return to Zero and Seek active to allow the Host to unload the data in the Cylinders) are usually restricted for use in overlap RAM, making room for the additional sectors. The :E seeks. This is the ability to perform seek operations WD1050 will then resume its operation of finding a o ..... o on several drives simultaneously. sector and writing the data to the buffer. After all the CJl data has been transferred, the command will ter- o After a command has finished execution, the WD1050 will report to the Host through its Status Register minate. To complete the scheme, a signal called Buf- en fer Counter Reset (BCR) is used to zero the counters S (shown in Figure 6) how successful a command before the Host or device starts a transfer. A BCR o execution was. Many commands will not execute if certain conditions are not met. For example, a FAULT 'Pulse is generated whenever BCS makes a transition. condition, shown by status bit 6, will prevent all com- By using this buffer scheme, the designer has the mands except Fault Clear from executing. ability with one command to transfer the maximum Read / Write commands will not execute if the "On number of sectors specified by the Sector Counter Cylinder" bit is false, either. In summary, the Host in the SDH Register. must examine the various bits to determine what CONCLUSION action to take next. Using the WD1050 as the basis for an SMD controller HOST SECTOR BUFFER design, can reduce the complexity of the design effort Because of the high data rates used on the SMD pro- considerably. However, challenges still remain in tocol (9.677 Mbits / sec.), even a fast micro- processor interfaCing the device to maximize the efficiency of will have trouble keeping up in a Programmed I/O the interface. The buffer control signals, for example, environment. For this reason, the WD1050 has been can be changed to accomodate a DMA controller for designed to use a sector buffer. higher throughput. ECC can be appended to the buf- Figure 7 shows a Host Interface to the device using fer for data correction purposes. A local micro- a low cost Static RAM and a binary counter. Since processor dedicated on the SMD controller board the WD1050 will be transferring data directly to the could even be used to emulate existing SMD / Host software routines. RAM, a transceiver will be needed to isolate the Host from the RAM / WD1050 logic. This transceiver, as Regardless of the application, the WD1050 signifies shown in Figure 7, is disabled by Buffer Chip Select a trend in the semiconductor industry to not only (BCS). Whenever BCS is active, the WD1050 is reading replace logic in a discrete design, but to offer com- or writing to the RAM. During this condition, the Host plete functions in large scale integration. This device cannot read status or any other registers. When the is certainly not the first to offer an LSI functional data transfer is over, the device disables BCS and building block, and will not be the last. enables Buffer Data Request (BDRQ). This tells the Host that the buffer is now available for use. If a read A2 A1 AD REGISTER SELECTED command had been issued, the sector buffer would 0 0 0 Head Number/Sector Address have filled the data requested. 0 1 0 Sector Count/Length/Unit Address During this process, the WD1050 takes control over 1 0 0 16 Bit Cylinder Register Write Enable (WE) by making it an output. It places 1 1 0 Command Register (Write Only) its first data word on the bus and strobes WE. 1 1 1 Status Register (Read Only) This causes a write operation to the RAM and increments the binary counte~at is tied to the RAM's address lines. Another WE strobe then Figure 4_ WD10S0 Task File occurs, increments the counter again, and the pro- cess continues until the sector is transferred. If a single sector operation was requested, the WD1050's use of the sector buffer is completed. However, multi- ple sectors may be transferred as an option within the command. In this case, the Buffer Ready (BRDY) input to the device is examined. If false, the WD1050 assumes there is more RAM available and transfers the next sector of data. The BRDY signal is normally generated by a "carry" or overflow out of the binary counter. If BRDY has gone active but the device still Winchester Disk Controller Devices 3-65 LSB COMMAND REGISTER BITS MSB =E COMMAND c-" 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 o Fault Clear 1 0 0 0 0 0 0 I 0 0 0 0 U S E L C11 o Return to Zero 1 0 0 1 V L 0 I 0 0 0 M U S E L en s: c Seek Cylinder 1 0 1 0 V L 0 I Z C H M U S E L Read 10 Field 1 0 1 1 R L 0 I Z C H M U S E L Read Sector 1 1 0 0 R ~ 0 I Z C H M U S E L Write Sector 1 1 0 1 R L 0 I Z C H M U S E L Format 1 1 1 0 R P 0 I Z C H M U S E L Verify 1 1 1 1 R P 0 I Z C H M U S E L FLAG SUMMARY V = Verify I = Interrupt Enable R = CRC Enable Z = Volume/Head change L Logical Sectoring C Cylinder Address P = Programmable Sectors H Head Selection o = On Cylinder M = Marginal Data Recovery E Priority Release/Early U Unit Sel/Servo Minus L = Unit Deselect/Late S = Priority Sel/Servo Plus Figure 5. WD1050 Instruction Set BIT NAME DESCRIPTION 0 ID Field Not Found Set if the sync character preceding the 10 Field or 10 Field contents read (I DIN F) from the disk do not match the respective Task File contents. 1 ID CRC Error (IDCE) Set if the CRC calculation on the ID Field read from the disk is in error. 2 Data Field Not Found Set if the Data Field sync pattern following the 10 Field does not match (DFNF) the sync character. 3 Data Field CRC Error (DFCE) Set if the CRC Calculation on the Data Field read from the disk is in error. 4 Not Used This bit is not used; it is forced to a zero. 5 Buffer Data Request (BDRQ) Reflects the Buffer Data Request output. 6 Fault (FLT) Reflects the status of the Fault (FLT) input. 7 Buffer Chip Select (BCS) This bit is an inverted copy of the Buffer Chip Select (BCS) output. 8 Seek Error (SKER) Reflects the status of the Seek Error (SKER) input. 9 On Cylinder (OCYL) Reflects the status of the On Cylinder (OCYL) input. 10 Unit Ready (URDY) Reflects the status of the Unit Ready (URDY) input. 11 Write Protect (WPRT) Reflects the status of the Write Protect (WPRT). 12 Unit Selected (USEL) Reflects the status of the Unit Selected (USEL) input. 13 Unit Busy (UBSy) Reflects the status of the Unit Busy (UBSy) input. 14 CIP Set when a command is in progress. 15 Buffer Chip Select This bit is an inverted copy of the Buffer Chip Select (BCS) output. (BCS) This bit also appears in STATUS Bit 7. Figure 6. WD1050 Status Register 3-66 Winchester Disk Control/er Devices :E r--- c-" o ~ 01 00- 0 15 OATA BUS (16) 00- 0 15 o CJ) "'--roo- I I S ~ RAM c RAMSEL i)-- - BUFFER WD1050 /11111 BINARY I BCR COUNTER HOST BROY INTERFACE 11"""') BCS ,.... AD RE ,.... WR WE OATA REQ BORQ CHP SEL CS AOOR AO-A2 Figure 7. WD10S0 Host Interface Winchester Disk Controller Devices 3-67 3-68 Winchester Disk Controller Devices WESTERN DIGITAL c o R p o R A T o N WD1100 Series Winchester Controller Chips DESCRIPTION FEATURES The WD1100 Chip series provides a low cost alter- • SA1000/ST506 COMPATIBLE native for developing a Winchester Controller. These • SINGLE 5V SUPPLY devices have been designed to read and convert an • TRI-STATE DATA LINES MFM data stream into 8-bit parallel bytes. During a • 5 MBITS/SEC TRANSFER RATE write operation, parallel data is converted back into • SIMPLIFIED INTERCONNECT MFM to be written on the disk. Address Marks are APPLICATIONS generated and detected while CRC bytes can be appended and checked on the data stream. The Winchester Controllers for: WD1100 is fabricated in N-channel silicon gate • SHUGART ASSOCIATES technology and is available in a 20-pin Dual-In-Line package. • SEAGATE TECHNOLOGY • QUANTUM CORP. • WD1100-01 SER/PARALLEL CONVERTER • TANDON MAGNETICS • WD1100-02 MFM GENERATOR • MINISCRIBE • WD1100-12 IMPROVED MFM GENERATOR • WD1100-03 AM DETECTOR • RMS • WD1100-04 CRC GENERATOR/CHECKER • CMI ... AND OTHERS • WD1100-05 PAR/SERIAL CONVERTER • WD1100-06 ECC/CRC LOGIC • WD1100-07 HOST INTERFACE LOGIC • WD1100-09 DATA SEPARATION SUPPORT LOGIC ClK Vce NRl NRZ Vee RClK Vee Vee NC EN SKPEN AO SKPEN AO DiN RST BClR NRl WClK Al WCLK Al RClK CP TEST Sf WClK MR WCCK MR ClKIN NC 000 DOUT RWC MFM RWC MFM DOUT AMDET 001 BOONE Cs INTRa CS INTRQ NC AMDET 002 SHFClK 5i'i'QC[i( ORO OROCLK ORO NC OOUT 003 007 INTClK EARLY INTCLK EARLY ffiTi NC 004 006 NC lATE ENDET DClK 2XOR LATE VSS 005 Vss NOM TEST 2 Vss NOM VSS WD11 00-01 WD11 00-02 WD1100-12 WD1100-03 SERIAUPARALLEL MFM GENERATOR IMPROVED MFM AM DETECTOR CONVERTOR GENERATOR DiN DO Vee RIW VCC Vee R56 Vee DOcK NC 01 EN RCP WBS WR6 WClK SHFClK NC 02 NC WCP RBS RESET cs NC NC D3 fEST RDAT DCSS CSAEN WAEN NC CRCOK D4 BOONE WDAT EDOUT MODE AMDET CWE TlMClK D5 DOUT SEl DOUT TlMClK RBS DOCE WClK D6 SHFClK ECCll FBD RClK AMOiJ't CRCll CRCOK D7 iJi NC CSE INDEX CSAC NC SKPClK SHFClK WClK ECCEN BS WR3 WAIT Vss DOUT Vss DClK VSS RWCP Vss LlNDEX WD1100-04 WD11 00-05 WD11 00-06 WD11 00-07 CRC PARALLEUSERIAL ECC/CRC HOST INTERFACE GEN ERATO RICH ECKER CONVERTER LOGIC LOGIC Winchester Disk Controller Devices 3-69 3-70 Winchester Disk Controller Devices WESTERN DIGITAL c o R P o R A T o N =E c.... WD110o-01 Serial/Parallel Converter .... o o o• .... DESCRIPTION The WD11()()'()1is implemented in NMOS silicon gate The WD1100-01 Serial/Parallel Converter allows the technology and is available in a 20 pin plastiC or user to convert NRZ (non-return to zero) data from a ceramic dual-in-line package. Winchester disk drive into a-bit parallel form. Addi- tional inputs are provided to Signal the start of the FEATURES parallel process, as well as Byte Strobes to signify • SINGLE + 5V SUPPLY the end of the conversion. The device contains two • DOUBLE BUFFERING sets of 8-bit registers; one register may be read (in parallel), while data is being shifted into tile other • BYTE STROBE OUTPUTS register. This double-buffering allows the Host to read • 5MBITS/SEC SHIFT RATE data from the disk drive at one-eighth the actual data • SERIAL IN/SERIAL-PARALLEL OUT rate. • 20 PIN DIP PACKAGE Sf ~-----. +5V S 8 a'----ob BOONE Bit Counter EN cp ClK vcc a OOUT NRZ B Bit NC EN elK Shift Register BClR NRZ TEST ST 000 OOUT 001 15 BOONE 002 14 SHFcLi< 003 13 007 004 12 006 vSS 10 11 005 cp B Bit Register 000 001 002 003 004 005 006 007 Figure 1. Figure 2. WD1100-01 Pin Connections WD1100-01 Block Diagram Winchester Disk Controller Devices 3-71 PIN :E NUMBER SYMBOL NAME FUNCTION o ...L ...L 1 ClK CLOCK NRZ data is entered into the 8-bit shift register on the o low-to-high transition of clock. oI o 2 NC NO CONNECTION No connection. This pin is to be left open by the user. ...L 3 BClR BYTE CLEAR When this line is at a logic 0, the BOONE (Pin 15) line is held reset. 4 TEST TEST INPUT This pin must be left open by the user. 5·9 000-007 OATAO-OATA 7 8 bit parallel data outputs. 11·13 10 Vss GROUND Ground. 14 SHFClK SHIFT CLOCK Inverted copy of CLOCK (pin 1) which is active when EN (pin 19) is at a logic 1. 15 BOONE BYTE DONE This signal is forced to a logic 1 signifying 8 bits of data have been assembled. BOONE remains in a logic 1 state until reset by a logic 0 on the BClR (pin 3) line. 16 OOUT DATA OUT Serial Data Output from the 8th stage of the internal shift register. OOUT is in a high impedance state whenever EN (pin 19) is at a logic O. 17 ST START This line enables the byte counter and is used for syn- chronization. It must be held to a logic 1 prior to first data bit on the NRZ (pin 18) line. 18 NRZ NRZ DATA NRZ serial data is entered on this pin and clocked by the low to high transition of ClK (pin 1). 19 EN ENABLE When this signal is at a logic 0, OOUT, SHFClK, and BOONE outputs are in a high impedance state. 20 Vcc Vcc + 5V ± 10% power supply input. DEVICE DESCRIPTION Prior to shifting data through the device, the BOONE will again be set and the operation continues. W01100-01 must be synchronized to the data stream. When interfacing to a microprocessor, BOONE is The ST line (Pin 17 high) is used to hold the internal used to indicate a parallel byte is ready to be read. bit counter in a cleared state until valid data (NRZ) As the processor reads the data out of the 000-007 and clocks (ClK) are entered. The ST line is a syn- lines, the BClR line should be strobed to clear of chronous input and therefore requires one full cycle BOONE in anticipation of the next assembled byte. of the ClK line (Pin 1) to occur in order to accept a ST An address decode Signal generated at the host may condition. After this happens, the device is ready to be used for this purpose. During a power-up condi- perform serial to parallel conversions. tion, the state of BOONE is indeterminant. It is recom- Data is entered on the NRZ line and clocked into the mended that BClR be strobed low after power-up 8-bit shift register on the low-te-high transition of ClK. to insure that BOONE is cleared. The ST line must be set low during the low time of The serial output line from the last stage of the shift ClK. Data is accepted on low-te-high transition of the register is available on the OOUT pin. An inverted copy clock while the high-to-Iow transition of ClK of ClK is available on the SHFClK pin. Both increments the bit counter. After 8 data bits have been OOUT (Pin 16) and SHFClK (Pin 14) can be· used entered the final high-to-Iow transition of ClK sets to drive another shift register external ,to the device. an internal latch tied to the BOONE line (Pin 15). At the same time, the contents of the shift register are The three Signals BOONE, OOUT, and SHFClK can parallel loaded into an 8 bit register making the be placed in a high impedance state by setting EN (Pin parallel data available on the 000-007 outputs. 19) to a logic O. Likewise, EN must be at a logic 1 in BOONE will remain in a latched state until the BClR order for these Signals to be active. is set to a logic 0, clearing off the BOONE signal. The TEST pin is internally OR'ed with the ST line to BClR is a level triggered input and must be set inhibit the bit counter. It is recommended that TEST back to a logic 1 before the next 8 bits are shifted be left open by the user. An internal pull-up resistor is through the register. BClR has no effect on the serial tied to this pin to satisfy the appropriate logic level shifting process. When the next 8 bits are received, required internally for proper device operation. 3-72 Winchester Disk Controller Devices SPECIFICATIONS ABSOLUTE MAXIMUM RATINGS :E c-'" Ambient Temperature NOTE: Maximum ratings Indicate operation where -'" o under Bias ......... 0oC (3~F) to 50°C (12~F) permanent device damage may occur. Con- o Voltage on any pin tinuous operations at these limits is not o• -'" with respect to Vss ....p • • • • • • - 0.2V to + 7.0V intended and should be limited to those con- Power Dissipation ...................... 1 Watt ditions specified in the DC electrical STORAGE TEMPERATURE characteristics. PLASTIC ... - 55°C (- 67°F) to + 125°C (257°F) CERAMIC .. - 55°C (- 6~F) to + 150°C (30~F) DC Electrical Characteristics TA = OOC (3~F) to 50°C (12~F); Vce = + 5V ± 10%, Vss = OV SYMBOL PARAMETER MIN TYP MAX UNIT CONDITION Vil Input low Voltage -0.2 0.8 V V IH Input High Voltage 2.0 V Vo Output low Voltage 0.4 V 10l = 3.2mA VOH Output High Voltage 2.4 V 10H = 20011A Vee Supply Voltage 4.5 5.0 5.5 V lee Supply Current 125 rnA All Outputs Open IIH Input High <10 llA VIN =.4 to Vee III Input low <10 llA VIN =.4 to Vee AC Electrical Characteristics TA = OOC (32°F) to 50°C (122°F), Vee = 5V ± 10%, Vss = OV SYMBOL PARAMETER MIN TYP MAX UNITS CONDITION fel ClK FREQUENCY 0 5.25 MHZ t lS ~ClK to ST 0 nsec ST = 1 (min 200nsec) t HS tClK to ST 0 nsec ST = 1 (min 200nsec) tos Data set-up to t ClK 15 nsec tve BOONE valid from ~ ClK 65 140 nsec EN =1 t RS BOONE reset from BClR 135 nsec EN =1 tew BClR Pulse Width 50 nsec EN =1 tse t ClK to ~ SHFClK 90 nsec EN =1 tes ~ ClK to t SH FClK 90 nsec EN =1 tso Data delay from t SHFClK 55 nsec EN =1 t FO Enable to DOUT ACTIVE 90 nsec tOH Data Hold w.r.t. t ClK 45 nsec teo t ClK to DOUT ACTIVE 145 nsec tOF Enable to DOUT disable 90 nsec NOTE: 1. Typical Values are for TA = 25°C (77°F) and Vee = +5V± 10% Winchester Disk Controller Devices 3-73 :E ClK C ..... ..... ST 0 0 • ..... 0 NRZ DOX ~~---p-ow-e-r-.o-n--D-AT-A-/--b~-e--n-.l----~~ b~e 1 or n BOONE , :.-IRS ' -, BClR ------iU ',: Isc u ~!:~w ,-...J I ....... Ic~:~: SHFClK I :---- t CO~!I ': __ 150 DOUT : lFO I~ t OF - . ,: :-4--- ______________ -.,1 EN ~r!--------------------~i~ FIGURE 3. WD1100-01 FUNCTIONAL TIMING 3-74 Winchester Disk Controller Devices WESTERN DIGITAL c o R P o R A T o N ~. c .... WD1100-03 AM Detector ....o o o• DESCRIPTION w The WD11QO-03 Address Mark Detector provides an The WD1100-03 Address Mark Detector is fabricated efficient means of detecting Address Mark Fields in in NMOS silicon gate technology and is available in an MFM (NRZ) data stream. MFM (NRZ) clocks and a 20 pin dual-in-Iine package. data are fed to the device along with a window clock generated by an external data separator. The FEATURES WD1100-03 searches the data stream for a DATA = • SINGLE +5V SUPPLY A1, ClK = OA pattern and produces an AM DET • 5 MBITS/SEC DATA RATE signal when the pattern has been found. NRZ data • DECODES A1 16 OA 16 is an output from the device, which can be used to • SYNCHRONOUS CLOCK/DATA OUTPUTS drive a serial/parallel converter. An uncommitted latch • 20 PIN DIP PACKAGE is also provided for by the data separator circuitry, if required. +5V];] CP RSf : .. 000'f RcLK 20 Vee BiN 19 RST DIN D a DOUT RClK 18 CP 8 err SHIFT REG ClK IN 17 NC RClK C DOUT 16 AMDET NC 15 'fEffi AMDET DClK NC 1" QoUr DETECT A1 ENDET R AMDET fEsi"1 13 NC DETECTOA AMDET ENDET 12 DClK Vss 10 11 TEsT2 Tffi2. ClK IN D a 8 err SHIFT REG RClK C Figure 1. Figure 2. WD1100-o3 Pin Connections WD1100-03 Block Diagram Winchester Disk Controller Devices 3-75 :ec PIN NUMBER SYMBOL NAME FUNCTION ..... ..... 1 RClK READ CLOCK Complimentary clock inputs used to clock DIN and ClK IN o 3 RClK READ CLOCK into the AM detector. o - • ·0 2 DIN DATA INPUT MFM data pulses from the external Data Separator are con- w nected on this line. 4 ClKIN CLOCK INPUT MFM clock pulses from the external Data Separator are con- nected on this line. 5 DOUT DATA OUTPUT Data Output from the internal Data Shift register, synchronized with DClK. 6,7,13,17 NC No Connection To be left open by the user. 8 TEST 1 TEST 1 To be left open by the user. 11 TEST 2 TEST 2 9 ENDET ENABLE A logic 1 on this line enables the detection logic to search DETECTION or a data A 116 and clock. 10 Vss Vss Ground .. 12 DClK DATA CLOCK Clock output that is synchronized with DATA OUT (Pin 5). 14 QOUT LATCH OUTPUT Signal output from the uncommitted latch. 15 AMDET ADDRESS MARK Complimentary Address Mark Detector output. These Signals will DETECT go active when a Data = A116 Clock = OA 16 pattern is detected 16 AMDET ADDRESS MARK in the data stream. DETECT 18 CP CLOCK PULSE A low-to-high transition on this line will cause the QOUT (Pin 14) to be latched at a logic O. 19 RST RESET A logic 0 on this line will cause the QOUT (Pin 14) signal to be set at a logic 1. 20 Vcc Vcc + 5V ± 10% power supply input. DEVICE DESCRIPTION Prior to shifting data through the device, the internal When an AM is detected, DClK will begin to toggle. logic must be initialized. While the ENDET (Pin 9) line Data present on the DOUT line may then be clocked is at a logic 0, shifting of data will be inhibited and into an external serial/parallel converter. DClK will AMDET, AMDET, ClK, and DATA OUT will remain remain inactive when ENDET is held at a logic O. inactive. An uncommitted edge-triggered flip / flop has been When ENDET is at a logic 1, shifting is enabled. NRZ provided to facilitate the detection of high frequency data is entered on the DIN line (Pin 2) and shifted by the data separator, but may be used for any pur- on the high-to-Iow transition of RClK (Pin 1). NRZ pose. The low-to-high transition of CP (Pin 18) will set clocks are entered on the ClK IN line, and shifted the QOUT (Pin 14) to a logic o. QOUT may be reset on the high-to-Iow transition of RClK (Pin 3). The back to a logic 1 by a low level on the RST line DOUT line (Pin 5) is tied to the last stage of the (Pin 19). internal Data Shift register and will reflect informa- TEST 1 and TEST 2 are output lines. TEST 1 is an tion clocked into the DIN line delayed by 8 bits. active low pulse when an A 116 is detected, and While each bit is being shifted, a 16 bit comparator is TEST 2 is active low pulse when a OA16 is de- continuously checking the parallel contents of the tected. These signals are used for test points and shift registers for the DATA = A1 16 , ClK = OA 16 pat- therefore should be left open by the user if not tern. When this pattern is detected, AMDET will be required. set to a logic 0 and AMDET will be set to a logic 1. AMDET and AMDET will remain latched until the de- vice is reinitialized by forcing ENDET to a logic O. 3-76 Winchester Disk Controller Devices SPECIFICA TIONS STORAGE TEMPERATURE ABSOLUTE MAXIMUM RATINGS PLASTIC .................... -55°C to + 125°C :E c ..... Ambient Temperature under CERAMiC ................... -55°C to + 150°C ..... bias ............ 0oC (32°F) to 50°C (122°F) o NOTE: Maximum ratings indicate operation where o Voltage on any pin with permanent device damage may occur. iCon- o• respect to Vss .................. -0.2 to + 7.0V CAl tinuous operations at these limits is not Power Dissipation ...................... 1 Watt intended and should be limited to those con- ditions specified in the DC electrical characteristics. DC Electrical Characteristics TA = OoC (32°F) to 50°C (12~F), Vcc = + 5V ± 10%, Vss = OV SYMBOL PARAMETER MIN TYP MAX UNIT CONDITION VIL Input Low Voltage -0.2 0.7 V VIH Input High Voltage 2.0 V VOL Output Low Voltage 0.4 V 10L = 3.2 rnA VOH Output High Voltage 2.4 V 10H = -200 A Vcc Supply Voltage 4.5 5.0 5.5 V Icc Supply Current 125 rnA All Outputs Open IIH Current Input High 10 uA VIN =.4 to Vcc IlL Current Input Low 10 uA Vw = .4 to Vcc AC Electrical Characteristics TA = OOC (32°F) to 50°C (122°F), Vcc = + 5V ± 10%, Vss = OV SYMBOL PARAMETER MIN TYP MAX UNIT CONDITION f RC RCLK FREQUENCY 5.25 MHz tST Data, CLKIN, RCLK Setup Time 40 nsec tHT Data, ClKIN, RCLK Hold Time 40 nsec tRD ~ RCLK to t DCLK 140 nsec tEM ENDET set to AMDET, DOUT, 100 nsec DCLK tRA ~ RCLK to t AMDET 115 nsec tRM ~ RCLK to ~ AMDET 125 nsec t RO ~ RCLK to DOUT 135 nsec tEA t ENDET to AMDET, DOUT, DCLK 190 nsec t RO ~ RST to t QOUT 110 nsec tRW Pulse width of RST 50 nsec tcw CP Pulse width 90 nsec tco t CP to ~ QOUT 120 nsec NOTE: 1. Typical Values are for TA = 25°C and Vcc = +5V. Winchester Disk Controller Devices 3-77 ~---------------------------------4S~ , , I --,, --tRD :-tEM , ,,, , ________________ "I' ~:I , Ir.--------~----- :LiJ , I I ~~~'--------------------------'I: I'~:~----~----- : L-'--..J I -- tEA : tRM : : : : ::tRA:' : r----- ~iL--------r---~S~ i -'I~ r-----7----4S~: -----------------------------.tR~£_~~I~~~startofA' I i !~ , , Figure 3.'WD1100·03 Functional Timing 3-78 Winchester Disk Controller Devices WESTERN DIGITAL c o R .P o R A T o N WD1100-04 CRC Generator/Checker DESCRIPTION FEATURES The WD110004 CRC Generator / Checker is designed • GENERATES / CHECKS CRC to generate a Cyclic Redundancy Checkword from a • SINGLE + 5V SUPPLY serial data stream, and to check a data stream • LATCH ED ERROR OUTPUTS 16 against a known CRC word. Complimentary latched • X + X12 + X 5 1(CCITT-16) "CRCOK" outputs are provided to indicate CRC errors • AUTOMATIC RESET in check mode. Additional logic has been included • 20 PIN DIP PACKAGE to shift the CRC checkword out of the device by signals generated on other WD1100 family devices. The WD1100-04 is fabricated in NMOS silicon gate technology and is available in a 20 pin dual-in-line package. Figure 1. Figure 2. WD1100·04 Pin Connections WD1100·04 Block Diagram Winchester Disk Controller Devices 3-79 PIN :ec NUMBER SYMBOL NAME FUNCTION ...... ...... 1 DIN DATA INPUT Active low serial input data stream is used to o generate/check the 2 byte CRC word. oI o 2 DOCK DATA OR CRC After a byte of data has been transfel'jed in, this ~ WORD CLOCK input signal is used to latch the state of DOCE in an internal D flop with a high to low transition. 3 SHFCLK SHIFT CLOCK The falling edge shifts data bits into the CRC generator/checker. It also transfers the CRC check word to DOUT in the write mode (DDCE = LOW). The rising edge also activates the CRCOK lines in the read mode when no error is found. I 4,5 N.C. NO CONNECTION 6 CWE CHECK WORD This active low output indicates that the CRC ENABLE checkword is being output on the DOUT line. When CWE is high, data is being output on DOUT. 7 DOCE DATA OR CRC Initially, this input line is held high to direct input ENABLE data (pin 1) to the output data (pin 11). After the next to the last BYTE is transmitted but before the last BYTE occurs DOCE must be low to direct the 2 CRC check bytes to DOUT (pin 11). DOCE must be maintained low for a minimum of 2 byte times. DOCE is used only in the write mode. a CRCIZ CYCLIC When this line is at a logic 0, the SKPCLK output REDUNDANCY line is held high and the CRC generator is held CHECK INITIALIZE preset to hex "FFFF." 9 N.C. NO CONNECTION 10 Vss GROUND GROUND. 11 DOUT DATA OUTPUT In the write mode, this line outputs the unmodified data stream along with the 2 byte CRC word appended to the end of the stream. 12 SKPCLK SKIP CLOCK The first hieh-to-IOW transition on DIN c!fin 1) re- sets SKPC K low and enables the CR to either generate or check the CRC word. 13 CRCOK CYCLIC In the read mode, after the 2 byte CRC word is REDUNDANCY entered on DIN and no error has been detected, CHECK OKAY this line is set high to indicate no errors have occurred. This line will then remain high as long as DIN is maintained high. 14 WCLK WRITE CLOCK This input clock is divided by 16 to produce TIMCLK (pin 15) and has no effect on the rest of the internal circuitry. 15 TIMCLK TIMING CLOCK See WCLK (pin 14). 16 CRCOK CYCLIC Complementary output version of CRCOK (pin 13). REDUNDANCY CHECK OKAY 17-19 N.C. NO CONNECTION 20 Vcc Power Supply +5v ± 10% power supply. 3-80 Winchester Disk Controller Devices DEVICE DESCRIPTION mode of operation. At the end of the data stream, if Prior to shifting data through the device (either in the no errors were detected the CRCOK (pin 13) is set high. Accordingly the complimentary output (pin 16) :ec read or write modes) the CRC generator/checker is is set low. These output states will be maintained as -.I. -.I. initialized by strobing the CRCll (pin 8) low. This long as DIN is held high and CRCll (pin 8) is not o forces the SKPCLK (pin 12) line to the high state. The strobed. If the CRCOK lines do not become active, oI first low going transition on DIN (pin 1), namely the an error has been detected and a retry is in order. If 0- successive re-tries fail, an error flag may be set to ..a:::.. most significant bit of an address mark, resets the SKPCLK line. The WD1100-04 has now been properly determine a further course of action as desired by initialized and is ready to generate/check the CRC the user. bytes. The CRCOK and CRCOK lines should be set WCLK is divided by 16 to produce TIMCLK which may to their inactive states. be used as a buffered step clock for SA1000 compati- ble drives. In the write mode, initially the DOCE (pin 7) is held SPECIFICATIONS high and pseudo DOCK is produced by supplying a string of zeros before the address mark. This ensures ABSOLUTE MAXIMUM RATINGS the proper state of the internal D flip flop to gate input Ambient Temperature under data to the output line DOUT (pin -11). As shown in Bias ............ 0oC (32°F) to 50°C (122°F) the block diagram the CWE (pin 6) will be set high. Voltage on any pin Sometime between the next to the last and the last with respect to Vss ............. -0.2V to + 7.0V DOCK that indicates the end of the data stream, Power Dissipation ...................... 1 Watt DOCE (pin 7) is lowered to ensure the smooth transi- STORAGE TEMPERATURE tion of the 2 byte CRC checkword to the output line PLASTIC ..... -55°C (-67°F) to + 125°C (257°F) DOUT (pin 11). CERAMIC .... -55°C (-67°F) to + 150°C (302°F) DOCE must be maintained low for a minimum of 2 NOTE: Maximum ratings indicate operation where byte times. After the CRC word is generated, DOUT permanent device damage may occur. Con- will produce a string of zeroes (Le., held high). This tinuous operations at these limits is not portion of the circuitry is dormant in the read mode. intended and should be limited to those con- After proper initialization, input data is entered on DIN ditions specified in the DC electrical (pin 1) along with the 2 byte CRC word for the read characteristics. DC Electrical Characteristics TA = OoC (32°F) to 50°C (122°F); Vce = +5V ± 10%, Vss = OV SYMBOL PARAMETER MIN TYP1 MAX UNIT CONDITIONS VIL Input Low Voltage -0.2 0.8 V VIH Input High Voltage 2.0 V VOL Output Low Voltage 0.4 V 10L = 3.2 rnA VOH Output High Voltage 2.4 V IOH = -200J.LA Vee Supply Voltage 4.5 5.0 5.5 V Icc Supply Current 125 rnA All Outputs Open IIH Current Input High <10 uA VIN = .4 to Vee IlL Current Input Low <10 uA VIN = .4 to Vee AC Electrical Characteristics TA = OoC (32°F) to 50°C (122°F); Vee = 5V ± 10%, Vss = OV SYMBOL PARAMETER MIN_ TYP1 MAX. UNITS CONDITION twr t WCLK to ! TIMCLK 140 nsec tzs CRCll ! to t SKPCLK 120 nsee tZK CRCll pulse width 90 nsec t BS DOCE set up time w.r.t. 20 nsec ! DOCK tBH DOCE hold time w.r.t. 40 nsec ! DOCK too DIN to DOUT delay 105 nsee CWE set high Winchester Disk Controller Devices 3-81 SYMBOL PARAMETER MIN. TYP1 MAX. UNITS CONDITION =E c-" tOK ~ DIN to ~ SKPCLK 120 nsec -" tow DIN P.W. to reset SKPCLK 50 nsec o 120 o tiC ~ DOCK to t CWE nsec o• tso SHFCLK to DOUT 150 nsec ~ 120 tac ~DOCK to tCWE nsec fsc SHFCLK frequency 5.25 MHz tSR t SHFCLK to t CRCOK 85 nsec tsc tSHFCLK to ~ CRCOK 90 nsec tiN ~ DOCK to ~ DIN 90 nsec NOTE: 1. Typical Values are for TA +5.0V - : fsc:- ___ I SHFCLK -; :....!oo -: !___t IN i ~r------------------------~~ n = last data byte :·---------leH-------- les--:: DaCE -------'--------------------------1,IRemains low-';:"2 !;te times , , -I lI~tlC , il tSD _ ' ' - : - , - - - - - - - - - - - - - - - --------------:-.-CRC bytes CRCOK ----------------------------------------~, CRCaK Isc_: , - ii __________ ~ ",d mod, L I Figure 3. WD1100-04 Write Mode Figure 4. WD1100-04 Initialize 3-82 Winchester Disk Controller Devices WESTERN DIGITAL c o R p o R A T o N =E c ...... WD110o-05 Parallel/Serial Converter ...... o oI o 01 DESCRIPTION FEATURES The WD1100-05 Parallel/Serial Converter allows the • SINGLE + 5V SUPPLY user to convert a byte of data to a serial stream when • DOUBLE BUFFERING writing to a disk or any serial device. Parallel data is • BYTE STROBE OUTPUTS entered via the DO-D7 lines on the rising edge of • 5 M BITS/SEC SHIFT RATE DCLK. A synchronous BYTE counter is used to sig- • TRI-STATE OUTPUT CONTROL nify that a-bits of data have been shifted out and that • PARALLEL IN/SERIAL OUT the a-bit latch is ready to be reloaded. The double • 20 PIN DIP PACKAGE buffering of the data permits another byte to be loaded while the previous byte is in the process of being shifted. DO "cc 01 EN The WD11()(}()5 is implemented in NMOS silicon gate 02 NC technology and is available in a 20-pin plastic or ceramic dual-in-line package. 03 TEST 04 BOONE 05 OOUT 06 SHFCLK 07 CD SHFCLK WCLK "ss OCLK Figure 1. WD1100-0S Pin Connections /8 00-07 ,/8 0 8BfT Q I /8 0 Q~~j:>--. OOUT LATCH I C 8 BfT SHIFT REG C I 1---+ SHFCLK +5V 1 P--+- SHFCLK Lo +Lo R BYTE C COUNTER a C a p--. BOONE LO -rn~ Y 'i -~ iJ5 Figure 2. WD1100-0S Block Diagram Winchester Disk Controller Devices .'3-83 PIN NUMBER SYMBOL NAME FUNCTION ~ 1-8 00-07 DATA O-DATA 7 8-bit parallel data inputs (bit 7 = MSB). c ..... ..... 9 SHFCLK SHIFT CLOCK Inverted copy of WCLK (pin 12) which is active when o ENABLE (pin 19) is at a logic O. oI o 10 Vss GROUND GROUND. 01 11 DCLK DATA CLOCK Active low input signal resets the BOONE (pin 16) latch. The low-to-high (trailing edge) clocks the input data into the internal 8-bit latch. 12 WCLK WRITE CLOCK The high-to-Iow (~) edge of this clock signal is used to shift the data out serially. The low-to-high (t) edge is used to update the internal byte counter (module 8). - 13 LD LOAD This active low signal indicates that the Byte Counter is being preset to 1. Normally left open by the user. 14 SHFCLK SHIFT CLOCK Delayed copy of WCLK (pin 12) which is active when EN (pin 19) is at a logic O. 15 DOUT DATA OUT Serial data output enabled by EN (pin 19). 16 BOONE BYTE DONE This output signal is forced to a logic 1 whenever 8 bits of data have been shifted out. BOONE remains in this state unless reset by the loading of another byte of data. 17 TEST TEST INPUT This pin must be left open by the user. 18 NC No Connection 19 EN ENABLE This active low Signal enables DOUT, SHFCLK, SHFCLK, and BOONE outputs. When high, these output signals are in a high impedance state. 20 Vcc Vcc + 5 ± 10% power supply input. DEVICE DESCRIPTION transmitted is the same as the previous byte. Prior to loading the WD1100-05, it is recommended Four signals, BOONE, DOUT, SHFCLK, and SHFCLK, that OOH (or FF) be loaded into the inru!t buffers to can be placed in a high impedance..§1ate by setting ensure that DOUT is at a fixed level. EN (pin 19) is EN (pin 19) to a logic 1. Likewise, EN must be at a set to a logic 0 to enable the device outputs. logiC 0 in order for these signals to drive any exter- Data is entered on the 00-07 input lines and is nal device. strobed into the data latches on the rising edge of The TEST pin is internIDlY OR'ed with the counter DCLK (pin 11). DCLK also resets BOONE (pin 16). output to produce the LD (pin 13) signal. This is The first BOONE that comes up simply means that used to inhibit the bit counter by external means for the WD110005 is ready to accept another byte of data test purposes. It is recommended that TEST be and that the previous byte entered is in the process left open by the user. An internal pull-up resistor is of being shifted out. If the BOONE is serviced prior tied to this pin to satisfy the appropriate logic level to every 8th WRITE CLOCK pulse the output data will required for proper device operation. represent a contiguous block of the bytes entered. SPECIFICATIONS Due to the asynchronous nature of the WD1100-05, the input data will be available in serial form at the ABSOLUTE MAXIMUM RATINGS output anywhere from 8 to 16 write clock cycles later. Ambient Temperature Data is shifted out on the high-to-Iow (~) transition of under Bias ......... OOC (32°F) to 50°C (122°F) the WCLK (pin 12). The low-to-high (t) transition of Voltage on any pin WCLK increments a byte counter which in turn sets with respect to Vss ............ -0.2V to + 7.0V the BOON E signal high after 8 bits of data have been Power Dissipation ........................ 1 Watt shifted out. The low-to-high transition of BOONE also STORAGE TEMPERATURE causes the loading of the data buffer into the shift PLASTIC ........ -55°C (-67°F) to + 125°C (257°F) register. The data buffer is now ready to be reloaded CERAMICS ...... -55°C (-67°F) to + 150°C (302°F) with the next byte. NOTE: Maximum ratings indicate operation where per- The loading of the next byte automatically clears the manent device damage may occur. Continuous opera- BOONE Signal. The entire process as outlined above tion at these limits is not intended and should be limited is repeated. BOONE always needs to .be serviced to those conditions specified in the DC electrical within 8 WCLK cycles unless the next byte to be characteristics. 3-84 Winchester Disk Controller Devices DC Electrical Characteristics: TA = OOC (32°F) to 50°C (122°F), Vcc = ± 5V ± 10%, Vss = OV SYMBOL PARAMETER MIN TYP1 MAX UNIT CONDITION :ec VIL Input Low Voltage -0.2 0.8 V -I. -I. VIH Input High Voltage 2.0 V o VOL Output Low Voltage 0.4 V 10L = 3.2 mA oI VOH Output High Voltage 2.4 V 10H = 200 IlA o CJ1 Vce Supply Voltage 4.5 5.0 5.5 V lee Supply Current 125 mA All Ouputs Open IIH Current Input High <10 IlA VIN = .4 to Vee IlL Current Input Low <10 IlA VIN = .4 to Vee AC Electrical Characteristics: TA = OOC (32°F) to 50°C (12~F); Vee = + 5 ± 10% Vss = OV SYMBOL PARAMETER MIN TYP1 MAX UNIT CONDITION WC WCLK frequency 5.25 MHZ 50% duty cycle tow OCLK pulse width 50 nsec tos Data set-up w.r.t. t OCLK 30 nsec tOH Data hold time w.r.t. t OCLK 50 nsec tOB ! OCLK to ! BOONE 160 nsec EN =0 too ! WCLK to OOUT 130 nsec EN =0 tSH ! WCLK to ! SH FCLK 75 nsec EN =0 tHS t WCLK to t SH FCLK 70 nsec EN =0 tWB t WCLK to t BOONE 180 nsec EN =0 tES ! EN to BOONE, OOUT 90 nsec SH FCLK ACTIVE tCL t WCLK to! LO 150 nsec NOTES: 1. Typical Values are for TA = 25°C (77°F) and Vee = + 5.0V __I l--!.DW ------~LJ~'----~----------~LJ LJ tD~:~DH : ~_ _ _ _ _ , I I ' 07-00 '--------tD- S- : ~ ~~------~-------------~ I tws : 1 I r-----..-----'-'-If-- BONE ~ ~ ~I ____~~ I 1 ~ ____~----~l~ri------------~~____ -I 1-- I 1: teL...., ~ -1 ~s, II 1 'IW-J1 LJ ---1 :, __ : :.-!DO ;I~~,------------~I~I------------------~----------------------------- r' 1 : DOUT INVALID DATA I 1 tSH --, !-- -- I, t HS : I 1-- S H FC L K "----_-LJ-I SHFELK '----_.L..J Figure 3. WD1100-05 Functional Timing Diagram Winchester Disk Controller Devices 3-85 3-86 Winchester Disk Controller Devices WESTERN DIGITAL c o R P 0 R A T o N :E c WD1100-06 ECC/CRC Logic ~ ~ o o o• FEATURES C') • 32-BIT COMPUTER SELECTED POLYNOMIAL • DATA TRANSFER RATES TO 5.25 M BITS/SEC • SINGLE BURST CORRECTION TO 8 BITS • SERIAL CHECK/SYNDROME BIT PROCESSING • MULTIPLE BURST DETECTION • 128,256,512 BYTE SECTOR SIZES • PROGRAMMABLE CORRECTION/DETECTION SPAN· SINGLE + 5V SUPPLY • CRC OR ECC SOFlWARE SELECTABLE • TTL, MOS COMPATIBLE • 20 PIN DIP PACKAGE DESCRIPTION The WD1100-06 ECG/GRG logic chip gives the user detection. The computer selected polynomial has of the WD1100 series of chips easy EGG or GRG been optimized for Winchester 5 1/4" and 8" drives implementation. With proper software, it will provide with sector sizes up to 512 bytes. single burst correction up to 8 bits and double burst SEL.---------------------------~ ECCIZ .----------------------, DCSS __-------------~ R/W .....- - - - . RCP MUX CONTROL R/W 20 vCC DOUT RCP 19 WBS WCP EDOUT WOP RBS RDAT CSE RDAT 4 DCSS WDAT BS WDAT EDOUT RBS ECCEN SEL 6 DOUT ECCIZ FBD WBS FBD NC 8 CSE ECCEN 9 Em RWCP vss 11 RWCP S SHIFT REGISTER DO 031 Figure 1. Figure 2. WD1100-06 CONNECTIONS WD1100-06 BLOCK DIAGRAM Winchester Disk Controller Devices 3-87 WD1100-06 ECC/CRC DEVICE PIN DESCRIPTION :E PIN c...... NUMBER PIN NAME SYMBOL FUNCTION ...... o 1 READjWRITE RjW Input line used to select the data, clock and CRC/ECC o o• strobe during read/write operations. When low input 0) signals WDAT, WCP, and WBS are selected. When high input signals RDAT, RCP, and RBS are selected. 2 READ CLOCK RCP Input pulse used by the internal shift registers to PULSE compute the 4 syndrome bytes. 3 WRITE CLOCK WCP Input pulse used by the internal shift registers to PULSE compute the 4 check bytes. 4 READ DATA RDAT Serial data input during a read operation. 5 WRITE DATA WDAT Serial data input during a write operation. 6 SELECT SEL This input is used to select either the CRC or the ECC polynomial for error detection/correction. SEL = 0 ECC polynomial selected. SEL = 1 CRC polynomial selected. 7 ECC INITIALIZE ECCIZ Input used to preset all the internal shift registers. Out- put lines FBD, EDOUT, DOUT, and CSE will be in their inactive high states. The first low going edge of either RDAT or WDAT signals the activation of all internal circuitry. 8 NO CONNECTION N/C No connection. 9 ECC ENABLE ECCEN When low, the ECC/CRC process is enabled. When high, this output Signal indicates that the process is disabled. 10 GROUND vSS Ground. 11 READLWRITE RWCP Output clock pulse during read or write operations. The CLOCK PULSE input clock pulses RCP and WCP are multiplexed on this output line for use by any support logic. ' 12 BYTE SYNC BS The input signals RBS and WBS are gated with the appropriate clocks and multiplexed as an output on the byte sync line. Normally not used by the user. 13 CLOCK SELECT CSE When high, this output indicates that the device is in ENABLE the process of computing the check/syndrome bytes and that EDOUT and DOUT lines contain data information. When low, the device puts CRC or ECC check/syndrome bits on the output data lines. 14 FEEDBACK FBD The feedback line to the shift registers is brought out as an output line for test purposes. Normally left open by the user. 15 DATA OUTPUT DOUT Output data line carries data or CRC/ECC information depending upon the state of DCSS. 16 EARLY DATA EDOUT Unlatched output data line available 1 clock period earlier than DOUT. 3-88 Winchester Disk Controller Devices WD1100-06 ECC/CRC PIN DESCRIPTION (CONTINUED) :E PIN NUMBER PIN NAME SYMBOL FUNCTION ...c... 17 DATA/CHECK SYNDROME SELECT DCSS Data or check/syndrome select input line. When high, data Is output on the data lines; when low, CRC or check syndrome bits are output depending upon which o o o . 0) polynomial selected. DCSS goes low sometime between the last and the next to the last data byte transferred to/from the disk provided all set-up and hold-times have been met. DCSS must stay low for at least 2-byte times when the CRC polynomial selected and it must stay low for at least 4 byte times if the ECC polynomial Is selected. 18 READ BYTE - - RBS Input used to latch the state of DCSS during the read mode. 19 WRITE BYTE WBS Input used to latch the state of DCSS during the write mode. 20 +5V vcc +5V±10% DEVICE DESCRIPTION of the ID field only a CRC check should be performed over this field. No attempt ought to be made to cor- To ensure correct operation of the WD11()(}()6 device, rect data in the ID field. The CRC polynomial the ECCIZ line is strobed to preset the polynomial implemented is the standard CCITT (X16 + X12 + X5 generator shift register, and reset the Data/Check- + 1.) Although either polynomial may be used for Syndrome select flip-flop. The 32-bit shift register both fields, the use of the CRC polynomial for the ID string is preset to avoid all zero check bytes. The fields is recommended since it only requires 2 bytes DCSS line is held high and appropriate Signals are instead of 4. then applied to the rest of the inputs. Since most disk media use an Address mark of A1 (or M.S.B. set), POLYNOMIAL SELECTION advantage is taken of this feature to start off the ECC/CRC calculation on the data/ID fields For disk media, polynomial selection has a signifi- automatically. The first active low going edge on the cant influence on data accuracy. Fire code input data lines releases the internal SET Flip-Flop. polynomials have been widely used on OEM disk con- The ECCEN output line is set low indicating that the trollers, but provide less accuracy than properly internal circuitry is ready to begin the computation selected computer generated codes. of the ECC/CRC bytes. Immediately following the Address mark, data is supplied in a serial fashion. For fixed, guaranteed correction and detection spans, data accuracy may be highly dependent on Sometime before the last byte of data and after the polynomial selection. Some polynomials, fire codes next to the last byte of data is transferred through for example, are particularly susceptible to miscor- this device, the DCSS line is set low. Since data is rection on common disk type errors, while others, generally serialized/deserialized before/after process- computer generated polynomials for example, can be ing by the WD1100-06 device, the byte-sync pulses selected to be less susceptible. Computer generated can be easily obtained from those devices marking codes do not have the pattern sensitivity of the fire the byte boundaries. The byte-sync pulses are inter- code and the miscorrection patterns are more ran- nally ANDED with the RWCP line to ensure dom in nature. the smooth transition of checks/syndrome bytes on the DOUT output line only after the last bit of data More than 20,000 computer generated random has been entered into the device. A one bit time delay polynomials of degree 32, each with 8 feedback terms, through a D Flip-Flop has been added on the DOUT were evaluated in order to find the polynomial line to deglitch this output line. described in this specification. During a WRITE operation, the inRut data stream is SELECTING THE CORRECTION SPAN divided by the polynomial X 32 + X28 + X26 + X19 + The code described in this document can be used to X17 + X10 + X~ + 1 and the 32-bit remainder correct up to a-bits. obtained is used as the 4 check syndrome bytes. If the syndrome is zero, no errors occurred. Otherwise, Any correction span from 1 to 8 may be selected. the non-zero syndrome is used by a software However, for best data accuracy, the lowest correc- algorithm to compute the displacement and the error tion span should be used that meets the correction vector within the bad sector. To protect the integrity requirements for the disk drives supported. Winchester Disk Controller Devices 3-89 For most Winchester media, a 5-bit correction span SOFTWARE REQUIREMENTS is adequate. =E The software algorithm, developed by the user, uses c ..... The correction span may have to be longer if the drive the syndrome to detect an error, generate a correc- ..... uses a read/write modulation method that maps a tion pattern and a displacement vector or to deter- o oI single media bit in error into several decoded bits in mine if uncorrectable. In the correction algorithm, a o error. Examples of read/write modulation methods of simulated shift register is used to implement the en this type would be GCR and 2,7 code. reciprocal polynomial. The simulated shift register is loaded with the syndrome and shifted until a correc- PROPERTIES OF THE POLYNOMIAL table pattern is found or the error is determined to The following polynomial was computer selected for be uncorrectable. Both forward and reverse insensitivity to short double bursts, good detection displacements are computed. span and 8 feedback terms. Either the serial or the parallel algorithm may be Forward polynomial is: implemented by the user. In almost all cases the X32 + X28 + X26 + X19 + X17 + X10 + X6 + X2 + serial software algorithm is the most applicable. Addi- O. tionally, 1K of table space is required if the parallel software algorithm is selected. It is assumed that the Reciprocal polynomial is: highest order bit of a byte is serialized and X32 + X30 + X26 + X22 + X15 + X13 + X6 + X4 + deserialized first. Xc. CORRECTION TIME PERFORMANCE Properties * All real time operations are performed with error cor- 1. Maximum record length (r) = 526x8-bits (in- rection hardware. The software algorithms used get cluding check bits) involved only after an error has been detected. 2. Maximum correction span (b) = 8-bits 3. Degree of polynomial (m) = 32 The following correction times are for a serial type 4. Single burst detection span without correction = algorithm such as that used on the WD1001: 32 bits.(Detection span when the code is used for a) Standard microprocessor = 30 to 60 milliseconds detection only) b) Bit slice = 6 to 12 milliseconds 5. Single burst detection span with correction (d) - c) 8X300 (used on WD1001) = 15 to 30 milliseconds (Detection span when the code is used for correction) DATA ACCURACY = 19 bits for b = 5 and r =526x8 ERP (Error Recovery Procedure) strategies have a = 14 bits for b = 8 and r =526x8 significant influence on data accuracy. An ERP = 20 bits for b = 5 and r =270x8 strategy requires data to be re-read before applying = 14 bits for b = 8 and r + 270x8 correction and results in much better data accuracy. 6. Double burst detection span without correction - The WD1001 employs such a strategy. This strategy (Double burst detection span when code is used reduces the possibility of passing undetected for correction) erroneous data by rereading until the error goes away, = 3 bits for b = 5 and r = 526x8 or until there has been a consistant error syndrome = 2 bits for b = 8 and r = 526x8 over two previous rereads. = 4 bits for b = 5 and r = 270x8 = 2 bits for b = 8 and r = 270x8 Another technique that can be used to give data a 7. Non-detection probability = 2.3E-10. higher probability of recovery is write check: read back 8. Miscorrection probability - after write. Since write check affects performance, it = 1.57 E-5 for b =5 and r = 526x8 should be optional. Alternate sector assignment and = 1.25 E-4 for b =8 and r = 526x8 defect skipping are some of the other techniques that = 8.00 E-6 for b =5 and r = 270x8 may be implemented by the user if so desired. = 6.40 E-5 for b =8 and r = 270x8 NOTE:* You should not use this polynomial for a record length of correction span beyond the maximum specific above. 3-90 Winchester Disk Controller Devices SELF-CHECKING WITH MICROCODE 3. WRITELONG: Write the data and check bytes sup- plied by the Host to the disk. Prevent WD1100-06 Periodic microcode and/or software checking is from generating check bits by not asserting DCSS =E c..... another approach that can be used to limit the during transfer. No check bytes will be recorded. ..... amount of undetected erroneous data transferred in o case of an ECC circuit failure. Microcode or software 4. READ: Read data and generate the syndrome in oI diagnostics could be run on subsystem power up and a normal manner. The software algorithm can now o 0') during idle times. These diagnostics would force ECC be invoked to correct the induced error. errors and check for the proper syndrome and pro- per decoding of the syndrome by the correction To aid in detection of certain hardware failures, it is routine· of the operational microcode. desirable to have non-zero check bytes for an all zeros record. This feature has been incorporated into the To do this, simply use a long bit in the READ and circuit defined in this specification. WRITE commands to the disk. This bit can then be used to suppress the transfer of check/syndrome bytes on the output data line by letting the DCSS line stay high during ECC TIME. The complete procedure Ambient Temperature under Bias .... OoC (32°F) to is summarized below. 50°C (122°F) Voltage on any pin with 1. WRITE: Pass all data to the disk and generate 4 respect to Vss ............... -O.2V to + 7.0V check bytes at the end of the data field. Power Dissipation ...................... 1 Watt Storage Temperature 2. READ LONG: Do not generate the syndrome, Plastic ...' .... -550 C (-67°F) to + 125°C (257°F) instead copy the 4 check bytes as data and pass Ceramic ...... -55°C (-67°F) to + 150°C (302°F) them unaltered to the Host. Now the Host may induce errors anywhere in the data stream as long as the induced error does not exceed the correc- tion span of the polynomial generator. Winchester Disk Controller Devices 3-91 SPECIFICATIONS NOTE: :ec ABSOLUTE MAXIMUM RATINGS Maximum ratings indicate operation where perma- nent device damage may occur. Continuous opera- ...... Ambient Temperature under Bias .... OOC (3~F) to tions at these limits is not intended and should be ...... limited to those conditions specified in the DC o 50°C (122°F) o Voltage on any pin with operating characteristics. I o respect to Vss ............... -0.2V to + 7.0V 0') Power Dissipation ...................... 1 Watt Storage Temperature Plastic ....... -55°C (-67°F) to + 125°C (257°F) Ceramic ...... -55°C (-67°F) to + 150°C (302°F) DC Operating Characteristics TA = OOC (32°F)to 50°C (122°F), Vcc = +5V ± 10%, Vss = OV SYMBOL PARAMETER MIN TYP1 MAX UNIT CONDITIONS V,L Input Low Voltage -0.2 0.8 V V,H Input High Voltage 2.0 V VOL Output Low Voltage 0.4 V 10L = 3.2 rnA VOH Output High Voltage 2.4 V IOH = -200~A Vcc Supply Voltage 4.5 5.0 5.5 V Ice Supply Current 75 150 rnA All Outputs Open I'H Current Input High <10 uA Y,N =.4 to Vee I,L Current Input Low <10 uA Y,N =.4 to Vee ECCIZ PULSE WIDTH R/W J<_______ H_'G_H_FO_R_R_E_A_D__________L_O_W_F_O_R_W_R_'T_E_________________ ><== ECCIZ~tIZ -.j ~ tiE ECCEN ~~----------~----------------------------------------- RDAT _ _ _ _ _ _---, I WDAT tST ~ ---.~ i I I RCP WCP AC Electrical Characteristics TA = OOC (32°F) to 50°C(122°F), Vee = +5V ± 10%, Vss = OV SYMBOL PARAMETER MIN TYP1 MAX UNIT CONDITIONS fep Clock Frequency 5.25 MHz t,Z ECCIZ Pulse Width 100 nsec tie ECCIZ~ to ECCEN t 100 nsec tST R/WDAT Setup Time 100 1 Clock nsec Period tHT R/WDAT Hold Time 0 nsec 3-92 Winchester Disk Controller Devices WESTERN DIGITAL c o R P 0 R A T o N :E c ..... WD1100-07 Host Interface Logic ..... o o I o FEATURES DESCRIPTION ........ • SINGLE +5V SUPPLY The WD110D-07 Host Interface Logic chip simplifies • WAIT SIGNAL GENERATION the design of a Winchester Hard Disk Controller using the WD1100 chip series. It does this by performing • TIMING CLOCK GENERATION logic functions that would otherwise require con- • INDEX PROPAGATION siderable discrete logic. Additionally, there are signals • CARD ACCESS CONTROL provided for ECC implementation. • COMPLIMENTS ECC ARCHITECTURE The WD110Q-07 is implemented in NMOS silicon gate technology and is available in a 20-pin plastic or • 20 PIN DIP PACKAGE ceramic Dual-in-Line package. ... - -- RD6 ~ ,., WR6 ... - .... CONTROL WAEN ... ... ~ - .... LOGIC - -"'" CSAC Welj - WCl2 RESET VCC WCLK CS CS SACEN - ~ ~ " - 0 SACEN WHEN AMDET TIMCLK RCP RBS WCLK RESET ... ~ ... -;- 16 -u -- """ TIMCLK RCLK AMOUT WR3 : ~ INDEX CSAC A LlNR VSS WAIT LlNDEX INDEX - ~ r-- D ... ". S LATCH R a ... --- LlNDEX - ... RCLK ,. ....I- --...... RSS ... - BYTE COUNTER AND DELAY .... I- --.. ' RCP .- ~ --- AMOUT 9 Figure 1_ Figure 2_ WD110D-07 PIN CONNECTIONS WD1100-07 BLOCK DIAGRAM Winchester Disk Controller Devices 3-93 PIN :E c...... NUMBER PIN NAME SYMBOL FUNCTION ...... 1 WAIT CLEAR 1 WCL1 This input presets a WAIT latch to a non-WAIT condi- o t~on on the falling edge. o o• 2 WAIT CLEAR 2 WCL2 This input presets a WAIT latch to a non-WAIT condi- ....... tion on the falling edge. 3 RESET RESET An input used to set TIMCLK & reset WAIT, AMOUT and RBS. 4 SELECT ADDRESS SACEN This is an input signal that is used to enable card ENABLE select for host access. 5 ADDRESS MARK AMDET An input that must go active when a DATA=A1(HEX) DETECT or clock = OA(H EX) pattern is detected in the data stream. 6 TIMING CLOCK TIMCLK An output used to provide reference timing signals to SA100 type drives. 7 READ CLOCK RCLK This input, the same as used to clock in d~locks to the AM detector, is used to produce AMOUT. 8 INDEX PULSE INDEX This input is provided by the drive once each revolution of the disk. 9 LlNDEX RESET LlNR An input used to reset LlNDEX. 10 GROUND Vss Ground. 11 LATCHED INDEX LlNDEX An output that is INDEX delayed by one clock time. 12 - - WAIT WAIT This output goes true when controller is internally accessing data or has not accepted data from the host during a WRITE. 13 CARD SELECT CSAC An output that is the result of CS qualified with ADDRESS SACEN. 14 ADDRESS MARK AMOUT This output is a delayed version of AMDET. DELAYED OUTPUT 15 READ BYTE STROBE RBS This output strobes once for each byte of READ data. Initialized by AMDET. 16 READ CLOCK PULSE RCP This output is delayed from RCLK through propagation. Not normally used. 17 WAIT ENABLE WAEN An input that is used to enable the internal WAIT circuitry. 18 CARD SELECT CS An input from host that selects controller. 19 WRITE CLOCK WCLK This input is used to produce TIMCLK on low to high transitions. 20 +5VDC Vcc +5V±10%. DEVICE DESCRIPTION or WCL2 depending on whether in a read or write Upon power up or reset, WAIT, AMOUT, and RBS mode. CSAC (pin 13) is enabled by setting SACEN (pin 4) low after WAIT has been enabled. CSAC is are reset and TIMCLK is set. This is the only interac- tive signal between the four sections of the chip. Each reset by WCL1 or WCL2. section will be described separately. Timing Clock Control Logic TIMCLK (pin 6) is a divided by sixteen version of This section provides WAIT (pin 12) and CSAC (pin WCLK (pin 19). It is used with SA1000 type drives. 13). WAIT is set in its active low state when WAEN Index Pulse (pin 17) is active low by the falling edge of CS (pin Lindex (pin 11) is a delayed version of INDEX (pin 18). WAIT is reset by the falling edge of either WCL1 8). It remains high until reset by LlNR (pin 9). 3-94 Winchester Disk Controller Devices Read Byte Sync SPECIFICATIONS RBS (pin 15) will go true on the eighth negative go- ABSOLUTE MAXIMUM RATINGS :E ing transition of RCLK (pin 7) after AMDET (pin 5) c ..... goes true. RBS will remain true for one clock cycle. Ambient Temperature ..... under Bias ........ ooe (32°F) to 50°C (122°F) o o o• Read Clock Pulse Voltage on any pin with respect to Vss .............. -0.2V to + 7.0V ...... RCP (pin 16) is a delayed version of RCLK and is nor- Power Dissipation ...................... 1 Watt mally left open by the user. Storage Temperature Plastic .... -55°C (-67°F) to + 125°C (257°F) Address Mark Delayed Output Ceramic ... -55°C (-67°F) to + 150°C (302°F) AM OUT (pin 14) is the same as AMDET delayed by NOTE: two clock times. Maximum ratings indicate operation where perma- These circuits were developed to work with the other nent device damage may occur. Continuous opera- chips in the WD1100 series. They are used on the tion at these limits is not intended and should be WD1001 the timing relationships must be observed. limited to those conditions specified in the DC elec- trical characteristics. DC Electrical Characteristics TA = O°C (32°F) to 50°C (122°F); Vcc = +5V ± 10%, Vss = OV SYMBOL PARAMETER MIN TYP1 MAX UNIT CONDITIONS VIL Input Low Voltage -0.2 0.8 V V IH Input High Voltage 2.0 V VOL Output Low Voltage 0.4 V 10L = 3.2 rnA VOH Output High Voltage 2.4 V 10H = -200J.lA Vcc Supply Voltage 4.5 5.0 5.5 V Icc Supply Current 125 rnA All Outputs Open IIH Current Input High <10 uA = VIN .4 to Vee IlL Current Input Low <10 uA = VIN .4 to Vce AC Electrical Characteristics TA = O°C (32°F) to 50°C (122°F); Vce = 5V ± 10%; Vss = OV SYMBOL PARAMETER MIN TYP1 MAX UNIT CONDITIONS fwc WCLK FREQUENCY 5.25 MHz tew es~ to WAin 50 160 nsec tws WCLH or WCL2~ to WAiTt 170 195 nsec tsu WAEN Setup Time 50 nsec tsc SACEN~ to CSACt 5 70 nsec WAIT TRUE tcs WCL1~orWCL2~CSAC~ 45 155 nsec WAIT TRUE twr WCLKt to TIMCLKt 250 nsec tu INDEX~ to LlNDEXt 50 100 nsec tLW LlNR~ to LlNDEX~ 30 100 nsec t pc RCLK~ to RCP~ 30 75 nsec tRA AMDET Setup Time 30 50 nsec 2 CLOCK 2 CLOCK CYCLES CYCLES nsec tAM AMDET~ to AMOUn +45 8 CLOCK 8 CLOCK CYCLES CYCLES nsec t BS RCLK~ to RBS~ +165 90 nsec tRB RBS Period 1 CLOCK CYCLE 1NOTE: Typical Values are for TA = 25°C (77°F) and Vcc = + 5V Winchester Disk Controller Devices 3-95 :E c ..... ..... 0 0 WAEN 0 I tsu-+1 ~ """ CS I tcw --.J t+- tws-.i f.- WAIT ----------~~1 __________~1----~1---------------------- : I WCL1orWCL2 U I I I I SACEN I tsc -..:I I 1"4- I tcs -..J :.- I CSAC' WCLK twr-..J I ~ ~ fWC I ~ TIMCLK tu....!I I I~ LlNDEX ~ u I RCP RCLK tRA": J..- " ~i~I----~I~-------------------------------------------------------------- ~tAM~ ! I I ~I--------------------------------------------------------------- l ~:~~-----------------tBs---------------------'·~I~·tRB-1 LJ 3-96 Winchester Disk Controller Devices WESTERN DIGITAL c o R P 0 RAT o N WD1100-09 Data Separator Support Logic GENERAL DESCRIPTION The WD1100-09 is fabricated in NMOS silicon gate technology and is available in a 20 pin plastic or The WD1100-9 Data Separator Support Logic, when ceramic package. used with the other chips in the WD1100 series, greatly reduces the external discrete logic required FEATURES to design a Winchester hard disk data separator. The • SINGLE + 5V SUPPLY chip provides the pump signals to an external error • DRUN GENERATION amplifier, control signals to an internal bus and a • DATA SEPARATION CONTROL SIGNALS special drive selection signal also to an internal bus. • 20 PIN DIP PACKAGE -- - ,. -- ... ,.... ,.. DRIVE SELECTED -- OS - - LOGIC - - .r"I DATA 1 VCC REF 2 RGATE DIN -... "' -- UP -- --- PUMP DIN 3 DMR LOGIC DOWN OSC OSC 4 DRS4 DRS1 5 WRITE I --... HIFRQ 6 DRS3 DRS2 7 OS DMR DRUN 8 WDAT DATA - - - .., DRUN DOUT 9 DOWN RGATE -- DATA SEPARATOR - - ... DOUT VSS 10 UP WDAT WRITE -- ... ,. CONTROL LOGIC - - HIFRQ REF -... Figure 1. Figure 2. WD1100-o9 Pin Connections WD1100-o9 Block Diagram Winchester Disk Controller Devices 3-97 PIN =E NUMBER PIN NAME SYMBOL FUNCTION c ....L ....L 1 READ DATA DATA Input that is used in DRUN generation. o 2 REFERENCE REF An input that is 2 times the data rate that keeps the VCO oI o on center frequency during non-read times. (0 3 DELAYED DATA IN DIN This input is a delayed version of DOUT. An external delay line is used. The signals are compared to provide pumps. 4 OSCILLATOR OSC An input from the external VCO that is used in pump development. 5,7, DRIVE SELECT 1- DRS1- Input signals indicating which drive has been selected. 15,17 DRIVE SELECT 4 DRS4 6 HIGH FREQUENCY HIFRQ Output to controller microprocessor that indicates 16 ones or zeroes have been entered on the DATA line. 8 DATA RUNNING DRUN Output that indicates to the controller microprocessor the completion of 16 ones or zeroes on the data line. Used to switch from REF to DATA via firmware. 9 DATA OUT DOUT Output data line. Can be REF or DATA or WDATA depen- ding on the condition of WRITE, DME and RGATE. 10 GROUND Vss Ground. 11 UP PUMP UP An output that indicates REF is leading DATA. Goes to error amp. Open collector. 12 DOWN PUMP DOWN An output that indicates DATA is leading REF. Goes to error amp. Open collector. 13 WRITE DATA WDATA MFM Write data input. Output appears at DOUT. 14 DRIVE SELECTED DS An output that indicates that one of four drives have been selected. 16 WRITE MODE WRITE This input is active during a write operation and enables WDAT. 18 DATA MASTER DMR This input is used to provide time-out for DRUN and HIFRQ RESET in the event that 16 ones or zeroes are not present. 19 READ GATE RGATE This input, usually provided by the controller microproces- sor, places chip in read mode. 20 +5V DC Vcc +5VDC = 10%. DEVICE DESCRIPTION Data Separator Control Logic The WD1100-09 is divided into three sections. Each Read Mode section will be described separately. In order to prevent the external VCO from locking onto Drive Select Logic a harmonic of its operating frequency, REF (pin 2) is provided with a signal twice the data rate that is DS (pin 14) will go active high if any input DSR1 crystal controlled. With WRITE (pin 6) and RGATE through DRS4 (pins, 5, 7, 15, 17) are active low. (pin 19) inactive, this signal will appear at DOUT (pin Pump Logic 9). This signal is applied to the pump logic (see above). Internal logic causes the UP (pin 11) and the DOWN The switching function is initiated immediately after (pin 12) to be set, initially to their inactive states. DIN RGATE goes true. DMR (pin 18) will be set active as (pin 3) is the delayed data developed by passing DOUT a result of high frequency pulses applied to an exter- through a delay line. OSC (pin 4) is the output of the nal one shot whose pulse width is such that its out- data separator VCO. Whichever reaches the pump put is a single stretched pulse. The high frequency logic first will determine whether UP PUMP or DOWN pulses are applied to the DATA (pin 1) line and after PUMP is produced. These signals are then sent to 16 consecutive pulses, DRUN (pin 8) and HIFRQ an external error amplifier and used for VCO correc- tion. During a write, the DIN must be locked to a crystal oscillator clock and will hold the VCO on frequency. 3-98 Winchester Disk Controller Devices (pin 6) go true. At this point REF is switched out and SPECIFICATIONS the DATA stream is switched in and appears at DOUT. DRUN is reset when RGATE goes inactive and HIFRQ ABSOLUTE MAXIMUM RATINGS :E Ambient Temperature c..... goes inactive when DMR goes inactive. under Bias ......... OOC (32°F) to 50°C (122°F) ..... WRITE MODE o Voltage on any pin with o When WRITE (pin 16) goes active, REF is switched respect to Vss ................ -0.2V to + 7.0V 6 c:o out and WDAT (pin 13) will appear at DOUT. Since Power Dissipation ...................... 1 Watt WDAT is a crystal controlled signal (usually the MFM STORAGE TEMPERATURE write data); the VCO is held locked and will not drift. Plastic ........ -55°C (-67°F) to + 125°C (257°F) Ceramic ....... -55°C (-67°F) to + 150°C (302°F) NOTE: Maximum ratings indicate operation where permanent device damage may occur. Continuous operations at these limits is not intended and shou Id be limited to those conditions specified in the DC Electrical Characteristics. DC Operating Characteristics TA = OOC (32°F) to 50°C (122°F), Vec = + 5V 10%, Vss = OV SYMBOL PARAMETER MIN TYP1 MAX UNIT CONDITION VIL Input Low Voltage -0.2 0.8 V VIH Input High Voltage 2.0 V VOL Output Low Voltage 0.4 V 10L = 3.2mA VOH Output High Voltage 2.4 V 10H = -200J.LA Vcc Supply Voltage 4.5 5.0 5.5 V lee Supply Current 125 rnA All Outputs Open IIH Current Input High <10 J.LA VIN =.4 to Vee IlL Current Input Low <10 J.LA VIN =.4 to Vee NOTE: UP and DOWN are open collector outputs and provide 12mA 10L @ .5V. Winchester Disk Controller Devices 3-99 :E READ MODE C DMR~ -" -" 0 0I ~--~,s p------ 0 (.0 DATA DRUN RGATE~ HIFRQ -----~fS~-------- I ------l.~l~ REF DOUT -.; ~tRE truiIulJl WRITE WRITE MODE DMR DATA DRUN HIFRQ WRITE DOUT AC Electrical Characteristics TA = OOC (32°F) to 50°C (122°F); Vee = 5V ± 10%; Vss = OV SYMBOL PARAMETER MIN TYP1 MAX UNIT CONDITION too DATA to DRUN 170 nsec tOR RGATE to DRUN 90 nsec tHO DMR to HIFRQ 90 nsec 2 TIMES tRE REF frequency DATA RATE 10 MHz 3-100 Winchester Disk Control/er Devices WESTERN DIGITAL G 0 R P 0 R A T o N WD110D-12 Improved MFM Generator DESCRIPTION The WD1100-12 is fabricated in NMOS silicon gate The WD1100-12 Improved MFM Generator converts technology and Is available In a 20-pln plastic or NRZ data into an MFM (Modified Frequency Modu- ceramic dual·ln·line package. lated) data stream. The derived MFM signal contain- ing both clocks and data can then be used to record FEATURES information on a Winchester Disk Drive utilizing this recording technique. In addition to an MFM output, • SINGLE +5V SUPPLY the device generates first level Write Precompensa- • 5M BIT/SEC DATA RATE tion signals for use with inner track densities. A • WRITE PRECOMPENSATION unique feature of the WD11 00-12 is the ability to de- • ADDRESS MARK GENERATION lete a clock pulse in the outgoing MFM stream in order to record Address Marks. RWC ~------------, EARLY NRZ .... ---CI NOM WRITE LATE 4BIT WCLK ....- - - - a PRECOMP SHIFT GEN. REG. WCLK ....- - - - I MFM VCC AD WCLK A1 ~ MR SKPEN ------1 RWC MFM WD1100-12 Figure 2. Block Diagram MFM Generator CS INTRa ORa DRaCLK ....- - - - - - - - - . . . . , EARLY LATE VSS NOM AD A1 CS MR __---------~-~ Figure 1. Figure 3. WD110o-12 Pin Connections WD110o-12 Block Diagram Interrupt Control logic Winchester Disk Controller Devices 3-101 PIN NUMBER SYMBOL NAME FUNCTION 1 - - NRZ NON·RETURN·TO NRZ data input that is strobed into the MFM ZERO generator by WCLK(~). 2 SKPEN SKIP ENABLE This input arms the SKIP logic for recording Address Marks when set to a logic 1. 3 WCLK WRITE CLOCK Complimentary clock inputs. NRZ data is clocked into the MFM Generator on the high· to·low transition of WCLK 4 WCLK WRITE CLOCK (pin 3). 5 RWC REDUCED WRITE This signal when high, enables EARLY, LATE CURRENT and NOM outputs. 9 2XDR 2 TIMES This input is used to latch EARLY, LATE, NOM DATA RATE and M FM outputs. 10 Vss Vss Ground. 11 NOM NOMINAL Output signal from the Write Precompensation Logic used to signify that data is to be written nominal. 12 LATE LATE Output signal from the Write Precompenstion Logic used to signify that data is to be shifted LATE before writing. 13 EARLY EARLY Output signal from the Write Precompensation Logic used to signify that data is to be shifted EARLY before writing 16 MFM MFM DATA This output contains the MFM encoded data derived from the NRZ (pin 1) line. 6 CS CHIP SELECT Low input signal used to enable the Address decode logic. 8 INTCLK INTERRUPT A low on this line will latch the INTRQ (pin 15) REQUEST CLOCK at a logic O. 7 DRQCLK DATA REQUEST A low on this line will latch the DRQ (pin 14) at CLOCK a logic O. 15 INTRQ INTERRUPT This output is latched at a logic 0 when INTCLK REQUEST (pin 8) goesl is low. 14 DRQ DATA REQUEST This output is latched at a logic 0 when DRQCLK (pin 7) goesl is low. - 17 MR MASTER RESET A low level on this line causes DRQ and INTRQ to set at a·logic 1. 18,19 Ao,A1 ADDRESS 0,1 When CS is low and the address lines go high, INTRQ is cleared; if the address lines go low then DRQ gets cleared. (i.e. set at a logic 1). 20 Vcc Vcc + 5V 2 10% power supply input. DEVICE DESCRIPTION Prior to entering data, the SKPEN line must be set The WD1100·12 is divided into two sections: MFM to a logic 0 to enable only clocks in the data stream. Generator and Interrupt Logic. The MFM Generator Data is entered on the NRZ line and strobed on the converts NRZ data into MFM data and provides Write high·to·low transition of WCLK. The encoded NRZ Precompensation signals. The Interrupt Logic is used data appears on the MFM (pin 16) output lagging by specifically on the WD1000 Winchester Controller one clock cycle. Board and may be used in similar designs to generate Interrupt signals. The two sections of the device are Write Precompensation signals EARLY, LATE, and isolated and have no common input or output signals. NOM are generated as each data or clock pulse becomes available at the input when RWC is logic 1.' 3-102 Winchester Disk Controller Devices TO BE SENT :E LAST DATA SENT SENDING NEXT EARLY LATE NOM c ...... X 1 1 0 H L L ...... o X 0 1 1 L H L o .!J.. 0 0 0 1 H L L r\l 1 0 0 0 L H L ANY OTHER PATTERN L L H DEVICE DESCRIPTION (CONTINUED) MR A1 Ao CS DRa INTRa The SKPEN signal is used to record a unique data / clock pattern as an Address Mark, using AI 16 0 X X X H H data with OA 16 clock. This pattern is used for syn- 1 X X 1 aN aN chronization prior to data or ID fields that are read from the disk. 1 0 0 a H aN When the SKPEN signal is set to a logic 1, the inter- 1 1 1 a aN H nal skip logic is enabled. As long as zeroes are being 1 1 0 a aN aN shifted into the NRZ line, the device generates nor- 1 0 1 a aN a mal MFM data. On receipt of the first non-zero bit (typically the MSB of the A1 16 the skip logic begins to count WCLK cycles. When the MFM generator tries X = Don't care to produce a clock between data bits 2 and 3, the skip ON = remains at previous state logic disables the MFM generator during that time. DRO and INTRa can be set to a logic 0 only by a low The result for A1 16 data is a clock pattern of OA 16 level or DROCLK and INTCLK respectively. The signal instead of OE16. Although other data paterns may be will remain at a logic 0 un.!!!.. cleared by a MR or pro- used, the MSB of the pattern must be a 1 (8016 or per address selection via CS, A1 , and A:;. higher) in order to enable the skip logic at the proper time. After the skip logic has performed, it then disables itself and MFM data is recorded normally starting with the succeeding byte. To re-enable the skip logic again, the SKPEN line must be strobed. The Interrupt Logic is used to clear Data Requests (DRa) and Interrupt Requests (INTRa) by selecting CS (pin 6) in combination with Ao and A1• The MR (Master Reset) Signal is used to clear both DRa and INRa Simultaneously. Winchester Disk Controller Devices 3-103 SPECIFICATIONS NOTE: Maximum ratings indicate operation when ABSOLUTE MAXIMUM RATINGS permanent device damage may occur. Con· tinuous operation at these limits is not Ambient Temperature intended and should be limited to those under Bias ......... 0oC (32°F) to 50°C (122°F) conditions specified in the DC Electrical Voltage on any pin Characteristics. with respect to Vss ........... -0.2V to + 7.0V Power Dissipation ...................... 1 Watt STORAGE TEMPERATURE: PLASTIC ..... -55°C (-67°F) to + 125°C (257°F) CERAMIC .... -55°C (-67°F) to + 150°C (302°F) DC Electrical Characteristics TA = OOC (32°F) to 50°C (122°F); Vcc = + 5V ± 10%; Vss = OV SYMBOL PARAMTER MIN TYP1 MAX UNIT CONDITION VIL Input Low Voltage -0.2 0.8 V VIH Input High Voltage 2.0 V VOL Output Low Voltage 0.4 V IOL=3.2mA VOH Output High Voltage 2.4 V 10H = -200JlA Vcc Supply Voltage 4.5 5.0 5.5 V Icc Supply Current 125 rnA All outputs open IIH Current Input High <10 JlA VIN = .4 to Vcc IlL Current Input Low <10 JlA VIN = .4 to Vcc AC Electrical Characteristics TA = OOC (32°F) to 50°C (122°F); Vcc = +5V ± 10%; Vss = OV SYMBOL PARAMTER MIN TYP1 MAX UNIT CONDITION tFR WCLK FREQUENCY 5.25 MHZ tos Data Setup w.r.UWCLK 10 nsec "Per Figure 4" tOH Data hold w.r.UWCLK 25 nsec "Per Figure 4" tTM t2XDR to t M FM 115 nsec "Per Figure 4" tMR Master reset pulse width 50 nsec "Per Figure 5" t Mo ~MR to tDRQ 150 nsec "Per Figure 5" 3-104 Winchester Disk Controller Devices SYMBOL PARAMTER MIN Typ1 MAX UNIT CONDITION :E tMI ~MR to tlNTRO 150 nsec "Per Figure 5" c ...... too OROCLK pulse width 50 nsec "Per Figure 7" ...... INTCLK pulse width 50 nsec "Per Figure 8" o tlO o too ~ORQCLK to ORO 120 nsec "Per Figure 7" .!.. N til ~INTCLK to INTRO 120 nsec "Per Figure 8" tAO ~AX to tORO 145 nsec "Per Figure 6" tAl t AX to tl NTRO 160 nsec tco ~CS to tORO 145 nsec "Per Figure 6" tCI ~CS to tlNTRO 180 nsec "Per Figure 6" tRN tRWC to ~NOM 145 nsec "Per Figure 4" tTE t2XOR to tEARLY 115 nsec "Per Figure 4" tTN t2XOR to t NOM 115 nsec "Per Figure 4" tTL t2XOR to t LATE 115 nsec "Per Figure 4" = NOTES: 1. Typical Values are for TA 25°C (77°F) and Vcc = + 5.0V. o 2 3 4 5 6 7 WCLK ~1__ •t-tOH ____________ t~D~S_~~ NRZ o o~o o o o I 1 I t 11 r·-~ r;::, ~ n MFM I L..JCL-...J0U I EARLY rcl -- Icl I I :-tTE .. -::-tTN I NOM u U u-u- II -,~tTL LATE IcI ~ I tRN~ .- . RWC Figure 4. WD1100·12 MFM GENERATOR TIMING Winchester Disk Controller Devices 3-105 =E c ..... ..... o o .!r. N FigureS I Flgure6 --.ttoo I-- OROCLK~ -ORO ~rtoo INTRO Figure 7 Figure 8 3-106 Winchester Disk Controller Devices WESTERN DIGITAL c o R P 0 RAT o N :E cI\) WD2010-05 Winchester Disk Controller o ~ oI o FEATURES en BCS VCC • COMPATIBLE WITH MOST MICROPROCESSORS BCR RCLK VIA AN 8-BIT DATA BUS INTRQ RG • DATA RATE OF 5 MBS SDHLE RD • MULTIPLE SECTOR READ AND WRITE BDRQ MR COMMANDS RE BRDY • FORMATTING AND SECTOR INTERLEAVE WE DRUN CAPABILITY CS RWC • SEEK COMBINED WITH READ AND WRITE COMMANDS AO SC A1 31 TKOOO • SINGLE OR MULTIPLE SECTOR BUFFER USING FIFO OR RAM/COUNTER A2 30 WF • BUFFER ACCESS VIA PROGRAMMED I/O OR D7 29 INDEX DMA D6 28 DRDY • 32-BIT ECC OR 16-BIT CRC SELECTED BY D5 STEP SOFTWARE D4 DIRIN • SECTOR LENGTH OF 128, 256, 512,1024 BYTES D3 25 WCLK SELECTED BY SOFTWARE D2 24 WG • PROGRAMMABLE RETRY ALGORITHM D1 • CAPABLE OF CORRECTING ERRORS WHEN A DO SECTOR BUFFER IS USED VSS 21 • 5 OR 11 BIT CORRECTION SPAN SELECTED BY PROGRAM DIP PIN DESIGNATION DESCRIPTION The WD2010 Winchester Disk Controller is a single chip device designed for use with the Shugart Associates SA1000 and Seagate Technology ST506 BD ~ ~DS?W 8" and 5.25" disk drives. The WD2010-05 is software RRR 0 DRTRC DUWSOWEDEI L compatible with the WD1010-05 and reads or writes Y N C. C 0 F X Y P N K at a rate of 5 Mbits. The WD2010 operates with an external buffer such BORQ NC as WD1510 128X9 FIFO memory or a combination of a 256X8 static RAM and an 8-bit resettable counter, RO WG or a DMA controller. Data bytes are transferred to and RG EARLY RCLK LATE from the buffer every 1.6 J.lsec. Transfers from the buf- Vee WO fer to the CPU are made via programmed I/O or DMA. BCS Vss The WD2010 generates counter control signals to BCR DO minimize external gating, and hand shake signals to INTRQ 01 control DMA operation for multiple sector transfers. SOHLE 02 A 32-bit ECC (Error Correction Code) polynomial or NC 03 a 16-bit CRC are selectable. NC 04 The WD2010 has three possible alternatives in handl- ing an error during a Read operation: MR R we A A ADD D N EES012765C A. It may be directed to correct the data in the Sec- tor Buffer automatically, providing the Host with good data. QUAD PIN DESIGNATION B. Supply the Host with the error location and pat- tern, allowing the Host to correct the error. C. Take no action other than setting the error flag The WD2010 is a TTL compatible 40 pin DIP or 44 pin and letting the Host do the entire error correction QUAD NMOS device requiring a single\ + 5V supply. process. Winchester Disk Controller Devices 3-107 PIN DESCRIPTION =e c PIN NUMBER MNEMONIC SIGNAL NAME 110 FUNCTION I\) o ...a. BCS BUFFER CHIP o When asserted it enables reading or writing the o SELECT external Sector Buffer as well as controlling bus I o switching. CJ1 2 BUFFER o BCR is asserted prior to read and write COUNTER RESET functions and at the completion of a command. BCR is not used if the Sector Buffer is a FIFO. 3 INTRQ INTERRUPT o INTRQ is asserted upon completion of a com- REQUEST mand and remains that way until the Status Register is read or a new command is written into the Command Register. This signal may be pro- grammed by a Read Command to occur with BDRQ and DRQ. 4 SOH LATCH o SDHLE is asserted when the SDH Register is to ENABLE be written into by the Host. (See Figure 3.) 5 MASTER RESET I When asserted MR initializes all internal logic except Task File. 6 READ ENABLE I/O Tri-state, bi-directional signal. RE is an input when reading the Task File, and an output when reading the Sector Buffer. 7 WRITE ENABLE I/O Tri-state, bi-directional Signal. Used as an input when writing to the WD2010 Task File. Used as an output when the WD2010 is writing to the Sec- tor Buffer. B CHIP SELECT I CS must be asserted to read from or write to the WD2010 Task File. 9 AO ADDRESS 0 I Provide the address of the register within the Task thru thru thru File that is to transmit or receive on the data bus. 11 A2 ADDRESS 2 12 D7 DATA 7 I/O B-bit, tri-state, bi-directional bus used for the thru thru thru transfer of commands, status, and data. 19 DO DATA 0 20 Vss GROUND Ground 21 WD WRITE DATA o WD is the MFM data to be written to the disk. The frequency is controlled internally by WCLK and should be stabilized further externally by a D flip flop clocked at twice the WCLK frequency. The output has an active pullup and pulldown that can sink 6.0ma. 22 o This signal is used in the Write Precompensation circuitry along with EARLY to control the delay of WD. 23 o This signal is used in the Write Precompensation circuitry along with LATE to control the delay of WD. 24 WG WRITE GATE o WG is asserted when valid data is to be written. It enables write current to the head and is immediately de-asserted if a Write Fault (WF) is detected. 25 WCLK WRITE CLOCK I A 5 MHz clock used internally to control WD. 26 DIRIN DIRECTION IN o This signal determines the direction of the read/write heads when stepped. Asserted moves them in; de-asserted, out. 3-108 Winchester Disk Controller Devices PIN DESCRIPTION (cont.) PIN NUMBER MNEMONIC SIGNAL NAME 1/0 FUNCTION ::e cI\) 27 STEP STEP PULSE 0 This signal is used for pulsing the stepping motor. o ..... (See Stepping Rate Description.) oI 28 DRDY DRIVE READY I DRDY must be asserted to execute any drive related o C1I commands. 29 INDEX INDEX PULSE I The leading edge of this signal indicates that the index mark has been detected. 30 WF WRITE FAULT I When asserted, indicates a write error at the drive. This halts all write, read, and stepping commands. 31 TKOOO TRACKOOO I This signal is asserted when the read/write heads are positioned over track 0 (cyI.OOO). It is used to verify proper completion of a restore command. 32 SC SEEK COMPLETE I The leading edge of SC indicates that the drive has settled down after stepping. It is static tested if the rising edge has not been received within 10 revolu- tions after the stepping pulses. 33 RWC REDUCE WRITE 0 RWC can be programmed to reduce the write cur- CURRENT rent starting at a selected cylinder. (See Write Precomp Cylinder Register.) 34 DRUN DATA RUN I DRUN informs the WD2010 when a field of all ones or zeros has been detected. (See Drive Interface.) 35 BRDY BUFFER READY I When asserted, the Sector Buffer is full or empty. 36 BDRQ BUFFER DATA 0 BDRQ represents the same state as DRQ (bit 3 of REQUEST the Status Register). This signal is asserted when the Sector Buffer is to be read from or written to by the Host. BDRQ can be used for DMA or Pro- grammed 110. If DRQ is used it must be polled by the Host during Programmed I/O. 37 RD READ DATA I MFM data and clocks are received from the drive. The clocks and data are separated internally. 38 RG READ GATE 0 RG is asserted when a search for an address mark is initiated. It remains asserted until the end of the ID or data field. (See Drive Interface.) 39 RCLK READ CLOCK I This clock is generated by a VCO, phase locked to data read from the disk. 40 Vcc +5V +5 Volts "ARCHITECTURE The WD2010 provides the necessary interface con- The WD2010 timing is controlled by two clock input trol between the Host processor and a 5.25" or 8" Win- signals, RCLK and WCLK. RCLK is used for MFM chester disk drive. The controller is made up of seven decoding and is a 5 Mbitlsec data rate. WCLK is used major building blocks connected to the processor via for MFM encoding at the same rate as reading, PLA a Host interface on one side and a drive interface on Controller, Host Interface, and Buffer Control. the other. Figure 1 illustrates the major sections and how they relate to each other. Winchester Disk Controller Devices 3-109 :E 00-07 C N 0 ~ 0 0• CJ1 WD WCLK MAGNITUDE COMPARATOR RE WE A2-AO RCLK INTRQ MR CS PLA CONTROLLER STEP ,. DIRIN BCR EARLY BRDY LATE BUFFER BDRQ IFC DRDY L------tI~.. 1 DRIVE BCS WF IFC VCC .. TKOOO VSS • RWC WG RG DRUN FIGURE 1. WD2010 BLOCK DIAGRAM Programmable Logic Array (PLA) Controller provides a means of verifying the accuracy of the data The Command Register, is the last of the Task File read from the disk but does not attempt to correct it. Registers to be written into, and starts the PLA con· The CRC generator computes and checks cyclic trol. The PLA controller, synchronized by WCL.K, inter- redundancy check characters that are to be written prets the command, generates control signals, and to, and read from the disk following the 10 and data operates in a hand shake mode when communicating fields. The polynomial used is X 16 + X12 + X 5 + 1. The with the MFM encoding block. CRC Register is preset to all one's before computa- Magnitude Comparator tion starts. The magnitude (number of steps) and direction The 10 field always has a 2-byte CRC character required to move the heads from their present cylinder appended to it, while the data field may have either to their desired cylinder is performed by an 11-bit com- a 2-byte CRC (SOH 7 = 0) or a 4-byte ECC character parator. It compares the cylinder number recorded in (SOH 7 = 1). the Task File (it's desired location) with the Present Cylinder Position Register recorded internally. From If the CRC character being generated while reading this, the direction and number of steps that must be the data does not equal the one previously written, performed to place the head on the desired track is an error exists. If there is a CRC failure in the 10 field, calculated. an 10 not found is indicated by bit 4 of the Error A separate high speed equivalence comparator is Register being set. If the failure is in the data field, used to compare 10 field bytes when searching for bit 6 of the Error Register is set. a sector 10 field. The ECC mode of operation (SOH 7 = 1) is only CRC and ECC Generator and Checker. applicable to the data field. This feature built into the The CRC mode of the operation, defined by the SOH W02010 provides the user with the ability to detect (Sector Size, Head, drive select) Register (Bit 7 = 0), and correct errors in the data field automatically. 3-110 Winchester Disk Controller Devices A summary of the parameters to be considered when and Read commands, a diagnostic routine may be ECC is desired are: developed to test the accuracy of the error correc- 1. SDH Register bit 7. tion process. =E 2. Read Command bit 0 (1). MFM Encoding and Decoding c I\) 3. Read and Write Command bit 1 (L). The MFM encoder receives its data one byte at a time o -I. 4. Compute Correction Command. from an S-Bit parallel-to-serial register, and with the o 5. Set Parameter Command. frequency of WCLK, develops the MFM WD. De- I o 6. Error correction successful, bit 2 of the Status pending on the bit pattern of the data, EARLY or C1I Register. LATE may be asserted. External circuitry uses 7. Error occurred, bit 0 of the Status Register. these Signals to compensate for the shift caused by S. Uncorrectable error, bit 6 of the Error Register. the influence one bit has over another. The WD2010 The SDH register bit 7 must be equal to one to change examines three bits, the last one written, the one from the CRC mode to the ECC mode. being written, and the next one to be written. From this, EARLY or LATE is asserted. Since the bit leav- The T bit (bit 0) within the Read Command controls ing the WD2010 has already occurred, it is too late whether or not error correction is to be attempted. to make it early, therefore the external delay circuit When T = 0 and an error is detected, the WD2010 must be as follows. tries up to 10 times to correct the error. If successful, EARLY (asserted) and LATE (de-asserted) no bit 2 of the Status Register is set. The Host can inter- delay rogate the Status Register and detect that a problem EARLY (de-asserted) and LATE (de-asserted) one does exist, but was corrected. If the error is not cor- rectable, bit 6 of the Error Register is set. The Host unit delay can read the data, even though errors do exist. EARLY (de-asserted) and LATE (asserted) two units delay When T = 1, and an error is detected, no attempt is made to correct it and bit 0 of the Status Register These signals are not dependent upon the Write and bit 6 of the Error Register is set. The user now Precomp Cylinder register (RWC). Figure 6 illustrates has two choices: one method of using these signals. 1. Ignore the error and make no attempt to correct it. The MFM decode operates from RCLK, a bit rate 2. Use the Compute Correction Command to deter- clock generated from the external Data Separator. mine the pattern and location of the error, and cor- RCLK and WCLK need not be synchronized. rect it within the user's program. Address Mark (AM) Detection When the Compute Correction Command is An address mark is comprised of two unique bytes implemented, it should be done before executing any preceding both the ID field and the data field. The first command that can alter the content of the ECC byte is used for resynchronization. The second byte Register. The Read, Write, Scan, and Format com- indicates whether it is an ID field or a data field. mands alter the syndrome and correction is impossi- The first byte, A 1 hex, normally has a clock pattern ble. The Compute Correction Command determines of OE hex. However, one clock pulse has been sup- that the error is uncorrectable, at which point the error pressed, making it QA hex. With this pattern, the bits in the Status Register and Error Register are set. detector knows it is looking at an address mark. It Although ECC generation starts with the first bit of now examines the next byte to determine if it is an the FS byte in the data ID field, the actual ECC bytes ID or data field. If bits 7 thru 2 are 1111X1XX, it is an produced for the sector are the same as if the A 1 byte ID field (bits 3, 1, and 0 are the high order cyl.#bits). was included. If the second byte is FS, it is a data field. The ECC polynomial used is, Host Interface X32+X28+X26+X19+X17 +X10+X6+X2+ 1. The primary interface between the Host processor For auto correction the external data buffer must be and the WD2010 is an S-bit bi-directional bus. This implemented with a static RAM and counter, not a bus is used to transmit and receive data for both the FIFO memory. WD2010 and the Sector Buffer. The Sector Buffer con- sists of either a FIFO memory, or a static RAM and The Set Parameter Command is used to select a 5 counter. Since the WD2010 makes the bus active or 11-bit correction span. when accessing the Sector Buffer, a transceiver must Read and Write Commands, with the L bit (bit 1) equal be used to isolate the Host during this time. Figure to one, are referred to as Readlong and Writelong 2 illustrates a typical interface with a Sector Buffer, Commands. With these commands, no ECC or CRC implemented with a RAM memory. Whenever the characters are generated or checked by the WD2010. WD2010-05 is not using the Sector Buffer,it turns con- In effect, the 4 ECC bytes are handled as an addi- trol of the Sector Buffer and data bus over to the Host tional 4 bytes of data which pass through the data by de-asserting its output term, BCS. This de-selects buffer. the Sector Buffer and switches the data bus With proper use of the Write, Readlong, Writelong, transceivers. Winchester Disk Controller Devices 3-111 When the Host wants to access the Sector Buffer it The Read Sector Command operates in a similar man- produces an address of zero (AO thru A2 ::f= 0). A ner, except that the Sector Buffer is loaded by the :E decoder recognizing AO thru A2::f= 0 asse~a BCS WD2010 instead of the Host. c of its own. The Host then asserts WE or RE for I\) When BDRa is used, it can either be connected to .... o o the counter, at the leading edge, the location within the Sector Buffer addressed by the counter is a DMA controller or used for programmed 110. In either case it Signals that the WD2010 is ready to receive o• accessed, at the trailing edge the counter advances or transmit data. DRa status bit, if used, must be 01 to the next count. The decoder asserts CS to the polled by the Host, therefore is limited to programmed WD2010 any time the address does not equal zero liD. (AO thru A2 ::f= 0). When INTRa is asserted, the Host is signaled that During Write Sector commands the Host sets up data a command has terminated (either a normal termina- in the Task File and issues the command. The tion or an aborted command). In the case of the Read WD2010 asserts BCR to zero the counter. It then Command, INTRa can be programmed by bit 3 to be generates a status to inform the Host it can load the asserted upon termination as the other commands, Sector Buffer with the data to be written. When the or at the same time BDRa is asserted. In either case, counter reaches its maximum count, BRDY is INTRa remains asserted until the Host reads the asserted by the carry out of the counter, informing Status Register to determine the result of the termina- the WD2010 that the Sector Buffer is full. (BRDY is tion, or writes a new command into the Command asserted with a rising edge and is ignored if asserted Register. before the WD2010 asserts BCR.) BCS is then as- serted, disconnecting the Host through the The WD2010 asserts SDHLE to the Host whenever transceivers, and RE and WE become outputs from the SDH register is being written into. This makes it the WD2010 to allow access to the Sector Buffer. possible to store the same information in an exter- When the WD2010 is done using the Sector Buffer, nal register for decoding. Figure 3 illustrates one it de-asserts BCS which again allows the Host to method. access this local bus. ~-4------------------------------~~r----; ~ ~-+------------------------------t1~r----;~ DO·D7 WD2010 ~---+--~--4--------- ~ ______6 -_ _ ~BCS b----+--~--4----------------------- .....I~ AO·2 l-:t---4·----------+___~--+-------------+...1AO'2 1----------...... 1 BRDY -------4 BDRQ INTRQ DMA CONTROLLER FIGURE 2. HOST INTERFACE 3-112 Winchester Disk Control/er Devices Drive Interface ' arator circuit is illustrated in Figure 4. Data read from the drive is presented to the RD input of the WD2010, The drive side of the WD2010 controller requires the reference multiplexor, and a retriggerable one :E three sections of external logic. These are interface/ shot. The RG is de-asserted when the WD2010 is not cI\) Sector Buffers, data separator, and write precom- o pensation. Figure 3A illustrates the drive interface. inspecting data. The PLL at this time should remain ~ locked to the reference clock. oI The control lines are buffered, single-ended, and o When any Read or Write Command is initiated and (J1 resistor terminated at TTL levels. The data lines to a search for an address mark begins, DRUN is and from the drive also require buffering, and are ter- examined. The DRUN one-shot is set slightly longer minated with RS-422 drivers. The interface specifica- tion for the drive can be found in the manufacturer's than one bit time, allowing it to retrigger constantly OEM manual. The WD2010 supplies TTL compatible on a field of all ones or all zeros. An internal counter times out to see that DRUN is asserted for 2 byte signals, and interfaces with most driver devices. times. RG is asserted by the WD2010 switching the When the SDH Register is written into, the Head and data separator to lock onto the incoming data stream. Drive select signals are latched externally by the If DRUN is de-asserted prior to 7 byte times, RG is latch enable signal SDHLE. See Figure 38. de-asserted and the process is repeated. RG remains The data recovery circuits consist of a phase lock asserted until a non-zero, address mark is detected. loop, data separator, and associated components. It then de-asserts RG for two byte times (to allow the The WD2010 interacts with the data separator through PLL to lock back on the reference clock) and starts DRUN and RG. The block diagram of the data sep- the DRUN search over again. If an address mark is .-__________ J~\r--a.-------- HSELO 00·04 _ J 0 ~ Q HSEL1 .------------.y T Q HSEL2 ~ Q I--- f - - - OSEL 1 o E OSEL2 C o -OSEL3 o E - OSEL4 RG 1----_1 ORUN 1.-----1 DATA RO 1. .- - - - 1 SEPARATOR RCLK 1.-----1 W02010 ~ WO 1----.1 WRITE 00·07 EARLY 1-----.1 PRECOMPENSATION HOST DISK OATA/CTRLI LATE 1-----.1 AND DRIVE SYCHRONIZATION RWC t--~~ STEP t------I~I OIRIN t------I~I OROY ~---l WF TKOOO ..----l INTERFACE/ BUFFER I.--------J INDEX ..----l SC WG FIGURE 3A_ DRIVE INTERFACE BLOCK DIAGRAM Winchester Disk Controller Devices 3-113 detected, RG remains asserted and the command Register in the Task File. This register is written into :ec continues searching for the proper ID field. This sequence is illustrated in Figure 5. by the Host. When a cylinder is called for that is equal to, or greater than the content of this register, the I\) The Write Precompensation circuitry is designed to write current will be reduced, thus lessening the effect o ..... o o . c.n reduce the shift in the data caused by the effect one bit has over another. The Write precompensation logic is divided into two areas: RWC and Early or Late one bit can have over another. Shift may also be caused by the bit pattern. With cer· tain combinations of ones and zeros some of the bits writing of the bits. A block diagram of the Write can drift far enough apart to become difficult to read Precomp circuit is illustrated in Figure 6. without error. This phenomenon can be minimized by RWC is controlled by the Write Precomp Cylinder using EARLY and LATE as described under MFM Encoder. CS ------4., WE ------(~~ AD - - - - - - ( : - 1 1 A 1 ----c~---< A2 ---t)IU---<'~ COMMAND-IN-PROGRESS ---DO---<~ FIGURE 3B. LATCH ENABLE SIGNAL 250 NSEC RETRIGGERABlE 1-------------4~ DRUN ONE-SHOT 5MBITS MFM DISK RD DATA WD2010 RClK ~--------------------~ RG ~------------1L_=~~r----------~~WClK FIGURE 4. DATA SEPARATOR CIRCUIT 3-114 Winchester Disk Controller Devices YES FIGURE 5. PLL CONTROL SEQUENCE FOR ID FIELD Winchester Disk Controller Devices 3-115 :ec N o ..... ~ en FIGURE SA. PLL CONTROL SEQUENCE FOR DATA FIELD 3-116 Winchester Disk Controller Devices :E I c WD EARLY D D L A T Q Q l DELAY LINE I N o . -'" o -LATE r-- C D C H Q~ I I: '~ SO WDTODRIVE o en 1 3 S1,./'" WD2010 V WD2010-05 = 10 MHz OSC RWC {»- -if TO DRIVE FIGURE 6. WRITE PRECOMPENSATION CIRCUIT TASK FILE BIT 7 - BAD BLOCK DETECT The Task File is a bank of nine, a-bit registers used This bit is set when an 10 field has been encountered to hold status information indicating the success or that contains a Bad Block Mark. It is used for bad failure of an operation, as well as the parameters sector mapping. under which the drive is to operate. They are BIT 6 - CRC/ECC DATA FIELD ERROR addressed by AO through A2 lines. AO through A2 = o is unused by the W02010 and when received, puts CRC mode of operation (SOH 7 = 0): this bit is set its bus in the tri-stated condition isolating it from the when a CRC error occurs in the data field. When Retry bus. is enabled, ten more attempts are made to read the sector correctly. If none of these attempts are suc- ERROR REGISTER (A2 thru AD = 1 READ) cessful, bit zero in the Status Register is set also. If This register contains specific error status pertain- one of the attempts is successful, this bit remains ing to the completion of a command. These bits are set to inform the Host that a marginal condition defined as follows: exists. However, the zero status bit is not set. No attempt is made to correct the error. 7 6 5 4 3 2 1 D BB CRC/ECC 0 10 0 AC TK OM ADDRESS TASK FILE A2 A1 AO REAO ONLY I WRITE ONLY 0 0 0 BUS TRI-STATED 0 0 1 Error Register J Write Precomp Cylinder 0 1 0 Sector Count 0 1 1 Sector Number 1 0 0 Cylinder Low 1 0 1 Cylinder High 1 1 0 SOH Register 1 1 1 Status Register I Command Register NOTE: These registers are not cleared by MR being asserted Winchester Disk Controller Devices 3-117 ECC mode of operation (SOH 7 =1). This bit is set The value OO-FF loaded into this register is internally when the first non-zero syndrome is detected. When multiplied by four to specify the actual cylinder Retry is enabled, up to ten attempts are made to cor- where RWC is to be asserted. Thus a value of 9C rect the error. If successful, this bit remains on. Hex causes the RWC to be asserted on cylinder 270 However, bit 2 of the Status Register is set to inform Hex, 90 Hex on cylinder 274 Hex, etc. RWC is the Host that the error has been corrected. If unsuc- asserted when the present cylinder is equal to, or cessful, this bit remains on and bit zero of the Status greater than the value of this register. For example, Register is set also. When Retry is disabled no the ST506 requires precomp 80 Hex (128 dec.) and attempt is made to correct the error. above. Therefore, the write precomp cylinder should The data may be read even if errors do exist. be loaded with 20 Hex (32 dec.). A value of FF Hex causes RWC to remain de-asserted, Note: If the Long Mode bit is set in the Read or Write regardless of the cylinder number values. command, no error checking is performed. Bit 5-Reserved SECTOR COUNT (A2 thru AO 2) = In a muliple sector operation, this register contains Not used, forced to zero. the number of sectors involved with Read Seector, Bit 4-10 Not Found Write Sector, and Format commands. This bit is set to indicate that the correct cylinder, I6 I5 I4 I3 I2 I1 head, sector, or size parameter could not be found, or a CRC error occurred on the 10 field. This bit is set on the first failure and remains set even if the error is recovered on a retry. When recovery is unsuc- cessful, the Error Status bit is set also. I 7 The value written into this register is decremented 1 °1 by one after each sector is transferred to or from the For a Scan 10 Command with retry enabled (T = 0), Sector Buffer. A zero represents a 256 sector transfer, the Error Status bit is set after ten unsuccessful a 1 = one sector, etc. This register is disregarded attempts have been made to find the correct 10. With when a single sector command is specified. Retry disabled (T = 1) only two attempts are made SECTOR NUMBER (A2 thru AO 3) = before setting the Error Status. For a Read and Write Command with Retry enabled This reigister holds the number of the desired sector. (T = 0), ten attempts are made to find the correct 10 field. If there is still an error on the tenth try, an auto- 1 7 I 6 I 5 I 4 I 3 I 2 I 1 101 scan and auto-seek are performed. Then, ten more . SECTOR NUMBER . tries are made before setting the Error Status. When the Retry is disabled (T = 1) only two tries are made, and no auto-scan or auto-seek operations are This is the starting sector in a multiple sector com- performed. mand. It is incremented by one after each sector has been transferred to or form the Sector Buffer. The Bit 3-Reserved register can contain any value from 0 to 255. Not used, forced to zero. This register also specifies the minimum GAP 3 Bit 2-Aborted Command length, minus 3, during a Format Command. The command is aborted and this bit set if, DRDY has CYLINDER NUMBER LOW (A2 thru AO 4) = not been asserted, WF is asserted, or the command This register holds the least significant 8 bits of the issued had an undefined command code. desired cylinder number. Bit 1-Track Zero Error This bit is set during a Restore Command when TKOOO input has not indicated that the head has I7 I 6 I 5 I 4 I 3 I 2 I 1 reached track zero by 2047 steps. Bit 0- Data Address Mark Not Found It is used in conjunction with the Cylinder Number This bit is set during a Read Sector Command if the High Register to specify a range of 0 to 2047. Data Address Mark is not found following the proper sector 10. CYLINDER NUMBER HIGH (A2 thru AO 5) = This register contains the three most significant bits WRITE PRECOMP CYLINDER (A2 thru AO = 1 write) of the desired cylinder number. This register is used to define the cylinder number ~ ~ ~ ~ where the RWC output signal is to be asserted. 76151413121 0 I I : I I I ; I ; I : I I CYLINDER NUMBER + 4 3-118 Winchester Disk Controller Devices These registers determine where the RIW heads are A SCAN 10 Command reads the cylinder number from to be positioned. The Host writes the desired cylinder the track on which the heads are presently located, :E number into these registers. Internal to the WD2010 and writes this into the Present Cylinder Position c N is another pair of registers pointing to where the Register. o ..... heads are presently located. When any command, When a different drive is selected just prior to a Read, o other than a Restore, is executed these registers are Format, Write, or Seek command, the WD2010 issues o• compared. The difference between them results in -an auto-scan 10 command. This updates the Present en DIRIN and STEP signaling the drive how many Cylinder Position Register to reflect the position of cylinders to move the heads and in which direction. the heads on this drive. The Present Cylinder Position Register is updated to equal the cylinder Number Register at the comple- tion of the seek. When a Restore Command is executed, the Present Cylinder Position Register is reset to zero, while DIRIN and STEP move the heads to track zero. SOH REGISTER (A2 thru AO = 6) This register contains the desired sector size, drive number, and head number parameters. 7 65 43 21 0 EXT SIZE DRIVE HEAD 6 5 SECTOR SIZE 4 3 DRIVE # 2 0 HEAD # o o 256 o o DSEL1 0 0 0 HSELO o 1 512 o 1 DSEL2 0 0 1 HSEL1 1 o 1024 1 o DSEL3 0 1 0 HSEL2 1 1 128 1 1 DSEL4 0 1 1 HSEL3 1 0 0 HSEL4 1 0 1 HSEL5 NOTE: 1 0 HSEL6 Drive select and head select lines must be generated 1 1 HSEL7 externally. Figure 3 represents one method of achiev- ing this. As shown below, the SOH byte written in the 10 field during the Format Command is not the same as the contents of the SOH Register. 7 6 5 4 3 2 1 0 Bit 7 - One selects the ECC mode for the data field. BSY ROY WF SC ORa DWC CIP ERR Zero selects the CRC mode for the data field. Bit 7 - Busy I BA~ B. 65 43 21 0 BUSY is asserted when a command is written into SIZE o 0 HEAD the Command Register and, except for the Read Com- mand, it is de-asserted at the end of the comand. STATUS REGISTER (A2 thru AO = 7 READ) When executing a Read Sector Command, BUSY is The Status Register is used to inform the Host of cer- de-asserted when the Sector Buffer is full. Commands tain events performed by the WD2010 as well as repor- should not be loaded into the Command Register ting status from the drive control lines. Reading the when this bit is set. When the BUSY bit is set, no Status Register de-asserts INTRa. other bits in the Status or Error Register are valid. Winchester Disk Controller Devices 3-119 Bit 6 - Ready Bit 1 - Command in Progress (CIP) This bit reflects the status of DRDY. When this bit When this bit is set, a command is being excuted and equals zero, the command is aborted and the status a new command should not be loaded. Although a of this bit is latched. command is being executed the Sector Buffer is still Bit 5 - Write Fault available for access by the Host. When WD2010 is This bit reflects the status of WF. When this bit equals no longer busy, (bit 7 = 0) the Status Register can be read. An attempt to read the other registers results one, the command is aborted, INTRa is asserted, and in reading the status. the status of this bit is latched. Bit 0 - Error Bit 4 - Seek Complete This bit indicates that a non-recoverable error has This bit reflects the status of SC. When a seek or occurred. When the Host reads the status and finds implied seek has been initiated by a command, it this bit set, it must then read the Error Register to pauses until the seek is complete, This bit is latched determine what type of error it was. after an "aborted command" error. COMMAND REGISTER (A2 thru AO = 7 write) Bit 3 - Data Request The command to be executed is written into this DRa reflects the same status as BDRa. It is asserted register. when the data Sector Buffer must be written into, or read from. DRa and BDRa remain asserted until BRDY indicates that the Sector Buffer has been filled or emptied, depending upon the command. DRa is I I I I I I I 7 6 5 4 3 COMMAND 2 1 o used during Program Interrrupt and must be inter- rogated by the Host to determine that the WD2010 The command asserts BUSY and CIP, and begins to is ready. BDRa operates through a DMA controller exec4te as soon as it is written into this register. for data transfers. Therefore, all necessary information should be loaded Bit 2 - Data Was Corrected into the Task File prior to entering the command. Any When a one, this bit indicates an error has been attempt to write into these registers is ignored until detected during the ECC mode of operation and the the command has terminated, as indicated by the CIP data in the Sector Buffer has been corrected. This pro- status. INTRa is de-asserted if it 'is still active at the vides the user with an indication that there may be time the command is written. a marginal condition within the drive before the errors become uncorrectable. This bit is forced to zero when not in the ECC mode of operation. COMMAND SUMMARY· BIT COMMAND 7 6 5 4 3 2 1 0 RESTORE 0 0 0 1 R3 R2 R1 RO, SEEK 0 1 1 1 R3 R2 R1 RO READ SECTOR 0 0 1 0 I M L T WRITE SECTOR 0 0 1 1 0 M L T SCAN ID 0 1 0 0 0 0 0 T WRITE FORMAT 0 1 0 1 0 0 0 0 COM PUTE CORRECTION 0 0 0 0 1 0 0 0 SET PARAMETER 0 0 0 0 0 0 0 S Stepping Rate Field R3-RO For 5 MHz WCLK: R3-RO = 0000-351lsec 1010-5.0msec 0001-.5msec 1011-5.5msec 0010-1.0msec 1100-6.0msec 0011-1.5nsec 1101-6.5msec 0100-2.0msec 1110-3.2Ilsec 0101-2.5msec 1111-161lsec 0110-3.0msec STEP PULSE WIDTH = 0111-3.5msec 1.6llsec at 3.2llsec rate 1000-4.0msec 8.0llsec at all others. 1001-4.5msec 3-120 Winchester Disk Controller Devices I - Interrupt Control I = 0 INTRa occurs with BDRa/DRa :E indicating the Sector Buffer is full (valid c N only when M = 0). o ..... INTRa occurs when the command is oI completed and the Host has read the o RESET INTRO. en Sector Buffer. ERRORS. SET BUSY. CIP M - Multiple Sector Flag M 0 Transfer one sector (the sector count is ignored) M 1 Transfers multiple sectors RESETRWC SET DIRECTION L - Long Mode = OUT STORE STEP RATE L = 0 Normal mode, normal CRC or ECC func- tions are performed. L = 1 Long mode, no CRC or ECC bytes are developed or error checking performed on the data field. The WD2010 appends PULSE BCR SET AC. INTRO the four additional bytes supplied by the RESET BSY. CIP Host or disk to the data field. T - Retry Flag T = 0 Enable Retry T = 1 Disable Retry S - Error Correction Span S = 0 5-bit span S = 1 11-bit span RESTORE COMMAND The Restore command is used to position the read/write heads over track zero. It is usually issued by the Host when a drive has just been turned on. The stepping rate used for the restore is determined by SC. The WD2010 issues a Step pulse and then waits for the leading edge of SC before starting another step. If the leading edge of SC is not seen within 10 revolutions (index pulses) the WD2010 swit- ches to sensing the level of SC. If after 2047 Stepp- ing pulses TKOOO is not asserted, the WD2010 sets the Track Zero error bit, asserts INTRa and terminates the operation. An interrupt also occurs if WRITE FAULT is asserted or DRDY is de-asserted during execution. The stepping rate field is stored in an internal register for future use by commands with implied seeks. SEEK COMMAND ISSUEA STEP PULSE By not testing SC, the Seek Command is capable of overlapping seeks on multiple drives. R3 through RO controls the stepping rate, as well as being written into an internal register for use by those commands with implied seek capability. FIGURE 7. RESTORE COMMAND Winchester Disk Controller Devices 3-121 =E c N o ..... o 6(J1 RESET INTRQ, ERRORS, SET BUSY, CIP STORE STEP RATE YES NO SET ABORTED COMMAND BIT FIGURE 8. SEEK COMMAND 3-122 Winchester Disk Controller Devices The direction and number of step pulses needed are For the W02010 to make multiple sector transfers to calculated by comparing the contents of the cylinder the Sector Buffer, the BROY signal must toggle from number in the Task File to the present cylinder posi- low to high for each sector. The sector transfers con- =E tion number stored internally. After all the steps have tinue until the sector count equals zero. If the sector cN been issued, the present position cylinder number is updated, INTRa asserted and the command ter- count is not zero ( indication more sectors are to be read) and the Sector Buffer is full, BORa is asserted .... o o minated. if OROY is de-asserted or WF is asserted and the Host must unload the Sector Buffer. Once o• during the execution of the command, INTRa is this occurs, the Sector Buffer is free to accept the CJ1 asserted, and the command aborts setting the AC next sector. error. WF and OROY are monitored throughout the com- If an implied seek is performed, the stepping rate for mand. If WF becomes asserted, or OROY de-asserted, all but the last step is controlled by R3 through RO. the command terminates and the AC error flag is set. On the last step the seek continues until the leading For a description of the error checking procedure on edge of SC is detected. the data field see the explanation under CRC and ECC READ SECTOR Generator and Checker. Both the Read and Write commands feature a simulated completion to ease The Read Sector command is used to transfer one programming. BORa, ORO, and INTRa are generated or more sectors of data from the disk to the Sector in a normal manner upon detecting an error condi- Buffer. Upon receipt of this command, the W02010 tion. This allows the same program flow for suc- compares the cylinder number in the Task File with cessful or unsuccessful completion of a command. the Present Cylinder Position Register. From this, the direction and number of steps required for the seek When M = 0 (Single Sector Read) are calculated. As stated in the Seek Command, if (1) Host: Sets up parameters; issues Read an implied seek is performed, the stepping rate for Sector command. all but the last step is controlled by R3 through RO. (2) 2010: Finds sector specified; asserts On the last step the seek continues until the leading BCR and BCS. Sector Buffer data edge of SC is detected. transfer via WE. If the W02010 detects a change in the drive number (3) 2010: Asserts BCR de-asserts BCS. since the last Read Command, an Auto Scan 10 is (4) 2010: Asserts BORa and ORO flag. performed. This updates the Present Cylinder Posi- (5) 2010: If 1 bit = 0 then (8). tion Register to reflect the current drive before the (6) Host: Reads conten12...of Sector Buffer seek begins. (by asserting RE). (7) 2010: Waits for BROY the asserts After the W02010 senses SC (with or without an INTRa; End. implied seek) it must find an 10 field with the correct (8) 2010: Asserts INTRa. cylinder, head, sector size, and CRC. With Retry (9) Host: Reads conten12...of Sector Buffer enabled (T = 0), ten attempts are made to find the (by asserting RE);End. correct 10 field. If there is still an error on the tenth try, an auto-scan and auto-seek are performed. Then, When M = 1 (Multiple Sector Read) ten more tries are made before setting the 10 Not (1) Host: Sets up parameters; issues Read Found Error. When Retry is disabled (T = 1) only two Sector command. tries are made, and no auto-scan or auto-seek opera- (2) 2010: Finds sector specified; asserts tions are performed. BCR and BCS. Sector Buffer data When the Oata Address Mark is found the W02010 transfer via WE. is ready to transfer data into the Sector Buffer (if after (3) 2010: Asserts BCR; de-asserts BCS. successfully reading the correct 10 field the Oata (4) 2010: Asserts BORa and ORO flag. Address Mark is not found a OAM error is set). When (5) Host: Reads conten12...of Sector Buffer the disk has filled the Sector Buffer, the W02010 (by asserting RE). asserts BORa and ORO and then checks the I flag. (6) Sector Indicates data has been transfer- If the flag is 0, INTRa is asserted also, signaling the Buffer: red by asserting BROY. Host to read the content of the Sector Buffer. If the (7) 2010: When BROY is asserted, I flag is 1, INTRa occurs after the Host has read the decrements sector count; Sector Buffer and terminated the command. increments sector number, go to (9) if sector count = O. An optional M flag can be set for multiple sector (8) 2010: Go to Step (2). transfers. When M = 0, one sector is transferred and (9) 2010: Asserts I NTRO; End. the sector count is ignored. When M = 1, multiple sectors are enabled. After each sector is transferred, the W02010 decrements the sector count and increments the sector number. The next logical sec- tor is transferred, regardless of the interleave. Sec- tors are numberd by a byte in the 10 field during the Format Command. Winchester Disk Controller Devices 3-123 :ec N o ..... o o• (J1 *If T bit of command = 1 then dashed path is taken after 2 index pulses. • * If T bit of command = 1 then test is for 2 Index Pulses. FIGURE 9. READ COMMAND 3-124 Winchester Disk Controller Devices =E c N .... o o o• (J1 YES SET ERROR IN STATUS REGISTER (BITO) til T bit 01 command = 1 then dashed path is taken . • ·11 T bit 01 command = 0 then test is lor 2 Index Pulses. PULSE BeR DE·ASSERT CIP FIGURE 9. READ COMMAND (Continued) Winchester Disk Controller Devices 3-125 WRITE SECTOR Summary of a write sector operation: :ec The Write Sector Command is used to write one or more sectors of data from the Sector Buffer to the (1) Host: Sets up parameters; issues write sector command. N o disk. Upon receipt of this command, the WD2010 com- (2) 2010: Asserts BDRa and DRa. ..... pares the cylinder number in the Task File with the (3) Host: Loads Sector Buffer with data (by o o• present position cylinder number. From this, the direc- asserting WE) . en tion and number of steps required for the seek are (4) 2010: Waits for leading edge of BRDY. calculated. As stated in the Seek Command, if an (5) 2010: Finds specified ID field, write to implied seek is performed, the stepping rate is con- sector. trolled by R3 through RO. After the last step the (6) 2010: If M = 0, assert INTRa; End. WD2010 waits until the leading edge of SC is received. (7) 2010: Increments sector number, If the WD2010 detects a change in the drive number decrements sector count. since the last Write Command, an auto-Scan ID takes (8) 2010: If sector count = 0, assert INTRa; place. This updates the Present Cylinder Position End. Register to reflect the current drive before the seek (9) 2010: Go to (2). begins. After the WD2010 senses SC (with or without an SCANID implied seek), BDRa and DRa signals are asserted The Scan ID Command is used to update the head, and the Host proceeds filling the Sector Buffer. When sector size, sector number, and cylinder registers. BRDY is asserted, a search for an ID with the When the first ID field is encountered, the ID infor- specified cylinder, head, sector size, and CRC is mation is loaded into the SDH cylinder, and sector initiated. If the ID is not found and Retry is enabled number registers in the Task File. The Present Posi- (T = 0), ten attempts are made to find the correct ID tion Cylinder Register is also updated. If this is an field. If there is still an error on the tenth try, an auto- Auto- Scan caused by a change in drive numbers, only scan and auto-seek is performed. Then ten more tries the present position cylinder number is altered. are made before setting the Error Status bit. (The ID Not Found error is set on the first failure). When Retry If the ID field is not found and Retry is enabled (T = 0), is disabled (T = 1). Only two tries are made and no ten attempts are made to read it. If Retry is disabled (T = 1), only two tries are made. There is no implied auto-scan or auto-seek operations are performed. seek in this command and the Sector Buffer remains When the correct ID is found, WG is asserted and unchanged. When DRDY is de-asserted or WF data is written to the disk. When SDH 7 bit is zero, asserted the command aborts and the appropriate WD2010 generates a two byte CRC character to be error flags are asserted. appended to the data. When SDH 7 bit is one, four ECC bytes replaces the CRC character. When the L bit within the Write Command is one, the polynomial generation of the data is inhibited, and neither CRC or ECC bytes are generated. Instead, four bytes of data supplied by the Host is written. During a multiple sector write operation (M flag = 1), the sector number is incremented and sector count decremented. If BRDY is asserted after the first sec- tor is read from the Sector Buffer, WD2010 continues to read data from the Sector Buffer for the next sec- tor. If BRDY is de- asserted, WD2010 asserts BDRa and waits for the Host to place data in the Sector Buffer. 3-126 Winchester Disk Controller Devices :E c N o """'" o o• C1I o * If retries disabled then dashed path is taken after 2 Index Pulses. FIGURE 10. WRITE COMMAND Winchester Disk Controller Devices 3-127 :IE cN o ..... o o• DE-ASSERT: INTRQ, en ERRORS ASSERT: Clp, BSY NO YES NO UPDATESDH, CYL, SECTOR, CYL POS, REG'S YES * If retries are disabled, path is taken after 2 index pulses. YES NO PULSEBCR ASSERT INTRQ DE-ASSERT BSY, CIP FIGURE 11. SCAN 10 COMMAND 3-128 Winchester Disk Controller Devices FORMAT be used for Gap 1 and Gap 3. For instance, if the The Format Command is used to format one track Sector Count value is 2 and the Sector Number value is 3, then 2 sectors are written and 6 bytes of =E using the Task File and Sector Buffer. During this c command the Sector Buffer contains additional 4E Hex are written for Gap 1 and Gap 3. The data N o parameter information instead of data. Figure 12 shows the contents of the Sector Buffer for a 32 sec- fields are filled with FF Hex, and the CRC or ECC is generated as specified by the related coding. . ..... o o U1 tor track format with an interleave factor of two. The Gap 3 value is determined by the drive motor Each sector requires a two byte sequence. The first speed variation, data sector length, and the interleave byte designates if a Bad Block Mark is to be re- factor. The interleave factor is only important when corded in the ID field. A 00 is normal; an 80 Hex is a 1:1 interleave is used. The formula for determining the Bad Block Mark. In the example of Figure 12, sector minimum Gap 3 is: 04 gets a Bad Block Mark recorded. The second Gap 3 = 2 X M X S + K byte indicates the logical sector number to be re- M = motor speed variation (e.g ..03 for ± 3%) corded. Using this scheme, sectors can be recorded S = sector length in bytes in any interleave factor desired. The rest of the Sec- K = 18 for an interleave factor of 1 tor Buffer is filled with any value, BRDY is asserted, K = 0 for any other interleave factor and the WD2010 begins formatting the track. When WF is asserted or DRDY de-asserted the com- The Sector Count Register holds the total number of mand terminates and the AC error is asserted. Figure sectors to be formatted, while the Sector Number 13 shows the format that is written on the disk. Register holds the number of bytes, minus three, to DATA ADDR 0 1 2 3 4 5 6 7 00 00 00 00 10 00 01 00 11 08 00 02 00 12 00 03 00 13 10 80 04 00 14 00 05 00 15 18 00 06 00 16 00 07 00 17 20 00 08 00 18 00 09 00 19 28 00 OA 00 1A 00 OB 00 1B 30 00 OC 00 1C 00 OD 00 1D 38 00 OE 00 1E 00 OF 00 1F 40 FF FF FF FF FF FF FF FF FO FF FF FF FF FF FF FF FF FIGURE 12. FORMAT COMMAND BUFFER CONTENTS Winchester Disk Controller Devices 3-129 REPEATED FOR EACH SECTOR :E c I\) o ..... ~ I r-IDFIELD~ r- DATAFIELD~ 1If oI o (J1 )"". 4E GAPI 4E (1) 14 BYTES '00' A 1 I D E N T C Y L L 0 W H E A D S E C' # C R C 1 C R C 2 , 3 BYTES 00' 12 BYTES '00' A 1 F 8 ,, USER DATA 2CRC OR 4ECC 2 BYTES '00' , GAP31) 4E (1) I I II' , I: , I I ~I L- ,, I I I I WRITE GATE , I ,, I I I , ,, I, .. I I I I DRUN~ !I&'~$I/!l] I 4~ I fLlOiLmlM I , I I I READGATE~2 I ~ 6'1 _ - _ _ _ _ _ _ _ _ 71 FIGURE 13. FORMAT ID FIELD DATA FIELD A1 = A 1 Hex with A 1 = A 1 hex with OA hex clock OA Hex clock IDENT = Bits 3,1,0 = Cylinder High F8 = Data Address Mark; Normal Clock FE = 0·255 Cylinders USER = Data Field 128 to 1024 Bytes FF = 256·511 Cylinders NOTES: FC = 512·767 Cylinders 1. GAP 1 and 3 length determined by Sector Number FD = 768·1023 Cylinders Register contents during formatting. F6 = 1024·1279 Cylinders F7 1280·1535 Cylinders 2. The decision to assert RG is made 2 bytes after F4 = 1536-1791 Cylinders the start of DRUN. F5 = 1792·2047 Cylinders 3. RG de-asserted: HEAD = Bits 0,1,2 = Head Number • If DRUN does not last until A1 Bits 3,4 = 0 • When any part of ID does not match the one Bits 5,6 = Sector Size expected. 00 = 256 • After CRC if correct ID has been read. 01 512 10 = 1024 4. Write splice recorded on disk by asserting WG. 11 = 128 5. RG is suppressed until after write splice. Bit 7 = Bad Block Mark 6. Not a proper A 1 or F8, set DAM error. Sec# = Logical Sector Number 7. Sector size as stated in ID field, plus two for CRC or 4 for ECC. 3-130 Winchester Disk Controller Devices :E c N o -.I. o 6 (J1 FIGURE 14. FORMAT COMMAND Winchester Disk Controller Devices 3-131 COMPUTE CORRECTION =E The Compute Correction Command determines the cI\) location and pattern of a single burst error, but does o not correct it. The Host, using the data provided by . ...L o o C11 the WD2010, must perform the actual correction. The Compute Correction Command is used following a data field ECC Error. The command initiating the read operation must specify no Retry. (T = 1). The Compute Correction Command first writes the four syndrome bytes from the internal ECC Register to the Sector Buffer then the ECC Register is clocked. WRITE4 With each clock, a counter is incremented and the SYNDROME BYTES TO pattern examined. If the pattern is correctable, the pro- SECTOR BUFFER cedure is stopped and the count and patten are writ- ten to the Sector Buffer, following the syndrome. The process is also stopped if the count exceeds the sec- tor size before a correctable pattern is found. When the command terminates the Sector Buffer con- tains the following data: Syndrome MSB Syndrome Syndrome Syndrome Error Pattern Offset YES ASSERT ERROR (BIT 0 STATUS REG.) Error Pattern Offset AND ECC ERROR Error Pattern (BIT 6 ERROR REG.) Error Pattern Error Pattern LSB As an example, when the Error Pattern Offset is zero WRITE TWO the following procedure may correct the error. The OFFSET BYTES TO SECTOR first data byte of the sector is eclusive OR'ed with BUFFER the MSB of the Error Pattern. , the second byte of data with the second byte of the Error Pattern, and the third byte of data with the LSB of the Error Pattern. WRITE THREE ERROR PATIERN If the Sector Buffer count exceeds the sector size, BYTES TO SECTOR or the burst is greater than that selected buy the Set BUFFER Parameter Command, the ECC/CRC error (bit 6) and the Error Status bit (bit 0) is set. The WD2010 defaults to a 5-bit correction span if a Set Parameter Command has not been executed since the last MR. SET PARAMETER This command selects the correction span to be used by the error correction process. A 5-bit span is selected when bit zero of the command equals 0, and 11-bit span when 1. The WD2010 defaults to a five bit span following a Master Reset. ELECTRICAL CHARACTERISTICS MAXIMUM RATINGS Vee with respect to Vss (Ground)........... + 7V Max Voltage on any Pin with respect to Vss.................-0.5V to + 7V Operating Temperature..0°C(32°F) to 70 oC(158 oF) Storage Temperature..-55°C(-67 oF) to + 125°C FIGURE 15. COMPUTE CORRECTION COMMAND (257°F) 3-132 Winchester Disk Controller Devices NOTE: Maximum limits indicate where permanent device is not intended and should be limited to those con- =E damage occurs. Continuous operation at these limits ditions specified in the DC Operating characteristics. c I\) .... o DC Operating Characteristics TA SYMBOL = 0 °C (32°F) to 70°C(158°F); Vss = OV, Vee = + 5V ± .25V CHARACTERISTIC MIN MAX UNIT CONDITION . o o (11 IlL Input Leakage ± 10 IJA VIN = .4 to Vee 10L Output Leakage ± 10 IJA VOUT = .4 to Vee (Tristate & Open Drain) V IH Input High Voltage 2.0 V V IL Input Low Voltage 0.8 V VOH Output High Voltage 2.4 V 10 = -1001JA VOL Output Low Voltage 0.4 V 10 = 1.6mA VOL Output Low Voltage (Pins 21-23) 0.45 V 10 = 6.0mA See Note 10 lee Supply Current 220 rnA All Outputs Open For Pins 25, 34, 37, 39: V IH Input High Voltage 4.6 V VIL Input Low Voltage 0.5 V TRS Rise and Fall Time 30 nsec .9V to 4.2V CIN Input Capacitance 15 pF AOORESS _ _ --J>4" Ao. Al. A2 STABLE X"----- r+-TASE .1 I ----- ~TeSE~ I I THLo--..11 F'" TROR ~' " ' - - - __ "--------~I~----------------~I~ I 1 ~ T R E - - -.... Y, I . ~TOAC~ 4 i TOOH. OB0-7 ------------~ OATAVALIO)>----- HOST READ TIMING HOST READ TIMING WD2010-05 WC = 5 MHz SYMBOL CHARACTERISTIC MIN MAX UNIT CONDITION t ASE Address Setup to RE 100 nsec - t oAe Data Valid from RE 350 nsec tRE Read Enable Pulse Width .4 10 IJsee tOOH Data Hold from RE 20 200 nsec t HLO Address CS hold from RE 0 nsec t ROR Read Recovery time 300 nsec tesE CS Setup to RE 0 nsec See Note 8 Winchester Disk Controller Devices 3-133 =e c AOOR ===>'_______Ao._A_l._A_2S_r._~B_L_E ______ X---- N o ...A. o : ----'.......",'-e- +t tSEW tAHW i pl:;.===t.:tW::E:::R-=~=::; I __ o• I ~ ~tCHW en ,,~ tWE y.\ ~ I ~ J4- t OH I < ,..--tos -I I OB0-7 tlEW"": '= ~ F tlEW HOST WRITE TIMING HOST WRITE TIMING WD2010-05 SYMBOL CHARACTERISTIC MIN MAX UNIT CONDITION tSEW Address CS Setup to WE 0 10 J.lsec tos Data Bus Setup to WE .2 10 J.lsec tWE Write Enable Pulse Width .2 10 J.lsec tOH Data Bus Hold from WE 10 nsec tAHW Address Hold from WE 30 nsec tWER Write Recovery Time 1.0 J.lsec See Note 1 tCHW CS Hold Time from WE 0 See Note 9 tlEw SDHLE Propagation Delay 20 150 nsec BCS~ ~ ~~i~~---tw--EV----------------------------------------~~~ !~tWF WE--'*TPUT) ,._ * ~ tWRS ~ i I ~ / ~~i • , '+-- (OU II II "" _ _ _ _..1 tvwE .... I~ ~ I~ tHWE OB0-7 --------+<:~ 1 DATA VALID >~------+--« DATA VALID H J....- - - - 1......I-------tRR -------I.~I BUFFER WRITE TIMING BUFFER WRITE TIMING (READ SECTOR CMD) WD2010-o5 WC = 5MHz SYMBOL CHARACTERISTIC MIN TYP MAX UNiT CONDITION tWEV WE float to WE'Valid 0 100 nsec C l = 50 pf tWRB WE Output Pulse Width 300 400 500 nsec See Note 4 tVWE Data Valid from WE 150 nsec tHWE Data Hold from WE 60 200 nsec tRR WE Repetition Rate 1.2 1.6 2.0 J.lsec tWF WE Float from BCS 0 100 nsec Cl = 50 pf 3-134 Winchester Disk Controller Devices =E c N o ..... RE oI (OUTPUT) o CJ1 BUFFER READ TIMING BUFFER READ TIMING (WRITE SECTOR CMD) WD2010-05 WC = 5MHz SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION tREY RE float to RE Valid 0 100 nsec CL = 50 pf - tREB RE Output Pulse Width 300 400 500 nsec See Note 4 tROS Data Setup to RE 140 nsec tRR RE Repetition Rate 1.2 1.6 2.0 JAsec tRF RE Float from BCS 100 nsec CL = 50 pf - tHRE Data Hold from RE 0 nsec --------------------------------------------------~ ~tDRN./' DRUN ,------- READ DATA TIMING READ DATA TIMING WD2010-05WC = 5 MHz SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION t RCP RCLK Pulse Width 95 2000 nsec 50% Duty Cycle tX1 RD from RCLK Transition 0 t RCP nsec tX2 RD to RCLK Transition 20 t RCP nsec tRO RD Pulse Width 40 t RCP nsec tORN DRUN Pulse Width 30 nsec t RCF RCLK Frequency .250 5 5.25 MHz See Note 6 Winchester Disk Controller Devices 3-135 I two --.j I...-- =E c wo '-0--: Jfr~~----~~~____________________________~!~~~------~,,~______ N I I I - o ...... I ~ ~two I oI o (J1 WCLK - - - - ,... I tWC::a:~ lj;: I t---\~_..Jt,~--', - _____if tWCF ----.....~! I -l I • I LATE \ ' -____________ --J/~------------- --.l : - 'WLE I EAR~ ----------------------------------------~\L~ _____________ ..J WRITE DATA TIMING WRITE DATA TIMING WD2010-05WC = 5 MHz SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION twc WCLK Pulse Width 95 2000 nsec 50% Duty Cycle two Propagation Delay 10 65 nsec WCLK to WD tWLE WCLK to Leading 10 65 nsec EARLY/LATE tELW WCLK to Trailing 10 65 nsec EARLY/LATE t WCF WCLK Frequency .250 5 5.25 MHz See Note 6 3-136 Winchester Disk Controller Devices BRDY R ~tRQ" ItBRY=\l... cs.~ L..J =E C I N I I ~tMR ~MRW.J BDRQ MR 0 ...r. ~ I 0 0• BCR ~ tMRB~ U'I BCR ~. ,. tBCR~ WCLK STEP FtSTP~ INDEX rtlDX~ RCLK I I. FRC I MISCELLANEOUS TIMING MISCELLANEOUS TIMING MISCELLANEOUS TIMING WD2010-05 SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION BORO Reset from BROY 20 200 nsec Buffer Counter Reset 1.4 1.6 1.8 ""sec Pulse Width Step Pulse Width 1.4 1.6 8.2 ""sec See Note 2 7.8 8.0 8.2 tlDX Index Pulse Width 500 nsec tMR Master Reset Pulse 24 WC See Note 3 t BRy BROY Pulse Width 400 nsec See Note 5 tMRB MR Trailing to BCR o 3.2 6.4 ""sec tMRW MR TraUing to Host Write 6.4 ""sec NOTES: 1. AC timing measured at VOH = 2.0V, VOL = 0.8V, 7. 2 WCLK ± 50 ns. C L = 50 pf. 8. RE may precede CS if CS plus RE meets the 2. 1.6 ""sec. is typical pulse for a step rate of 32 tRE width. ""sec/step. 8.0 ""sec typical pulse for all other step 9. WE may precede CS if CS plus RE meets the rates. Last step pulse at 3.2 ""sec/step rate up to tWE width. 8.2 ""sec. 10. It may be desirable to connect a 1 K Q pullup 3. 24 WCLK periods (4.8 ""sec at 5.0 MHz) resistor to pins 21-23. 4. 2 WCLK ± 100 ns. 5. The true to false transition of BROY should not come sooner than 2 WCLK from true to false tran- sition of BORO. 6. t RCF = tWCF ± 15%. Winchester Disk Controller Devices 3-137 3-138 Winchester Disk Controller Devices WESTERN DIGITAL COR P 0 RAT o N WD10C20-05 Self-Adjusting Data Separator FEATURES • PROCESSES ALL SENSITIVE READIWRITE DATA ADJUST IPUMP SIGNALS Vss VCOOUT WGATE VCOIN • CMOS TECHNOLOGY RGATE PUMP • DESIGNED FOR ST506/ST412 AND WD10101 WPCEN VCC WD2010 INTERFACE LATE RCLK • HIGHLY STABLE LC TYPE VOLTAGE EARLY RDATA CONTROLLED OSCILLATOR WDATA TLATE • SELF ADJUSTING VCO COMPENSATES FOR WCLK THALFWIN COMPONENT, TEMPERATURE, VOLTAGE, AND XTALIN TEARLYZP AGING VARIATIONS XTALOUT DLYDR • FREQUENCY DETECTION ON CRYSTAL DRUN TNOMINAL REFERENCE AND DATA SYNCHRONIZATION DRUNRC WMFM FIELD, ELIMINATES 180 DEGREE LOCK DUE TO RMFM TFULLWIN DRIVE ASYMMETRY, AND ELIMINATES HARMONIC LOCK FROM WP.ITE SPLICES • ZERO PHASE STARTUP PROVIDES FASTER, MORE PREDICATABLE LOCK ACQUISITION T T • LOCKS TO CRYSTAL REFERENCE WHILE IDLE H E A • DUAL GAIN: HIGH FOR FASTER ACQUISITION A T L R LOW FOR MORE JITTER R P R D L F L REJECTION WHILE TRACKING U V C A A W Y • EXTERNAL PUMP CURRENT CONTROL M C L T T I Z P C K A E N P • AVAILABLE IN 28-PIN DIP OR QSM PACKAGE • INTEGRATED CRYSTAL OSCILLATOR 25 24 Z} 22 21 20 19 VCOIN 1B DLYDR • ACCOMMODATES OTHER DATA RATES THROUGH SELECTION OF EXTERNAL VCOOUT 17 TNOMINAL COMPONENTS IPUMP 16 WMFM ADJUST 15 TFULLWIN VSS 14 RMFM WGATE 13 DRUNRC RGATE 12 DRUN 5 6 7 B 9 10 11 ~ I~E ~ ~ ~ : : E L T K L L N Y A I 0 N U T PIN DESIGNATION Winchester Disk Support Devices 4-1 DESCRIPTION While writing, the WD10C20-05 conditions the write data to the drive. MFM data from the WD1 01 01WD201 0 :E The WD10C20-05 is an LSI device implemented in 3 c ...&. micron high-speed CMOS, designed to be compati- is precisely clocked, with a Signal at twice the data o ble with the WD1010 and WD2010 Winchester Disk frequency, to minimize digital phase noise. If (') precompensation is enabled, early, nominal, and late I\) Controllers and ST506/ST412 disk drives. In a typical taps on an external delay line are multiplexed through o application, it handles all sensitive read/write signals between a WD1010/WD2010 and the data matched delay paths to produce synchronized, drivers/receivers. Read data corresponds to previous precompensated write data, which is sent directly to write data, with added phase, frequency, and write the drive's write circuits. splice noise. The WD1OC2Q..05 removes these sources The WD1OC2Q..05 is designed to work at the 5 Mbitlsec of noise and presents a clean, digital read signal to data rate of the ST506/ST412 interface. Other data the WD10101WD2010. rates may be accommodated through the proper While reading, the WD10C20-05 performs phase- selection of external components. locked loop data synchronization on data read from NOTE: To assure reliable operation of the the drive. An on-board Sync Field detector WD10C20-05, it is recommended that the automatically switches the PLL from the stable WD10C20-05 KIT, number 77-000014 be used. crystal reference to the read data. Zero-phase star- If the user elects to not use the kit, the exter- tup results when the VCO is halted and restarted in nal components as shown in Figure 1, must phase with the data to eliminate initial acquisition in be selected from the parts listed in the the wrong frequency direction. Frequency-phase WD10C2Q..05 Application Note. The placement detection is used at the beginning of the Sync Field of these components must conform to the to quickly and reliably acquire lock to the data. Use layout illustrated in the Application Note. (The of this technique eliminates susceptibility to har- Application Note is available through your monics and asymmetry. The WD10C20-05 then swit- Western Digital field representative.) ches to phase-only detection to complete the phase acquisition before the end of the Synch Field and to enable tracking of random MFM read data. When switching to phase detection, the WD10C20-05 reduces the error amplifier gain for better rejection of drive jitter. A precisely aligned detector samples the data at twice the underlying data rate to remove the phase jitter. The regenerated signal, along with a fixed-phase synchronous clock, are output to the WD1010IWD2010 digital circuits. 4-2 Winchester Disk Support Devices +5V + 12 • I11101 ;~ .. ~ R101 +e", te", FERRITE BEAD .. ~ 1 4e", ie,,, 24 VCC ADJUST U101 CR102 WD10C20 r----.t ~-~ I I I I ... .. ~ R103 I I ... ~ R106 CR101 R102 AAA 28 IPUMP PUMP 25 AAA ••• 1 ""J-- 111""1 """ :;::: : : C111 t TAS. ...... AAA 13 DRUNRC R104 ? e," :;::: ;::: C112 ~ R107 :;:::~ C110 :::r: C109 18 DLYDR ~ 26 VCOIN U102 VCC 12 24 12 4 19 17 TEARLYZP TNOMINAL VCOOUT 27 R105 AAA t 1 L 102 vvv 10 21 T ::: r:: C113 t 36 TLATE 6 20 C108 GND 60 THALFWIN DELAY LINE 96 8 T 15 TFULLWIN ~ 11 XTALOUT 22 RDATA Y101 12 10 DRUN XTALIN JOI +e,~ I I 23 RCLK 9 ~ WCLK C105 4 RGATE WD~01O 3 WGATE WD2010 ~* ~ WPCEN 6 LATE 7 14 EARLY RMFM D 8 R WDATA 16 I WMFM V E GND ~ 'RWC CONNNECTS TO WPCEN IF REDUCED WRITE CURRENT IS TO START AT THE SAME TIME AS WRITE PRECOMP. THE WD1002S·WX2 USES LS/DIRlWPC. FIGURE 1. EXTERNAL COMPONENTS Winchester Disk Support Devices 4-3 =E RMFM c.... o o I\) o I SYNC FIELD DETECTOR ~ POWER·ON RESET . SELF·ADJUST CIRCUIT ADJUST - DRUN 1 t PUMP ~ ,'" , RGATE WGATE J J I + + STEERING CONTROL II I CHARGE PUMPS T ~ •J FILTER WCLK ZERO PHASE t t Y I VCOOUT STARTUP ,.. I I VCO I CRYSTAL OSCILLATOR I PLL "UX I PHASE FREQUENCY t - VCOIN1'. AND CLOCK GENERATOR I DETECTOR '~" WDATA WPCEN + t ~ EARLY WRITE DATA PRECOMPENSATION I WMFM ,~ LATE CONDITIONER MUX I DLYDR t TEARLYZP DELAY AND TNOMINAL I-- PULSE TLATE FORMER THALFWIN II READ DATA DETECTOR RDATA I RCLK I FIGURE 2. WD10C20 BLOCK DIAGRAM 4-4 Winchester Disk Support Devices PIN DESCRIPTION PIN NUMBER MNEMONIC SIGNAL NAME 1/0 FUNCTION 1 ADJUST ADJUST a Provides self calibration of the PLL. 2 VSS GROUND 3 WGATE WRITE GATE I WGATE is asserted when the controller writes on the disk. 4 RGATE READ GATE I RGATE is asserted when the controller intends to read from the disk. RGATE causes the WD10C20-05 to remain locked onto the incoming data stream. 5 WPCEN WRITE I WPCEN is asserted to enable the EARLY and PRECOMP LATE signals from the controller. WPCEN may be ENABLE connected to the Reduce Write Current (RWC) available from the WD1010IWD2010 if Write Precomp is to occur at the same time as the Reduced Write Current, or to an independent source if they start at different times. 6 LATE LATE I Asserted by the Controller to delay the writing of a bit to the disk. 7 EARLY EARLY I Asserted by the Controller to advance the writing of a bit to the disk. 8 WDATA WRITE DATA I Non-Synchronized and Non-Precompensated MFM data from the controller to be written on the disk via WMFM. 9 WCLK WRITE CLOCK a WCLK is equal to XTALIN -+- 2 and is used by the con- troller to generate the data to be written. 10 XTALIN XTALIN I XTALIN is a crystal controlled oscillator input used by a number of internal control functions. Divided by 2 it develops WCLK. XTALIN may also be driven by an external driver in which case XTALOUT is left open. The input level of this pin is not TTL and must be guaranteed by the clock source. 11 XTALOUT XTALOUT a XTALOUT is the crystal controlled oscillator output. When an external frequency source is used, this pin is left open. 12 DRUN DATA RUN a DRUN is a signal that discriminates between frequen- cies on RMFM. It goes low for low frequencies and high for high frequencies. Its nominal threshold is set to 1-3/8 bit times using DRUNRC. DRUN remains asserted for a continuous stream of one's or zero's. ie: Sync Field. 13 DRUNRC DRUNRC I Connected to an external RC circuit for the genera- tion of DRUN. 14 RMFM READ MFM I MFM Data received from the drive. A nominal4K ohm DATA internal pullup resistor allows tri-state multiplexing of the driver's data receivers. 15 TFULLWIN TFULLWINDOW I Delay line tap for generating full window RMFM pulses. 16 WMFM WRITE MFM a Preconditioned WDATA ready to be written on the DATA disk. WMFM is held low when WGATE is low. 17 TNOMINAL TNOMINAL I Delay line tap for uncompensated write data. Winchester Disk Support Devices 4-5 PIN DESCRIPTION (Continued) =E c -" PIN o NUMBER MNEMONIC SIGNAL NAME I/O FUNCTION o N 18 DYLDR DELAY LINE 0 Drives an external delay line. o DRIVER \ 19 TEARLYZP TEARLY ZERO I Delay line tap for early precompensated write data and PHASE TIMING for zero phase startup of the VCO. 20 THALFWIN THALFWINDOW I Delay line tap for generating the enable phase delay when in phase detection mode. 21 TLATE TLATE I Delay line tap for late precompensated write data. 22 RDATA READ DATA 0 RDATA is RMFM synchronized to RCLK. The clock is removed from the RM FM by the controller. 23 RCLK READ CLOCK 0 RCLK is equal to one half of VCO and is synchronized to RDATA during a read operation and to WCLK while in an idle state. 24 VCC POWER SUPPLY I + 5V Power Supply. 25 PUMP PUMP 1/0 Charge PUMP to the PLL filter. Also a voltage input to the self-adjust sensing circuitry. 26 VCOIN VOLTAGE I Input to the VCO gain stage. VCOIN is clamped low, CONTROL and then released during zero phase startup. OSCILLATOR INPUT 27 VCOOUT VOLTAGE 0 Output from the VCO gain stage. CONTROL OSCILLATOR OUTPUT 28 IPUMP IPUMP I An external resistor connected to IPUMP establishes the magnitude of the charge pump current and ADJUST current. ARCHITECTURE frequency data immediately preceding these fields. The criterion used is pulse period discrimination on The WD10C20-05, with the necessay external com- the RMFM data. The external resistor and capacitor ponents, provides the data interface between the connected to DRUNRC sets the nominal detection WD1010 or WD2010 and an ST506/ST412 compatible threshold of 1-3/8 bit times. DRUN goes low for long drive. There are eight major functional sections within periods and high for short periods. the WD10C20-05: STEERING CONTROL • Synchronized Field Detector • Steering Control This logic controls the sequencing of events when • Phase-locked Loop (PLL) the WD10C20-05 is switching between read, write and Phase-frequency Detector idle modes. When switching, the Steering Control Charge Pumps disables the Phase-Frequency Detector and Charge Filter Pumps, switches the MUX source, invokes zero-phase Voltage Controller Oscillator (VCO) startup, selects the velocity lock mode of the Phase- Zero Phase Startup Circuit Frequency Detector, and high gain on the Charge Self Adjustment Circuit Pump. After the zero-phase startup is complete, the • Read Data Detector Phase-Frequency Detector and Charge pumps are • Crystal Oscillator enabled. If the device is in read or write mode, after • Write Data Conditioner four byte times the Steering Control switches to phase • Delay And Pulse Former detection, and the charge pumps are set to low gain. • Power-on Reset PHASE-LOCKED LOOP SYNCHRONIZATION FIELD DETECTOR Phase-Frequency Detector The Synchronization Field Detector discriminates bet- The Phase-Frequency Detector operates in one of two ween the OO's of a Synchronization Field and the low modes: velocity lock mode or phase-only detection. 4-6 Winchester Disk Support Devices Velocity lock mode is used for acquisition when the disables the VCO gain stage. When the WD10C20-05 PLL is switched to read or write data or when the PLL is following the reference crystal oscillator. changes the PLL input signal, the clamp is turned on for a minimum of one input data period. This stops :ec The Steering Control logic switches to the Phase-only the VCO gain and removes the AC energy from the ..... passive VCO components. The VCO is now in a o mode when frequency and phase acquisition is nearly (') complete. Internal delay paths have been carefully known state, and the time between the release of the I\) matched to minimize introduction of a phase error due clamp and the time the first edge of the VCO reaches o to switching. The phase-only mode must be used to the Phase Frequency Detector can be predicted. This lock to the MFM following the Sync Field, since that event is made to coincide with the arrival of a data contains the three MFM frequencies. pulse by the delay between TEARLYZP and THALFWIN. In either mode, the Phase-Frequency detector con- verts a phase difference between the VCO and the Self Adjustment Circuit input to a pulse width equal to the phase difference. The Self Adjustment Circuit (SAC) serves to slowly The polarity of the phase error determines whether maintain the VCO's input voltage near the sense level. a Signal is directed to the pump up or pump down It performs compensation for component variations circuitry in the Charge Pump section. in much the same way as manual adjustments, as Charge Pumps well as dynamic variations such as temperature, voltage and aging. Another advantage of this circuit The Charge Pump circuit converts the widths received is the heavy RC filtering of the + 12 volt supply. The from the Phase-Frequency Detector to proportional SAC tunes the VCO so that its nominal output fre- amounts of charge, into or out of the filter. The gain quency of twice the data rate corresponds to an input of the Charge Pumps is set by the input current of voltage favorable to the Charge Pumps. This voltage the IPUMP signal. This current is set by an external is approximately half of the VCC, and centers the cap- resistor connected to the VCC. ture range. The PUMP Signal connects to an internal Filter comparator and senses the VCO input voltage to determine whether it is above or below the threshold The Filter converts the current pulses from the Charge voltage (VSENSE). Pumps to a voltage ouptut to the VCO. It also peforms the sample-and-hold function necessary for an edge The comparator is sampled at a low frequency derived locked PLL, and is also necessary during the zero from the crystal. The output is used as the up / down phase startup period. As shown in Figure 1, one of control to a six-bit counter. At power-on, this counter the filter's capacitors (C110) is also part of the VCO's is set to half scale. The least significant two bits are series resonant oscillator. for noise immunity only. The most significant four bits connect to a digital-to-analog converter (DAC) that The filter must meet the specific requirements .of controls the current-sinking ability of the ADJUST acquisition time, capture range, and jitter ejection, signal. To convert the ADJUST signal current to a and within the context of its effect on VCO opera- voltage, it is connected externally through a resistor tion. The filter functions to block high frequency to the + 12V. To filter the DAC steps and transients, signals due to RMFM read data jitter, and passes the the ADJUST is connected to two capacitors. A resistor low frequency Signals of the RMFM. from the ADJUST signal to the cathode of the VCO Voltage Controlled Oscillator: varactor completes the circuit. Refer to Figure 1. The VCO is a series resonant LC oscillator. The active READ DATA DETECTOR gain element that provides the energy to sustain The Read Data Detector produces RCLK and RDATA. oscillation is within the WD10C20-05, between the RCLK is a square wave equal to one half of the VCO VCOIN and VCOOUT pins. An inexpensive varactor frequency. During data tracking, RCLK mirrors the controls and tunes the VCO. The filter connects to slowly varying frequency of the RMFM. RDATA is a the anode of the varactor and provides the voltage regenerated form of the RMFM, with the jitter for loop operation of the PLL. Higher voltages at the VCO input correspond to lower frequencies, and lower removed and one-half bit-time pulse widths, and is voltages correspond to higher frequencies. The self- exactly synchronous with RCLK. RCLK edges occur adjustment circuit connects to the cathode of the nominally in the center of RDATA to allow sufficient varactor. The voltage bias at this point determines the setup and hold time for the digital circuits in the location of the VCO's V-F characteristic curve, and WD1010 / WD2010 using these signals. is set for a favorable VCO input voltage at the nominal CRYSTAL OSCILLATOR frequency of the VCO. The Crystal Oscillator is designed to operate in the Zero Phase Startup Circuit parallel resonant mode, with an external crystal and The VCOIN connects to the Zero Phase Startup Cir- two capacitors. It generates the WCLK Signal used cuit, which contains the logic necessary to turn a externally. Internally, various divisions of it are used clamp on or off. This clamp, in turn, enables or by the Write Data Conditioner, PLL, and SAC. Winchester Disk Support Devices 4-7 When an externally generated clock is desired, the DELAY AND PULSE FORMER crystal and capacitors are omitted. The XTALIN pin :ec is connected to the clock source, and XTALOUT is The Delay And Pulse Former includes the external delay line as well as logic internal to the WD10C20-05. -" left disconnected. The input levels of XTALIN are not In response to rising edges, it produces positive o TTL and must be guaranteed by the clock source. pulses slightly longer than one detection window, o WRITE DATA CONDITIONER which is half of one bit time. The taps are also used N o The Write Data Conditioner samples and precisely for write precompensation, zero-phase startup, and synchronizes WDATA, EARLY, and LATE on the defining the enable window for phase detection. leading and trailing edges of WCLK. When WGATE Depending on the mode of operation, its input is is asserted, the DLYDR signal is a direct derivative either RMFM,' synchronized WDATA, or WCLK. of WDATA and is connected to the input of the delay POWER·ON RESET line. It returns to the WD10C20-05 via the TEARLYZP, This integrated function is used to reliably set flip- TNOMINAL, and TLATE input signals. When WPCEN flops to a predictable state during the application of is de- asserted, WMFM follows the TNOMINAL signal. the VCC. It is used by the Steering Control and SAC When WPCEN is asserted, the EARLY and LATE sections. signals select the TEARLYZP and TLATE inputs, respectively. The differential delay between DATA SEPARATOR CIRCUIT PERFORMANCE TEARLYZP and TNOMINAL at the delay line defines SPECIFICATIONS the amount of early precompensation, and similarly, The following specifications apply when the external the differential delay between TNOMINAL to TLATE components are selected as specified and operate defines the amount of late precompensation. within the following ranges: When WGATE is asserted, one of the initial MFM Vcc = + 5V ± .25V with ::s 100 mV ripple, 0 to 30 KHz pulses is suppressed to create an interval of two bit times. This ensures that DRUN will go low at the = + 12V + 12V ± 1.2V with::S 200 mV ripple, 0 to 30 KHz beginning of a Sync Field preceding a data field, so that zero phase startup and velocity lock are executed = Temperature 0° to 70°C (32° to 158°F) properly. When WGATE is de-asserted. WMFM is held low. PHASE·LOCKED LOOP: • Acquisition Time ................................... < 12.8 usec (16 usec from DRUN high) • Capture Range. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. > ± 2.2% (± 1 % drive ±.1 % crystal Osc.) • Jitter Rejection .................................... >40 db at 2.5 MHz • Damping Factor ................................... min.7 typo 1 max 1.4 Velocity Lock min.5 typo .7 max 1.1 Phase Detection • KD Error Amplifier. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. min 2 rnA Velocity Lock Gain typ 6 rnA Operating Range max 10 rnA VSENSE ± 1060 mv min 1 rnA Phase Detection typ 4.3 rnA Operating Range max 6.8 rnA VSENSE ± 950 mV • Error Amplifier. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. max 2:1 Phase Detection Balance Ratio Operating Range VSENSE ± 950 mV Phase: ± 5 to ± 40 nsec • Ko VCO Gain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. min 4.5% per volt typ 5% per volt max 7.5% per volt FREQUENCY DETECTOR While in the phase detection mode, the phase dif- DRUN must be high in response to RMFM rising edge ference from null (zero pump current) to the decision to rising edge periods less than 250 nsec. DRUN must points must be no less than ± 40 nsec. be low for periods greater than 300 nsec. VCO GAIN CRYSTAL OSCILLATOR Over the VCO input voltage range, VSENSE nominal The operational frequency must be within ±.1 % of ± 1060 mV, the VCO gain must be within the range 10 MHz. of 4.5% to 7.5% per volt. There must be no interrup- PHASE DETECTOR/CHARGE PUMPS tions in its characteristic V-F curve over the input voltage range. Phase Decision Points 4-8 Winchester Disk Support Devices WD10C20-0S ELECTRICAL CHARCTERISTICS MAXIMUM RATINGS =E Vcc with respect to Vss .................................................................. + 5.5 Volts c..... Max Voltage range on any pin ...................................................... -O.5V to O.5V > Vcc o (except ADJUSn with respect to Vss o I\) Max Voltage Range on ADJUST with respect to Vss ....................................... -D.5V to + 13.2V o Operating Temperature ........................................................ OOC(32°F) to 70°C(158°F) Storage Temperature ....................................................... -65°C(-85°F) to 150°C(302°F) NOTE Maximum limits indicate where permanent device damage occurs. Con- tinuous operation at these limits is not intended and should be limited to those conditions specified in the DC Operating Characteristics DC OPERATING CHARACTERISTICS TA = OOC (32°F) to 70°C (158°F) Vcc = + 5V ± .25V Input signals: TEARLYZP, TNOMINAL, TLATE, THALFWIN, TFULLWIN, RGATE, WGATE, WPCEN, WDATA, EARLY, LATE, RMFM SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION V IH Voltage Input High 3.0 V V IL Voltage Input Low .8 V Input signals: TEARLYZP, TNOMINAL, TLATE, THALFWIN, TFULLWIN, RGATE, WGATE, XTALlN, VCOIN (Clamp off) SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION liN Input leakage ±10 jJA VIN = GND to Vcc Input signals: WDATA, EARLY, LATE SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION IIH Current Input High + 10 jJA V IH = 3.4 V* IlL Current Input Low -4 mA V IL = .45 V* Input signal: WPCEN SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION IIH Current Input High +10 jJA VIH = 3.4 V* IlL Current Input Low -2 mA V IL = .4 V* *These inputs mayor may not have an internal pullup resistor. In either case, if IIH and IlL meet these specs, the inputs will be driven correctly. Winchester Disk Support Devices 4-9 Input signal: RMFM :E TYP c .... SYMBOL CHARACTERISTIC MIN MAX UNIT CONDITION o IIH Current Input High 0 rnA VIH = 3.4 V C') Current Input Low -2.5 rnA VIL = .4 V I\) IlL o Internal pullup resistor Input signal: XTALIN SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION VIH Voltage Input High 3.6 V V IL Voltage Input Low .6 V Output signals: WCLK**, WMFM, DLYDR SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION VOH Voltage Output High 2.4 V 10H = -1 rnA VOL Voltage Output Low .4 V 10L = 4 rnA TRISE Rise Time .8 to 2.0 V 10 nsec CL = 30 pf TFALL Fall Time 2.0 to .8 V 10 nsec CL = 30 pf Output signal: WCLK* * SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION VOH Voltage Output High 4.6 V 10H = -100 pA VOL Voltage Output Low .2 V 10L = 1 rnA TRISE Rise Time .9 to 4.2 V 30 nsec CL = 30 pf TFALL Fall Time 4.2 to .9 V 30 nsec CL = 30 pf **WCLK has two requirements. It must be able to drive special WD1010 / WD2010 inputs, as well as a buffer at TTL levels. In any application, the total capacitance of the WD1010 / WD2010, buffer, and PC board, must not be more than 30 pf. The total input current of the WD1010 / WD2010 and buffer at the different input voltages must not exceed the above specification. Output signals: RCLK, RDATA, DRUN SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION VOH Voltage Output High 4.65 V 10H = -20 pA VOL Voltage Output Low .2 V IOL = 20 p,A TRISE Rise Time .9 to 4.2 V 30 nsec CL = 20 pf TFALL Fall Time 4.2 to .9 V 30 nsec CL = 20 pf 4-10 Winchester Disk Support Devices Self Adjust, Pump, and Power SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION Vs VSENSE Threshold 2.4 V IA ACQUISITION PUMP Current ±6 rnA 3.57K on IPUMp··· IT TRACKING PUMP Current ±4.5 rnA 3.57K on IPUMp··· IJMX ADJUST Max Current .4 .6 1.0 rnA 3.57K on IPUMp··· IJMN ADJUST Min Current ±10 ",A Icc Power Supply Current 40 rnA 3.57K on IPUMP, 5MHz ···Depending upon the application, there are specific requirements upon the pump currents and their relation· ship to VSENSE. This document is written for 5 Mbitlsec, WD1010IWD2010, ST506/ST412 drive. AC OPERATING CHARACTERISTICS Timing on signals RDATA, RCLK, WCLK, and DRUN are measured at the voltage halfway between the WD1010IWD2010's VIH and VIL: 2.55 Volts. All other signals are measured from the 1.4 volt transition. All timing is measured with the load capacitance, CL 50 pf. = \ _______1 RMFM _---I / 1- 11 - - 1 - 12 ---l \----- FIGURE 3. DISK DRIVE READ DATA, PULSE FORMING TABLE 1. DISK DRIVE READ DATA, PULSE FORMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION t1 RMFM Pulse Width High 20 150 nsec t2 RMFM Pulse Width Low 25 nsec --l " f--\ -------1', f - b EARLY ~'a..j ----V-:-"'at---~------ ' ......_ _ _J..J 'a f- --l 'a f- -------1 " 1-',--1 1 ~TE -----------I~----'a-I----I-'af__------~\ ;--- ----1 " f__ f--" -..j I ----1 " ~-..j " l - I 'a f__ FIGURE 4. WRITE SETUP/OLD TABLE 2. WRITE SETUP/HOLD SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION t7 Hold Time 5 nsec t8 Setup Time 20 nsec t9 WCLK Pulse Width 95 105 nsec Setup and Hold time is independent of the application of the WD10C20·05. Winchester Disk Support Devices 4-11 :ec ...... o \~/ o N o FIGURE 5. DRUN TABLE 3. DRUN SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION t11 DRUN Low Pulse Width 30 nsec * *No requirement on DRUN pulse width high. /-114 -I· 115-1 RCLK J \ I \ / \ / '-- 119-1 l- RDATA I \ I \ I 118~ 1=1 16 -I- 117~ 119 I-- ---l 118 FIGURE 6. RCLK, RDATA TIMING TABLE 4. RCLK, RDATA TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION t14 RCLK High Pulse Width 93 108 nsec t 15 RCLK Low Pulse Width 93 108 nsec t 16 RDATA High Pulse Width 93 108 nsec t17 RDATA Low Pulse Width 93 108 nsec t 18 RCLK Edge to RDATA 30 nsec Max is implicit in t19min Rising Edge t19 RDATA Rising Edge To 30 nsec Max is implicit in t 18 min RCLK Edge t14 and t 15 each define an MFM detection window. The rising edge of RDATA must occur within the window. t14 + t 15 = the current bit cell time. 4-12 Winchester Disk Support Devices =E TFULLWIN I \ c ..... 0 I- 120 ---l (') I\,) DLYDR I \ 0 FIGURE 7. DLYDR, TFULLWIN TIMING TABLE 5. DLYDR, TFULLWIN TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITION t 20 DLYDR Shutoff Time 12 36 nsec PACKAGE DIAGRAMS ;~: 0;: 1( .J:t ~}O~ 1S49t 38 1630t76 LOCATING ~LCS) I 1905 050 TYP 1- ~. CHAMFER 1270 012tOO3 3OlO8 ~ 12.446% .38 28 LEAD PLASTIC PH 490 015 12.446%.38 170 015 4.3181381 - ~"~" - ~TYP 1270 28 LEAD PLASTIC QUAD JH Winchester Disk Support Devices 4-13 4-14 Winchester Disk Support Devices WESTERN DIGITAL COR P 0 RAT o N WD1014 Error Detection/Support Logic Device FEATURES • 32-BIT ECC POLYNOMIAL OSB1 vcc • BURST CORRECTION TO 11-BITS HO/FO OSB2 • MULTIPLE ERROR BURST DETECTION AO SOH2 07 SOH1 • DATA TRANSFER RATE OF 5-MBITS/SECOND 06 SOHO • PROCESSES CHECK/SYNDROME BITS IN 2-BIT 05 INTRa SERIAL FASHION 04 MR 03 SC128 • SECTOR SIZES = 128, 256, 512, & 1024 BYTE 02 CMR DATA FIELDS 01 ORa • SUPPORT READ/WRITE SHORT/LONG 00 WAUP HSC CINC FEATURES HBC SBEF • ON-CHIP STORAGE OF SYNDROME/CHECK A2 WE BYTES A1 RE cso ClK • 8-BIT I/O DATA BUS CS1 HOCS • SOFTWARE ADDRESSABLE REGISTERS & BCS RCS !:ATCHES llB BCR • ON-CHIP LOGIC FOR EXTERNAL BUFFER vSS lUB CONTROL • 40 PIN, DUAL-IN-L1NE, N-MOS DEVICE PIN DESIGNATION • TTL, MOS COMPATABILITY • SINGLE SOURCE +5 VDC SUPPLY DESCRIPTION The WD1014 EDS logiC chip provides the WD1002-05 except that the current design is a 2-bit serial Winchester Floppy Disk Controller (WFC) board with implementation of the polynomial for faster operation. ECC and support logic. The EDS chip is a single chip The ECC polynomial selected is a computer device specifically deSigned to add error correction generated code optimized for sector sizes of 128, 256, capabilities to a 5.25" and 8" Winchester disk drive. 512, and 1024 byte data fields. The four ECC bytes It also contains three 8-bit registers, three counters, appended by this chip enable corection of a single and several latches that enhance the capability of the burst of up to 11 bits. It can also simultaneously WFC on-board Control Processor (CP) chip WD1015 detect a single burst of up to 20 bits and a double for control functions in real time operation. The EDS burst of up to 4 bits. The computer generated code 4O-pin device replaces approximately 35 standard TTL has been selected over a comparable fire code since packages consisting of shift registers, flip-flops, and the fire codes suffer from pattern sensitivity problem. logic gates. The WD1014 EDS device is fabricated using N- The ECC polynomial selected is the same as the one channel silicone gate technology, and is available in implemented in the WD1100-06 ECC/CRC logiC a 40-pin, ceramic, dual-in-line package. Winchester Disk Support Devices 4-15 PIN DESCRIPTION =E c ..... PIN NUMBER MNEMONIC PIN NAME FUNCTION o ..... ~ 1 DSB1 DRIVE SELECT BIT 1 This output is encoded with DSB2 to select one of three Winchester Drives or one of four floppy drives depending upon the state of HD / FD. 2 HD/FD HARD OR FLOPPY When high, hard disk drives are selected and when DISK SELECT low, floppy disk drives are selected. 3 AO ADDRESS BIT a This input along with CSO = 1 and CSI = a is used to address the WD 1014 registers. 4 07 DATA 7 8-bit bi-directional data bus. Data is output only when Thru thru thru the check / syndrome register or the command 11 DO DATA a register is read. 12 HSC HOST STATUS This output when low, enables the WFC status onto CONTROL the data lines making them available to the Host pro- cessor, if WAUP = O. 13 HOST BUS CONTROL This output when low, enables the Host to com- municate to the WFC and set up all task files, if WAUP = a and HSC = 1. 14 A2 ADDRESS BIT 2 These 2 inputs along with CSO = 1 and CS1 = a 15 A1 ADDRESS BIT 1 are used to address the WD1014 registers. 16 CSO CHIP SELECT BIT a CSO = 1 and CS1 = a selects the WD1014, for 17 CS1 CHIP SELECT BIT 1 other combinations see the chart under task files. 18 BCS BUFFER CHIP SELECT This input line indicates that an external device wants to access the buffer. The ECC check / syndrome com- putation is also enabled at this time. 19 LLB LOAD LOWER BYTE The rising edge of this output line is used to load the lower byte of address into the external buffer counter. 20 GROUND Ground. 21 LOAD UPPER BYTE The rising edge of this output line is used to load the upper byte of address into the external buffer counter. 22 BCR BUFFER COUNTER This input indicates that an external device wants to RESET reset the external buffer counters. The internal overflow counters are also cleared. 23 RCS RAM CHIP SELECT This output line is used to select external RAM when BCS is active low or when the CP or the Host is accessing the RAM. This output is disabled when SBEF = 1. 24 HARD DISK CHIP This output line is used to enable the WD1010 when SELECT the Host is accessing its task files except the Error, Status and Command registers. 25 CLK CLOCK The rising edge of CLK is used to shift the ECC polynomial and the falling edge is used to count exactly 4 shifts. 26 RE READ ENABLE Strobes used in conjunction with CSO = 1, CS1 27 WE WRITE ENABLE = 0, A2-AO to access registers. 28 SBEF SECTOR BUFFER Output signal used to indicate the sector buffer has EMPTY OR FULL been filled or emptied. 29 COUNTER INCREMENT The rising edge of this output signal increments an external address counter. This output is enabled only if the RAM is being accessed and SBEF = O. 4-16 Winchester Disk Support Devices PIN DESCRIPTION PIN NUMBER MNEMONIC PIN NAME FUNCTION 30 WAUP WAKEUP This output signal is made active by the Host issu- ing a command and filling the sector buffer. It indicates that a command is being executed by the CP on the WFC board. The Host now cannot com- municate with the WFC until the command has been completed. MR also sets WAUP. 31 DRQ DATA REQUEST The data request line is activated whenever the sec- tor buffer contains data to be read by the Host, or is awaiting data to be loaded by the Host. This line is reset whenever the sector buffer has been filled or emptied. 32 CMR COUNTER MASTER This output signal resets the external address RESET counters whenever a MR or a command has been issued by the Host, or when BCS is asserted. 33 SC128 SECTOR COUNT OF This input signal is used in conjunction with the SDH 128 BYTES register to indicate that the buffer has overflowed. - 34 MR MASTER RESET Used to initialize internal logic. All internal buffer overflow counters are reset, the ORQ and INTRQ flip- flops are cleared and BUSY is set. 35 INTRQ INTERRUPT REQUEST This output line is activated whenever a command has been completed. It is reset to the inactive state when the status register is read, or a new command is loaded via the DAL lines, or MR is asserted. 36 SDH2 DRIVE SELECT, AND The 3 least significant bits of the internal SDH register 37 SDH1 HEAD SELECT BITS are available as outputs. The SDH register is updated 38 SDSH2 whenever the Host writes to it. 39 DSB2 DRIVE SELECT BIT 2 This output is encoded with DSB1 to select one of three Winchester Drives or one of~ur floppy drives depending upon the state of HO/FD. 40 Vee POWER SUPPLY + 5V Power Source TASK FILES WAKE UP, CS1, CSO, A2-AO, RE and WE are used to select various registers as shown below: WAKE UP CS1 CSO A2-AO EFFECT X 1 1 X Idle - Nothing selected. a 1 a X Host to WFC and WD1010 files. 1 1 a X CP to WD1010 + RAM access. 1 a 1 X CP to WD1014. X a a X Illegal condition. Winchester Disk Support Devices 4-17 WD1014 REGISTERS WD1 01 0 REGISTERS :E c ..... A2 A1 AO RE WE RE WE o ..... 0 0 0 O+CHECKj o + CH ECK bytes RAM RAM ~ SYN bytes 0 0 1 Set ECC Error Req. " Write Precomp 0 1 0 SLEEP 0+ LLB2 Sector Count Sector Count 0 1 1 Clear OVF/CNTRS 0+ LUB 2 Sector Number Sector Number 1 0 0 Set DRO Cyl i nder Low Cylinder Low 1 0 1 Set Read Latch Cylinder High Cylinder High 1 1 0 Clear Mult Mode Set Mult Mode S.D.H. S.D.H. 1 1 1 O+Command' 0+ Error Reg. Status Reg. " Command Reg. " 'Data bus contains valid information. Except as "The Host does not access these registers in the indicated in " the Host and onboard CP(WD1015) WD1010 (or WD2797). The content of these registers can access the registers in the WD1010. The registers must be off loaded to an intermediate register for in the WD1014 can only be accessed by the WD1015. access by the Host. For the registers not referred to in " the data bus need not contain valid information. BITS COMMAND 7 6 5 4 3 2 1 0 READ 0 0 1 0 I M L 0 WRITE 0 0 1 1 0 M L 0 FORMAT 0 1 0 1 0 0 0 0 COMMAND CODES For the implementation of parts of the controls, the protocol described can be used in any new designs. following command codes are pertinent: The WD1014 consists of a 2 bit serial polynomial The control logic only decodes bits 7·4 and uses bit generator (that produces 4 bytes of check/syndrome) 1 (long bit) in its internal logic. The rest of the com· an 8 bit data buffer and deserializer, two 8 bit mand codes and bits are not used by the WD1014. registers, namely a Command/Error register and a For a complete description of the commands or the SDH register, and control logic consisting of 3 counters, 6 latches, and a host of combinatorial logic. task files refer to the WD1002·05 WFC data sheet. The addressable registers and latches are accessed WD1 014 ARCHITECTURE as shown in the block diagram below. The WD1014 Chip was specifically designed for the Each major functional block will be described essen· WFC board to extend the capabilities of the Control tially independent of one another. Some overlap and Processor (WD1015) to handle real time functions. As references to the WFC board are unavoidable and, designed, the WD1014 is not a stand alone general in fact, they aid in presenting a clearer picture of the purpose device unless, of course, almost all of the device. 4-18 Winchester Disk Support Devices boo ECC POLYNOMIAL DATA GENERATOR EVEN 00-07 BUFFER CHECKER EVEN ODD DE-SERIALIZER 00-07 . - - - - - - - - - - - -__ SCHO-2 .--------------l~ DSB1-2 HDiFiS MA HSC CSO HBC CS1 ITB AO LUB A1 CONTROL HDCS INTERNAL DECODE A2 LOGIC SBEF REGISTERS LOGIC BCS CINC CLK WAUP RE ORa WE CMR SC128 INTRa WD1014 BLOCK DIAGRAM THE ECC POLYNOMIAL GENERATOR The 4 byte check / syndrome generator consists of without the use of an external buffer. two 16 bit shift registers each of which has 8 feed- During a write operation, the input data stream is back terms implemented with XOR gates, and con- divided by the polynomial and the 32 bit remainder trol gates for the feedback and data paths. obtained after buffer overflow is used as the 4 check The leading two bytes of the data field are not bytes. The 4 check bytes are gated out of the WD1014 recognized by the WD1014. Therefore, in order to even though RGS = 1 since the internal RBGS is maintain compatibility with the devices that do, the still active. In a READ operation, the check bytes are polynomial is preset to what would have been recomputed and compared to the recorded check calculated if the AIF8 had been read_(B517894A) bytes to generate the 4 syndrome bytes. The syn- drome bytes are stored internally in the shift registers EGG computations are made whenever the external until the GP is ready to use them. Otherwise, the non- sector buffer is being accessed. The data present on zero syndrome is used by the software algorithm to the system data bus is accepted by the input data compute the displacement and the error vector within buffer and processed along with the gated data from the bad sector. the last stages of the shift register strings. The direc- tion of shift within the EGG polynomial is from the To support RLONG and WLONG (L = 1) features of LS.B. to the M.S.B. After the last byte of data has been the WD1002-05, shift register strings are used as accessed from the sector buffer, the internal counter storage elements. After the last byte of data, the Host overflow register is set. This in turn sets a feedback can write or read the 4 additional bytes which serve inhibit register after the last byte has been processed as check bytes for the data transmitted to the buf- by the EGG polynomial. At this point, the feedback fer. In this mode the feedback terms and the outputs terms are forced to zero and only the data path to from M.S.B. of the shift registers are disabled so that the LS.B. is enabled. This feature is convenient to only data is accepted and stored. This enables the store the 4 check / syndrome bytes internally so that user to alter the check bits / or data to verify the RLONG and WLONG commands can be supported operation of the Error detection logic. Winchester Disk Support Devices 4-19 SOH REGISTER This register can be written into by either the Host (b) the external counters are cleared via CMR or WD1015. The bits are decoded as follows. (c) the read command latch is cleared (d) INTRQ is reset BIT 7 6 5 4 3 2 1 0 (e) bit 1 (the long bit) is used by the ECC polynomial to implement the READLONG and WRITELONG CRC command. The CP can also read this latch so that FUNCTION + SECTOR DRIVE HEAD/DRIVE it can execute the command. ECC SIZE SELECT SELECT (f) WAKEUP is set immediately if the command is a RESTORE, SEEK, or READ. For a WRITE or a Bit? should be set to a 1 whenever a Winchester FORMAT command, WAUP is set after counter disk is selected "and" ECC is to be utilized. overflow (COVF) occurs or an additional four RAM It must be set to 0 for floppy disks. accesses have occured (SYN4), depending upon Bit 6-5 as shown below specify the sector size. the long bit L = 0 or L = 1. SDH6 SDH5 SECTOR SIZE IN BYTES At the completion of a command, this register is re- 1 1 128 used to hold error information that can be read by the o o 256 Host. This is necessary since error information from o 1 512 two sources has to be manipulated by the CP and 1 o 1024 reported to the Host in real time when requested to do so. The decoded bits are used in conjunction with a 3 bit counter which has SC128 as its clock. The falling ERROR DETECTION LOGIC edge of this input is used to set a counter overflow The error detection logic consists of an input data buf- latch for sector sizes 256, 512 and 1024. The rising fer and deserializer, two 16-bit shift registers to edge of this input sets counter overflow latch when generate the ECC bytes, and associated control logic the sector size is 128. The counter overflow is consisting of two 3-bit counters and integrated logic. available on the output as SBEF and is used inter- INPUT DATA BUFFER AND DESERIALIZER nally to set the buffer overflow latch and various other control logic as required by system operation. This This section is designed to accept a byte of data on counter and associated logic is cleared upon MR, the riSing edge of RE or WE under the following any new command, or can be directly cleared by conditions: CLROVF. 1. The ECC polynomial is selected as implied by Bits 4·0 are used for drive and head selection and SDH? = 1. are decoded in the following manner. 2. A valid RBCS is generated regardless of Winchester the counter overflow HD/FD = 1 = SDH4 + SDH3 + SDH4'SDH3 3. If the syndrome is to be read by the C.P. after an = DSB1 = 1 SDH3 decoded off chip for one of three overflow condition has occurred (i.e., the syndrome DSB2 = 1 = SDH4 drives. is not saved after it has been read by the C.P.). SDH2-0 =SDH2-0 decoded off chip for one of eight heads. Valid data presented to the WD1014 device is accepted by the data buffer and the ECC shift Floppy registers on the rising edge of RE or WE input HD/FD = 0 = SDH4'SDH3 strobes. These strobes are synchronized internally by DSB1 = 1 = SDH1 decoded off chip for one of four the falling edge of the input clock so that shifting can DSB2 = 1 = SDH2 drives. begin on the riSing edge of the clock. Data is serialized SDH2-0 = Not used. and shifted in a 2-bit parallel mode until the internal Side select is controlled by the WD1015 via bit counter reaches the count of 3. This process is the WD2?9? repeated for every byte of data until the counter COMMAND/ERROR REGISTER overflow occurs plus an additional 4 bytes have been processed. Under the worst case conditions, a byte This 8 bit register intercepts and holds the command of data will be processed within 4 clock cycles after issued by the Host. When a command is issued: the RE or WE strobes are terminated. (a) the sector counter and associated overflow lat- ches are cleared. 4-20 Winchester Disk Support Devices MULTIPLEXER The multiplexer is used to channel data to the I/O 2. Any command is received pins 07-00 when one of the following conditions occur. 3. The output signal HCS is activated. 1. The command register is read As in the case of ORO, the true condition of INTRa can only be sampled by external circuitry if WAUP 2. The error register is read = O. 3. The check bytes are read MISCELLANEOUS CONTROL SIGNALS 4. The syndrome bytes are read The rest of the output signals are purely combinatorial The RE strobe gating with the above control sig- in nature and are best described by Boolean expres- nals is designed to keep the hold time on the output sions. data bus to less than 100 n.s. and the data access time to be no more than 200 n.s. 1. HSC = BUSY.CSO.A2.A1.AO.RE WAKEUP 2. HBC = BUSY.CSO.HSC This signal alerts the external CP that a command 3. LUB = CS1.A2.A1.AO.WE has been received and is internally referred to as the busy signal. 4. LLB = CS1.A2.A1.AO.WE WAUP will go high when MR is asserted or a 5. RCS = COVF(CSO.A2.A 1.AO + BCS) command other than WRITE or FORMAT has been 6. HOCS = (BUSY.A2.A1.AO. + BUSY.. A2.A1.RE received. In the case of a WRITE or FORMAT com- + CSO) mand WAUP will go high when SBEF = 1 and L = HOCS is active only if the Host is not accessing the 0, or when an additional four bytes have been error, status or the command registers of the W01010 accepted by the W01014 when L = 1. device, and CSO is asserted. For proper operation, the READ command latch must 7. CINC = COVF.RSC(WE + RE) be set by the CP whenever that command has been received. Also the Multiple Mode latch is set by the 8. eMR = MR + eST where eST = BUSY.eso CP in order to execute the same command a multi- .A2.A1.AO.WE(Any cmd written) ple number of times. This latch must be reset if 9. SBEF = eOVF executing a REAO or a WRITE command only once, ELECTRICAL CHARACTERISTICS or if the last sector of a multiple sector transfer is being processed. MAXIMUM RATINGS WAKEUP can only be reset by asserting SLEEP. Ambient Temperatures DATA REQUEST under bias .......... 0oC (32°F) to 70°C (158°F) The true condition of the ORO latch can oly be Voltage on any pin sampled by external circuitry if WAUP = O. with respect to Vss .......... -0.2V to + 7.0V Power dissipation ..................... 1.5 Watt This latch can be set by either the CP, or whenever a WRITE or FORMAT command is written into the STORAGE TEMPERATURE W01014. It is reset by COVF = 1 (SBEF) when L = Plastic .......... -55°C(-67°F) to + 125°C(257°F) 0, or until an additional 4 bytes have been accepted Ceramic ......... -55°C(-67°F) to + 1500 C(302°F) by the W01014 when L = 1. NOTE: INTERRUPT REQUEST Maximum ratings indicate operation where perma- Two latches are provided to handle interrupts. The nent device damage may occur. Continuous opera- programmed I/O interrupt (PINl) latch is set whenever tions at these limits is not intended and should be an interrupt is desired at the start of data transmis- limited to those conditions specified in the OC elec- sion to the Host. The OMA interrupt (OINl) latch is trical characteristics. set whenever an interrupt is desired at the end of data transmission to the Host. Both latches are reset when: 1. A MR occurs Winchester Disk Support Devices 4-21 TABLE 1. DC Electrical Characteristics TA = OOC (32°F) to 70°C (158°F), Vee = +5V ± .25V, Vss = OV :ec SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS ..... VIL Input Low Voltage -0.2 0.8 V o ..... VIH Input High Voltage 2.0 V ~ VOL Output Low Voltage .04 V IOL = 1.6 rnA VOH Output High Voltage 2.4 V IOH = -100 rnA VCC Supply Voltage 4.75 5.0 5.25 V ICC Supply Current 200 250 rnA All outputs open TIMING PARAMETERS A2-A0 8 ~ ____---'X -lIAS!+- -jIAHI- cs -----, r-I ----~~__:_-' R"E----, r 1. r--ICH ICSj ISp 07-00----< I I r WAUPI r -l IIV I- liS r-----~(~ -l 1-: ~ !, INTRO.----J . -l 10V f- II -l lOR f- DRG---1 rr L FIGURE 1. DATA READ CYCLE TABLE 2. DATA READ CYCLE TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS fcp Input Clock Freq. 6.0 5.0 MHZ t AS Address Setup to CS 100 70 nS tAH Address Hold from CS 50 20 nS tcs Chip Selects Setup to 100 70 nS RE tCH Chip Selects Hold from 50 20 nS RE tRE RE pulsewidth 150 120 nS tsp RE Strobes period 4 CP (rising edge) tOA Data Access after RE 100 150 nS active tOH Data Hold after RE 50 100 nS reading inactive tos Data Setup to RE 50 10 nS inactive tlV Interrupt Request valid 50 100 nS Prog. 1/0 INT 200 250 nS DMA INT tiS INTRa Reset 100 200 nS tov Data Request Valid 50 100 nS tOR ORO Reset 100 200 nS 4-22 Winchester Disk Support Devices AC ELECTRICAL CHARACTERISTICS A2-AO,B<_____-:-~~'--_ _ _ _X -ltASI- -JtAHI- CS 1 I tCS--j i . t-tCH tsP--=----.l WE------~ ~--- -+jtOSr- 07-00-----<=="J------+-C=:::) WAUP~~________________________-+,__~:----- -l tlV I- -.\ tiS ~: INTRQ~.--------------i(If-1 ---------,1 : ~tov~ ~~ltO--R--r--- II ORG-----.J If L FIGURE 2_ DATA WRITE CYCLE TABLE 3. DATA WRITE CYCLE TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS fcp Input Clock Freq. 6.0 5.0 MHZ -- tAS Address Setup to CS 100 70 nS -- tAH Address Hold from CS 50 20 nS tcs Chip Selects Setup to 100 70 nS WE tCH Chip Selects Hold from 50 20 nS WE tWE WE pulsewidth 150 120 nS tsp WE Strobes period 4 CP (rising edge) tOHW Data Hold after WE 0 30 nS writing inactive tos Data Setup to WE' 50 10 nS inactive tlv Interrupt Request valid 50 100 nS Prog. 1/0 INT 50 200 250 nS DMA INT tiS INTRa Reset 100 200 nS tov Data Request Valid 50 100 nS tOR DRa Reset 100 200 nS Winchester Disk Support Devices 4-23 ,( 1 ....' [:tsc 1 1 I I 1 / I -+I BC RBC--........... I II t t I I t=t CI -+I CINC--~:~~~____~ y I itBRj SBEF --: 1 : 1 '" ~-~------- f-tCM CMR _---'__'y-----L. . . ."'________ YVAUP ______--_~:_tw_RL FIGURE 3. OUTPUT SIGNALS W.R.T. RE TABLE 4. OUTPUT SIGNAL (W.R.T.) RE TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tCI RE to Count Increm. 50 100 nS rising edges t Hs RE to Status Strobe 130 200 nS tsc RE to HSC inactive 130 200 nS -- tHB CSO to Host bus str 70 200 nS active if HSC off t BC CSO to HBC inact. 80 200 nS active if HSC off tBR RE to cir SBEF 250 300 nS using CLROVF strobe tCM RE to counter reset 200 300 nS using CLROVF strobe tWR RE to WAUP reset 100 200 nS using SLEEP strobe 4-24 Winchester Disk Support Devices WE~ ,t{" I '-------' I I I -I1,...--_ tSOI- _ __ ---;-------'>KI SOH2·0 VALID :-tSE-j osx--~------")K VALID I I __ _ tLF-: I- --: f-tLR LLB/LUB~ 1 I ~tCI : - CINC~ I 1 I I I I I 1 SBEF---~:----~~ ---'I ttcc I I CMR--..../ I WAUP \ 1 _ i-twW--Y- tSWr- FIGURE 4. OUTPUT SIGNALS W.R.T. WE TABLE 5. OUTPUT SIGNAL (W.R.T.) WE TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tso WE Inactive to SDHX 150 200 nS output tSE WE Inactive to DSX 175 200 nS output _ _ _ tLF WE to LLB/LUB 70 150 nS falling edges tLR WE to LLB/LUB 80 150 nS rising edges tCI WE to Count Increm. 50 100 nS rising edges tcc WE to Counter Reset 150 200 nS tsw SBEF to WAUP set 50 200 nS tww WE to WAUP set 175 200 nS Command written Winchester Disk Support Devices 4-25 t--tMR-\ . MR'BCR~ -: :-tMC !~ CMR ---+--'; "--- --I jtMB SBEF~ 1''------ --....: i--tws WAUP~ SC128~ ~ SBEF tSR n _____ ~ A2.AO,CSO~ '----~ FIGURE 5. MISCELLANEOUS TIMINGS TABLE 6. MISCELLANEOUS TIMING SYMBOL CHARACTERISTIC MIN TYP MAX UNIT CONDITIONS tMR Master reset/Buffer 100 50 nS counter reset width t MC MR/BCR to counter reset 60 100 nS tMB MR/BCR to SBEF rst 130 200 nS tws MR to WAUP reset 100 200 nS BCR has no effect tSR Rising Edge of SC128 to 100 200 nS 128 byte sector SBEF tSF Falling Edge of SC128 to 150 200 nS all other sectors SBEF tHO CSO to HDCS ·70 150 nS (or address lines) tHR CSO to HDCS rising to 80 150 nS CMR t RC CSO to RCS active 90 150 nS (or address lines) tRR CSO to RCS high 100 150 nS t BC BCS to RCS active 50 100 nS tBH BCS to RCS high 60 100 nS 4-26 Winchester Disk Support Devices WESTERN DIGITAL COR paR A T a N WD1015 Buffer Manager Control Processor FEATURES • SINGLE + 5V POWER SUPPLY • COMPLETE BUFFER MANAGER WAUP VCC1 • PROGRAMMABLE SECTOR SIZES - 128, 256, XTAL1 DRQFD 512, or 1024 BYTES XTAL2 ERR • ECC BURST ERROR CORRECTION UP TO 5 MR CORRD BITS ON HARD DISK DATA TST5 BRDY • 8-BIT MULTIPLEXED ADDRESS/DATA I/O BUS INTFD FMO • FLOPPY DISK COMMAND TRANSLATION VSS2 DIR • SUPPORTS MOTOR ON OR HEAD LOAD m: STEP DRIVES TST9 MOM • SUPPORTS 250 OR 500 KBS FLOPPIES WE TST31 • BUFFERED SEEKS WITH FLOPPIES AND LAD SBEF WINCHESTERS DO TROQ • 16 POPULAR STEPPING RATES AVAILABLE D1 HD/FD • AUTOMATIC RETRIES ON ALL ERRORS WITH D2 INTHD SIMULATED COMPLETION D3 VCC2 • POWER-ON DIAGNOSTICS INCLUDED D4 TST25 • 10 MHZ CLOCK RATE D5 TST24 • 40 PIN DIP PACKAGE D6 TST23 • 44 PIN aSM PACKAGE D7 TST22 DESCRIPTION VSS1 TST21 The WD1015 is a complete Control Processor (CP) that is used to handle all aspects of buffer manage- PIN DESIGNATION ment, in conjunction with the EDS (WD1014) device, for the Winchester/Floppy Controller board (WD1002-05). It executes all of the commands used by the WD1002-05 and does all of the control required except for real time processing, which is done by the H I TON V WD1014. Throughout this specification this device will R I oF H C T C be referred to as the WD1015, or BMAC (buffer o0 0 2 manager and controller), or simply as the CP (con- trol processor). The WD1015 is programmed to con- trol the transfer of information within the WFC and BROY T5T25 it maintains the necessary copies of the task files CORRO T5T24 (TSF) found on both drives. Host access to the WFC ERR T5T23 causes the CP to access task file information in the ORQFO T5T22 TSF after a command is issued. Depending on the VCC1 T5T21 command, the CP will make the buffer accessible to NC NC the host or the WD1010 or 2797 controllers. The CP WAUP V551 also controls the operation of the Error Correcting XTAL1 07 logic. During the transfer of data from the Host to the XTAL2 06 WD1010, the EDS monitors the data bus, if so MR 05 enabled, to compute a 4 byte ECC which is appended T5T5 04 to the data transferred to the WD1010 and recorded on the disk. During data transfers from the WD1010 to the host the CP uses the ECC to validate the data. I V R T W N L DOD 0 If data is corrupted the CP envokes recovery techni- ~ ~ E ~ E C A 0 1 2 3 ques such as retries and correction. A maximum of F 2 9 0 o 8 retries are attempted if two consecutive syndroms do not match. Correction is attempted only if two con- QSM DESIGNATION secutive syndromes match. If the error is uncorrec- table, the operation is terminated. The CP is also used to handle data transfers from or to the SF for the Winchester Disk Support Devices 4-27 floppy disk controller, which only uses CRC check WD2797 and the current EDS status into a form con· bytes for its data fields. Two commands, RESTORE sistant with established WD1010 error reporting. This and SEEK, are directly executed by the CP rather than consolidated status is then presented to the Host. The the WD2797 floppy disk controller. During status WD1015 is fabricated using HMOS technology and reads by the Host, the CP consolidates the normal is available in a 40 pin DIP package and 44 pin QSM completion status from the WD1010, the package. PIN DESCRIPTION PIN NUMBER SIGNAL NAME MNEMONIC FUNCTION 1 WAKEUP WAUP This input is used by the BMAC to poll a command from the Host. The BUSY status bit is set immeditately execpt in case of a WRITE/FORMAT command. In that case, WAUP and BUSY, are set only after the sector buffer has been filled by the Host. WAUP is reset when the command has been executed. 2 CRYSTAL 1 XTAL1 One side of crystal input for internal oscillator. Also input for external source. 3 CRYSTAL 2 XTAL2 Other side of crystal/external source input.. Frequency should be 10 MHz. 4 MASTER RESET MR This input is used to initialize the internal logic of the processor. 5 TEST 5 TST5 This input is to be left open by the user. Internal pull·up 300K ohm. 6 FLOPPY DISK INTFD Initiates an interrupt if interrupt is enabled; disabled on reset. INTERRUPT 7 VSS2 VSS2 This input is to be left open by the user. Internal pull·up 10M ohm. - 8 READ ENABALE RE Output strobe activated during a BUS read. Can be used to enable data onto the BUS from an external device. 9 TEST 9 TST9 This output is left open by the user. 10 WRITE WE Output strobe during a BUS write. Used as write strobe to an external device. Signifies that valid data has been put on the BUS. 11 ADDRESS LATCH LAD This output signal occurs once during each instruction cycle. The negative edge of LAD strobes address into an external latch, used to communicate to the WD1010, WD2797, and the WD1014 chips. 12·19 DATA BUS D7·DO True I/O bi·directional BUS which can be written to or read syn· chronously using RE, WE, strobes. Also contains the address and data during an external access to or from port devices, under control of LAD, RE, and WE. 20 GROUND VSS1 Ground. 21·25 TEST 21·25 TST21·25 Unused pins to be left open by the user. 26 VCC2 VCC2 + 5V during operation. 27 HARD DISK INTHD This input is polled to sense an interrupt from the WD1010, INTERRUPT indicating completion of command issued to it by the BMAC. 28 HARD DISK/FLOPPY HD/FD This input is used to sense hard disk operation when high, and DISK floppy disk operation when low. 29 TRACK 00 TROO This input indicates that the RIW heads of the selected floppy drive are positioned over the outermost cylinder. 30 SECTOR BUFFER SBEF This input to the BMAC is set high whenever a sector of data EMPTY/FULL has been written to or read from the Sector Buffer. 31 TEST 31 TST31 Normally left open by the user. 4-28 Winchester Disk Support Devices PIN DESCRIPTION (cont.) PIN NUMBER SIGNAL NAME MNEMONIC FUNCTION :e c ..... 32 MOTOR MODE MOM Input used to select motor-on or head load timings for floppies. o ..... This line should be left open for motor-on type drives such as en the mini floppies. A delay of 1 second will be observed before FMO is activated. For head load type drives like the standard floppies, this input should be grounded. A delay of 40 mS, will be observed before FMO is activated, thereby improving the overall performance when accessing the floppies. 33 STEP STEP The STEP output is pulsed once for each cylinder to be stepped on the floppies. The step pulse period is normally determined by the stepping rate selected. On a RESTORE for the floppies, however, a stepping rate of 8 mS, is used if the specified stepp- ing rate is faster than 8 mS. 34 DIRECTION DIR This output is used by the floppy drive to determine the direc- tion of a seek operation. A low defines direction as out and a high specifies direction as in. 35 FLOPPY MOTOR-ON FMO This output is used to turn the motor on, on all floppy drives sup- ported by the WD1002 WFC board. The drives must be configured such that the heads are loaded when this signal is activated. When the floppies are being accessed for the first time, a delay as determined by MOM, is observed before activating FMO. Motor on is turned off after - 3 seconds, if no further floppy accesses are made. 36 BUFFER READY BRDY This output signal indicates the sector buffer is ready to be accessed by an external device such as the WD1010. 37 CORRECTED DATA CORRD This output status indicates to the Host that the BMAC has suc- cessfully corrected a data error in the data buffer, at least once. To determine if more than one correction has taken place dur- ing a multisector read, each sector specified must be reread by the Host on an individual basis. 38 ERROR ERR Output status bit indicates that the BMAC encountered an error during the execution of a command.The error reg, on the WFC board must be read by the Host to determine the type of error that occurred. 39 DATA REQUEST DRQFD This input indicates to the BMAC that the WD2797 has a byte of data available to be read from the disk, or requires a byte of data to be written to the floppy disk. 40 VCC1 VCC1 Main power supply. +5V ±5% Winchester Disk Support Devices 4-29 4-30 Winchester Disk Support Devices WESTERN DIGITAL COR P 0 RAT o N :ec ...a. WD1100-21 Buffer Manager Support Device ...a. o o ~ • FEATURES ...a. OROl Vcc • 6-BIT AUTO-INCREMENTING ADDRESS BUS OR02 Al0 • 128, 256, 512, OR 1024 BYTES PER SECTOR OR03 All DETECTOR OR04 A12 ORH A13 • SELECTS UP TO 4 DISK DRIVES ORl A14 • SELECTS UP TO 8 HEADS PER DRIVE A15 H02 • PROVIDES A RAM CHIP ENABLE AND READY HOl RCE SIGNAL HOO BClR • TTL, MOS COMPATIBLE MR 06 BCS 05 • 40 PIN DIP PACKAGE 04 BCR • NMOS TECHNOLOGY RO 03 • SINGLE + 5 VDC SUPPLY BROY' 02 ORUN 01 DESCRIPTION CS DO WE AO The WD1100-21 Buffer Manager Support Device is RE- Al designed to interface up to four disk drives and eight ORTIM A2 ROTIM heads per drive, to a WD1010-05 and Sector Buffer. VSS The WD1100-21 accepts the SOH Register informa- tion (Sector Size, Drive, Head) and selects the PIN DESIGNATION appropriate drive and head. It receives the data from the disk and develops RD and DRUN (Read Data and Data Run) suitable for the WD1010-05. The WD1100-21 also selects the Sector Buffer and provides six of the address lines. The other four address lines must be implemented externally. The WD1100-21 signals BRDY (Buffer Ready) when the buffer counter reaches the value stored in the SOH Register. Winchester Disk Support Devices 4-31 PIN DESCRIPTION :E PIN c..... NUMBER MNEMONIC PIN NAME 1/0 FUNCTION ..... This signal is data read from disk drive 1. It o 1 DRD1 READ DATA 1 I oI is shaped and placed on output pin 13. ..... J\), 2 DRD2 READ DATA 2 I This signal is data read from disk drive 2. It is shaped and placed on output pin 13. 3 DRD3 READ DATA 3 I This signal is data read from disk drive 3. It is shaped and placed on output pin 13. 4 DRD4 READ DATA 4 I This signal is data read from disk drive 4. It is shaped and placed on output pin 13. 5 DRH DRIVE SELECT I Most significant bit of the drive select HIGH number. Must be encoded externally. 6 DRL DRIVE SELECT I Least significant bit of drive select number. LOW Must be encoded externally. 7 HD2 HEAD SELECT 2 I Bit 2 of the head select number. Must be encoded externally. 8 HD1 HEAD SELECT 1 I Bit 1 of the head select number. Must be encoded externally. 9 HDO HEAD SELECT 0 I Bit 0 of the head select number. Must be encoded externally. 10 MR MASTER RESET I Asserted, it initializes all internal logic including the SDH Register. 11 BCS BUFFER CHIP I Asserted, this signal asserts RCE. SELECT 12 BCR BUFFER COUNTER I This signal resets the buffer address counter RESET to zero making A10 thru A15 = O. 13 RD READ DATA 0 This is the MFM data read from the disk, shaped and made compatible with the WD1010-05. 14 BRDY BUFFER READY 0 This signal is asserted when the buffer counter (A10 thru A15) has reached the sec- tor size specified in the SDH Register, 128, 256, 512, or 1024. 15 DRUN DATA RUN 0 This signal is asserted when a field of ones or zeroes has been detected. 16 CS CHIP SELECT I 'Must be asserted to write into the SDH Register, increment.....!lJ§ Buffer Address Counter, and assert RCE. - 17 WE READ ENABLE I Must be asserted to write into the SDH Register. WE or RE must be asserted to in- crement the Buffer Address Counter. 18 RE READ ENABLE I RE or WE must be asserted to increment the Buffer Address Counter. 19 DRTIM DRUN TIMING I An external load used to adjust DRUN to nominal pulse width of 250 nsec. 20 Vss GROUND I Ground. 21 RDTIM RD TIMING I An external load for adjusting the pulse width of RD. 1K ohms creates approx. 90 nsec. 22 A2 ADDRESS 2 I A2 thru AO are used to address the SDH thru thru thru Register (A2-AO = 6) and increment the Buf- 24 AO ADDRESS 0 fer Address Counter (A2-AO = 0). 4-32 Winchester Disk Support Devices PIN DESCRIPTION (Continued) PIN NUMBER MNEMONIC PIN NAME 1/0 FUNCTION 25 DO DATA 0 I 7-Bit data bus used to write into the SDH thru thru thru Register. 31 D6 DATA 6 32 BClR BU FFER CLEAR 0 Asserted, this signal indicates that the Buf- fer Address Counter has been cleared. 33 RCE RAM CHIP ENABLE 0 Asserted by BCS, or CS and AO thru A2 equal to zero. Used to enable access to the data buffer. 34 A10 BUFFER ADDRESS 0 Buffer Address Counter. Used to address the thru thru 10 thru 15 Data Buffer. 39 A15 40 Vcc POWER SOURCE + 5V Power Supply ARCHITECTURE The WD1100-21 is composed of a 7-Bit SDH Register Figure 1 is a block diagram illustrating the relation- (the extension bit, bit 7 is not included), 11-Bit Sec- ship of the timing and control Signals with the SDH tor Buffer Counter, and miscellaneous control signals. Register and Sector Buffer Counter. The content of the SDH Register is used to select the drive and head, and limit the Sector Buffer Counter to the size decoded by bits 5 and 6. BCS------------------~ ~~------------------------------------~RCE AO-A2 ------r------1 CS ----,r--~----100 nsec, RST initializes the controller. -- - - -- 41 42 MSG MESSAGE 0 Used with 1/0, CID, and REO to indicate type of transfer. For example, during the Message Byte Transfer Phase, one byte of zeros is sent to the Host to indicate the command is complete. - 43 44 SEL SELECT I An asserted signal gives control of the bus to the address (0 through 7) which is selected by jumpering at location RN2. - - -- -- 45 46 CID CONTROL/DATA 0 Used with 1/0, MSG, and REO to indicate type of transfer. -- 47 48 REO REOUEST 0 Indicates to the Host that the controller is ready for data transfer. -- 49 50 1/0 INPUTIOUTPUT 0 Identifies the direction of transfers between the Host and WD1002-SAS. I asserted = input to Host; 0 asserted = output to controller. *The 1/0 column is in relation to the WD1002-SAS and not the Host. HOST INTERFACE BUS OPERATION 1. Reset Phase. Occurs when RESET is asserted. The timing sequence for bus operations includes Used by the Host to force the controller(s) five phases: on the bus to the same state it was in following a power on condition. 6-34 Winchester Board Products 2. Bus Free Phase. Occurs between the completion • Controller asserts REO of one transaction (Bus Release Phase) and the initiation of the next transaction (Target • Host asserts ACK Selection Phase). Also occurs during the time • Controller de-asserts REO in which no unit has control of the bus. All • Host de-asserts ACK eight control lines and eight data lines are de-asserted. For controller-to-Host transfers, the eight bits are valid on the bus at least 100 nsec before REO 3. Target Selection Phase. Occurs when the Host is asserted. Host-to-controller transfers are QlQges a target address on the bus and asserts valid on the bus no later than 250 nsec after ACK SEL. and the addressed controller asserts is asserted. It is recommended that before asser- BSY. The Host then de-asserts SEL before com- ting ACK, make sure the data is valid. (Note: For pleting the phase. debugging, bytes are valid on the bus when REO The target address consists of one asserted and is de-asserted during any transfer.) seven de-asserted DO through 07 signals. The 5. Bus Release Phase. Occurs when BSY is de- controller's default address of 0 corresponds to asserted. This phase signals the Host that the cur- an asserted DO, which may be changed to any rent transaction has terminated and the address by jumpering. Two controllers may not associated selected target is no longer controll- use the same address. ing the bus. 4. Information Transfer Phase. Used to transfer one BUS PHASE SEOUENCING or more bytes on th_e bu.§. The tYRe of transfer is determined by the 1/0, C/O, and MSG signal A Reset Phase may occur any time and is followed codes on the lines (providing five valid by the Bus Free Phase. In the absence of a Reset combinations) as shown in Table 3, and as Phase, the bus alternates between the Bus Free qualified by request. A valid combination in- Phase and one transaction. A transaction always con- dicates to the Host the types of byte transfers that sists of the following: are to follow. 1. One Target Selection Phase 2. One Command Block Transfer Phase The following are used to transfer information: 3. Zero or more Data Block Transfer Phase(s) - Type • Command Block Transfer Phase. Used to send a and number determined by the preceding Com- block of command bytes from the Host to the con- mand Block Transfer Phase troller, specifying the operation to be performed (e.g. Format Disk). 4. One Status Byte Transfer Phase • Data Block Transfer Phase. Used primarily to send 5. One Message Byte Transfer Phase one or more sectors of data either from or to the 6. One Bus Release Phase Host. Also used to send a block of parameters to the controller or to the Host. During a transaction, all Data Block Transfer Phases are the same size and are sent in the same direction. • Status Byte Transfer Phase. During this phase, one byte is sent to the Host indicating the status of DRIVE INTERFACES the operation. WINCHESTER DRIVE CONTROL CONNECTOR • Message Byte Transfer Phase. One byte of zeros is The Winchester drive control connector, a 34 pin sent to the Host to indicate the command is printed circuit card edge connector, is a low- speed complete. bus daisy-chained to each Winchester drive in the For each byte transferred, the following operations system. To terminate the control signals on the occur in sequence to perform the asynchronous WD1002-SAS properly, the last drive in the daisy-chain handshake: must have a 220/330 ohm resistor pack installed. The pin description and control signals are provided in Table 4. TABLE 3. INFORMATION TRANSFER PHASE SIGNAL MNEMONIC 1/0 CID MSG TRANSFER TYPE NUMBER OF BYTES 1 0 1 Command Block 6 1 1 1 Data Out Block 3, 8, 128, 256, 260, 512, 516, or 1024 0 1 1 Data In Block 1,4, 128, 256, 260, 512, 516, or 1024 0 0 1 Status Byte 1 0 0 0 Message Byte 1 Winchester Board Products 6-35 TABLE 4. WINCHESTER DRIVE CONTROL CONNECTOR (P2) PIN DESCRIPTION =E c...... SIG. SIG. SIGNAL o GND PIN MNEMONIC SIGNAL NAME 110 FUNCTION o I\) 2 RWC REDUCE WRITE o RWC is asserted when the cylinder specified ~ en 3 4 HS2 CURRENT HEAD SELECT 2 o by the Set Parameters Command is reached. HS2 is one of three Head Select signals decoded by the drive to select one of eight RIW heads. 5 6 WG WRITE GATE o WG is asserted when valid data is to be written on disk. WD1002-SAS de-asserts this signal when a WF is detected. Special circuitry is included to ensure the output does not glitch during power on. 7 8 SC SEEK COMPLETE SC informs the WD1002-SAS the head of a selected drive reached the desired cylinder and has stabilized. 9 10 TKOOO TRACK 000 The drive asserts this signal when the RIW heads are positioned over the outermost cylinder, cylinder O. 11 12 WF WRITE FAULT WF is asserted by the selected drive when a write error occurs. The command in progress aborts and no other disk command can be exe- cuted while this signal is asserted. 13 14 HEAD SELECT 0 o HSO is one of three Head Select signals decoded by the drive to select one of eight RIW heads. 15 16 NOT CONNECTED 17 18 HS1 HEAD SELECT 1 o HS1 is one of three Head Select signals decoded by the drive to select one of eight RIW heads. 19 20 INDEX INDEX PULSE This signal indicates the start of a track. It is used as a synchronization point during for- matting and as a time-out mechanism for retries. This signal pulses once for each disk revolution. 21 22 DRDY DRIVE READY Informs the controller that the drive motor is up to speed. 23 24 STEP STEP PULSE o STEP, together with DIRIN, positions the heads to the desired cylinder. STEP pulses once for each step. DIRIN determines the step direction. 25 26 DSELO DRIVE SELECT 0 o DSELO is used to select drive O. 27 28 DSEL1 DRIVE SELECT 1 o DSEL 1 is used to select drive 1. 29 NOT CONNECTED thru 32 33 34 DIRIN DIRECTION IN o DIRIN determines the direction the RIW heads take when the step line is pulsed. De-asserted = out; asserted = in. 6-36 Winchester Board Products WINCHESTER DRIVE DATA CONNECTORS TABLE 5. WINCHESTER DRIVE DATA CONNECTOR - J2,J3 Connectors J2 and J3 allow data transfer between :E the controller and each drive. The data lines are dif- SIG. SIG. c ...... ferential in nature and must be connected to each GND PIN 1/0 SIGNAL NAME o drive with its own cable, i.e., drive 0 to J2 and drive o 1 to J3. Each drive is radially connected with a max- 1 NC I\.) imum cable length of 10 feet. Each data connector 2 GND en is a 20·pin vertical header on 0.1 inch center. Data 4 3 NC GND » en connector pin descriptions and signals are given in Table 5. 5 NC 6 GND FLOPPY DRIVE CONTROL AND DATA CONNECTOR 7 NC 8 GND The Floppy drive control signals function in a man- 9 NC ner similar to the Winchester except both the con- 10 NC trol and data signals are transmitted on the same 11 GND connector. The connector is daisy-chained to each 12 GND drive. To properly terminate each TTL level output 13 0 + MFM Write Data signal from the WD1002-SAS, the last drive in the 14 0 -MFM Write Data daisy·chain must have line terminations installed as 15 GND specified by the drive manufacturer. A flat ribbon 16 GND cable, or twisted-pair, of less than 10 feet should be 17 I + M FM Read Data used. The connector is a 34-pin vertical header on 0.1 18 I -MFM Read Data inch center. Pin description and signals are given in 19 GND Table 6. 20 GND TABLE 6. FLOPPY DRIVE CONTROL AND DATA CONNECTOR (J4) PIN DESCRIPTION SIG. SIG. SIGNAL GND PIN MNEMONIC SIGNAL NAME I/O FUNCTION 1 thru 4 NOT CONNECTED --- --- 5 6 DSELO DRIVE SELECT 0 0 DSELO is used to select drive o. (Note: On an SA450, this is drive 4.) 7 8 INDEX INDEX PULSE I This signal indicates the start of a track. It is used as a synchronization point during for- matting and as a time-out mechanism for retries. This signal pulses once for each disk revolution. -- 9 10 DSEL1 DRIVE SELECT 1 0 DSEL 1 is used to select drive 1. 11 thru 14 NOT CONNECTED - 15 16 MO MOTOR ON 0 Directly controls the Floppy drive's power-on of the spindle motor. A 1-second delay occurs after the motor is on. 17 18 - - DIRIN DIREC liON IN 0 DIRIN determines the direction the RIW heads take when the step line is pulsed. De-asserted = out; asserted = in. -- 19 20 STEP STEP PULSE 0 STEP, together with DIRIN, positions the heads to the desired cylinder. STEP pulses once for each step. DIRIN determines the step direction. - 21 22 WD WRITE DATA 0 Provides data to be written on the diskette and is enabled by WG asserted. - 23 24 WG WRITE GATE 0 WG is asserted when valid data is to be written on disk. It is used by the drive to enable the write current to the head. Winchester Board Products 6-37 TABLE 6. FLOPPY DRIVE CONTROL AND DATA CONNECTOR (J4) PIN DESCRIPTION (CONTINUED) SIG SIG SIGNAL GND PIN MNEMONIC SIGNAL NAME I/O DESCRIPTION 25 26 TROO TRACK 00 I The drive asserts this signal when the RIW heads are positioned over the outermost cylinder. -- 27 28 WPRT WRITE PROTECT I Indicates to the controller a write·protected diskette is installed. When WPRT is asserted, no data is written to the diskette. 29 30 RD READ DATA I Provides raw data (clock and data combined) as detected by the drive circuitry. 31 32 SS SIDE SELECT 0 SS determines the side of the diskette to be used. Asserted = select side 0; de-asserted = select side 1. 33 34 NOT CONNECTED POWER CONNECTOR Command Class A 4'pin amp connector P1 provides power input to the Designates whether the command is used in opera· WD1002-SAS: tion (class 0) or for diagnostic (class 7}. Command classes 1 through 6 are reserved for future use. SIG SIG. OP Code GND PIN SIGNAL NAME An operation code is used in each command class 1 NOT CONNECTED to identify the function of the commands, e.g., read 2 GND and write. 3 GND 4 + 5V Regulated Logical Unit Number There are 8 logical unit numbers. For example, logical WD1002-SAS COMMAND BLOCK unit numbers 0 and 1, respectively. The Floppy logical unit numbers are 4 and 5. A transaction is initiated by the Host, instructing the controller to execute a command. During the Com- Logical Sector Address mand Block Transfer Phase, six bytes of information This address is a 21-bit unsigned integer specifying specifying the command are transferred to the con· a unique physical sector. The following equation troller. Figure 2 defines the contents of each byte in shows the one-to·one ratio between the set of logical the Command Block. These parameters are sent to sector addresses and the set of physical sectors: the WD1002-SAS by the Host to perform specific tran- Logical Sector Address = (((Cylinder Number* sactions. Number of Heads) + Head Number)* Number of Sectors per Track) + Sector Number BITS I 6 I 5 4 I 3 Each format command begins operation at the begin- BYTE 7 I 2 I 1 I 0 ning of the track containing the specified sector. 0 COMMAND OP CODE CLASS Interleave or Block Count 1 LOGICAL LOGICAL SECTOR The interleave factor is used by format commands. UNIT NUMBER ADDRESS The 3:1 ratio is the minimum operational interleave; (BITS 20 THRU 16) however, the disk also may be formatted at a 1:1 ratio. The maximum interleave is equal to the sectors·per- 2 LOGICAL SECTOR ADDRESS track minus one. Block count specifies the number (BITS 15 TH RU 8) of sectors to be used for each data transfer com- 3 LOGICAL SECTOR ADDRESS mand. The block count is an unsigned, no-zero (BITS 7 THRU 0) integer. A block count of all zeros equals 256 sectors. 4 INTERLEAVE OR BLOCK COUNT Control Byte 5 CONTROL BYTE The descriptions and contents of the Control Byte for both the Winchester and Floppy drives are shown in FIGURE 2. COMMAND BLOCK DESCRIPTION Table 7. 6-38 Winchester Board Products TABLE 7. CONTROL BYTE DESCRIPTION BIT WINCHESTER CONTENTS FLOPPY CONTENTS 0 Step Option. Unsigned 4·bit integers corres· Step Option. Unsigned 4·bit integers corres· thru ponding to stepping rates in Table 8. ponding to stepping rates in Table 8. 3 4 Reserved for future use. Must be O. MSB LSB Bit 5 Bit 4 Sector Size 0 0 128 bytes/sector 0 1 256 bytes/sector 1 0 512 bytes/sector 1 1 1024 bytes/sector 5 Format Data: o = 6C Hex 1 = Contents of Sector Buffer (Data is pro· vided by the Write Sector Buffer Com- mand) 6 Error Correction: Not used. Must be O. o = Correction After Two Identical Syn- dromes 1 = Correction After One Syndrome 7 Error Retry: Not used. Must be O. o = Enable Retry 1 = Disable Retry TABLE 8. STEP OPTIONS FLOPPY OPTION WINCHESTER STEP RATE· STEP RATE 0 3 msec per step * * 15 J-lsec 1 Half-step for Seagate ST506 (MLC2); fast step for Texas Instru- 1 msec ments drives 2 3 msec per step 2 msec 3 Half-step for Seagate ST506 (MLC2); fast-step for Texas Instru- 3 msec ments drives 4 200 J-lsec per step (appropriate for buffered-steps on drives manu- 4 msec factured by Computer Memories Inc. and Rotating Memories Inc.) 5 70 J-lsec per step 5 msec 6 3 J-lsec per step 6 msec 7 15 J-lsec per step 8 msec 8 2 msec per step for Olivetti-561 10 msec 9 3 msec per step 12 msec A 3 msec per step 14 msec B 3 msec per step 16 msec C 3 msec per step 18 msec D 3 msec per step 20 msec E 3 msec per step 25 msec F 3 msec per step 40 msec * For the Seek Command, buffered-seeks(Options 4 through 7) do not wait for seek completion. All other seeks wait for seek completion. * *This is the preferred 3 msec step rate. Winchester Board Products 6-39 COMMAND DESCRIPTIONS :e The WD1002-SAS commands are summarized in Table 9. Each command is listed with its Command Block g contents. o o I\,) TABLE 9. SUMMARY OF COMMANDS ~ en CONTROL BYTE OP lUN IMSB I lSB I COMMAND CLASS CODE (W/F) lSA INT/BlK R I C I F SS SS STEP TEST DRIVE 0 00 V\'N) n n n n n n n n READY RECALI- 0 01 V\'N) n n V V n n n V BRATE V(F) n n n n n n n V REQUEST 0 03 V\'N/F) n n n n n n n n STATUS FORMAT 0 04 V\'N) V* V(INT) V V V n n V DRIVE CHECK TRACK 0 05 V\'N) V* V(INT) V V V n n V FORMAT FORMAT 0 06 V\'N) V* V(INT) V V V n n V TRACK V(F) V* V(INT) n n n V V V FORMAT BAD 0 07 V\'N) V* V(INT) V V V n n V TRACK READ 0 08 V\'N) V V(BLK) V V V n n V SECTOR V(F) V V(BLK) n n n V V V WRITE 0 OA V\'N) V V(BLK) V V V n n V SECTOR V(F) V V(BLK) n n n V V V SEEK 0 OB V\'N) V* n V V V n n V V(F) V* n n n n V V V SET 0 OC V\'N/F) n n n n n n n n PARAMETERS RETURN LAST 0 OD V\'N) n n n n n n n n CORRECTED BURST LENGTH FORMAT 0 OE V\'N) V* V(INT) V V V n n V ALTERNATE TRACK WRITE 0 OF n\'N) n n n n n n n n SECTOR BUFFER READ SECTOR 0 10 n\'N) n n n n n n n n BUFFER RAM 7 00 n\'N/F) n n n n n n n n DIAGNOSTIC DRIVE 7 03 V\'N) n n V V V n n V DIAGNOSTIC CONTROLLER 7 04 n\'N/F) n n n n n n n n DIAGNOSTIC READ LONG 7 05 V\'N) V V(BLK) V V V n n V WRITE LONG 7 06 V(W) V V(BLK) V V V n n V 6-40 Winchester Board Products LEGEND: V Must be a valid parameter F Format Dat6a. Bit 5 of the Control Byte for n Not used (should be 0 for future compati- Winchester Drives. bility). MSB SS Most Significant Bit Sector Size. Bit 5 of the LUN(W/F)Logical Unit Number of Winchester drives Control Byte for Floppy drives. I NT Interleave factor. LSB SS Least Significant Bit Sector Size. Bit 4 of the BLK Block Count. Control Byte for Floppy drives. R Error Retry. Bit 7 of the Control Byte for Win- S T E P Stepping Rate. Bits 0 through 3 of the Con- chester drives. trol Byte as defined in Table 8 for Win- C Error Correction. Bit 6 of the Control Byte chester and Floppy drives. for Winchester drives. Each Wd1002-SAS command is described briefly in the following paragraphs. Refer to Table 9 for BITS their parameter contents. BYTE 7 I 6 I 5 I 4 I 3 I 21 1 1 0 1. TEST DRIVE READY (CLASS 0, OP CODE 00) 0 AVF! 0 ! ERROR CODE 1 LOGICAL LOGICAL SECTOR This command reads the drive's status. For UNIT NUMBER ADDRESS Winchester drives supporting buffered-seeks, this (BITS 20 THRU 16) command is useful for determining the first drive to reach its selected track. 2 LOGICAL SECTOR ADDRESS (BITS 15 THRU 8) This command is not used for the Floppy drives. 3 LOGICAL SECTOR ADDRESS Possible Error Codes (BITS 7 THRU 0) 00 No Error 03 Write Fault AVF 04 Drive Not Ready Address valid flag. Indicates that the Logical Sector 08 Buffered-Seek in Progress Address fields are valid. 32 Invalid Command FIGURE 3_ FOUR STATUS BYTES 2. RECAUBRATE (CLASS O. OP CODE 01) The information sent by the controller to the Host via This command positions the R/W heads over the the Request Status Command includes these outer most cylinder, cylinder O. conditions: Possible Error Codes % If the most recent non-Request-Status Command 00 No Error to the specified drive requires a logical sector 03 Write Fault address, then the address valid flag is 1. 04 Drive Not Ready % If an error has occurred on the preceding com- 06 Track 0 Not Found mand and the address valid flag is 1, then the 32 Invalid Command logical sector address indicates the record on which the error occurred. 3. REQUEST STATUS (CLASS 0, OP CODE 03) % If no error has occurred on the preceding com- This command sends the Host four status bytes of mand to format the track, format the drive, or for- error information (as shown in Figure 3) for the mat the alternate track, then the logical sector specified drive. address indicates one track beyond the last track accessed. % If no error has occurred and the command is to check the track format, format the bad track, or is not a format command, then the logical sector address indicates the last track or sector Winchester Board Products 6-41 Possible Error Codes :E 00 No Error The WD1002-SAS error code descriptions are sum- c ...L 32 Invalid Command marized in Table 10_ o TABLE 10. ERROR CODE DESCRIPTIONS o ~ I ERROR ~ en CODE ERROR NAME TYPE OF ERROR DESCRIPTION 00 No Error Disk Drive No error has occurred_ 03 Write Fault Disk Drive Indicates write..J!llrrent occurred when WG is de- asserted, or a ~is not asserted and a drive is selected while WG is asserted. 04 Drive Not Disk Drive The selected drive's DRDY is de-asserted. Indicates Ready the motor of the selected drive is not up to speed.' 06 Track 0 Disk Drive This code is returned by the Recalibrate Command. Not Found Indicates the TKOOO or TROO from the selected drive was not asserted after the maximum number of steps (up to 1024 for the Winchester; up to 256 for the Floppy) toward cylinder O. 08 Buffered-Seek Disk Drive This code is returned by the Test Drive Ready Com- in Progress mand, indicating the selected drive (Winchester sup- porting buffered-seeks) is busy performing a buffered-seek. 10 Write Controller This code is returned by Floppy drives when write-pro- Protected tect tab is detected on the diskette. 11 CRC Error Controller Indicates a CRC error in the data field is detected dur- ing a Floppy command execution after eight retries. 12 Address Mark Controller This code is returned when address is not found during Not found Floppy command execution after eight retries. 17 Uncorrectable Controller For a Floppy drive, this code indicates a CRC error in Data Error the data field. For a Winchester drive, this code indi- cates one or more error bursts in the data field are beyond the ECC's ability to correct. Data for the sec- tor in error is not sent to the Host. 18 Data Controller This code is returned by Winchester drives. Indicates Address Mark the selected sector's header is found, but its Address Not Found Mark is not detected. 21 Seek Error Controller Indicates the controller cannot locate the specified address on the disk. 24 Error Burst Controller A code returned by Winchester drives. Indicates the Corrected ECC successfully corrected an error. The corrected sec- tor data is sent to the Host (Note: This is the only error condition in which sector data is sent to the Host.) 25 Bad Track Controller Usually indicates access of a formatted bad track. Also indicates a formatted Bad-Track-With-Alternate is faulty and multiple, duplicate pointers to the Alternate Track cannot be read. 26 Format Error Controller This code is returned by the Check Track Format Com- mand. Indicates a track is not formatted, a track is not formatted with the specified interleave factor, or at least one sector header is unreadable. This code is also returned by the drive diagnostic, indicating a Bad-Track- With-Alternate does not contain a valid pointer to the Alternate Track. 28 Illegal (Direct) Controller The specified address is not a valid address for an Access to an Alternate Track. Alternate Track 6-42 Winchester Board Products TABLE 10. ERROR CODE DESCRIPTIONS (CONTINUED) ERROR CODE ERROR NAME TYPE OF ERROR DESCRIPTION 29 Alternate Controller This code is returned by the Format Alternate Track Track Command. Indicates the specified Alternate Track is Already Used already an alternate or bad track. 30 Alternate Track Controller Indicates access of a Bad-Track-With-Alternate caused Not Marked access to an Alternate Track not marked as an Alter- as Alternate nate Track. 31 Alternate Controller This code is returned by the Format Alternate Track Track Equals Command. Indicates the same track is specified as Bad Track the Bad Track and the Alternate Track. 32 Invalid Command Indicates an invalid command class, operation code, Command logical unit number, interleave factor, or step number. 33 Invalid Command Indicates the specified address has reached the file Sector Address device's given range, exceeding capacity. 48 RAM Failure Miscellaneous Indicates the external RAM failed. 49 ROM Failure Miscellaneous Indicates ROM checksum does not match the calcu- lated checksum. 4. FORMAT DRIVE (CLASS 0, OP CODE 04) 21 Seek Error This command formats from the specified track to 32 Invalid Command the end of the disk. The previous contents of the for- 33 Invalid Sector Address matted tracks are ignored. 7. FORMAT BAD TRACK (CLASS 0, OP CODE 07) This command is not used for the Floppy drives. This command formats the specified track with a Bad Possible Error Codes Block Mark in each sector header, ignoring the previous contents. The contents of a bad track are 00 No Error not accessible. 03 Write Fault a4 Drive Not Ready This command is not used for the Floppy drives. 21 Seek Error Possible Error Codes 32 Invalid Command 00 No Error 33 Invalid Sector Address 03 Write Fault 5. CHECK TRACK FORMAT (CLASS 0, OP CODE 05) a4 Drive Not Ready This command verifies whether the specified track 32 Invalid Command is formatted with the specified interleave factor. It 33 Invalid Sector Address does not read the sector data fields. 8. READ SECTORS (CLASS 0, OP CODE 08) This command is not used for the Floppy drives. Beginning with the specified sector, this command Possible Error Codes reads the specified number of consecutive sectors. 00 No Error Possible Error Codes 03 Write Fault 00 No Error a 4 Drive Not Ready a3 Write Fault 21 Seek Error 04 Drive Not Ready 26 Format Error 11 CRC Error 32 Invalid Command 12 Record Not Found 33 Invalid Sector Address 17 Un correctable Data Error 6. FORMAT TRACK (CLASS 0, OP CODE 06) 18 Address Mark Not Found 21 Seek Error This command formats the specified track, ignoring 24 Error Burst Corrected the current contents. For Floppy drives, 5E Hex is writ- 25 Bad Track ten in the data field. 28 Illegal (Direct) Access to an Alternate Track Possible Error Codes 30 Alternate Track Not Marked as Alternate 00 No Error 32 Invalid Command a3 Write Fault 33 Invalid Sector Address a4 Drive Not Ready Winchester Board Products 6-43 9. WRITE SECTORS (CLASS 0, OP CODE OA) BYTE DESCRIPTION :ec Beginning with the specified sector, this command writes the specified number of consecutive sectors. 0 Number of Cylinders MSByte Number of Cylinders LSByte -'- 1 o o Possible Error Codes 2 Bits 4 thru 7 =Must be 0 N I Bits 0 thru 3 =Numbers of Heads 3 Start RWC Cylinder Number MSByte ~ 00 03 No Error Write Fault 4 Start RWC Cylinder Number LSByte en 04 Drive Not Ready 5 Start Write Precomp Cylinder Number 10 Write-Protected MSByte 12 Record Not Found 6 Start Write Precomp Cylinder Number 18 Address Mark Not Found LSByte 21 Seek Error \ 25 Bad Track 7 Bits 4 thru 7 =Must be 0 28 Illegal (Direct) Access to an Alternate Track Bits 0 thru 3 =Maximum Length of 30 Alternate Track Not Marked as Alternate Error Burst To Be 32 Invalid Command Corrected 33 Invalid Sector Address 10. SEEK (CLASS 0, OP CODE OB) For Floppy Drives, power up or reset sets the This command moves the read/write head to the parameters to the following defaults: specified cylinder. It does not read any sector header to verify start or end position. DEFAULT PARAMETER VALUE Possible Error Codes Number of Cylinders 40 00 No Error Number of Heads 2 03 Write Fault Tracks Per Inch Flag for 96 tpi 0 04 Drive Not Ready Diskette 32 Invalid Command 33 Invalid Sector Address Floppy Parameter Block 11. SET PARAMETERS (CLASS 0, OP CODE OC) For Winchester Drives, the following parameters are The parameters sent by the Host to the WD1002-SAS set to their respective default values upon power up in the following format replace the default values or reset: shown above: DEFAULT BYTE DESCRIPTION PARAMETER VALUE 0 Number of Cylinders MSByte Number of Cylinders 153 1 Number of Cylinders LSByte Number of Heads 4 2 Bits 4 thru 7 = Must be 0 Starting RWC Cylinder: The specified 128 Bits 0 thru 3 = Number of Heads number for this parameter is rounded 3 If 48 or 96 Tracks Per Inch diskette is down to the nearest integer in multi- ples of four. For example, 0,4,8,12, ... used in a drive with the same TPI = 0 If 48 Tracks Per Inch diskette is used in ... ,. .. ,1020. Starting Write Precomp Cylinder 64 a 96 TPI drive =1 4 Zeros Maximum Length of Error Burst To 11 5 Zeros Be Corrected: For most applications, 6 Zeros the maximum length of error burst 7 Zeros to be corrected should be approxi- mately 5 because correcting longer bursts increases the chance of Possible Error Codes miscorrecting. 00 No Error 32 Invalid Command Winchester Parameter Block The parameters sent by the Host to the WD1002-SAS in the following format replace the default values shown above: 6-44 Winchester Board Products 12. RETURN LAST CORRECTED BURST LENGTH 15. READ SECTOR BUFFER (CLASS 0, OP CODE 10) (CLASS 0, OP CODE OD) This command sends current contents of the This command sends the Host one byte of data con· WD1002- SAS Sector Buffer the Host. The Host taining the length of the most recently corrected error accepts as many bytes as there are in a sector on burst. If no error burst has been corrected since the Logical Unit O. last power·up or reset, then Error Burst Length Block This command is not used for the Floppy drives. of zero is sent to the Host. Possible Error Codes This command is not used for the Floppy drives. 00 No Error Possible Error Codes 16. RAM DIAGNOSTIC (CLASS 7,OP CODE 00) 00 No Error This command writes and reads various patterns into 13FORMAT ALTERNATE TRACK (CLASS 0, OP the Sector Buffer to test. This command also destroys CODE OE) the previous contents of the Sector Buffer. This command formats the specified track as a Bad· Possible Error Codes Track·With·Alternate. Then it formats the specified Alternate Track with the specified interleave factor. 00 no Error The alternate Track is specified by the Host by sen· 48 RAM Failure ding the following Alternate Sector Address Block to 17. DRIVE DIAGNOSTIC (CLASS 7,OP CODE 03) the WD1002-SAS after the device Control Byte: This command recalibrates the selected drive, then scans the ID on each track. This command does not BITS write to the disk or send any sector data to the Host. BYTE 7 I 6 I 5 4 I 3 I 2 I 1 I a The drive diagnostic is used to verify that at least one a a LOGICAL SECTOR sector header can be read on each track. When a ADDRESS track formatted as bad Track, Bad·Track· With· (BITS 20 THRU 16) Alternate, or Alternate Track is encountered, an error 1 LOGICAL SECTOR ADDRESS is not reported. However, an error is reported when (BITS 15 THRU 8) a Bad·Track·With·Alternate is encountered with the Alternate Track Not Marked as an Alternate. If no 2 LOGICAL SECTOR ADDRESS pointer to the Alternate Track can be read from a Bad· (BITS 7 TH RU 0) Track·With·Alternate then a Bad Track error is This command is not used for the Floppy drives. reported. Possible Error Codes This command is not used for the Floppy drives. 00 No Error Possible Error Codes a3 Write Fault 00 No Error a4 Drive Not Ready a3 Write Fault 21 Seek Error a4 Drive Not Ready 29 Alternate Track Already Used 21 Seek Error 31 Alternate Track Equals Bad Track 25 Bad Track 32 Invalid Command 3a Alternate Track Not Marked as Alternate 33 Invalid Sector Address 32 Invalid Command 14. WRITE SECTOR BUFFER (CLASS O,OP CODE OF) 18. CONTROLLER DIAGNOSTIC (CLASS 7,OP CODE This command writes data from the Host to the 04) WD1002-SAS Sector Buffer. The Host sends as many This command calculates a checksum for the ROM bytes as there are in a sector on Logical Unit O. This program, and tests the microprocessor and Sector data is not written to any disk. The Write Sector Buf· Buffer. This command does not access any disk drive fer Command provides the data used by format com· but destroys the previous contents of the Sector mands having bit 5 of the Control Byte = 1. Buffer. This command is not used for the Floppy drives. Possible Error Codes Possible Error Codes 00 No Error 00 No Error 48 RAM Failure 49 ROM Failure Winchester Board Products 6-45 19. READ LONG (CLASS 7,OP CODE 05) COMMAND STATUS BYTE Beginning with the specified sector, this command After each command is executed, the WD1002-SAS reads the specified number of consecutive sectors sends a Command Status Byte to the Host to deter- and an additional four ECC data bytes per sector pro- mine whether the command is completed suc- vided by the controller. cessfully. The logical unit number returned represents This command is not used for the Floppy drives. the contents of the logical unit field in the drive con- trol block. Possible Error Codes 00 No Error BITS 03 Write Fault ·04 Drive Not Ready 7 I 6 I 5 I 4 I 3 12 I 1 I 0 18 Address Mark Not Found LUN I 0 0 0 I E I0 1 1 21 Seek Error LUN Logical Unit Number 25 Bad Track E Error Flag: 28 Illegal (Direct) Access to an Alternate Track o = No Error 30 Alternate Track Not Marked as Alternate 1 = Error 32 Invalid Command COMMAND COMPLETION BYTE 33 Invalid Sector Address 20. WRITE LONG (CLASS 7,OP CODE 06) Immediately following each Command Status Byte, the WD1002-SAS sends a Command Completion Byte Beginning with the specified sector, this command containing all zeros to the Host while MSG is ass- writes the specified number of consecutive sectors. erted. This byte indicates to the Host that BSY will Following each sector, the Host sends the be de-asserted, the bus is available for the next WD1002-SAS an additional four ECC data bytes command. (unaltered by the controller) which are written to the disk as ECC bytes for the sector. This command is useful for diagnostic purposes. This command is not used for the Floppy drives. Possible Error Codes 00 No Error 03 Write Fault 04 Drive Not Ready 18 Address Mark Not Found 21 Seek Error 25 Bad Track 28 Illegal (Direct) Access to an Alternate Track 30 Alternate Track Not Marked ,as Alternate 32 Invalid Command 33 Invalid Sector Address 6-46 Winchester Board Products HOST INTERFACE TIMING Timing diagrams are shown in Figures 4 through 6 ~ and their values are given in Tables 11 and 12. C ...... o o I\) en 00 TERMINATES COMMAND » en BUSy-----, ~--------------~I REQ - - - - - - _ - , ACK---------~-~I UO - - - - - - - - - - - -______________________ r ~~~~ ~ ~D---------~,,~_________________________J;f MSG------------------------------------------------~ FIGURE 4. TYPICAL HOST·CONTROLLER BUS TRANSFER TIMING Winchester Board Products 6-47 :ec ..... o o .I. . t----tCy -----4·~1 . .1 ~1 · f - - - - - - t C y - - - - . - ,.. N REQ----~I~ ________ ~ REQ----~LI ____~ I ~ -.J tRAH I I I I I I I ~tARH "1"~ltARLI tRAL tARH tRAH I tRAL . . . . . . . . . . . . . . II ACK I L ~K----~~I I~------------- I I I tADV HtRDHr.- ....,tSUR~ -+j tRDH ~ DO-D7W11/1//$IIff/l~ X--- ~D7~______________~_______ FIGURE 5: HOST-TO-CONTROLLER TIMING FIGURE 6: CONTROLLER-TO-HOST TIMING TABLE 11- TABLE 12. HOST-TO-CONTROLLER TIMING PARAMETERS CONTROLLER-TO-HOST TIMING PARAMETERS txx MIN(nsec) MAX(nsec) txx MIN(nsec) MAX(nsec) tCY * 1152 tCY * 1152 tRALt a tRALt a tARH 600 840 tARH 200 448 tRAHtt a tRAHtt a tARL 200 488 tARL 200 848 tADv 375 tSUR 125 TRDH a tRDH 152 *It conditions in t and tt are met, then tCY (typ) = *It conditions in t and tt are met, then tCy(typ) = 1200 nsec and tCY max 1248 nsec. = 1200 nsec and tCY max 1248 nsec. = tit tRAL =::; 89 nsec, then no wait states are inserted. tit tRAL =::; 497 nsec, then no wait states are ttlt tRAH =::; 97 nsec, then no wait states are inserted. inserted. One wait state = 200 nsec. ttlt tRAH =::; 200 nsec, then no wait states are inserted. 6-48 Winchester Board Products WESTERN DIGITAL c o R P 0 RAT o N WD1002-WX1 Winchester Disk Controller FEATURES • 4.95" x 3.85" HALF-SLOT FORM FACTOR • DIAGNOSTIC READS AND WRITES FOR CHECK- • IBM XT WINCHESTER CONTROLLER EMULA· ING ERROR CORRECTION TION, IBM PC HOST INTERFACE • AUTOMATIC FORMATIING • WD10C20 SELF·ADJUSTING DATA SEPARATOR • 512 BYTES PER SECTOR • DATA RATES UP TO 5 MBITS/SEC • SECTOR INTERLEAVE CAPABILITY • CONTROLS UP TO 2 DRIVES USING SEAGATE • MULTIPLE SECTOR READS AND WRITES TECHNOLOGY ST506 • INTERNAL DIAGNOSTICS • SUPPORTS DRIVES OF ANY CONFIGURATION • DMA TRANSFER CAPABILITY UP TO 1024 CYLINDERS AND 16 R/W HEADS • AUTO-CONFIGURABLE BIOS ROM • 32·BIT ECC POLYNOMIAL FOR ERROR DETEC· TION AND CORRECTION • COMPATIBLE WITH WD1002S·WX2 DESCRIPTION The WD1015 controls and coordinates the activity of The WD1002·WX1 Winchester Controller is a half·slot the disk drive, WD1010A·05, and WD11COO·17. The sized IBM XT compatible board designed to interface WD1002·WX1 receives and sends commands or up to two hard disk drives. The drive interface is based status information over the 8-bit multiplexed upon the Seagate Technology ST506. The drives need address/data bus, ADO through AD7. Drive control not be of the same capacity or configuration. All signals select the proper drive and head when necessary receivers and drivers are included on the enabled by the WD1015. board to allow direct connection to the drive(s). The WD11COO·17 Logic Array incorporates several The WD1002-WX1 interfaces directly with the Host I/O functions in a single package. Implementation of bus via several interface buses. Data transfer to or these functions occurs by combining random logic from the Controller can be either programmed I/O or and specialized circuits. The WD11COO·17 contains DMA. the following circuits Status ports The WD1002·WX1 is based on the WD1010A·05 Win· Read and write ports chester Controller/Formatter, the WD1015 Control Pro- Sector Buffer RAM addressing and control cessor, the WD110CO·17 Logic Array, and WD10C20 Disk I/O Control Data Separator. ECC Monitoring of the disk drive status lines is a major Reset Timing function of the WD1010A·05. The WD1010A·05 also The WD10C20 is a monolithic CMOS Data Separator. controls passage of read and write data between the This component interfaces the WD1010A·05 to a Win· WD10C20 Data Separator and the other major com· chester disk drive. ponents of the WD1002-WX1. Winchester Board Products 6-49 :ec ..... BIOS ..) ..... ,..-- --,H 0 0 ~ ROM ... BUFF. DATA >H =s /\. 0 >< ..... S 0 ... T DECODE S ADDR. .. T ~ ... DATA I CONFIG. P . WD - CONTROL -.. "> 11COO-1? CONTROL >--- RA .') RAM R/W LOGIC ARRAY D ADO-AD? ~ - ..... RDATA WDATA f' r-- ~ L{~ ~ RWC ..... D D \) WD 10C20 \/ I I S .A • S K K DATA/TIMING) K WD DATA WD 1010A-05 SEPARATOR 1015 • ---. -...- ..:> '-- CLOCK STATUS => CONTROL , - DISK CONTROLLER - CONTROL . PROCESSOR r t RESET WD1002-WX1 BLOCK DIAGRAM 6-50 Winchester Board Products WESTERN DIGITAL COR P 0 RAT o N :ec WD10028-SHD Winchester Disk Controller -'" o o I\l en FEATURES DESCRIPTION en ::r: • SASI HOST INTERFACE The WD1002S-SHD is a stand alone, general purpose Winchester Disk Controller Board, incorporating the c • BAD TRACK MAPPING CAPABILITY latest state-of-the-art surface mount technology and • MULTIPLE SECTOR READS AND WRITES designed to interface up to two Winchester Disk • SUPPORTS REMOVABLE MEDIA DRIVES Drives to a Host Processor. The Winchester Drive • AUTOMATIC FORMATTING signals are based upon the Seagate Technology ST506 interface and other compatible drives. All • ADJUSTMENT FREE DATA SEPARATOR necessary receivers and drivers are included on the • IMPLIED SEEKS board to allow direct connection to the drive. • OVERLAPPED SEEKS Communication to and from the Host are made via • 3 1/2 INCH FORM FACTOR a separate computer access port. This port conforms to the Shugart Associates System Interface (SASI) • 32-BIT ECC FOR WINCHESTER DATA CORRECTION and consists of control signals and an 8-bit, bi- directional bus. All data to be written to or read from • 256 OR 512 BYTES PER SECTOR the disk, status information, and command • CONTROL FOR EITHER ONE OR TWO parameters are transferred via this bus. An on-board WINCHESTER DRIVES, WITH UP TO SIXTEEN Sector Buffer allows bus transfers to be executed READIWRITE HEADS EACH independently of the actual data transfer of the drive. • DIAGNOSTIC READS AND WRITES FOR ARCHITECTURE CHECKING ERROR CORRECTION The WD1002S-SHD Winchester Disk Controller is • SELECTABLE INTERLEAVE based upon a Western Digital proprietary chip set • BUILT-IN WRITE PRECOMPENSTION consisting of a: WD1010A-05, WD10C20, WD1015, and the WD11COO-16, all specifically designed for Win- • SUPPORTS UP TO 16 HEADS chester disk control. TABLE 1. WD10025-SHD INTERFACE CONNECTORS REFERENCE DESIGNATION INTERFACE FUNCTION MATING CONNECTOR P1 POWER AMP1-480424-0 (Housing) AM P350078-4 4-pin connector J1 HOST (SASI BUS) AMP88379-8 50-pin vertical header J2-J3 DRIVE DATA AMP88377-4 20-pin vertical header J4 DRIVE CONTROL AMP88373-3 34-pin PC card edge connector Winchester Board Products 6-51 :ec WDIOC20 ..... WDllCOO-16' WDllCOO-16 ECC WDIOIOA-OS WINCHESTER DATA DRIVERS AND WINCHESTER o ADDRESS COUNTER , GENERATOR DISK SEPARATION & WRITE RECEIVERS DISK DRIVES o & CHECKER CONTROLLER PRECOMP N en I en :J: C SENSE WDIO'S·12 SASI DATA SIGNALS CONTROL TRANSCEIVER PROCESSOR CLOCK WD11COO-16 CONTROL SIGNALS WDllCOO-16 SIGNALS DRIVERS AND SASI RECEIVER BUS CONTROLLER WDIOC20 CLOCK GENERATOR WDllCOO-16 RESET CIRCUIT AND WRITE GATE D~GLlTCHER FIGURE 1. WD1002S-SHD WINCHESTER DISK CONTROLLER BLOCK DIAGRAM 6-52 Winchester Board Products SPECIFICATIONS HOST INTERFACE Type SASI Max Cable Length 4.5 meters (15 ft.) (Total Daisy Chain) Termination Socketed 220/330 ohm resistor pack Addressing Jumper selectable 0 to 7 DRIVE INTERFACES Encoding Method MFM Cylinders per Track Programmable Bytes per Sector Jumper selectable (256 or 512) Sectors per Track 32 (256 bytes/sector) 17 (512 bytes/sector) Max Heads 16 Drive Selects 2 Stepping Rates/Algorythms Programmable Data Transfer Rate 5 Mbits/sec Write Precomp Time 12 nsec Max Cable Length: Control (Total Daisy-Chain) 6 Meters (20 ft.) Data (Radial-each) 6 Meters (20 ft.) POWER Voltage +5 VDC ± 5% and +12 VDC ± 5% Current 800 rna typical (1.0 amps max) Ripple 0.1 to 25 mv (0.1 VDC max) DATA SEPARATOR Read Margin ± 16 nsec Asymmetry 30 nsec measured over 5 MHZ Raw MFM periods of 185, 215, nsec PHYSICAL Length 5.75 inches Width 4.00 inches Height (max. including board, 0.75 inches components & leads) MTBF 10,000 POH MTTR 30 Minutes ENVIRONMENTAL Ambient Temperature OOC (32~ to 55°C (131°F) Relative Humidity 10% to 90% non-condensing Altitude o to 10,000 Feet (3,048 meters) Air Flow 150 linear feet per minute at 1/4 inch from compotent surfaces. Winchester Board Products 6-53 HOST INTERFACE The WD1oo2S-SHD Winchester Disk Controller is other SASI compatible devices can be daisy-chained designed to interface with the Shugart Associates to this bus. The last device in the daisy-chain must System Interface (SASI) Bus. All interfacing is done be terminated with a standard 220/330 ohm resistor through the SASI connector (J1). The Host and seven pack. TABLE 2. HOST INTERFACE CONNECTOR (J1) PIN DESCRIPTIONS SIG. SIG. GND. PIN MNEMONIC SIGNAL NAME 1/0 FUNCTION 1 2 DO DATA 0 1/0 8-Bit, bi-directional bus used for the transfer 3 4 thru thru of commands, status and data 5 6 D7 DATA 7 7 8 9 10 11 12 13 14 15 16 17 thru 34 Spare 35 36 BSY BUSY 0 Falling edge acknowledges receipt of SEL and address. Rising edge indicates transac- tion complete. 37 38 ACK ACKNOWLEDGE I Handshake for byte transfers (both edges used). 39 40 RST RESET I Asserted for 100 nsec. 41 42 MSG MESSAGE 0 Indicates type of bus transfer (see information Transfer Phase). 43 44 SEL SELECT I Asserted, gives control of bus to addressed target. 45 46 CID CONTROUDATA 0 Indicates type of bus transfer (see information Transfer Phase). 47 48 REQ REQUEST 0 Handshake for byte transfers (both edges used). 49 50 ilo INIOUT 110 L = Input to the Host H = Output from Host (See information Transfer Phase) 6-54 Winchester Board Products DRIVE CONTROL INTERFACE The control signals are common to both drives and properly, the last drive in the daisy-chain must not are daisy chained from a single 34-pin PC card edge be more than 20 feet from the controller, and have :ec connector (J4). To terminate the control signals a 220/330 ohm resistor pack installed. ...". o o J\) TABLE 3. DRIVE CONTROL CONNECTOR (J4) PIN DESCRIPTIONS en I SIG. SIG. en :I: GND. PIN MNEMONIC SIGNAL NAME I/O FUNCTION C 1 2 RWC REDUCE 0 RWC is asserted when the Present Cylinder HS3 WRITE CURRENT Number Register is equal to or greater than CHANGE the content programmed in the Write Precomp CART Register. It is used by the drive to reduce drift caused by greater bit density on the inner cylinders. HEAD SELECT 3 0 HS3 is an optional Head Select line that allows the selection of eight additional heads. CHANGECART 0 CHANGECART when activated, will stop the spindle motor. (Removable Media Drives only) 3 4 HS2 HEAD SELECT 2 0 HS2 is one of three Head Select signals encoded by the drive to select one of eight RIW heads. 5 6 WG WRITE GATE 0 WG is asserted when valid data is to be written. It is used by the drive to enable the write current to the head. WD1002S-SHD de- asserts this signal when WF is asserted. WD1002S-SHD prevents WG from being asserted at power up, allowing the drive to remain ON while cycling the Controller ON or OFF. 7 8 SC SEEK COMPLETE I SC, when asserted, infonns the WD10028-SHD that the selected head has reached the desired cylinder and has stabilized. 9 10 TKOOO TRACK 000 I The drive asserts TKOOO when the heads are positioned over the outermost cylinder (Track 0). - 11 12 WF WRITE FAULT I WF is asserted by the drive when a write error occurs. 13 14 HSO HEAD SELECT 0 HSO is one of three Head Select signals encoded by the drive to select one of eight RIW heads. 15 16 RECOVER RECOVERY MODE Not Used. 17 18 HS1 HEAD SELECT 1 0 HS1 is one of three Head Select signals WRTSERVO encoded by the drive to select on of eight RIW heads. WRITE SERVO 0 WRTSERVO is used to write servo infonnation on a new cartridge. Winchester Board Products 6-55 TABLE 3. DRIVE CONTROL CONNECTOR (J4) PIN DESCRIPTIONS (CONT'D.) SIG. SIG. GND. PIN MNEMONIC SIGNAL NAME 1/0 FUNCTION 19 20 INDEX INDEX PULSE I This signal indicates start of a track. It is used as a synchronization point during formatting and as a time out mechanism for retries. This signal pulses once for each revolution of the disk. 21 22 DRDY DRIVE READY I The drive asserts DRDY when selected and the motor is up to speed. 23 24 STEP STEP PULSE 0 STEP, with DIRIN, positions the heads to the desired cylinder. 25 26 DSELO DRIVE SELECT 0 0 DSELO is used to select drive 1. 27 28 DSEL1 DRIVE SELECT 1 0 DSEL1 is used to select drive 2. 29 30 NC Not Connected 31 32 NC Not Connected 33 34 DIRIN DIRECTION IN 0 DIRIN determines the direction the R/W heads take when stepped. Asserted =IN. De-asserted =OUT. DRIVE DATA INTERFACE The data is differential and must be connected to long. The connector is a 20-pin vertical header on a each drive with its own cable (J2, J3). It should be 0.1" center. a flat ribbon cable, or twisted pair, less than 20 feet TABLE 4. DRIVE DATA CONNECTORS (J2,J3) PINS SIGNAL SIGNAL GROUND PIN 1/0 SIGNAL NAME - 1 Not Connected 2 - Ground - 3 0 Reinitialize 4 Ground - 5 I Write Protected 6 Ground - 7 Not Connected 8 Ground 9 I Cartridge Changed 10 I Cartridge In 11 Ground 12 - Ground 13 0 + M FM Write Data 14 0 - MFM Write Data 15 Ground 16 Ground 17 I + M FM Read Data 18 I - M FM Read Data 19 Ground 20 Ground 6-56 Winchester Board Products POWER CONNECTOR A 4·pin AMP connector (P1) provides power input to :E the WD1002S· SHD Controller. c ..... o o I\) TABLE 5. POWER CONNECTOR (P1) PIN DESCRIPTIONS en SIGNAL SIGNAL en :::c GROUND PIN SIGNAL NAME c 1 + 12 Volts (regulated) 2 Ground 3 Ground 4 + 5 Volts (regulated) DISK DRIVE CONFIGURATION PARAMETERS Table 6 lists the variable parameters for the major drives supported by the WD1002S·SHD Winchester Disk Controller. TABLE 6. DISK DRIVE CONFIGURATION PARAMETER VARIATIOINS REDUCED WRITE WRITE PRECOMPENSATION MFGR MODEL # CYLINDERS HEADS CURRENT CYL. CYLINDER CMI CM·5205 256 (100) 2 56 (100) 256 (100) CMI CM·5410 256 (100) 4 256 (100) 256 (100) CMI CM·5616 256 (100) 6 256 (100) 256 (100) Oll HD561 180 (84) 2 128 (80) 180 (84) Oll HD562 180 (84) 2 128 (80) 180 (84) RMS 503 153 (99) 2 77 (48) 77 (48) RMS 506 153 (99) 4 77 (48) 77 (48) RMS 512 153 (99) 8 77 (48) 77 (48) SEA ST506 153 (99) 4 128 (80) 64 (40) SEA ST412 306 (132) 4 128 (80) 64 (40) TAN TM602S 153 (99) 4 128 (80) 153 (99) TAN TM603S 153 (99) 6 128 (80) 153 (99) TAN TM603SE 230 (E6) 6 128 (80) 128 (80) TI 5 1/4+ 153 (99) 4 64 (40) 64 (40) RO 101 192 (CO) 2 96 (60) 0(0) RO 102 192 (CO) 4 96 (60) 0(0) RO 103 192 (CO) 6 96 (60) o (0) RO 104 192 (CO) 8 96 (60) 0(0) RO 201 321 (141) 2 132 (84) 0(0) RO 202 321 (141) 4 132 (84) 0(0) RO 203 321 (141) 6 132 (84) 0(0) RO 204 321 (141) 8 132 (84) 0(0) MS 1·006 306 (132) 2 153 (99) 0(0) MS 1·012 306 (132) 4 153 (99) 0(0) DMA 360 306 (132) 2 153 (99) o (0) SYQ 312RO 306 (132) 2 153 (99) 0(0) Winchester Board Products 6-57 DRIVE MANUFACTURES ABBREVIATIONS: CMI Computer Memories Inc. OLi Oliveti RMS Rotating Memory Systems Inc. SEA Seagate Technology Inc. TAN Tandon Inc. TI Texas Instruments RO Rodime Ltd. MS Miniscribe DMA DMA Systems Sya Syquest Corp. COMMANDS a summary of the supported commands and their The WD1002S-SHD Winchester Disk Controller Board parameters. It also includes information about data supports 26 different SASI commands; 21 operation transfers required during execution. All other SASI commands and 5 diagnostic commands. Table 7 is command codes are reserved. TABLE 7. WD10028-SHD SUPPORTED COMMAND SUMMARY #SASI LOGICAL INTERLEAV CONTROL DATA COMMAND CLASS, SECTOR OR BLOCK BYTE BLOCK D.B. DIREC- NAME OPCODE LUN ADDRESS COUNT OPTIONS TRNSFRS SIZE TION Test Drive -- - - -- - - - - Ready Restore to 0,00 W ° Track ° Req. Status 0,01 0,03 W W - - -- - - - - -- - - ° 1 - - 4 - - To Host L* -- -- Frmt Drive Chk Tr Frmt 0,04 0,05 W W L* I I R,P,S,Z R,S °° - - - - L* -- -- Format Track Frmt Bad Trk 0,06 0,07 W W L* I I R,P,S,Z R,P,S,Z °° - - - - Read 0,08 W L B R,A,S B SCTR To Host - - -- - - -- -- Stop Drive Write 0,13 O,OA W W L B R,S B° SCTR To CTLR L* -- -- -- Seek Set O,OB W R,S ° Parameters O,OC W - - - - -- 1 8 To CTLR Last Corrected Burst Length O,OD W - - -- - - 1 1 To Host Frmt Alt Trk O,OE W L* I R,P,S,Z 1 3 To CTLR Wr Set Bfr O,OF -- - - -- 1 SCTR To CTLR Rd Set Bfr 0,10 - - - -- - - 1 SCTR To Host -- - - -- - - - - Write Servo 6,00 W ° 6-58 Winchester Board Products TABLE 7. WD10025-SHD SUPPORTED COMMAND SUMMARY (CONT'D) HSASI LOGICAL INTERLEAV CONTROL DATA COMMAND CLASS, SECTOR OR BLOCK BYTE BLOCK D.B. DIREC- NAME OPCODE LUN ADDRESS COUNT OPTIONS TRNSFRS SIZE TION Reinitialize Cartridge 6,02 W -- - - -- 0 -- -- RAM Diag 7,00 - - -- - - 0 -- - - Drive Diag 7,03 W - - -- R,S 0 -- - - CTLR Diag 7,04 - -- - - -- 0 - - -- RD Long 7,05 W L B R,S B SECT To Host +4 WR Long 7,06 W L B R,S B SECT To CTLR +4 W Winchester L· Logical sector address used only to specify track L Logical sector address I Interleave B Block count R Retry enable/disable A Attempt immediate ECC enable/disable S Stepping algorithm P Used with Format commands for determining data field patterns function should be performed. Z Used with Format commands for determining if a Write Servo function should be performed . . COMMAND BLOCKS Transfer Phase, six bytes of information specifying A transaction is initiated by the Host to instruct the the command are transferred to the WD1oo2S-SHD WD10028- SHD Winchester Disk Controller to execute Winchester Disk Controller. This is the Command a given command. During the Command Block Block and is illustrated in Figure 2. BITS BYTES 7 I 6 I 5 4 I 3 I 2 I 1 I 0 0 Command Class Operation Code 1 Logical Unit Num Logical Sector Address(High) 2 Logical Sector Address (Middle) 3 Logical Sector Address (Low) 4 Interleave or Block Count 5 Control Byte FIGURE 2. COMMAND BLOCK FORMAT Winchester Board Products 6-59 Byte 0 is transferred first and must be specified for This field specifies a sector (or beginning sector) for all commands. Depending upon the value of Byte 0, the Read and Write drive commands. It specifies a =E each parameter in bytes 1 through 5 may require track for the Format and Seek commands (indicated c ..... specification. by L * in Table 7). When only a track specification is o o LOGICAL UNIT NUMBER (LUN) required, the sector number implied by the Logical N Sector Address is ignored. en The LUN is contained in the three MSBits of Byte 1. en The allowed values are 0 and 1. The designators in INTERLEAVE OR BLOCK COUNT :I: the command table are: Drive 0 (LUN = 0) or Drive The Interleave or Block Count comprise Byte 4. The C 1 (LUN = 1). Interleave ratio (I in Table 7) is specified in the five LOGICAL SECTOR ADDRESS Format commands. The maximum ratio is equal to the Sector-per-Track minus 1. The Logical Sector Address (High, Middle, and Low) is a 21-bit field contained in Bytes 1, 2, and 3. It is The Block Count (B in Table 7) is specified in the computed from the Cylinder Addres (C), Head Address Read, Write, Read Long, and Write Long commands. (H), and Sector Address (S), as well as the drive B specifies the number of Logical Sectors to be parameters Heads per Cylinder (HC) and Sectors per transferred. Track (S1): Both Interleave ratio and Block Count use all 8-bits L = ([(C x HC) + H) x S1) + S to specify their respective parameters. C, H, and S can be derived from L, HC and ST CONTROL BYTES as follows: Table 8 defines the Control Byte fields: S = L Modulo ST H = [(L-S) 1ST] Modulo HC C = ([(L-S 1ST] -H) IHC TABLE 8. CONTROL BYTE FIELDS FIELD BIT (S) FUNCTION STEP 0-3 Used in all commands that contain code corresponding to seek stepping algorithm. See Fast Step Options. Z 4 Write Servo Information P 5 Format Data (P) is used in the Format commands. If P= 0, the WD1002S- SHD fills the data field with 6C Hex. If P= 1, data field is filled with the pat- tern in the Sector Buffer. A 6 Immediate ECC (A) is used in the Read command. If A = 0, no immediate ECC is performed. If A = 1, immediate ECC is performed. R 7 Retry (R) is used in all commands that read the ID field. If R = 0, (normal), a maximum of 3 non-restore retries are performed, then Restore, Seek, and 1 more read is performed. If R = 1 Retry is disabled then no retries are performed. NOTE FAST STEP OPTIONS If one or more of the above fields are required for The Fast Step Option field contains an unsigned a command, then all other fields in that Control Byte 3-bit integer. These integers correspond to the Fast must be set to O. If none of the above are required, Step Algorithms listed in Table 9. all bits in the Control Byte are interpreted as 'don't care' bits (X). 6-60 Winchester Board Products TABLE 9. FAST STEP OPTION ALGORITHMS OPTION ALGORITHM 0 Default: 3 msec. per step 1 Reserved 2 Reserved 3 Reserved 4 200 usec. per step. This is appropriate for buffered steps on drives made by Computer Memories Inc. and Rotating Memories Inc. 5 70 usec. per step 6 30 usec. per step 7 15 usec. per step 8 12J.t's per step 9-F Spare (3 msec. per step) COMMAND STATUS BYTE COMMAND COMPLETION BYTE At the completion of any command execution, a Com- The Command Completion Byte is an all zero byte mand Status Byte is sent by the WD10028-SHD to the sent by the WD10028-SHD Winchester Disk Controller Host, whether the command was successful or to the Host immediately following each Command aborted_ The LUN returned is the contents of the LUN Status Byte. It indicates to the Host that the field in the drive control block. For those commands WD1002S-SHD has freed the SASI Bus. that do not use LUN as an input parameter, the LUN returned in the Command Status Byte is meaningless. Figure 3 illustrates the contents of the Command Status Byte. BITS 7 6 LUN EF (Error Flag): 0= no error 1 = error P (Write Protected) = 1 (Removable Media Only) CC (Cartridge Changed) = 1 o = Default 1 = CC FIGURE 3. COMMAND STATUS BYTE Winchester Board Products 6-61 COMMAND DESCRIPTIONS :E TEST DRIVE READY c-" (CLASS O,OP CODE 00) o o This command selects a drive and verifies that it is I\) en ready. The following is the Test Drive Ready com- en mand block format: :::c c BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 0 Operation Code 00 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes No Error, Invalid Command, No Seek Complete, Drive Not Ready, or Write Fault. Action Select the drive and determine if it is ready. For a Winchester drive, read its status register and test the ready bit and the busy bit. For Winchester drives supporting buffered seeks, this command is useful for determining the first drive to reach its target track. 6-62 Winchester Board Products RESTORE TO TRACK 0 (CLASS 0, OPCODE 01) =E This command positions the read/write heads to c ..... Track O. o o I\) en BITS en ::I: BYTES 7 6 5 4 3 2 1 0 C 0 Command Class 0 Operation Code 01 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X 0 0 0 X X X X Possible Error Codes No Error, Invalid Command,Track 0 Not Found, Drive Not Found, or write Fault. Action Position the read/write heads to track O. REQUEST STATUS (CLASS 0, OPCODE 03) The Host must send this command immediately after issued after any of the format commands of the it detects an error. The command causes the Check Track Format command, then the Logical Sec- WD1002S-SHD Winchester Disk Controller to return tor Address points to one sector beyond the last track four bytes of drive and Controller status. When an formatted or checked if there was no error. If there error occurs during a multiple sector data transfer was an error, then the Logical Address returned points (read or write), the Request Status command returns to the track in error. The following is the Request the Logical Sector Address of the failing sector in Status command block format: bytes 1, 2, and 3. If the Request Status command is BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 0 Operation Code 03 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes No Error or Invalid Command. Action Send the Host 4 bytes; the error byte and a 3-byte Logical Sector Address for the specified drive. Winchester Board Products 6-63 ERROR/STATUS RESPONSE TO HOST =E The following non·drive error codes are treated as command or Controller Diagnostic command detects c ...... Drive 0 errors: RAM Failure (30); ROM Failure (31), ECC an error, then status for Drive 0 should be o Hardware Failure (33). If the RAM Diagnostic requested. o I\) en en J: BITS c BYTES 7 6 5 J 4 I 3 I 2 1 1 J 0 0 LSA 0 Error Codes 1 LUN I Logical Sector Address Bits 16-20 2 Logical Sector Address Bits 8·15 3 Logical Sector Address Bits 0-07 ERROR CODES D. MISCELLANEOUS ERROR CODES A. DISK DRIVE ERROR CODES 30 = RAM Failure 31 = ROM Failure 00 = No Error 32 = ECC Hardware Failure 03 = Write Fault 04 = Drive Not Ready If the most recent non·request·status command to the 06 = Track 0 Not Found specified drive required a Logical Sector Address, 07 = Write Protected then the LSA flag is 1; otherwise it is 0 and the Logical 09 = Function Not Supported By Drive Sector Address is meaningless. ERROR CODE DESCRIPTIONS B. CONTROLLER ERROR CODES 01, 02, 10/14 = Not used because the No Error (00) WD1010A-05 groups CRC No error detected during the previous operation. with other errors in ID field as ID not found. During Write Fault (03) implied seeks, these are called SEEK errors, Indicates that there is Write Current to the head when Code 15. WG is deasserted. This is a very serious problem and 11 =Uncorrectable Data Error should be remedied immediately. 12 = Address Mark Not Found 15 =Seek Error Drive Not Ready (04) 18 =Error Burst Corrected The drive does not respond with a Drive Ready signal 19 =Bad Track after being selected by the WD1002S·SHD. 1A =Format Error 1C =Illegal (Direct) Access to an Alternate \ Track 0 Not Found (06) Track This error is only returned by the Restore To Track 1D =Alternate Track Already Used ocommand. It indicates that Track 0 status from the 1E =Alternate Track Not Marked as Alternate drive was not asserted within the maximum number 1F =Alternate Track Equals Bad Track of steps towards cylinder O. C. COMMAND ERROR CODES Write Protected (07) OA = Controller Not Initialized Function Not Supported By Drive (09) 20 = Invalid Command 21 = Invalid Sector Address 22 = Illegal Parameter 6-64 Winchester Board Products Controller Not Initialized (OA) Alternate Track Not Marked as an Alternate (1 E) This occurs when user fails to issue Initialize Format This error code indicates that access of a bad-track- command before issuing any command that with-alternate caused access to an alternate track accesses the drive. that was not marked as an alternate. Uncorrectable Data Error (11) Alternate Track Equals Bad Track (1 F) This error indicates that one or more error bursts This error code is returned only by the Format Alter- within the data field (Winchester) were beyond the nate Track command. It indicates that the same track Error Correction capabilities of the WD1002S-SHD. was specified as the bad track and the alternate track. The sector data for this sector is not sent to the Host. Invalid Command (20) Address Mark Not Found (12) This error code indicates that the Command Code, This error indicates that the header for the Target Sec- Interleave Factor, or Fast Step Option was invalid. tor was found, but its Address Mark was not detected. Invalid Sector Address (21) Seek Error (15) This error code indicates that the WD1002S-SHD The WD1002S-SHD detects an incorrect cylinder or detected a sector address beyond the maximum track, or both. range. Error Burst Corrected (18) Illegal Parameter (22) Indicates that ECC was used to successfully correct When Controller detects an invalid parameter or an error.The corrected sector data is sent to the Host. invalid combination of parameters. Bad Track (19) RAM Failure (30) This error usually indicates access of a track that was This error code indicates one of the following formatted as a bad track. However, there is a very conditions: small chance that it indicates that a track formatted 1. The program memory RAM checksum does not as a bad track with alternate is so faulty that none match the calculated checksum. of the multiple, duplicate pointers to the alternate 2. ,The RAM in the Control Processor failed. track can be read. 3. The Control Processor CPU failed. Format Error (1 A) ROM Failure (31) This error code is returned by the Check Track For- This error code indicates that a ROM checksum error mat command. It indicates that the track is not for- occurred during internal diagnostics. matted with the specified interleave factor, or at least one sector header is unreadable. This error code is ECC Hardware Failure (32) returned by the Drive Diagnostic command to indicate This error code indicates that the ECC Support Device that bad-track-with-alternate does not contain valid failed during internal diagnostics. pointer to the alternate track. Illegal (Direct) Access to an Alternate Track (1 C) Alternate Track Already Used (1 D) This error code is only returned by the Format Alter- nate Track command. It indicates that the specified alternate track is already an alternate, or bad track. Winchester Board Products 6-65 FORMAT DRIVE (CLASS 0, OPCODE 04) This command formats all sectors with 10 and data is read by the WD1002S-SHD Winchester Disk Con- fields according to the selected interleave factor. This troller. The Controller then formats from this address command also writes 6C Hex into the data fields. The to the end of the disk. The following is the Format starting address is passed into the Control Byte which Drive command block format: BITS BYTES 7 I 6 I 5 4 I 3 I 2 I 1 I 0 0 Command Class 0 Operation Code 04 1 LUN Logical Sector Address Bits 16-20 2 Logical Sector Address Bits 8-15 3 Logical Sector Address Bits 0-07 4 Interleave Factor 5 R I 0 I p z I Fast Step Option R Retry Disable: o = No Disable 1 = Disable P Format Data: o = 6C Hex 1 = Contents of Sector Buffer Z Write Servo: o = Do Not Write Servo 1 = Write Servo Information NOTE This is used only for removable media drives that implement the Write Servo function. Possible Error Codes No Error, Invalid Command, Invalid Sector Address, Drive Not Ready, Seek Error, or Write Fault. Action Format from the specified track to the end of the disk. The previous contents of the formatted tracks are ignored. 6-66 Winchester Board Products CHECK TRACK FORMAT (CLASS O,OPCODE 05) This command checks the format on the specified track for correct ID and interleave. The command does not read the data field. The following is the Check Track Format command block format: BITS BYTES 7 I 6 I 5 4 J 3 J 2 I 1 I 0 0 Command Class 0 Operation Code 05 1 LUN Logical Sector Address Bits 16·20 2 Logical Sector Address Bits 8-15 3 Logical Sector Address Bits 0-07 4 Interleave Factor 5 R I 0 I 0 0 I Fast Step Option R Retry Disable: o = No Disable 1 = Disable Possible Error Codes No Error, Invalid Command, Invalid Sector Address, Seek Error,Format Error, Drive Not Ready, or Write Fault. Action Verify that the specified track is formatted with the specified interleave factor. Do not read the sector data fields. Winchester Board Products 6-67 FORMAT TRACK :ec (CLASS 0, OPCODE 06) ....o This comand formats a specified track and can be used to clear bad·sector flags in all sectors on the Format Bad Track command. The command writes 6C Hex into all data fields specified. The following o specified track that was previously formatted with the is the Format Track command block format: N cp en BITS :x: c BYTES 7 I 6 I 5 4 I 3 I 2 I 1 I 0 0 Command Class 0 Operation Code 06 1 LUN Logical Sector Address Bits 16·20 2 Logical Sector Address Bits 8·15 3 Logical Sector Address Bits 0-07 4 Interleave Factor 5 R J 0 I p z I Fast Step Option R Retry Disable: o = No Disable 1 = Disable P Format Data: o = 6C Hex 1 = Contents of Sector Buffer Z Write Servo: o = Do not Write Servo 1 = Write Servo Information Possible Error Codes No Error, Invalid Command, Invalid Sector Address, Drive Not Ready, Seek Error, or Write Fault. Action Format the specified track, ignoring the previous contents. 6-68 Winchester Board Products FORMAT BAD TRACK (CLASS 0, OPCODE 07) :e c This command formats the specified track and sets to the data fields. The following illustrates the Bad ..... the bad-sector flag in the ID fields. It does not write Track command block format. o o I\) BITS ~ ::I: C BYTES 7 I 6 I 5 4 I 3 I 2 I 1 I 0 0 Command Class 0 Operation Code 07 1 LUN Logical Sector Address Bits 16-20 2 Logical Sector Address Bits 8-15 3 Logical Sector Address Bits 0-07 4 Interleave Factor 5 R I 0 I 0 z I Fast Step Option R Retry Disable: o = No Disable 1 = Disable Z Write Servo: o = Do not Write Servo 1 = Write Servo Information Possible Error Codes No Error, Invalid Command, Invalid Sector Address, Drive Not Ready, or Write Fault. Action Format the specified track with a bad block mark in each sector header, ignoring the previous contents. The contents of a bad track are not accessible. Winchester Board Products 6-69 READ :ec (CLASS 0, OPCODE 08) This command reads the specified number of sectors, in the Control Byte. The following is the Read com· ..L o starting with the initial Sector Address contained mand block format: o N ~ :I: BITS C BYTES 7 I 6 I 5 4 I 3 I 2 I 1 I 0 0 Command Class 0 Operation Code 08 1 LUN Logical Sector Address Bits 16·20 2 Logical Sector Address Bits 8·15 3 Logical Sector Address Bits 0-07 4 Interleave Factor 5 R I A I 0 0 I Fast Step Option R Retry Disable: o = No Disable 1 = Disable A Attempt ECC o = No Immediate Correction 1 = Immediate ECC Possible Error Codes No Error, Invalid Command, Invalid Sector Address, Drive Not Ready, Seek Error, Bad Track, Illegal (direct) Access To Alternate Track, Alternate Track Not Marked As Alternate, Address Mark Not Found, Error Burst Corrected, Uncorrectable Data Error, or Write Fault. Action Read the specified number of consecutive sectors beginning with the specified Sector Address con· tained in the Control Byte. 6-70 Winchester Board Products WRITE (CLASS 0, OPCODE OA) This command writes the specified number of sec- contained in the Control Byte. The following is the tors, beginning with the initial sector address Write command block format: BITS BYTES 7 I 6 I 5 4 I 3 I 2 I 1 I 0 0 Command Class 0 Operation Code OA 1 LUN Logical Sector Address Bits 16-20 2 Logical Sector Address Bits 8-15 3 Logical Sector Address Bits 0-07 4 Interleave Factor 5 R I 0 I 0 0 I Fast Step Option R Retry Disable: 0 = No Disable 1 = Disable Possible Error Codes Action No Error, Invalid Command, Invalid Sector Address, Write the specified number of sectors beginning with Drive Not Ready, Seek Error, Bad Track, Illegal (direct) the specified Sector Address contained in the Con- Access to Alternate Track, Alternate Track Not trol Byte. Marked As Alternate, Address Mark Not Found, or Write Fault. Winchester Board Products 6-71 SEEK (CLASS 0, OPCODE OB) This command initiates a seek to the track specified The following is the Seek command block format: in the Control Byte. The drive must be formatted. BITS BYTES 7 6 5 4 3 I 2 I 1 I 0 0 Command Class 0 Operation Code OB 1 LUN Logical Sector Address Bits 16·20 2 Logical Sector Address Bits 8·15 3 Logical Sector Address Bits 0-07 4 X X X X X I X I X I X 5 R 0 0 0 Fast Step Option R Retry Disable: o = No Disable 1 = Disable Possible Error Codes No Error, Invalid Command, Invalid Sector Address, Drive Not Ready, or Write Fault. Action Move the read/write head to the specified cylinder. Do not read any sector header to verify start or end position. 6-72 Winchester Board Products SET PARAMETERS (CLASS 0, OPCODE OC) =E This command enables the Host to configure the WD1002S-SHD Winchester Disk Controller to work must be of the same manufacturer and model number. The following is the Set Parameters com- ....oc with drives that have different capacities and mand block format: o characteristics. However, both Drive 0 and Drive 1 N cp en ::I: C BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 0 Operation Code OC 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes If parameters are out of range, an Invalid Command error will be set. Action Set the following parameters for both Winchester drives (LUN 0 and 1): Number of cylinders, Number of heads; Starting Reduced Write Current cylinder, Starting Write Precompensation cylinder, and the maximum length of an error burst to be corrected. These parameters are sent by the Host to the WD1002S-SHD Winchester Disk Controller in a parameter block with the following format: Winchester Board Products 6-73 PARAMETER BLOCK :ec After the Host sends the Set Parameters command block to the WD1002S-SHD Winchester Disk Con- occupy two bytes; all two-byte parameters are transferred with the Most Significant Byte first. The ..a. o troller, it then sends an 8-byte block of data that con- following is the 8-byte Parameter block format: o I\) tains the required drive parameters. Some parameters Z! :::t BITS C BYTES 7 I 6 I 5 I 4 I 3 J 2 J 1 J 0 0 MSByte of Number of Cylinders 1 LSByte of Number of Cylinders 2 0 I 0 I 0 I 0 I Number of Heads 3 MSByte of Starting RWC Cylinder 4 LSByte of Starting RWC Cylinder 5 MSByte of Starting Write Precomp Cylinder 6 LSByte of Starting Write Precomp Cylinder 7 0 I 0 I 0 I RD I Max ERR Burst Corrected RD (Removable Media Drive) o = Fixed The acceptable ranges of the following parameters are 1 = Removable as follows: Number of cylinders = 1 - 1024 The following parameter defaults are set by Power-UP Number of heads = 1 - 16 and Reset: Starting Reduced Write Number of cylinders = 153 Current Cylinder = 1 - 1023 Number of heads = 4 Starting Write Precompensation Starting Reduced Write Cylinder = 0 - 1023 Current Cylinder = 128 Maximum length of an error Starting Write Precompensation burst to be corrected = 1 - 11 Cylinder = 64 If one of the parameters is out of range, then all Maximum length of an error burst to parameters up to, but not including the parameter in be corrected = 11 error, are set for Drive 0 and no parameteres are set for Drive 1. The error code for this error is Invalid Command. Starting Reduced Write Current Cylinder The specified starting Reduced Write Current cylinder number is reduced to the nearest integer multiple of four (Le., 0, 4, 8, 12,... 1020). Maximum Length of Error Burst To Be Corrected For practically all applications,the maximum length of the error burst to be corrected should be five. Cor- recting longer burst greatly increases the chance of miscorrecting. 6-74 Winchester Board Products LAST CORRECTED BURST LENGTH (CLASS 0, OPCODE 00) :E This command transfers one byte to the Host con- This byte is valid only after a correctable ECC error c ..... taining the values of the ECC burst length detected (18). o by the WD1002S-SHD during the last Read command. o N BITS ~ ::I: BYTES 7 6 5 4 3 2 1 0 C 0 Command Class 0 Operation Code OD 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes No Error. Action Send the Host one byte of data containing the length of the most recently corrected error burst. If no error burst has been corrected since the last Power-UP or Reset, then a byte of zeros is sent to the Host. BITS BYTES 7 I 6 I 5 I 4 I 3 I 2 I 1 I 0 0 Number of bits in Last Corrected Error Burst FIGURE 4. ERROR BURST LENGTH BLOCK Winchester Board Products 6-75 FORMAT ALTERNATE TRACK (CLASS 0, OPCODE OE) :e c BITS ..... o o N BYTES 7 J 6 1 5 4 I 3 I 2 I 1 I 0 ~ :J: 0 Command Class 0 Operation Code OE 1 LUN Logical Sector Address Bits 16-20 C 2 Logical Sector Address Bits 8-15 3 Logical Sector Address Bits 0-07 4 Interleave Factor 5 R I 0 I p z I Fast Step Option R Retry Disable: o = No Disable 1 = Disable P Format Data: o = 6C Hex 1 = Contents of Sector Buffer Z Write Servo: o = Do not Write Servo 1 = Write Servo Information Possible Error Codes Action No Error, Invalid Command, Invalid Sector Address, Format the specified track as a bad-track-with- Drive Not Ready, Seek Error, Alternate Track Already alternate. Format the specified alternate track with Used, Alternate Track Equals Bad Track, or Write the specified interleave factor. The Bad Block Mark Fault. is written in each sector header with the alternate address block written into each sector data field. This is done to all sectors of the track. It is not known to the user which sector of the track might be bad. The alternate track is specified by the Host by sending an alternate sector address block to the WD1002S- SHD after the command block. The alternate track is formatted after the bad track-with-alternate is for- matted. Once the alternate is formatted, the bad track to alternate seeking is transparent to the user. BITS BYTES 7 6 5 4 I 3 I 2 1 1 l 0 0 0 0 0 Logical Sector Address Bits 16-20 1 Logical Sector Address Bits 8-15 2 Logical Sector Address Bits 0-07 FIGURE 5. ALTERNATE SECTOR ADDRESS BLOCK 6-76 Winchester Board Products WRITE SECTOR BUFFER (CLASS 0, OPCODE OF) BITS == C ..... o 5 3 2 1 o BYTES 7 6 4 Operation Code OF ° N cp 0 Command Class 0 en :I: 1 LUN X X X X X C 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes No Errors. Action Write data from the Host to the WD1002S-SHD Win- chester Disk Controller Sector Buffer. The Host must send as many bytes as there are in a sector on Drive O. These data are not written to any drive. This com- mand is used to initialize the format data optionally used by the Format commands. READ SECTOR BUFFER (CLASS 0, OPCODE 10) BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 0 Operation Code 10 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes No Error. Action Send the Host the present contents of the WD1002S- SHD Winchester Disk Controller Sector Buffer. The Host must accept as many bytes as there are in a sector on Drive O. Winchester Board Products 6-77 STOP DRIVE (CLASS 0, OPCODE 13) =E c ~ This command causes a removable cartridge disk check for completion of the cartridge change by using o drive to spin down and stop so the user can change the Test Drive Ready command. The format for the o the cartridge. After the cartridge is changed, the drive Stop Drive command is as follows: N cp must be started by external means. Software can en :I: C BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 0 Operation Code 13 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes Action Function Not Supported By Drive. Spins down drive to allow user to change removable cartridge. WRITE SERVO (CLASS 6, OPCODE 00) The Write Servo command completely erases the (and may enhance seek performance) as each car- existing servo information and all other data on the tridge can be servo written by the drive in which it disk, then rewrites the servo information. This pro- is to be used. vides optimum alignment between cartridge and drive BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 6 Operation Code 00 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes Function Not Supported By Drive. 6-78 Winchester Board Products REINITIALIZE CARTRIDGE (CLASS 6, OPCODE 02) This command provides a servo reinitialization cycle function may be employed by the Host system to wherin track location and disk runout information are improve Seek error rate, and is automatically provided reprogrammed in the drive microprocessor. This on a power·UP sequence or after a cartridge change. BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 6 Operation Code 02 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes Function Not Supported By Drive. RAM DIAGNOSTIC (CLASS 7, OPCODE 00) This command performs a data pattern test on the contents of the Sector Buffer.The following is the Sector Buffer. The Host does not preserve the RAM Diagnostic command block format: BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 7 Operation Code 00 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes Action No Error or RAM failure. Test the Sector Buffer by writing and reading various patterns into it. Winchester Board Products 6-79 DRIVE DIAGNOSTIC (CLASS 7, OPCODE 03) =e ....c o This command tests both the drive and the drive-to- Controller interface. The WD1002S-SHD Winchester Winchester Disk Controller does not perform any write operations during this command; the disk is o Disk Controller sends Restore to Track 0 and Seek understood to be previoulsy formatted. The following N commands to the selected drive and verifies Sector is the Drive Diagnostic command block format: ~ :t: o of all tracks on the disk. The WD1002S-SHD C BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 7 Operation Code 03 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 R 0 0 0 Fast Step Option Possible Error Codes No Error, Invalid Command, Drive Not Ready, Seek does it send any sector data to the Host. The effect Error, Format Error, or Write Fault. of the Drive Diagnostic command is to verify that at least one sector header can be read on each track. Action It does not report an error when it encounters a track Recalibrate the target drive, then scan ID on each that has been formatted as a 'Bad Track', 'Bad-Track- track. This command does not write to the disk, nor With-Alternate', or 'Alternate Track'. CONTROLLER DIAGNOSTIC (CLASS 7, OPCODE 04) This command initiates the WD1002S-SHD self-test Program Memory. The WD1002S-SHD does not diagnostic routine. The WD1002S-SHD tests its Con- access the drive during this command. The follow- trol Processor, Sector Buffer, ECC circuitry, Win- ing is the Controller Diagnostic command block chester Controller/Formatter, and the checksum of the format. BITS BYTES 7 6 5 4 3 2 1 0 0 Command Class 7 Operation Code 04 1 LUN X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X Possible Error Codes Action No Error, ROM Failure, RAM Failure, or ECC Hard- Calculate a checksum for the program ROM, test the ware Failure. Control Processor, test the Sector Buffer, and test the ECC hardware. This command does not access any disk drive. 6-80 Winchester Board Products READ LONG (CLASS 7, OPCODE 05) =E This command transfers the target sector and four recovering data from a sector that contains an uncor- c ...... bytes of data ECC to the Host. If an ECC error occurs rectable ECC error. It is also useful during diagnostic o during Read, the WD1002S- SHD does not attempt to operations. o N correct the data field. The command is useful in ~ ::I: BITS C BYTES 7 I 6 I 5 4 I 3 I 2 I 1 I 0 0 Command Class 7 Operation Code 05 1 LUN Logical Sector Address Bits 16-20 2 Logical Sector Address Bits 8-15 3 Logical Sector Address Bits 0-07 4 Sector Count 5 R I 0 I 0 0 I Fast Step Option R Retry Disable: 0 = No Disable 1 = Disable Possible Error Codes Action No Error, Invalid Command, Invalid Sector Address, Read the specified number of consecutive sectors Drive Not Ready, Seek Error, Bad Track, Illegal (direct) and their ECC bytes beginning with the specified sec- Access To An Alternate Track, Alternate Track Not tor contained in the Control Byte. There are four ECC Marked As Alternate, Address Mark Not Found, or bytes per sector. This command is only useful for Write Fault. diagnostic purposes. WRITE LONG (CLASS 7, OPCODE 06) This command transfers a sector of data and four This command is useful only for diagnostic routines. appended ECC bytes to the disk drive. During this The following is the Write Long command block write operation, the Host supplies the four ECC bytes format: instead of the usual hardware generated ECC bytes. BITS BYTES 7 I 6 I 5 4 I 3 I 2 1 1 1 0 0 Command Class 7 Operation Code 06 1 LUN Logical Sector Address Bits 16-20 2 Logical Sector Address Bits 8-15 3 Logical Sector Address Bits 0-07 4 Sector Count 5 R I 0 I 0 0 I Fast Step Option R Retry Disable: o = No Disable 1 = Disable Winchester Board Products 6-81 Possible Error Codes Action =e c No Error, Invalid Command, Invalid Sector Address, Drive Not Ready, Seek Error, Bad Track Illegal (direct) Write the specified number of consecutive sectors beginning with the specified sector. Following each -" o Access To Alternate Track, Alternate Track Not sector, the Host sends four ECC bytes to the o Marked As Alternate, Address Mark Not Found, or WD1002S-SHD Winchester Disk Controller to be writ- N ~ Write Fault. ten to the disk as the ECC bytes for the sector. This command is useful for diagnostic purposes. It allows :t the generation of a sector containing a correctable C ECC error. TIMING Figure 6 illustrates a typical Host-Controller bus transfer, complete with Controller selection. 00 TERMINATES COMMAND 7 #2 #3 #4 #5 #6 DATA IF COMMAND HAS A DATA TRANSFER IT HAPPENS HERE SEL ~--------------~I REO ACK 1/0 r CID \ "'---------/ MOO FIGURE 6. TYPICAL HOST-CONTROLLER BUS TRANSFER TIMING 6-82 Winchester Board Products HOST/CONTROLLER SELECTION TIMING Prior to either command or data transfer, the Host =E must perform a handshake operation in selecting the c .... Controller. The Host first asserts SEL and places o the Controller address bit on the bus (the address bit o N is preset to DBO at the factory but can be any bit from cp DBO to· DB? in a multiple-Controller environment). ISSUE en (OPTIONAL) :I: After the controller recognizes its address bit and C RESET SEL being asserted, it then asserts BUSY. During this selection phase, the Host takes full control of the data bus by asserting 0 (I/O). Once the Con- troller has asserted BUSY, the selection process is SEND SELECT BIT complete. SEL must be de-asserted by the Host at or before the first Command byte to the Controller. Figure 7 illustrates the Controller Select Timing. SEND CONTROLLER ADDRESS BIT Figure 8 illustrates the Controller Select Timing Flow. NOTE No restriction on sequence of SEL and DADR fal· CONTROLLER SHOULD GO BUSY WITHIN 520 nsec. ling edges. Both must be low to ensure controller selection. IL..-_ _~I I I I DADR ----,I! 260 N; I I I BUsY - - - - - : . . . 1_ _ _-, I... coS20NS .1L..-_ _ _ _ _ __ NOTE: FIGURE 8. No restriction on sequence of SEL and DADR fail- CONTROLLER SELECT FLOW DIAGRAM ing edges. Both must be low to ensure controller selection. FIGURE 7. CONTROLLER SELECT TIMING Winchester Board Products 6-83 COMMAND MODE =e c After Controller selection, the Host can transmit its first command. The Controller receives a command ~I·~----~Y----~·~I ""'o" form the Host using a sequence of handshake -----~I ________~ I o REO N recognition signals. The Controller asserts C (CID) I I ~ :J: to notify the Host that it is ready to receive a com- mand and assets 0 (1/0) to indicate that the direc- tRAL I ~ tRAH I...... tARH ~ l.- tARL I tion is from the Host to the Controller. At this time, C MSG is in the de-asserted state. ACK ----~~ I ~ The Controller asserts REO within 10 usec. After I I I I asserting 0 (1/0), C (CIO), and MSG is in the de- asserted state. The Host then answers by asserting ~ IADV ~..: I...... IRDH ACK when it is ready to send a command byte to oo:D7 Wl/$#!I//J/!I$'--_-JX\.-__ the Controller. The command byte must be stable on the bus within 250 nsec. of ACK being asserted and remain stable until the Controller de-asserts FIGURE 9. REO. After the Controller de-asserts REO, the Host HOST-TO-CONTROLLER de-asserts ACK completing the handshake sequence DATA TRANSFER TIMING for the first command byte. The complete handshake sequence must be repeated for each successive com- mand byte from the Host. Table 9 lists the relation- TABLE 10. ships of 1/0, CIO, and MSG. HOST-TO-CONTROLLER TIMING PARAMETERS TABLE 9. HOST BUS SIGNAL STATUS PARAMETER MIN· MAX· I/O CID MSG BUS STATUS tCY .. 1152 1 0 1 The Controller receives a tRALt 0 command from the Host. tARH 600 840 1 1 1 The Controller receives tRAHtt 0 data from the Host. tARL 200 448 0 1 1 The Controller sends data to the Host. tADV 375 0 0 1 The Controller sends an tRDH 0 error status byte to the Host. LEGEND: 0 0 0 The Controller informs the Host that it has completed nsec the command in process. •• If conditions in t and tt are met, then tCytyp = 1200 nsec and tCY max = 1248 nssec. t If tRAL < 89 nsec, then no wait states are inserted. DATA TRANSFER tt If tRAH < 97 nsec, then no wait states are inserted. Figures 9 and 10 illustrate the required timing for Host-to-Controller and Controller-to-Host data transfers respectively. These diagrams include the required handshake signals. Tables 10 and 11 provide the timing parameters for these diagrams. 6-84 Winchester Board Products STATUS BYTES After every command, the Controller sends two status _ I_ ICY -, bytes to the Host. The first byte of information con· REO - - - , r--------.I'-___ tains the error status code for that command and the second byte contains all zeros, indicating that the command has been completed. Figure 11 illustrates IRAL IRAH the timing sequence for Command Termination. I IARH ~"·I- Figure 12 illustrates the timing flow for sending and ACK ------~II~--------------- terminating a command, and Figure 13 illustrates Status Request Timing Flow. ~ ISUR r-~ IRDH r DO-D7~~____________~~_____ FIGURE 10. CONTROLLER-TO-HOST DATA TRANSFER TIMING TABLE 11. CONTROLLER-TO-HOST TIMING PARAMETERS PARAMETER MIN* MAX* tCY ** 1152 tRALt 0 tARH 200 448 tRAHtt 0 tRAL 200 848 tSUR 125 tRDH 152 LEGEND: nsec ** If conditions in t and tt are met, then tCytyp = 120 nsec and tCY max = 1248 nsec. t If tRAL < 497 nsec, then no wait states are inserted. tt If tRAH < 200 nsec, then no wait states are inserted. Winchester Board Products 6-85 =E C ..... BUSY 0 0 N ~ ::z: iio ~\\\\\\\\\\\ C I" ·1 WD1002-SHD 1.65 MS TYP 1,. 440 I'S. rp REO I IU I I I ACK U U: U ---.1 j.- 26OI'S WD1002S-SHD MSG _--JX LASTDATA BYTE XSTATUS BYTE X~ir~ XlIIIZZIII! FIGURE 11. COMMAND TERMINATION TIMING 6-86 Winchester Board Products SEND REQUEST SENSE STATUS COMMAND :E SEND (NON-DATA TRANSFER) COMMAND c ..... o o SELECT CONTROLLER N SELECT CONTROLLER C(> en ::I: SET 6-BYTE COMMAND COUNTER C NO READ IN 4 SENSE BYTES (WAIT FOR REQUEST EACH TIME) REQUEST, CID = C, 1/0 =0 I SEND COMMAND BYTE TO CONTROLLER READ COMMAND STATUS AND MESSAGE BYTES DECREMENT BYTE COUNTER FIGURE 13. REQUEST STATUS COMMAND TIMING FLOW DIAGRAM MISCELLANEOUS TIMING The following is a list of specific timing parameters that must be met for proper operation of the WD1002S-SHD: A. CONTROLLER RESET - Power-On-Reset (POR) is less than 120 msec. and Reset (RSn is less READ IN STATUS BYTE than 120 usec. During either of these periods, the Host is inhibited from selecting the Controller. If selection is attempted, the Controller does not assert BUSY. B. SELECT TO CID - After RST or POR, the Con- troller runs its internal diagnostic routines until it is selected by the Host, at which point the Con· troller exits the diagnostic routine being run. While in the diagnostic loop, the controller can take as long as 340 msec. After it asserts BUSY, before asserting C (CID). However, once the Controller has left the diagnostic loop, no more than 80 usec. REQUEST, CID - C, 1/0- MESSAGE is required for the Controller to assert C (CI D) MESSAGE after BUSY is asserted. READ A BYTE IF SIB = 0 C. C/D TO FIRST REQ TIMING PULSE - When the COMMAND COMPLETED Controller first asserts C (C/D) until the first REQ pulse is asserted is typically 120 usec. FIGURE 12. D. WAIT STATE - One wait state equals 200 nsec. COMMAND SEQUENCE NOTE TIMING FLOW DIAGRAM All SASI protocol must be adhered to (Le., a RE/ACK handshake must precede every byte transferred). Winchester Board Products 6-87 6-88 Winchester Board Products WESTERN DIGITAL COR P 0 R A T o N :E WD1002C-WX2 c ..... o Winchester Controller Board o N o FEATURES :e>< • IBM XT WINCHESTER CONTROLLER • AUTOMATIC FORMATIING. N EMULATION, IBM PC HOST INTERFACE. • WD10C20-05 SELF·ADJUSTING LSI DATA • EITHER 50 PIN EXTERNAL CONNECTOR SEPARATOR. OR 62 PIN EXTERNAL CONNECTOR. • SECTOR INTERLEAVE CAPABILITY. • SUPPORTS MULTIPLE STEPPING RATES, • OVERLAPPED SEEK CAPABILITY ON INCLUDING 18 USEe. BUFFERED-STEP DRIVES. • DYNAMICALLY CONFIGURABLE BIOS ROM • SUPPORTS IMPLIED SEEKS ON ALL • SUPPORTS TWO ST506 TYPE DRIVES WITH UP COMMANDS. TO 1024 CYLINDERS AND 16 RIW HEADS. • DMA TRANSFER CAPABILITY. • ERROR DETECTION AND CORRECTION ON DATA FIELD USING 32·BIT ECC POLYNOMIAL DESCRIPTION The WD1002C-WX2 is an IBM XT compatible Win- The WD1002C-VYX2 supports drives with up to 16 chester controller board based on the design of the heads and supports the following stepping rates: 3 WD1002S-WX2. The WD1002C-WX2 is a 10 inch x 3.90 msec, 18lJsec, 30 IJsec, 45lJsec, 60 IJsec, 75IJsec and inch board and includes either a 50 pin external con- 210 IJsec. nector or a 62 pin external connector. The connector The WD1002C-WX2 interfaces directly to the Host 1/0 allows the user to configure a system easily with via the IBM PC bus. Data transfer to and from the con- external Winchester drives. The board contains one troller can be either programmed 1/0 or DMA. internal connector and one external connector and The BIOS is dynamically configurable at the time of a maximum of 2 drives can be attached. The 50-pin formatting the drive. The user has two options: to use external connector will control one external drive con- a resident set of drive tables, or to define through the figured as Drive 0 or Drive 1. The 62 pin connector car- keyboard a new set of customized tables. ries all the signals required to control up to two external drives. In either case, the maximum number of drives supported is two, so if the 62 pin connector has 2 drives attached, no drive may be attached to the internal connector. Winchester Board Products 6-89 6-90 Winchester Board Products WESTERN DIGITAL COR P 0 RAT o N WD1002S-WX2 Winchester Disk Controller FEATURES DESCRIPTION • 8-BIT BI-DIRECTIONAL BUS HOST INTERFACE. The WD1002S-WX2 is a stand-alone, general purpose Winchester Disk Controller. The WD1002S-WX2 inter- • IBM XT WINCHESTER CONTROLLER EMULATION, IBM PC HOST INTERFACE faces up to two Winchester disk drives and a Host Processor, e.g. an IBM XT. • WD10C20 WINCHESTER DATA SEPARATOR AND WRITE PRECOMPENSATION DEVICE The Winchester interface conforms to the Seagate Technology ST506/ST412 interface. All necessary • WD11COO-17 LOGIC ARRAY receivers and drivers are included on the board, allow- • DATA RATES UP TO 5 MBITS/SEC ing direct connection to the disk drive(s). • CONTROLS UP TO 2 DRIVES USING SEAGATE A separate computer access port enables com- TECHNOLOGY ST506/ST412 munications between the Host and disk controller. • SUPPORTS DRIVES OF ANY CONFIGURATION An 8-bit bi-directional bus and appropriate control UP TO 1024 CYLINDERS AND 16 R/W HEADS signals comprise this port. Disk read or write data, WITH THE WD1015-24 OR 8 R/W HEADS WITH status information, and command parameters are THE WD1015-14 transferred via this bus. An on-board data buffer allows bus transfers to be executed independently • THE CONTROLLED DRIVES NEED NOT BE OF THE SAME CAPACITY OR CONFIGURATION of the drive's data transfer. • ERROR CORRECTION ON DATA FIELD ERRORS, ARCHITECTURE CRC 10 FIELD VERIFICATION The WD1002S-WX2 architecture is based on a pro- • 32-BIT ECC POLYNOMIAL FOR ERROR prietary chip set consisting of the WD11 COO-17, DETECTION AND CORRECTION WD1010A-05, WD10C20, and WD1015. As illustrated in Figure 1, the WD1002S-WX2 consists of the follow- • READ AND WRITE LONG COMMANDS FOR ing components: CHECKING ERROR CORRECTION CIRCUITRY • SELECTABLE AUTOMATIC RETRIES ON ALL Bi-directional ControllData Bus ERRORS Address Decoding Logic Configuration Switches • AUTOMATIC RESTORE AND RE-SEEK ON ALL Basic Input/Output System (BIOS) ROM SEEK ERRORS WD11COO-17 • AUTOMATIC FORMATTING WD10C20 • 512 BYTES PER SECTOR Sector Buffer RAM WD1010A-05 • SECTOR INTERLEAVE CAPABILITY WD1015 • MULTIPLE SECTOR READS AND WRITES Reset Logic • OVERLAPPED SEEK CAPABILITY ON BI-DIRECTIONAL CONTROL/DATA BUS BUFFERED-STEP DRIVES The 8-bit, bi-directional bus transmits addresses, com- • SUPPORTS IMPLIED SEEKS ON ALL mands, data, and status information. This bus links COMMANDS the WD1002S-WX2 to the Host. Specifically, this bus transmits data between the Host and Sector Buffer • INTERNAL DIAGNOSTICS RAM. • DMA TRANSFER CAPABILITY ADDRESS DECODING LOGIC • SUPPORTS INTERRUPTS, INTERRUPT REQUESTS, AND DMA REQUEST SHARING The purpose of this logic is to decode a valid device address from the Host. • INCLUDES SOCKET FOR USER SUPPLIED 2716, CONFIGURATION JUMPERS 2732, OR 2764 ROM These jumpers configure the WD1002S-WX2 for dif- • BIOS AVAILABLE ferent disk drive capacities. Winchester Board Products 6-91 =E ..;: c ..... BIOS ..... ~ o o - ROM po BUFF. DATA 1\ :> H 0 N H • ~ S ~ >< 0 S ADDR. ... r DECODE T N T DATA K ICONFIG. P.. .. CONTROL WD => l1COO-17 CONTROL :> ...... - RA . .) RAM R/W LOGIC ARRAY D ADO·AD7 D - ... r-- =r RDATA WDATA '2 D ~ V WD v 4; - D I 10C20 I S S K K DATA/TIMING) K WD DATA WD 1010A-OS SEPARATOR 101S STATUS ;> t CLOCK CONTROL :> , - ~ CONTROL DISK CONTROLLER PROCESSOR t RESET FIGURE 1. WD10025-WX2 FUNCTIONAL BLOCK DIAGRAM 6-92 Winchester Board Products BIOS ROM WD10C20 requires no adjustments and contains all The Host, after powering up, interrogates its ports to data synchronization and write precompensation cir- determine what devices are connected. The Host uses cuitry in a single device. information supplied by the BIOS ROM to perform an SECTOR BUFFER RAM install operation. Then, during normal operation, the The Sector Buffer RAM is a 2K x B RAM. The Sector BIOS operates much like a driver that is resident in Buffer allows Host data transfers independent of the the Host's memory space. The BIOS ROM is actual drive data transfer rate. The Sector Buffer tem- addressed at Host memory locations CBOOO • CBFFF. porarily stores the following information: The BIOS is addressed by the AO through A19 bus. Sector data during Read and Write Commands Outputs to the Host are via the Intraboard Com· Disk format information during a Format mand/Status bus (BDO through BD7) and Host Inter· Command face Data/Command bus (DO through D7). Drive characteristics during a Set Parameters WD11COo-17 Command The WD11COO·17 incorporates several functions in a WD1010A-05 single package. Implementation of these functions The primary function of the WD1010A-05 is to con- occurs by combining random logic and specialized trol data transfers between the disk and the Sector circuits. The WD11COO-17 contains the following Buffer. Data transfers take place after the WD1015 circuits: Buffer Manager Control Processor positions the Status ports selected head over the desired track. The WD1010A-D5 receives the parameters and commands from the Read and write ports WD1015 via the ADO through AD7 bus. The Sector Buffer RAM addressing and control WD1010A-05 interprets the parameter or command, ECC determines which sectors are involved, and whether Reset liming a read, write, or format function is required. The WD11C00-17 connects directly to the Host Inter· WD1015 face Data/Command and Intraboard Command/Data (ADO-AD7) buses. The WD1015 manages and controls all commands and communications between the Host and WD10C20 WD1010A-05. The WD1015 controls ECC and CRC The WD10C20 performs phase-locked loop data syn- functions. chronization on read data from the Winchester drives. There are two versions of the WD1015. Table 1 This device also conditions write data to be recorded describes the differences between the two versions on the disk. The WD10C20 includes both frequency of the WD1015. The acronym WD1015 refers to both and phase detection. Zero phase error start-up cir- versions. When a specific reference is made to a cuitry eliminates problems due to asymmetry. The specific version, the appropriate acronym is used. Table 1. WD1015 DESCRIPTION FUNCTION WD1015-14 WD1015-24 REMARKS Execution of automatic self-test after Reset command or power-up Yes No Supports 16 heads No Yes The WD1015-14 sup~orts u~ to eight heads. The WD1015-14 uses the REDUCED WRITE CURRENT (RWC) Signal. The WD1015-24 su~s up to 16 heads. The WD1015-24 uses the RWC pin on J1 as HEAD SELECT 3 (HS3). Refer to Table 10 for further details. 3.5 seconds time-out on No Yes 3.5 time-out allows removable/servo drives time to single track steps create servo map. WD1015-14 allows 1 second. Bit 4 of opcode in Valid Don't care Refer to Figure 2 for further details. Command Control Step rates Refer to Table B for further details. Format Bad Track Refer to Command Section for further details. Winchester Board Products 6-93 RESET LOGIC =E The Reset Logic initializes the internal circuitry of the control signals at the second drive from c ..... WD1002S-WX2 during the power-up process or the WD1002S-WX2 (no more than a total o a low voltage condition. The Reset Logic also disables length of 10 feet or 3 meters) are ter- o the WRITE GATE signal. Disabling WRITE GATE minated with a 220 ohm resistor to + 5V I\) en prevents writing spurious data to the disk drive dur- and a 330 ohm resistor to ground. :ex ing power up, power down or a low voltage conditon. INTERFACE CONNECTIONS J2,J3 Drive data: 2D-pin dual row header connec- tors, radially connected each to its own I\) drive. The WD1002S-WX2 has four on-board connectors for user application. HOST INTERFACE P1 Host interface: 62-pin IBM PC compatible Connector P1 pins A 1 through A31 are on the com- card edge connector. ponent side of the board and B1 through 831 are on the artwork side. Table 2 describes the Host interface J1 Drive control: 34-pin dual row header con- Connector, P1. nector daisy-chained to two drives. The TABLE 2. HOST INTERFACE CONNECTOR (P1) PIN DESCRIPTION PIN NUMBER MNEMONIC SIGNAL NAME I/O FUNCTION A1 NOT CONNCECTED A2 D7 DATA 7 110 a-Bit, tri-state, bi-directional bus. It is used to thru thru thru transmit data between the Host and Sector Buffer, A9 DO DATA 0 and Command Block to the WD1015, status and drive configuration to the Host. The BIOS transmits parameter information and commands to the Host via this bus. A10 NOT CONNECTED A11 AEN ADDRESS ENABLE I AEN is asserted during a DMA mode of operation making the 1/0 ports 320 hex thru 323 hex inaccessi- ble to the Host. Data transfers and intrabus con- trol is initiated by asserting DACK3. The BIOS ROM can still be addressed via AO-A19. A12 A19 ADDRESS BUS I AO thru A9 are used during programmed 1/0 mode thru thru A19 thru AO of operation to address ports 320 hex thru 323 hex. A31 AO They are inhibited during DMA by AEN. AO thru A19 addresses the BIOS ROM regardless of the state of AEN. B1 GND GROUND B2 RST RESET I When asserted, RST places the WD1002S-WX2 into its initial power-up state. B3 +5VDC +5VDC +5VDC B4 IRQ2 INTERRUPT 0 The WD1002S-WX2 asserts IRQ2 to interrupt the REQUEST Host upon the completion of a command. Use of LEVEL 2 IRQ2 is jumper selectable. Use of IRQ5 is standard. Refer to Table 10 for further details on jumper selec- table options. B5 NOT CONNECTED thru B8 B9 + 12VDC + 12VDC + 12VDC B10 GND GROUND B11 NOT CONNECTED 6-94 Winchester Board Products TABLE 2. HOST INTERFACE CONNECTOR (P1) PIN DESCRIPTION (CONT'D.) PIN :E NUMBER MNEMONIC SIGNAL NAME 110 FUNCTION c..... o 812 MEMR MEMORY READ I The Host, to read the 810S ROM places the address o I\) on AO thru A19, asserts MEMR and receives the en data via DO thru D7 data bus. ~ 813 lOW 1/0 WRITE I The Host or DMA controller asserts lOW when a >< I\) data byte is to be written to the WD1002S-WX2. 814 lOR 1/0 READ I The Host or DMA controller asserts lOR when a data or status byte is to be read from the WD1002S-WX2. 815 DACK3 DMA I The DMA controller asserts DACK3 in response ACKNOWLEDGE to DRQ3 sent by the WD1002S-WX2. DACK3 en- CHANNEL 3 abies DMA data transfer, bypassing port 320 which was disabled by AEN. 816 DRQ3 DMA 0 WD1002S-WX2 asserts DRQ3 to inform the DMA REQUEST controller that data is available for transfer. CHANNEL 3 817 NOT CONNECTED thru 822 823 IRQ5 INTERRUPT 0 The WD1002S-WX2 asserts IRQ5 to interrupt the REQUEST Host upon the completion of a command. LEVEL 5 824 NOT CONNECTED thru 828 829 +5VDC +5VDC +5VDC 830 NOT CONNECTED 831 GND GROUND DRIVE INTERFACE J1. To terminate the control signals properly, the last drive in the daisy-chain must have a 220/330 ohm DRIVE CONTROL resistor pack installed. Table 3 describes the drive Control signals are common to all drives and are control connector, J1. daisy-chained to the drives from a single connector, Winchester Board Products 6-95 TABLE 3. DRIVE CONTROL CONNECTOR (J1) PIN DESCRIPTION :E SIG. SIG. c ..... GND. PIN MNEMONIC SIGNAL NAME I/O DESCRIPTION o o 1 2 RWC/HS3 REDUCE 0 The WD1015·14 allows this pin to be used as the RWC I\) en WRITE pin. The WD1015·24 uses this pin as HS3. Refer to =e CURRENT/HEAD Table 10 for further details. RWC is used by the drive >< I\) SELECT 3 to reduce the write current on the inner cylinders. This lessens the bit shift caused by the greater bit density on these cylinders. RWC is asserted when the speci· fied cylinder is reached. HS3 is one of four Head Select signals decoded by the drive to select one of 16 RIW heads. 3 4 HS2 HEAD 0 HS2 is one of three (or four) Head Select signals de· SELECT 2 coded by the drive to select one of eight (or 16) RIW heads. 5 6 WG WRITE GATE 0 WG is asserted when valid data is to be written. It is used by the drive to enable the write current to the head. WD1002S·WX2 de·asserts this signal when a WF is detected. Circuitry is included to ensure the output does not glitch during power on, power down or power failure. 7 8 SC SEEK I SC informs the WD1002S·WX2 that the selected head COMPLETE has reached the desired cylinder and has stabilized. Since SC is not checked after a Seek Command, overlapped seeks are allowed. 9 10 TKOOO TRACK 000 I The drive asserts this signal when the heads are posi· tioned over the outermost cylinder, cylinder O. 11 12 WF WRITE FAULT I WF is asserted by the drive when a write error occurs. The command in progress aborts and no other comand can be executed while this signal is asserted. 13 14 HSO HEAD 0 HSO is one of three (or four) Head Select signals de· SELECT 0 coded by the drive to select one of eight (or 16) RIW heads. 15 GND GROUND 16 NOT CONNECTED 17 18 HS1 HEAD 0 HS1 is one of three (or four) Head Select signals SELECT 1 decoded by the drive to select one of eight (or 16) RIW heads. 19 20 INDEX INDEX PULSE I This signal indicates the start of a track. It is used as a sychronization point during formatting and as a time out mechanism for retries. This signal pulses once for each revolution of the disk. 21 22 DRDY DRIVE READY I The drive asserts this signal when the motor is up to speed. No Read or Write commands can be performed if this signal is not asserted. 6-96 Winchester Board Products TABLE 3. DRIVE CONTROL CONNECTOR (J1) PIN DESCRIPTION (CONT'D.) SIG. SIG. GND. PIN MNEMONIC SIGNAL NAME 1/0 DESCRIPTION 23 24 STEP STEP PULSE 0 STEP along with DIRIN positions the heads to the desired cylinder. STEP pulses the stepping motor at the rate specified by the SP bits in the Command Block and is controlled by the WD1015. DIRIN speci- fies the direction. 25 26 DSEL 0 DRIVE SELECT 0 0 DSEL 0 is the decoded output of the SDH Register within the WD1010A-05, latched and sent to the drive by the WD1015 to select drive O. 27 28 DSEL 1 DRIVE SELECT 1 0 DSEL 1 is the decoded output of the SDH Register within the WD1010A-05, latched and sent to the drive by the WD1015 to select drive 1. 29, 30, NOT CONNECTED 31 32 33 34 DIRIN DIRECTION IN 0 DIRIN determines the direction the RIW heads take when stepped. Asserted =in, de-asserted = out. DRIVE DATA CONNECTOR or twisted pair, less than 3 meters (10 feet) in length. The connector is a 20·pin vertical header on 0.25 cen· The data is differential in nature and must be con- timeter (0.1 inch) center. Table 4 describes the drive nected to each drive with its own cable, drive 0 to J2 data connectors, J2 and J3. and drive 1 to J3. It should be a flat ribbon cable, TABLE 4. DRIVE DATA CONNECTORS - J2, J3 SIG. SIG. GND. PIN 1/0 SIGNAL NAME 1 NC 2 GND 3 NC 4 GND 5 NC 6 GND 7 NC 8 GND 9 NC 10 NC 11 GND 12 GND 13 0 + M FM Write Data 14 0 - MFM Write Data 15 GND 16 GND 17 I + M FM Read Data 18 I - MFM Read Data 19 GND 20 GND COMMAND DESCRIPTION This section provides a detailed description of the Fourteen of the commands are operational and five Command Block format and function of the 19 com- are diagnostic. Table 5 lists a summary of the mands supported by the WD1002S-WX2. commands. Winchester Board Products 6-97 TABLE 5. COMMAND SUMMARY COMMAND PARAMETERS (Refer to Figure 2) OP CODE DRV HD CYL SEC BLK/INT R1 R2 STEP TEST DRIVE READY 00 V n n n n n n n RECALIBRATE 01 V n n n n V n n READ STATUS OF 03 V n n n n n n n LAST OPERATION FORMAT DRIVE 04 V V V DR V(INl) V n V VERIFY SECTORS 05 V V V V V(BLK) V V V FORMAT TRACK 06 V V V DR V(INl) V n V FORMAT BAD TRACK 07 V V V DR V(INl) V n V READ SECTOR 08 V V V V V(BLK) V V V WRITE SECTORS OA V V V V V(BLK) V n V SEEK OB V V V DR n V n V INITIALIZE DRIVE OC V n n n n n n n PARAMETERS READ ECC BURST OD V n n n n n n n ERROR LENGTH READ SECTOR BUFFER OE n n n n n n n n WRITE SECTOR BUFFER OF n n n n n n n n EXECUTE SECTOR EO n n n n n n n n BUFFER DIAGNOSTIC EXECUTE DRIVE E3 V n n n n V n V DIAGNOSTIC EXECUTE CONTROLLER E4 n n n n n n n n DIAGNOSTIC READ LONG E5 V V V V V(BLK) V n V WRITE LONG E6 V V V V V(BLK) V n V LEGEND: I/O PORT DESCRIPTION V Must be a valid parameter There are four contiguous I/O ports addressed 320 DR Not used but must be within a valid parameter hexidecimal through 323 hexidecimal. Each port is range bi-directional. The functions of the I/O ports are listed n Not used (should be 0 for future compatibility) in Table 6. These ports are used for all communica- INT Interleave tion between the Host and Controller. BLK Block Count TABLE 6. I/O PORT DESCRIPTIONS ADDRESS READ PORT FUNCTION WRITE PORT FUNCTION 320 READ DATA WRITE DATA 321 READ WD1002S·WX2 HRDWR STATUS WD1002S-WX2 RESET* 322 READ DRIVE CONFIGURATION INFO WD1002S-WX2 SELECT 323 ~ot Used WRITE DMA AND INTERRUPT MASK REGISTER *NOTE The WD1015·14 automatically executes self·tests after either a Reset command or upon power-up. The WD1015-24 DOES NOT automatically execute self·test after either a Reset command or upon power·up. A WD BIOS performs an Execute Controller Diagnostic command as part of the install sequence after power-up regardless of the version of WD1015 on·board. If the Host software interrogates WD1015-24 after a Reset; the WD1015-24 returns good status. The Host must issue an Execute Controller Diagnostic command to perform the WD1015-24 self-test. 6-98 Winchester Board Products PORT 320 to drive 1. The configuration of these bits is established with jumpers on the controller at SW1. This is a bi·directional path over which data, com· Western Digital sets the configuration jumpers to one. mands, parameters, and status are passed. Table 11 shows how to set them up for a specific PORT 321 drive. The Host reads this port to interrogate the hardware The two bits associated with each drive is capable status. This status byte can be read at any time, of addressing one of four different configuration including command execution. The status bits are tables. Both drives can address the same or different identified in Table 7. tables. The table required by the drive is determined by its formatted capacity. Table 0 = 5MB, 1 = 24MB, TABLE 7. HARDWARE STATUS 2 = 15MB,3 = 10MB (default table) with 62-000042- BIT 01 and 62..()()()()42-11 WD BIOS. Table 0 = 20MB, Table 7 6 5 4 3 2 1 0 1 = 10MB, Table 2 = 20MB, Table 3 = 10MB with 62-000042-12 WD BIOS. d d IRQ DRO BSY CID I/O REO The parameters established by these tables are: d Not used Number Of Cylinders Number Of Heads IRQ Interrupt Request. Assertion (set to 1) The Starting Cylinder For RWC (Reduced signifies that an interrupt is pending. Write Current). DRO DMA request bit. Assertion (set to 1) The Starting Cylinder For Write Precomp signals the Host that the WD1002S·WX2 is Maximum Correctable Error Burst Length ready for a DMA transfer to take place. The Retries Allowed, Stable or Immediate ECC direction of the transfer is defined by the Correction, Step Rate 1/0 bit. Writing to port 322 selects the WD1002S·WX2, sets BSY Busy bit. Assertion (set to 1) signals the the Busy bit in the Status Register and prepares it Host that the WD1002S·WX2 is busy to receive a command. When writing to port 322, the executing a command and is unable to data byte is ignored. accept another command. PORT 323 CID ControllData. Tells the Host which type of Reading this port has no function. transfer the WD1002S·WX2 is expecting. 1 = command or status byte. 0 = data. Writing to this port controls the enabling of the inter· rupt and DMA request signals to the Host. The bits 1/0 Input/Output. Identifies the direction of in this port are defined as follows: transfers between the Host and WD1002S· WX2. The terms input and output are BIT relative to the Host. 1 = input, 0 = output. 7 6 5 4 3 2 1 0 REO Request bit. A handshake signal for data transfers between the Host and WD1002S· d d d d d d IROEN DROEN WX2. The WD1002S·WX2 asserts (sets to 1) IROEN Interrupt Request Enable. When asserted this bit when it is ready for data to be (set to one), enables interrupts to the Host. transferred between it and the Host. REO must be valid for every byte transferred to DROEN DMA Request Enable. When asserted (set the Host. to one), enables DMA requests to the Host. The Host writes to this port to generate a MR (Master COMMAND BLOCK Reset) on the WD1002S·WX2. When writing to this The Host first selects the WD1002S·WX2 by asser· port, the data byte is ignored. ting IIOW while at the same time addressing port Resetting a WD1002S·WX2 with a WD1015-14 causes 322 with the AO through A19 address bus. The automatic execution of a self·test. Automatic execu· WD1002S·WX2 then asserts the BSY (BUS.Yl....Qit in the tion of self·test does not occur with the WD1015-24. Status Register. The Host by asserting lIaR and If the Host software interrogates WD1015-24 after a addressing port 321 reads the status, finding REO Reset; the WD1015-24 returns good status. The Host asserted transmits the first byte of the six byte Com· must issue an Execute Controller Diagnostic com· mand Block to the WD1015. REQ is de·asserted at mand to perform the WD1015-24 self·test. the end of the first byte transfer. REQ must be reo asserted for the second byte of the Command Block PORT 322 transfer. Assertion and de·assertion of REO must Reading Port 322 returns a 4-bit drive configuration occur for each byte transferred. Figure 2 defines the code in bits 0 through 3. The two least significant bits bytes within the Command Block. correspond to drive 0, the two most significant bits Winchester Board Products 6-99 :ec I I I BITS I I I I .... o BYTE 0 7 6 5 4 OP CODE 3 2 1 0 o N en 1 0 0 D I 0 I HEAD NUMBER ~ 2 CYL NUMBER MSB I 0 I SECTOR NUMBER >< N 3 CYLINDER NUMBER LSB 4 BLOCK COUNT OR INTERLEAVE 5 R1 I R2 I 0 I 0 I 0 I SP I SP I SP FIGURE 2. COMMAND BLOCK DESCRIPTION OP Code: Operation Code identifies the type and function of the command. Bits 7, 6, and 5 designate whether the command is operational (0) or diagnostic (5). Bits 4 through 0 select the func- tion of the command, i.e. Read, Write, etc. NOTE The WD1015-24 firmware ignores bit four of byte 0 (op code). D Drive number, selects one of two drives zero or one. Head Number Designates the head to be used on the selected drive. 0 through 15. Selection of heads 8 through 15 requires WD1015-24. Cylinder Number Designates the cylinder containing the sector(s) to be used by the command. 0 through MSB and LSB 1024. Sector Number Specifies the starting sector used by the command. Block Count or Block count specifies the number of sectors to be used by a Read, Write, Read Long, Interleave or Write Long command. A block count of zero equals 256 sectors. Interleave is used by the Format commands. The maximum int~rleave is equal to the sectors-per-track minus one. R1 General disk error retry disable bit. R1 controls the retry for all errors except a Data ECC error. With R1 asserted, the WD1002S-WX2 makes no attempt to retry an error operation. Instead, it aborts the command and sets the appropriate status in the Status Register. Because the disk is soft sectored, an ID field error may cause the WD1002S-WX2 to per- form two retries. With R1 de-asserted, the WD1002S-WX2 retries the operation approx- imately ten times before aborting the command and setting the status bit. In the case of an ID Not Found Error, the WD1002S-WX2 does a restore to track zero and seeks back to the desired track after the first ten tries and then makes ten more tries before abor- ting and setting the error status. R2 ECC Error retry bit. With R2 = 1, an attempt is made to correct the error on the first syndrome. R2 = 0 there must be two consecutive like syndromes before an attempt is made to correct the error. SP The Step Code is used to select the rate at which step pulses are issued to the drive. Table 8 defines the rates corresponding to each step pulse code. 6-100 Winchester Board Products TABLE 8. STEPPING RATE CODES BITS STEPPING RATES :E c ...... 2 1 0 WD1015·14 WD1015-24 o 0 0 0 3 msec. per step* 3 msec. per step * o N 0 0 1 3 msec. per step 45 /-lsec. per step en 0 1 0 3 msec. per step 60 /-lsec. per step =e 0 1 1 3 msec. per step 18 /-lsec. per step >< N 1 0 0 200 /-lsec. per step 210/-lsec. per step 1 0 1 70 /-lsec. per step 75 /-lsec. per step 1 1 0 3 msec. per step 30 /-lsec. per step 1 1 1 3 msec. per step 18 /-lsec. per step *This is the preferred 3 msec. step code. TEST DRIVE READY (OP CODE 00) READ STATUS OF LAST OPERATION (OP CODE 03) This command selects the drive specified by the Upon termination of a command the WD1002S-WX2 DRV bit in the Command Block and interrogates the develops a Command Completion Byte, de-asserts bRDY, WF, and SC signals returned by that drive. If the BSY bit, if IROEN had been enabled, asserts IR05. WF and SC are de-asserted and DRDY asserted, If IROEN had not been asserted, it is the responsibility the command returns an error code of 00 No Error of the Host to read port 321 to determine that a Detected. WD1002S-WX2 is no longer busy. Once the Host POSSIBLE ERROR CODES determines that a command has terminated, it must read the Command Completion Byte to learn which 03 Write Fault drive has terminated and whether an error had occur- 04 Drive Not Ready red. To do this, the Host reads port 320. The format 08 Drive Still Seeking of the Command Completion Byte is as follows: RECALIBRATE (OP CODE 01) This command moves the ReadlWrite heads to track O. The SC signal from the drive controls the stepping rate of this command. Therefore, this command is slower than commands that implement the implied seek and make use of the stepping rate designated by the SP bits in the Command Block. D = Number of the drive terminating. 0 = drive O. 1 = drive 1 NOTE E = 1 if an error occurred Timeout on each step during a Recalibrate command If the Command Completion Byte indicates the is 1 second with a WD1015-14. Timeout on each step occurence of an error, issue a Read Status command during a Recalibrate is 3.5 seconds with a WD1015-24. for the drive indicating the error. Preformance of a The 3.5 second timeout supports removable Win- Read Status command before any other command chesters. execution prevents loss of the error status. When a POSSIBLE ERROR CODES Read Status of the last operation is written to port 320, the WD1002S-WX2 responds with four bytes of 03 Write Fault status as shown in Figure 3. 04 Drive Not Ready 06 Track Zero Not Found BYTE BITS 7 6 5 I 4 I 3 I 2 I 1 I 0 0 AV 0 ERROR CODE 1 0 0 D I 0 I HEAD NUMBER 2 CYL NUMBER MSB 0 I SECTOR NUMBER 3 CYLINDER NUMBER LSB AV Address valid bit. Indicates that the Head, Cylinder, and Sector fields are valid. Error Codes are shown in Table 9 All other bits are the same as those defined in the Command Block definitions. FIGURE 3. FOUR STATUS BYTES Winchester Board Products 6-101 When an error occurs during a multiple sector data returned by the WD1002S-WX2 points one sector :ec transfer (read or write), this command returns the address of the failing sector. If the Read Status com- beyond the last track formatted or blocked, if there was no error. If there was an error, then the address ..... mand is issued after any of the format commands returned points to the track in error. o or the Verify Desired Sectors command, the address oI\) en TABLE 9. CONTROLLER RETURNED ERROR CODES :e>< HEX DEFINITION I\) CODE 00 No error detected. 02 No SC signal from the drive. The WD1002S-WX2 has not received a SC from the drive within one second (3.5 seconds with WD1015-24) following the last step pulse of a non-buffered seek operation. - 03 Write Fault signal received from the drive. This error is reported when the WD1002S-WX2 detects WF asserted by a drive either at the completion of a Sector Data Transfer or after initially selecting a drive and the drive indicates ready. 04 Drive Not Ready. The WD1002S-WX2 reports this error when DRDY is not received from the drive at the time selection is attempted, or is de-asserted after the drive has been selected. 06 Track 0 Not Found. This error is reported during a Recalibrate command if TKOOO is not receiv- ed from the drive before stepping the ReadlWrite Heads 1024 steps. 08 Drive Still Seeking. This status is returned in response .!Q..a Test Drive Ready command when a drive performing a buffered seek has not yet asserted SC. 11 Uncorrectable Data Error. The ECC logic detected an error burst greater than its correction capabilities. The data in the Sector Buffer is not sent to the Host. 12 Data Address Mark Not Found. The proper Sector ID was read by the drive but failed to detect the Data Address Mark. 15 Seek Error. The desired Sector ID field could not be found on the selected track, or a CRC error occurred on the ID field. 18 Correctable Data Error. An error occurred in the data field that was within the tolerance of the ECC logic and was corrected. The data in the Sector Buffer is transmitted to the Host. This status is set as a warning to the Host that a marginal condition may exist. 19 Track Is Flagged Bad. A sector had been encountered that has the Bad Block Mark set in the ID Field. The Format Bad Track command records this bit in all sectors of the designated flagging them all as bad. No retries are attempted in response to this error. 20 Invalid Command. The WD1002S-WX2 has received a command with an invalid class or Op code, Interleave Factor. 21 Illegal Sector Address. This error is asserted when a command attempts to address a sector beyond the capacity of the drive. This could be at the time the command is issued, or in the case of a multiple sector transfer, after the last available sector has been used. 30 Sector Buffer Error. An error occurred while preforming Sector Buffer Diagnostics (Command Code EO and E4). A disk drive is not involved in this test. 31 Controller ROM Checksum Error. A ROM checksum error was detected during the Controller Diagnostic command (E4). 32 ECC Polynomial Error. During the Controller Diagnostic command (E4), the hardware ECC generator (WD11COO-17) failed its test. FORMAT DRIVE STARTING AT DESIRED TRACK (OP CODE 04) The WD1002S-WX2 first positions the ReadlWrite each sector is shown in Figure 4. The data recorded heads to track zero. Using the parameters specified in the Data Field is defaulted to whatever is in the in the Command Block, the WD1002S-WX2 positions Sector Buffer at the time. The logical sector number- the heads to the desired track. Formatting always ing is specified by the interleave value (INT) included starts with the first sector of the track, regardless of in the Command Block. If a hard error occurs while the value of SEC. Even so, SEC must be within the formatting a track, the WD1002S-WX2 stops the for- allowable limits. A sample of what is recorded in mat operation and returns an error code. 6-102 Winchester Board Products REPEATED FOR EACH SECTOR ~ L ~ ! 0 I IOFIELO H S C C DATA FIELD GI.P3 I C """'" o o I\) en . C L 3 SYTES 12 BYTES A F 36YlES GAP. GI.PI I~ BYTES A y E E R R oE E 0 '00' 00' USEROI.TA HCC ~IE 4E '00' I A C C C I 8 '00' L W If I N T 0 I 2 :1E I I I I~II__________~I____________~__~I I x I\) I !F I I WRITE GATE --.!.JI I L-- II I II I I II I ORUN~ II I ///11//11J!!IIJIll~ ~. VI!fIIJ///j1l/lZ1 I I I I I READ GATE ~ 2 10 FIELD NOTES: A1 A1 Hex with 1. GAP 1 and 3 length equals 22 bytes. OA Hex clock 2. The decision to assert RG is made 2 bytes after the start of DRUN. IDENT Bits 1,0 = Cylinder High FE = 0-255 Cylinders 3. RG de-asserted: FF = 256-511 Cylinders • If DRUN does not last until A1 FC = 512=767 Cylinders • When any part of 10 does not match the one FD = 768-1023 Cylinders expected. HEAD = Bits 0,1,2 = Head Number • After CRC if correct 10 has been read. Bits 3,4, = 00 4. Write splice recorded on disk by asserting WG. Bits 5,6, = Sector Size (10) Bit 7 = Bad Block Mark 5. RG is suppressed until after write splice. Sec# Logical Sector Number 6. Not a proper A 1 or F8, set DAM error. DATA FIELD 7. Sector size as stated in 10 field, plus four for ECC. A1 A1 Hex with OA Hex clock F8 Data Address Mark; Normal Clock USER Data Field 512 Bytes FIGURE 4. FORMAT Winchester Board Products 6-103 INTERLEA VING :ec When physically sequential sectors on the disk are For a system requiring less than two sector times to ..L to be read, each sector reaches the read/write head proccess the data it has read and to set up for the o o before a read or write operation can be set up. The next read operation, the second logical sector is I\) en disk must then make a complete rotation to pick up physically placed three sectors away from the first. the next sector. When an attempt is made to read all :E 17 sectors on a particular track, 17 rotations or The controller can now read the second sector with minimal delay. This three-to-one interleave factor >< I\) approximately one fourth of a second per 8K bytes allows a potential reading of the entire track in less are required. This performance can be significantly than three rotations. In the example given, the improved by interleaving, a technique that allows the throughput is increased by a factor of 5.6. system to read or write more than one sector per rota- tion. 1 INDEX PULSE OB 00 FIGURE 5. 17 SECTORS WITH A 3:1 INTERLEAVE 6-104 Winchester Board Products The simplest way to determine the optimum interleave VERIFY SECTORS (OP CODE 05) for any particular system is through experimentation. If the system maintains its directories or virtual This command reads from 1 to 256 sectors, as =E memory-swapping areas in a certain place of the disk, specified by BlK in the Command Block, beginning c ...... at the sector specified by H 0 CYl and SEC. If an error o it sometimes makes sense to have more than one o interleave. occurs during a multiple sector read, the heads N remain positioned at the track containing the error. en To simplify driver software, the WD1002S-WX2 The Host then issues a Read Status of last Disk ~ automatically writes the logical sector number of Operation command to determine the error code. To X N each sector in its 10 field. Figure 5 is an example of continue the operation, the Host calculates the dif- an interleave table for a 17-sector track with 3:1 ference between the number of sectors desired and interleave. The WD1002S-WX2 accepts any interleave the number of sectors completed and issues another value between zero and one less than the number of Seek command to access the remaining sectors. sectors per track. An interleave of zero is POSSIBLE ERROR CODES automatically converted to one, and a value out of range results in an error code 20, Invalid Command 02 No Seek Complete Error. 03 Write Fault 04 Drive Not Ready 06 Track Zero Not Found 12 Data Address Mark Not Found 15 Seek Error 19 Track Flagged Bad 21 Illegal Disk Address FORMAT TRACK (OP CODE 06) This command is identical to the Format Drive com- mand, except that only the track specified by the com- mand is formatted. This command can be used to clear the Bad Track Flag, or reformat individual tracks. Winchester Board Products 6-105 FORMA T BAD TRACK (OP CODE 07) WRITE SECTORS (OP CODE OA) :E This command is the same as the Format Track com- This command writes from 1 to 256 sectors as c ..... mand, except that the Bad Track Flag is set in the specified by BlK in the Command Block. The multi- o ID field. ple sector transfer scheme works the same as the o Read command. Error code 06 can only be asserted N (J) READ SECTORS (OP CODE 08) if the R1 bit is 0 and ten consecutive attempts have This command reads from 1 to 256 sectors as spec- failed to read the ID Field. This causes the WD1002S- == >< N ified by BlK in the Command Block, beginning at the WX2 to recalibrate the heads and seek back to the sector defined by CYl SEC and Head. An uncorrec- desired track. If track zero is not detected within 1024 table error during a multiple sector read causes the steps, Error Code 06 is set. If R1 is 1, the WD1002S- operation to terminate at the error sector. The Host WX2 aborts the command on the first failure to read then issues a Read Status of last Disk Operation an 10 Field. Therefore, no attempt to position the command to determine the type of error. To continue heads to track zero is made. the operation, the Host calculates the difference POSSIBLE ERROR CODES between the number of sectors desired and the number of sectors completed, then issues another 02 No Seek Complete Read commend to access the remaining sectors. Er- 03 Write Fault ror code 06 can only be asserted if the R1 bit = 0 and 04 Drive Not Ready ten consecutive attempts have failed to read the ID 06 Track Zero Not Found Field. This causes the WD1 002S-WX2 to recalibrate 12 Data Address Mark Not Found the heads and seek back to the desired track. If track 15 Seek Error zero is not detected within 1024 steps, Error Code 19 Track Flagged Bad 06 is set. If R1 = 1, the WD1002S-WX2 aborts the 21 Illegal Disk Address command after a maximum of two tries to read the ID field. Therefore no attempt is made to position the heads to track zero. POSSIBLE ERROR CODES 02 No Seek Complete 03 Write Fault 04 Drive Not Ready 06 Track Zero Not Found 11 Uncorrectable ECC Error 12 Data Address Mark Not Found 15 Seek Error 18 Correctable ECC Error 19 Track Flagged Bad 21 Illegal Sector Address 6-106 Winchester Board Products SEEK (OP CODE OB) INITIALIZE DRIVE PARAMETERS (OP CODE OC) This command selects the head and initiates a seek The WD1002S-WX2 is capable of controlling two :e c to the track specified by HD and CYL in the Command drives with different formatted capacity. The BIOS ..... Block. The SC signal line is sampled to allow contains four Winchester parameter tables. The con- o buffered seeks. The cylinder must be in range. The figuration jumpers address the proper Winchester o N drive must be formatted. Drives employing buffered parameter table during the BIOS install cycle at power en steps can be issued step pulses at a high speed, free- ing the WD1002S-WX2 for other operations. The up. Refer to Table 11 for details on these jumper set- tings. When the Host reads port 322 and discovers =:X N WD1002S-WX2 does not wait for the drive to complete a change in drives, it issues this command, followed the seek to return a Command Completion Status. by the 8-byte block of drive parameters listed below: If the return status shows no error, the seek was issued correctly. If there is an error, the seek was not Maximum Number of Cylinders (2 bytes, 1024 issued. After transferring the status, another com- max.) mand can be issued to either drive. If the WD1002S- Maximum Number of Heads (1 byte, 8 or 16 heads) WX2 receives a command other than Test Drive Ready Starting Reduced Write Current Cylinder (2 bytes, for a drive that is still seeking, it asserts BSY and 1024 max.) waits for SC to be asserted before executing the Starting Write Precompensation Cylinder (2 bytes, command. If the command is a Test Drive Ready, it 1024 max.) executes and returns an 08 Drive Still Seeking Error. Maximum ECC Data Burst Length (I byte, max.) The time-out for non-buffered seeks is 1 second for A typical set of parameters for a 10MB drive is as a WD1002S-WX2 with a WD1015-14. A WD1002S-WX2 follows: with a WD1015-24 times out for 3.5 seconds for non- buffered seeks. For buffered seeks, the WD1015 306 cylinders checks SC before a Read or Write (next command). 4 heads RWC at cylinder 153 The rate at which the Step Pulses are issued to the Write Precomp at cylinder 153 drive is controlled by the SP bits in the Command 11-bit burst error length (Western Digital Corp. Block. The drive buffers these pulses and steps at recommends using a maximum ECC burst its own rate. This allows the WD1002S-WX2 to con- length of five or less to ensure optimum tinue about its own business, possibly starting the integrity of data recovered). other drive seeking to a new track, without having to wait for the SC from the first drive. Refer to Table For the exact parameters, it is necessary to refer to 8 for the available stepping rates. the specifications for the BIOS in use on the specified board. POSSIBLE ERROR CODES 03 Write Fault 04 Drive Not Ready 15 Seek Error Winchester Board Products 6-107 READ ECC BURST ERROR LENGTH POSSIBLE ERROR CODES (OP CODE 00) :e c This command is only valid following' a correctable 30 Data error ..... EXECUTE DRIVE DIAGNOSTIC o ECC error. It transfers one byte indicating the length o of the error. The error length is determined by coun- (OP CODE E3) I\) en ting the first through last bit in the error. This command tests both the drive and the drive-to- ~ READ SECTOR BUFFER (OP CODE OE) WD1002S-WX2 interface. The WD1002S-WX2 sends x I\) Recalibrate and Seek commands to the selected drive This command transfers the 512 bytes of data cur- and reads sector zero of each track verifying both 10 rently residing in the Sector Buffer to the Host. and data fields. The WD1002S-WX2 does not perform any write operations. WRITE SECTOR BUFFER (OP CODE OF) 5.19.1 POSSIBLE ERROR CODES This command writes 512 bytes of data from the Host into the WD1002S-WX2 Sector Buffer. 02 No Seek Complete 03 Write Fault EXECUTE SECTOR BUFFER DIAGNOSTIC 04 Drive Not Ready (OP CODE EO) 06 Track Zero Not Found This command executes a 9-pass test that uses a 12 Data Address Mark Not Found O-byte pattern (0,1,2,4,8,10,20,40, and 80 hex) that 15 Seek Error is written to the Sector Buffer, then read back. After EXECUTE CONTROLLER DIAGNOSTICS each successful completion, the whole pattern is (OP CODE E4) shifted one byte postition and repeated. Regardless of the version of the WD1015 on the NOTE WD1002S-WX2, the WD1002S-WX2 executes this com- The WD Format Drive Utility in the WD BIOS executes mand when the Host issues a command code of E4 this command before physical formatting of the drive. hex to the GGB. The WD1015-14 automatically Thus, the data fields are formatted with this 0, 1, 2, executes this command after system Reset (RST on 4, 8, 10, 20, 40, and 80 hex pattern. connector P1 82 asserted), write to port 321 Hex, or power-up. The WD1015-24 only automatically executes this command when an on-board WD BIOS performs an install sequence after power-up. 6-108 Winchester Board Products Once started, this command continues to run until SECTOR BUFFER TEST an error occurs, or the Host selects the WD10028-WX2 by writing to port 322. If an error occurs when this The hex pattern 00, 01, 02, 04, 08,10,20,40,80 is writ- =E command has been started at power up, an error code ten throughout the entire Sector Buffer and then read c -L is output at pins 27, 28, and 29 of the WD1015. These to make sure it is correct. The entire contents of the o Sector Buffer is then shifted one byte position and oI\) are the Head Select 0, 1, and 2 signals and can be monitored at the Drive Control Connector J1 pins 14, read again. This procedure is repeated nine times veri- en 18, and 4. The error codes generated under this con- fying that every bit in the Sector Buffer can be set =e dition are not the same as those reported by a Read and reset. >< I\) Status command. The WD11COO-17 is enabled during the read functions 1 - WD1 01 OA-05 Error to verify the operability of that device. 2 - WD11C00-17 ECC Error WD1015 RAM TEST 3 - Sector Buffer Error 4 - WD1015 RAM Error This tests the 100 bytes of internal RAM in the same 5 - WD1015 ROM Error manner as the Sector Buffer test. WD1 01 OA-05 TEST WD1015 ROM TEST A pattern is written to and read from the This test verifies the ability to address and read all WD1010A-05's Sector Count and Sector Number 2K bytes of internal ROM, using an add and rotate Registers. algorithm to generate a single byte result. This result is then compared with the Sumcheck located in the WD11 COO-17 ECC TEST last page of memory. The WD11C00-17 is enabled during the read portion POSSIBLE ERROR CODES of the Sector Buffer Test. After the contents of the Sector Buffer have been read, the ERR (pin 1) of the 30 Sector Buffer Error WD11COO-17 is monitored, it should be asserted 31 ROM Sumcheck Error indicating non-zero Check Bytes. The internal check 3 ECC Error pattern is then fed back into the chip and pin 1 monitored again. This time it should not be asserted, indicating a Check Byte pattern of zero. Winchester Board Products 6-109 READ LONG (OP CODE ES) INSTALLATION :ec The Host first performs a normal Write command, HARDWARE AND SOFTWARE INSTALLATION writing known data, that produces a predictable ECC -'" This section briefly describes installation of the o character, then performs a Read Long command. This o command reads the data from the disk without WD1002S-WX2 in an IBM PC or IBM-compatible I\) en generating a ECC bytes of its own. Instead, it reads computer. ::>< the four ECC bytes from the disk, as though reading data, resulting in 512 plus 4 for a total of 516 bytes 1. Ensure system power is off. 2. Insert WD1002S-WX2 in computer chassis and I\) of data. The Host, knowing what the data and ECC connect drive cables. bytes are supposed to be, can now determine whether (J1 = control cable, J2=drive 0 cable, J3 = drive any errors that have occurred are a result of a data 1 cable) or ECC failure. 3. Power up the system. POSSIBLE ERROR CODES 4. Insert IBM PCDOS 2.0 or IBM PCDOS 2.1 diskette. 02 No Seek Complete CAUTION 03 Write Fault Performing steps 5 through 9 destroys any data 04 Drive Not Ready presently on the disk. 06 Track Zero Not Found 12 Data Address Mark Not Found 5. Load DEBUG utility by typing "debug" and ENTER 15 Seek Error after the DOS prompt. 19 Track Flagged Bad 6. Initiate the WX2FMT (format) program by typing 21 Illegal Disk Address the following command line: g = cBOO:5 7. Press "y" to begin formatting drive 0 (logical WRITE LONG (OP CODE E6) drive C.) After performing the Write normal/Read Long routine B. To format drive 1 or second drive in a daisy chain, to determine that the WD1002S-WX2 is able to write reload DEBUG utility. Type "RAX" and ENTER. data and generate correct ECC bytes, the Host can Prompt returns "AX 0000". Type "0103", ENTER execute a Write Long and Read normal routine. This which defines relative drive number and interleave verifies the ability of the WD1002S-WX2 to read the factor (01 = relative drive number; 03 = interleave data correctly and generate 4-zero ECC bytes or if an = factor). Type "G CBOO:5", ENTER, and type "y" error was forced, correct it. The Write Long command to begin formatting drive 1 (logical drive D). does not generate ECC bytes, instead the Host sup- 9. Run standard DOS utilities, FDISK and FORMAT. plies them along with a known data pattern. Then, JUMPER INSTALLATION AND LOCATIONS performing a normal Read command, the Host can determine whether non-zero ECC bytes are caused The WD1002S-WX2 is configured for the standard IBM by a Read failure or ECC generation failure. (This PC XT with jumper plugs installed at W3, W4, and W6. procedure could be performed prior to the Write No jumpers are required at W5 and W7. To change normal/Read Long). the configuration, a jumper plug can be installed in the appropriate block. Installation of jumpers on W5 POSSIBLE ERROR CODES and W7 requires carefully cutting an etch and plac- 02 No Seek Complete ing a jumper plug onto the Jumpered position. To 03 Write Fault restore the standard setting, move the jumper plug 04 Drive Not Ready to the Standard position. Table 10 describes these 06 Track Zero Not Found jumpers and options. Table 11 describes the drive 12 Data Address Mark Not Found configuration jumpers and an INTERRUPT REQUEST 15 Seek Error (IRQ) jumper in SW1. Figure 6 illustrates the locations 19 Track Flagged Bad of W1 through W7 and SW1. 21 Illegal Disk Address 6-110 Winchester Board Products TABLE 10 JUMPER SELECTABLE OPTIONS (W1 THROUGH W5) :E JUMPER FUNCTION PIN DESCRIPTION c..... W1,W2 For Western Digital Manufacturing use only. o o W3 Standard: 1-2 Closed by etch or jumper. Enables BIOS ROM I\) 1-2 Open. Disables BIOS ROM. en W4 Standard: 2-3 Selects primary port 320 Hex. :iE Jumpered: 1-2 Selects secondary port 324 Hex. Requires X I\) custom BIOS. NOTE The WD1002S-WX2 provides two sets of 1/0 ports. The primary port addresses are 320 through 323 Hex. The secondary port addresses are 324 through 327 Hex. However, secondary ports on the WD1002S-WX2 are NOT supported by many versions of DOS. W5 Standard: 1-2 Selects 2732 or 2764 BIOS ROM size. Jumpered: 2-3 Selects 2716 BIOS ROM size. W5 pin 1-2 etch must be cut. W6 Standard: 2-3 8 head configuration, RWC used. Jumpered: 1-2 16 head configuration, RWC not used, requires custom BIOS ROM and WD1015-24. W7 Standard: 1-2 Selects IR05. Jumpered: 2-3 Selects IR02. SW1 position 5 must also be jumpered (closed) and W7 pin 1-2 etch must be cut. Winchester Board Products 6-111 TABLE 11 SW1 JUMPER BLOCK DESCRIPTION WD BIOS 62-000042-01 (ROM) or 62-000042-11 (EPROM) BIOS FORMATIED POSITION DRIVE HEADS NUMBER OF PRE-COMP TABLE CAPACITY 12 34 TYPE CYLINDERS RWC DRIVE 1 DRIVE 0 3 10MB 11 11 ST412 4 306 0 Seagate None 2 15MB o1 01 ST419 6 306 256 Seagate RWC= 128 1 26MB 10 10 5820 8 375 0 Evotek None 0 5MB 00 00 ST506 2 306 0 Seagate None WD BIOS 62-000042-12 (EPROM) 3 10MB 11 11 ST412 4 306 0 Seagate None 2 20MB o1 o1 ST225 4 612 128 Seagate None 1 10MB 10 10 3012 2 612 128 MiniScribe RWC= 128 0 20MB 00 00 HH725 4 612 None Microscience None Factory sets jumper for BIOS Table 3. Position 5 of SW1 select IR05 (factory setting) or IR02. 1 = IR05. 0 = IR02. Positions 6, 7, and 8 of SW1 are reserved. LEGEND: 1 = no jumper installed, ties input to + 5vdc. 0 = jumper installed, ties input to ground. 6-112 Winchester Board Products J3 J2 Jl SWl U9 FIGURE 6. JUMPER LOCATIONS 7.3 BIOS ROM INSTALLATION The WD1002S-WX2 firmware driver routines, supplied 2764 JEDEC EPROM. Figure 7 illustrates the standard by Western Digital Corporation, reside in a 4KB x 8 connections for the 2732 or 2764. These connections bit EPROM. This BIOS ROM is available in three sizes can be modified to support a 2716. Perform the follow- as follows: ing steps to modify the standard connections: 2716 2KB x 8 bit 1. Cut the etch between pads 1 and 2 on W5 2732 4KB x 8 bit (standard from the factory) 2. Jumper pad 3 to pad 2 2764 8KB x 8 bit 3. Wire pin 20 and 26 as shown. 4. Plug BIOS in the socket. Pin 1 of the 2716 BIOS The WD1002S-WX2 provides a 28 pin DIP socket for should be in position 3 of the socket. the BIOS ROM. This socket accomodates a 2732 or 1 28 I-----Vee 2 27 3 26 E2(A11) 4 25 5 24 6 23 7 22 8 21 9 20 t - - - - VSS 0 E3 (Vee) FIGURE 7. BIOS ROM SOCKET CONNECTIONS Winchester Board Products 6-113 SPECIFICATIONS =E This section contains th.e overall specifications for c-" the WD1002S-WX2 Winchester Disk Controller. o o ELECTRICAL N en HOST INTERFACE ~ >< N Type IBM PC Host Interface Connector P1 connects directly to Host motherboard with a 62-pin card edge connector DRIVE INTERFACE Encoding Method MFM Cylinders per Drive Up to 1024 Sectors per Track 17 Bytes per Sector 512 Heads 8 with WD1015-14 16 with WD1015-24 Drive Selects 2 Stepping Rates 70 /-isec, 200 /-isec, 3 msec (WD1015-14) 18 /-isec, 30 /-isec, 45 /-isec, 60/-isec, 75 /-isec, 210 /-isec, 3 msec (WD1015-24) Data Transfer Rate 5 Mbits/sec (ST506) Write Precomp Time 12 nsec Sectoring Soft 16 CRC Polynomial X + X 12 + x5 + 1 32 ECC Polynomial X + X 28 + X26 + x19 + X 17 + X 10 + x6 + x2 + 1 Reciprocal ECC Polynomial x32 + x30 + x26 + x22 + X 15 + X 13 + x6 + X4 + 1 Miscorrection Prob. 5-bit correction = <1.6 E- 5 Non-detection Prob. <2.3 E-10 Correction Span Up to II-bit burst Max Cable Length: Control (Total Daisy 3 Meters 3 Meters (10ft.) (10 ft.) Chain) Data (Radial-each) 3 Meters (10 f1.) WD10C20 Acquisition Time < or = 12.8 /-is Capture Range ± 2.2% to 1ns after 12.8 /-is acquisition Bit Jitter Tolerance ± -34ns (min. of 40 db after acquisition) Asymmetry Tolerance ± -34ns (write precompensation turned off; as measured over con- stant RCLK pattern) POWER Voltage 5V ±5% Current 0.8 amps max. Ripple 0.1 volts max., 25 mV typical Voltage +12 ± 10% Current 10 rnA. max. 6-114 Winchester Board Products PHYSICAL Form factor IBM PC Length 20.6 centimeters (8.1 inches) Width 9.78 centimeters (3.85 inches) Height (max including board, 1.27 centimeters (0.50 inches) components, & leads) ENVIRONMENTAL Ambient Temperature OOC (32°F) to 55°C (131°F) Relative Humidity 10% to 95% non-condensing Altitude o to 3000 meters (10,000 ft) Air Flow 100 lin ft/min. at 0.5" from component surfaces. MTBF 10,000 POH MTTR 30 Minutes INTERFACE TIMING Timing diagrams are shown in Figures 8 through 11 The processor executes 1/0 and memory reads from and their values are listed in Tables 12 through 15 the ports and the on-board BIOS ROM, and writes to respectively. Since the Controller 1/0 ports can be the ports. The DMA is used for data transfers between accessed by either the Host system DMA Controller the data 1/0 port and the Host RAM. or the Host processor, timing is given for both cases. :~~AO'-----<:~__________________A_OD_R_ES_S__WI_l_l_B_E_V_A_l_IO________________--J:><:~ ______ I I lOR , MEMR - - - - - - -..... I I ~tASl ~I" tOE "I ~tDH1....J 07 - DO I I" < tACC(BIOS) ( ~I DATA MUST BE VALID 2 ~ FIGURE 8. HOST 1/0 OR BIOS READ TIMING TABLE 12. HOST 1/0 OR BIOS READ TIMING UNITS IN NSEC. SYMBOL CHARACTERISTIC MIN MAX t AS1 Address Setup Time 50 t ACC Address Access Time 250 tOE Output Enable Time 175 tOH1 Data Hold Time 0 Winchester Board Products 6-115 ~ c .... OACK3 ~~______________________________________________~ o o N CJ) .I..I-----I·~I- tOORQ :iE >< ORQ3 ~I____________~~ N lOR I I j...- t RSU - ·......1..------- tOOE j.- t OH3 ·1 --.J y~--~~--~(--~)~~, 07 - 00 ---------4-,-_- - - - - - - - - - < ~ --= 7 DATA MUST BE VALID ~ FIGURE 9. DMA I/O READ TIMING TABLE 13. DMA I/O READ TIMING UNITS IN NSEC. SYMBOL CHARACTERISTIC MIN. MAX. tOORQ DRQ3 De·assert Delay 20 45 t RSU Read Setup Time 7 tOOE Data Output Enable 175 t OH3 Data Hold Time 0 6-116 Winchester Board Products :E AA1E9N-AO,-<'-__________________________________________ ~ ADDRESS WIll BE VALID __ -------JX~---- _ _ c """" o o I. . . tASU2-tjr--...t - - -...• ... - - - - - - t w P ---------I~~I lOW I ------------ ~I N en :iE >< I.. tosu ----I~~I. . .I---I~~I~ tOH2 N 07 - OO----------~< ORQ3 : ., ~I___~_________________~I N J.-twsu--t·~I......t-------- twp--------...~I lOW I ~I----------- ...I-..----tos _14 t OH4 -.J 07 - 00-------------4~------- FIGURE 11. DMA 1/0 WRITE TIMING TABLE 15. DMA 1/0 WRITE TIMING UNITS IN NSEC. SYMBOL CHARACTERISTIC MIN. MAX. tDDRQ DRQ3 De·assert Delay 20 45 t wsu Write Setup Time 7 twp Write Pulse Width 100 t DS Data Setup Time 50 tDH4 Data Hold Time 0 6-118 Winchester Board Products WESTERN DIGITAL COR P 0 RAT o N WD1002-WAH WINCHESTER DISK CONTROLLER FEATURES • 32·BIT ECC FOR WINCHESTER ERROR • PC AT COMPATIBLE WINCHESTER DETECTION AND CORRECTION CONTROLLER • MULTIPLE SECTOR READIWRITE • CONTROLS UP TO TWO WINCHESTER COMMANDS (MAY CROSS HEAD AND DRIVES (16 RIW HEADS EACH) CYLINDER BOUNDARIES) • HARDWARE DESIGN ALLOWS TWO • IMPLIED AND BUFFERED SEEK WD1002·WAH CONTROLLERS IN ONE COMMANDS SYSTEM • READIWRITE DIAGNOSTIC AND VERIFY • 8·BIT, BI·DIRECTIONAL BUS HOST COMMANDS INTERFACE (FOR CONTROL AND • PROGRAMMABLE FORMAT AND ERROR STATUS TRANSFERS) RECOVERY ALGORITH MS • 16·BIT, HIGH·SPEED PIO DATA • WD10C20 SINGLE CHIP DATA SEPARATOR TRANSFERS DESCRIPTION The WD1002·WAH is an IBM PC AT bus compatible address/data bus, HDO through HD7. Controlling firm· Winchester controller board designed to interface up ware resides in the WD1015·03's 2K internal ROM. to two drives. The drive interface is based upon the The WD1010A·05 controls all data transfers between Seagate Technology ST506. The drives need not be the Sector Buffer and the drives. The WD1010A-05 per· of the same capacity or configuration. All necessary forms multiple sector ReadlWrite, Implied and Buf· receivers and drivers are included on the board to fered Seek commands. The WD1010A·05 also allow direct connection to the drive(s). executes programmable format and error recovery ARCHITECTURE algorithms. All commands are executed through the The WD1002·WAH is based on the WD1014·01 Error seven Task Files of the WD1010A·05 after limited Detection/Support Logic device, WD1015-03 Buffer intervention by the WD1015·03 and WD1014·01. Manager Control Processor, WD1010A-05 Winchester The WD1 OC20 performs phase·locked loop data syn· Disk Controller, and WD10C20 Data Separator. The chronization on read data from the Winchester drives. WD1002·WAH also uses two 2K x 8 static RAM This device also conditions write data to be recorded memory devices as a Sector Buffer. on the disk. The WD10C20 includes both frequency The WD1014·01 provides error correction for the and phase detection. Zero phase error start·up cir· WD1002·WAH. The WD1014·01 generates four ECC cuitry eliminates problems due to asymmetry. The bytes and appends these bytes to the sector data WD10C20 requires no adjustments and contains all field. The maximum error correction span is 5·bits. data separation circuitry in a single device. The WD1014·01 sets the error correction span. The The Sector Buffer is two 2KB x 8 RAMs. Since the WD1014·01 also selects the proper drive and head. WD1010A·05, WD1014·01, and WD1015·03 are 8·bit The WD1015·03 is an 8·bit microprocessor that con· devices, two RAMs are used because the Host pro· trois and coordinates the activity of the disk drives, vides data in 16·bit words. An onboard PAL selects WD1010A·05, and WD1014·01. The WD1015·03 the proper RAM. The Sector Buffer RAMs never con· receives and sends command or status information tain more than 512 bytes. over the internal WD1002·WAH mUltiplexed Figure 1 is a block diagram of the WD1002·WAH. Winchester Board Products 6-119 ..,Sf I/QIUS I---':""~!..!.~'----- } (0 FIGURE 1. WD1002-WAH BLOCK DIAGRAM INTERFACE CONNECTORS HOST INTERFACE CONNECTORS The W01002-WAH has five interface connectors: The W01002-WAH Controller interfaces with the P1-62-pin card edge connector 16-bit, bi-directional data bus by means of the two Component side -Pins A1 through A31 card edge connectors P1 and P2. The pin descriptions Conductor side -Pins 81 through 831 for P1 are given in Table 1 and for P2, in Table 2. P2-36-pin card edge connector Component side -Pins C1 through C18 Conductor side -Pins 01 through 018 J1- control cable connector J2- drive 0 data cable connector J3- drive 1 data cable connector The pin description of the connectors are given in Tables 1 through 4. 6-120 Winchester Board Products TABLE 1. HOST INTERFACE CONNECTOR (P1) PIN DESCRIPTION PIN NUMBER MNEMONIC SIGNAL NAME 110 FUNCTION A1,A10, NC A12 thru A21 A2 SD7 DATA BIT 7 110 Bi-dlrectional, 8-bit data bus for data and status thru thru thru communication between the controller and the A9 SDO DATA BIT 0 Host. A11 AEN ADDRESS I When AEN is asserted, the DMA controller ENABLE assumes control of the Host address bus, control bus, and data bus. 110 port addresses are no longer generated for 110 port access. A22 SA9 ADDRESS I A 10-bit address bus for 110 addressing by the Host. thru thru BITS A9 A31 SAO thru AO B1,B10 GND Ground B31 B2 RST RESET I When asserted, RST forces the WD1002-WAH board into the initial power-up state. B3,B29 +5VDC +5VDC +5VDC B9 + 12VDC + 12VDC + 12VDC B4 NC thru B8,B11, B12 B13 lOW 110 WRITE I Assertion causes the WD1002·WAH to read a data, status or control byte from the Host data bus. B14 lOR 110 READ I Assertion causes the WD1002-WAH to drive data unto the Host data bus. B15 NC thru B27,B30 B28 ALE ADDRESS I Assertion enables the WD1002-WAH to latch a valid LATCH board address from the Host address bus. ENABLE Winchester Board Products 6-121 TABLE 2. HOST INTERFACE CONNECTOR (P2) PIN DESCRIPTION PIN NUMBER MNEMONIC SIGNAL NAME 1/0 FUNCTION C1 NC thru C10 C11 D8 DATA BIT 8 110 Bi-directional, 8-bit data bus for data tranfers only thru thru thru between the controller and the Host. C18 DO DATA BIT 15 D1 NC D2 1I0CS16 110 16 BIT I Assertion signals the system board that the cur- CHIP rent data transfer is a 1 wait-state, 16-bit 110 cycle, SELECT derived from an address decode. D3 NC thru D6 D7 IRQ14 INTERRUPT 0 Assertion indicates that the WD1002-WAH request REQUEST 14 execution of the Host interrupt service routine. D8 NC thru D18 DRIVE CONTROL CONNECTOR J1 The drive control connector is a 34-pin printed circuit chain must have a 220/330 ohm resistor card edge connector daisy-chained to each drive in pack installed. Pin descriptions and control signals the system. To terminate the control signals on the for the drive control connector J1 are given in Table 3. WD1002-WAH properly, the last drive on the daisy TABLE 3. DRIVE CONTROL CONNECTOR (J1) PIN DESCRIPTION SIGNAL GND. PIN MNEMONIC NAME 1/0 FUNCTION 1 2 HS3/RWC HEAD 0 The WD1002-WAH uses HS3 to select one of 16 SELECT 3 R/W heads. RWC is not used with 16 head drives. REDUCE RWC is used by drives with 8 R/W heads. RWC WRITE reduces the write current on the inner cylinders. CURRENT This lessens the bit shift caused by greater den- sity on these cylinders. - 3 4 HS2 HEAD 0 HS2 is one of the head select signals decoded SELECT 2 by the drive to select one of eight (or 16) R/W heads. - 5 6 WG WRITE 0 WG is asserted when valid data is to be written GATE on disk. The WD1002-WAH de-asserts WG when WF is detected. Special circuitry is included to ensure the system output is free of glitches dur- ing power-on. 7 8 SC SEEK I SC informs the WD1002-WAH that the head of a COMPLETE selected drive has reached the desired cylinder and has stabilized. 6-122 Winchester Board Products TABLE 3. DRIVE CONTROL CONNECTOR (J1) PIN DESCRIPTION (cont'd) SIGNAL GND. PIN MNEMONIC NAME 110 FUNCTION 9 10 TKooo TRACK 000 TKOOO is asserted when the R/W heads are posi· tioned over the outermost cylinder. 11 12 WF WRITE FAULT WF is asserted by the selected drive when a write error occurs. While this signal is being asserted, the command in progress aborts and no other disk command can be executed. 13 14 HSO HEAD 0 HSO is one of the head select signals decoded by SELECT 0 the drive to select one of eight (or 16) R/W heads. 15 GND 16 NC 17 18 HS1 HEAD 0 HS1 is one of the head select signals decoded by SELECT 1 the drive to select one of eight (or 16) R/W heads. 19 20 INDEX INDEX I INDEX indicates the start of a track. Used as a PULSE synchronization point during formatting and as a time-out mechanism for retries. Pulses once each disk revolution. 21 22 DRDY DRIVE READY I DRDY informs the controller that the drive motor is up to speed. 23 24 STEP STEP PULSE 0 STEP, with DIRIN..L...E2.sitions the heads to the desired cylinder. STEP pulses once for each step. DIRIN determines the step direction. 25 26 DSO DRIVE 0 DSO is used to select drive O. SELECT 0 27 28 DS1 DRIVE 0 DS1 is used to select drive 1. SELECT 1 29, GND 31, 33 30, NC 32 -- 33 34 DIRIN DIRECTION 0 DIRIN determines the direction in which the R/W IN heads move when the step line is pulsed. De- asserted =out; asserted in. = Winchester Board Products 6-123 DATA CONNECTORS The data lines between the WD1002-WAH and the two cable length of 3 meters (10 feet). Each data connec- disk drives are connected to J2 and J3. As the data tor is a 20-pin vertical header on 0.25mm (0.01 inch) lines are not identical, J2 must be connected to the center. Data connector pin descriptions and signals cable from drive 0, and J3 to the cable from drive 1. are listed in Table 4. Each drive is radially connected with a maximum TABLE 4. DRIVE DATA CONNECTORS (J2,J3) PIN DESCRIPTION SIGNAL GND PIN 110 SIGNAL NAME 1 NC 2 GND 3 NC 4 GND 5 NC 6 GND 7 NC 8 GND 9 NC 10 NC 11 GND 12 GND 13 0 + MFM Write Data 14 0 -M FM Write Data 15 GND 16 GND 17 + M FM Read Data 18 -M FM Read Data 19 GND 20 GND 6-124 Winchester Board Products FORMAT The format used for Winchester disk track formatting is shown in Figure 2. The ID and data fields on any disk are initialized by the Format command. REPEATED fDR EACH SECTOR IN~ ID f I£LD .----DATA fiElD It I \ I D C L H S C C GAP) I GAPI 14 BYTES A E [ R R ) BYTES 12 BYTES A f ) BYTES } GAP4 E y 0 USER DATA 4ECC '00' 4£ 4E 4[ '00' 1 A C C C '00' '(\()' 1 B 1 N T L W D • 1 ? 1 I I I f I I I I WRITE qAT[ I .j!I I I I I L I I I I I I I I I DRUN --.J I ~ I I I R[AD GAT[ L_______ 6 I '-1 _ _ __ NOTES ID FIELD 1. GAP 1 and 3 length equals 22 bytes. A1 = A1 hex with OA hex clock 2, Decision to assert RG is made two bytes after the IDENT = Bits 1,0 = Cylinder High start of DRUN, 3. RG is de·asserted: FE = 0-255 Cylinders FF = 256·511 Cylinders • If DRUN does not last until A 1, FC = 512-767 Cylinders • When any part of the ID does not match FD = 768-1023 Cylinders the one that is expected, • After CRC, if correct ID has been read. HEAD = Bits 0, 1,2 = Head Number 4. Write splice recorded on disk by asserting WG, Bits 3,4 = 0 5. RG is suppressed until after write splice. Bits 5, 6 = Sector Size 6. Not a proper A1 or F8, set DAM error. Bit 7 = Bad Block Mark 7, Sector size as stated in ID field, plus four for ECC. Sec # = Logical Sector Number DATA FIELD A 1 = A1 hex with 01 hex clock F8 = Data Address Mark; Normal Clock USER = Data Field 512 Bytes FIGURE 2. WINCHESTER DISK FORMAT Winchester Board Products 6-125 REGISTER ADDRESS MAP The WD1002-WAH contains seven Read/Write task file are with respect to the Host lower byte bus terms, registers in the WD1010A-05 and three hardware SO? through SDO. The fixed sizeldrivelhead (SOH) and registers external to the WD1010A-05. These registers status registers in the WD1010A-05 desciptions are mapped into either a primary of secondary 1/0 slightly differ from the standard descriptions in the address. All data, control, and status information pass WD1010-05 data sheet. Please note that the SOH between the task files and the Host. register is set for the ECC option mode and 512 bytes All data transfers are word transfers except ECC per track. The SOH register also limits the number bytes in Read Longs and Write Longs. These ECC of heads to 16. Bit 2 of the WD1010A-05 status register bytes are transferred in byte-mode. Control and sta- is designated as the Corrected Data bit. Assertion tus bytes are also transferred between the Host in (setting to 1) of this bit indicates the sector read from byte mode. The? task file registers are multiplexed the drive resulted in a correctable ECC error. Soft with lOR and lOW to give 14 possible parts. Five of errors do not end multiple sector transfers. Bit 1 of the eight task file registers are bi-directional. Two of the WD1010A-05 status register is designated as the the task file registers have different definitions for Index bit. Assertion of this bit occurs each revolution read and write operation. Jumpers select the pri- of the currently selected drive. Refer to the WD1010-05 mary and secondary address. This allows two con- data sheet for a complete description of all other trollers in the same Host system. However, second- WD1010A-05 bit aSSignments. Table 6 describes the ary ports on the WD1002-WAH are not supported by bit assignments for the other WD1002-WAH control any version of DOS. and status registers. Table 5 summarizes the WD1002-WAH 1/0 port NOTE address map. Figure 3 summarizes the WD1010A-05 Where differences exist, the values and descriptions task file registers and bit aSSignments. Figure 4 sum- for Figure 3 take precedence over the WD1010-05 data marizes the other three 1/0 registers and bit sheet. assignments for the WD1002-WAH. Bit assignments TABLE 5. WD1002-WAH REGISTER ADDRESS MAP 1/0 ADDRESS PRIMARY SECONDARY READ WRITE WD1010A-OS TASK FILE REGISTERS 1F1 171 ERROR REGISTER WRITE PRE-COMP 1F2 172 SECTOR COUNT SECTOR COUNT 1F3 173 SECTOR NUMBER SECTOR NUMBER 1F4 174 CYLINDER NUMBER CYLINDER NUMBER (low byte) (low byte) 1F5 175 CYLINDER NUMBER CYLINDER NUMBER (high byte) (high byte) 1F6 176 SOH REGISTER SOH REGISTER 1F7 177 STATUS REGISTER COMMAND REGISTER CONTROL AND STATUS REGISTERS EXTERNAL TO THE WD1 01 OA-OS 1FO 170 DATA REGISTER DATA REGISTER (16 bits) (16 bits) 3F6 376 FIXED DISK REGISTER 3F6 376 ALTERNATE STATUS REGISTER 3F7 377 DIGITAL INPUT REGISTER 6-126 Winchester Board Products REGISTER 7 I 6 I 5 I 4 I 3 I 2 I 1 I 0 WRITE PRE-COMP CYLINDER NUMBER DIVIDED BY 4 ERROR BB I ECC I 0 I 10 I 0 I AC I TK I OM SECTOR COUNT NUMBER OF SECTORS SECTOR NUMBER SECTOR NUMBER CYLINDER NO. CYLINDER NUMBER (LOW BYTE) CYLINDER NO. 0 I 0 I 0 I 0 I 0 I I CYL. NO. MSB 0 SOH 1 I 0 I 1 1 os I HS3 I HS2 I HS1 I HSO COMMAND COMMAND STATUS BSY I ROY I WF I SC I ORO I CRD I lOX I ERR FIGURE 3. WD1 01 OA-05 TASK FILE REGISTER BIT ASSIGNMENT REGISTER 7 6 5 4 3 2 1 0 ALTERNATE STATUS BSY ROY WF SC ORO CRD lOX ERR DIGITAL INPUT X WTG HS3/ HS2 HS1 HSO DS2 DS1 RWC FIXED DISK 0 0 0 0 HS3EN RST lEN 0 FIGURE 4. WD1002-WAH CONTROL AND STATUS REGISTERS TABLE 6. WD1002-WAH CONTROL AND STATUS REGISTER BIT DEFINITIONS REGISTER BIT MNEMONIC BIT NAME ALTERNATE STATUS BSY Controller Busy Flag RDY Ready from selected drive WFT Write Fault from selected drive SKC Seek Complete from selected drive DRO Data Transfer Request Flag CRD Corrected Data Flag from WD1015-03 IDX Index pulse from selected drive ERR Error Flag from WD1015-03 DIGITAL INPUT X Reserved. System bus signal SD07 tri-stated WTG Write Gate on HS3 (RWC) Drive head select or RWC (bit 5) for drives using throu9h..tiSO RWC DS2, DS1 Drive select FIXED DISK HS3EN Set to 1: Enables HS3 Set to 0: Enables RWC RST Reset. Program controlled reset to board. This bit maintains the WD1002-WAH logic reset as long as this is on. This bit must be on for a .minimum of 5.0 Ilsec. After the bit is on for the minimum time, the bit must be turned off to complete reset function. lEN Interrupt Enable. Enables or disables IRQ14. This bit does not clear the interrupt level in the disabled state. A pending interrupt would occur when the interrupt is enabled again. A system master reset clears the inter- rupt but leaves the interrupt enabled. Winchester Board Products 6-127 COMMANDS The WD1002·WAH command set contains eight com· Table 7 describes the eight WD1002·WAH commands mands. Five commands (Restore, Seek, Read Sector, and their bit assignments. The next section describes Write Sector, and Format Track) are executed through a typical command sequence. Each command is the WD1010A·05 command register. (A sixth described following the command sequence. WD1010A·05 command, Scan ID is not directly available to the Host. Scan ID may be executed by the WD1015·03 transparently to the Host.) The three remaining commands (Read Verify, Diagnose, and Set Parameters) are executed through the WD1015·03. TABLE 7. COMMANDS AND COMMAND CODES COMMAND BITS Restore 0 0 0 1 R3 R2 R1 RO Seek 0 1 1 1 R3 R2 R1 RO Read Sector 0 0 1 0 0 0 L T Write Sector 0 0 1 1 0 0 L T Format Track 0 1 0 1 0 0 0 0 Read Verify 0 1 0 0 0 0 0 T Diagnose 1 0 0 1 0 0 0 0 Set Parameters 1 0 0 1 0 0 0 1 LEGEND R3 through RO Step rate selection bits. Refer to Table 8 for more detailed information. L Read or Write Long bit. Set to 1 enables Read or Write Long mode. T Retry bit. Set to 1 disables retries. The stepping rates for the commands that perform implied seeks are set in the least significant nibble of the last executed RESTORE or SEEK command. The stepping rate is given in Table 8. 6-128 Winchester Board Products TABLE 8. STEPPING RATE STEPPING STEPPING R3 R2 R1 RO RATE R3 R2 R1 RO RATE 0 0 0 0 35 jJsec 1 0 0 0 4.0 msec 0 0 0 1 0.5 msec 1 0 0 1 4.5 msec 0 0 1 0 1.0 msec 1 0 1 0 5.0 msec 0 0 1 1 1.5 msec 1 0 1 1 5.5 msec 0 1 0 0 2.0 msec 1 1 0 0 6.0 msec 0 1 0 1 2.5 msec 1 1 0 1 6.5 msec 0 1 1 0 3.0 msec 1 1 1 0 7.0 msec 0 1 1 1 3.5 msec 1 1 1 1 7.5 msec Note: After Diagnose or reset, stepping rate defaults to 7.5 msec COMMAND SEQUENCE DESCRIPTION This section describes a typical command execution monitoring and completion status. The WD10C20 sequence. This description illustrates the relationship provides drive read and write data control for com- beween Host and the major components of the mands that require data transfers. WD1002·WAH during command execution. On command completion, the WD1010A-05 inter- In the idle state: the WD1010A·05 drive control rupts the WD1015-03. The WD1015-03 examines signals are off. The controller status indicates the command, status, etc. for any additional ready. Drive status is valid. Controller interrupt is requirements. If completion is indicated, the enabled but not asserted. The WD1015-03 is idle WD1015-03 sets the controller status to indicate and is monitoring the WAKEUP signal input. ready and interrupts the Host. The Host outputs the command parameters to the The WD1002-WAH returns to the idle state and the WD1010A-05 task file, the operation command Host may examine drive and controller status, read (Seek, Read or Write) and the command attributes input data, etc., as required to complete the (Long mode, retry control, etc.). For write opera- operation. tions, the Host also outputs the sector or format data. COMMAND DESCRIPTION The command byte is intercepted by the Restore WD1014-01 and is held for later interpretation by ~he WD1015-03. The Restore command is used to move the RIW heads to the Track 000 position. The controller issues A Read command output sets the module Wakeup step pulses to the drive until the Track 000 indicator latch that causes the controller status to indicate from the drive is asserted. If Track 000 is not asserted Busy and the WD1015-03 WAKEUP signal to be within 1023 steps, the Error bit in the Status Register asserted. Write and Format commands first set is set and a Track 000 error is posted in the Error the data request status signal DRO. This initiates Register. The implied seek step rate may be set up the Host data transfer. Completion of the data according to Table 8 by the Restore command. The transfer (512 or 516 bytes) sets the WD1015-03 restore step rate is established by the seek complete WAKEUP signal and Busy status. signal from the drive, i.e., each step pulse is issued The WD1015-03 examines the command, verifies only after seek complete is asserted by the drive from command parameters, and passes the command the previous step. If the DRIVE READY signal is to the WD1010A-05 for execution. de-asserted or WRITE FAULT is asserted, this com- The WD1010A-05 executes the command providing mand terminates with the error bit set in the status drive positioning, data transfer control, error register and the error register reports an aborted command. Winchester Board Products 6-129 Seek data errors are corrected after two consecutive mat- This command moves the RJW heads to the cylinder ching EGG syndromes are detected. If the error is an specified in the task file cylinder specified in the task uncorrectable error or an error is reported by the file cylinder high and low registers. The implied seek WD1010A-05, the command terminates. step rate is also set by this command. The lower order Interrupts occur as each sector is ready to be read four bits of the command are used to select one of by the system. No interrupt is generated at the end 16 available step rates. An interrupt is generated at of the command. If the DRIVE READY signal is de- the completion of the command. If the DRIVE READY asserted or WRITE FAULT asserted, this command signal is de-asserted or WRITE FAULT is asserted, terminates with the error bi't set in the status register this command is terminated with the error bit set in and the error register reports an aborted command. the status register and the error register reports an aborted command. Write Sector Read Sector A number of sectors (1 - 256) can be written to the A number of sectors (1 - 256) can be read from the selected drive. The sector count register in the task selected drive with this command. The sector count file determines the number of sectors to be transfer- register in the task file determines the number of sec- red. Multiple sector writes may cross head and tors to be transferred. Multiple sector reads may cross cylinder boundaries. head and cylinder boundaries. If the Write command is issued prior to initializing a If the Read command is issued prior to initializing a step rate, the default value of 7.5 msec is selected step rate, the default value of 7.5 msec is selected and a Recalibrate is performed prior to the Write. and a Recalibrate is performed prior to the Read. If the heads are not positioned at the cylinder If the RIW heads are not positioned over the target specified in the cylinder high and low registers, the track, the controller performs an implied seek to the controller performs an implied seek. The step rate proper cylinder. The stepping rate used during the used is determined by the step rate field of the most implied seek is the value specified during the previous recently executed Restore or Seek command. Seek or Restore command. The optional long bit (L set to 1 enables Write Long.) The optional long bit (L set to 1 enables Read Long.) informs the WD1002-WAH whether or not to append informs the WD1002-WAH whether or not to include the Host supplied EGG bytes. These four bytes are the four EGG bytes. These four EGG bytes are transferred as individual bytes, not words, as is data transferred as individual bytes, not words, as is the field information. The data request bit in the status data field information. The data request bit in the register must be valid before each byte transferred status register must be valid before each byte and at least 2 ,.,.sec will pass between each byte transferred and at least 2 ,.,.sec will pass between each transferred. byte transferred. The optional retry bit (Tset to 1 disables retries.) Data errors up to 5 bits in length will be automatically disables or enables retries. The WD1010A-05 corrected on normal Read commands. If an uncor- automatically retries for ten disk revolutions when the rectable error occurs, the data transfer will still take retry bit is enabled. The WD1010A-05 properly sets the place, a mUlti- sector read, however, will terminate error and status registers if the retries are unsuc- after the sector in error is read by the system. cessful. Disabling retries allows only two disk revolu- The optional retry bit (T set to 1 disables retries.) tions before the WD1010A-05 sets the error and status disables or enables retries. The WD1010A-05 registers. automatically retries for ten disk revolutions when the The WD1002-WAH interrupt is generated as the data retry bit is enabled. The WD1010A-05 properly sets the for each sector is required to be transferred into the error and status registers if the retries are unsuc- Sector Buffer (except the first sector) and at the end cessful. Disabling retries allows only two disk revolu- of the command. The first sector may be written to tions before the WD1010A-05 sets the error and status the buffer immediately after the command has been registers. sent, and the data request status is set. If the DRIVE For EGC errors, eight retries are made at reading READY signal is de-asserted or WRITE FAULT is before a soft uncorrectable error is reported. A retry asserted, this command terminates with the error bit results in the reissuing of the WD1010A-05 Read Sec- set in the status register and the error register reports tor command. The WD1010A-05 Read Sector com- an aborted command. mand attempts to verify the sector ten times, if T is set to 1, before returning an error. ECG correctable 6-130 Winchester Board Products Format Track The Diagnose command performs tests on the The track specified by the task file is formatted with WD1015-03's internal ROM and RAM, the WD1014-01, ID and data fields according to the interleave table WD1010A-05, and the Sector Buffer. If any component transferred to the buffer. The interleave table, consists fails, the appropriate error code is loaded into the error of two bytes per sector as follows: register. Error codes are as follows: 00 PHYSICAL SECTOR 1 01 No errors 00 PHYSICAL SECTOR 2 02 WD1010A-05 register access error 00 PHYSICAL SECTOR 3 03 Sector Buffer RAM data error 04 WD1014-01 register access error 05 WD1015-03 ROM checksum or RAM data error 00 PHYSICAL SECTOR 17 00,06-FF Not used. Undefined. The data transfer must be 512 bytes even though the In addition, the Diagnose command sets the write pre- table may be only 34 bytes. The sector count register comp task file register to 32. This causes write pre- must be loaded with the number of sectors per track compensation to begin at cylinder 128. (Since the before each Format Track command. The Format write pre-comp register holds the desired value Track command supports on error reporting. A bad divided by four.) The sector count register is reset to block may be specified by replacing a 00 table entry one while the cylinder high, cylinder low, and SDH with and 80 Hex. When switching between drives, a registers are all set to zero. Restore command must be executed prior to attemp- Set Parameters ting a format. Command completion will leave all data This command sets up the drive parameters regar- fields initialized to zeroes. The completion interrupt ding the maximum number of heads and sectors per is generated after each track has been formatted. track. The WD1002- WAH uses these two paramenters Read Verify when performing multiple sector operations. The SDH This command funtions similarly to a normal Read task file register specifies the drive affected. The sec- command except that data is not output to the Host. tor count and SDH registers must be set up before One of 256 sectors may be verified at one time. The this command is issued. An interrupt is set at the generated ECC bytes are compared with the recorded completion of the command_ ECC bytes for data verification. A single interrupt is This command must be issued before any multiple generated upon completion of the command or in the sector operations are undertaken. By setting the SDH event of an error. register for each of the two possible drives, this com- If the Read Verify command is issued prior to initializ- mand allows the WD1002-WAH to support two drives ing a step rate, the default value of 7.5 msec is with different characteristics. selected and a recalibrate is performed prior to the JUMPER OPTIONS Read Verify. The WD1002-WAH does not provide configuration For ECC errors, eight retries are made at reading switches for drive parameters, interrupt selection, or before a soft uncorrectable error is reported. drive selection. The attached drive or drives must be A retry results in the reissuing of the WD1010A-05 configured for drive select 1 or 2. The available jumper Read Sector command. The WD1010A·05 Read Sec- options are as follows: tor command attempts to verify the sector ten times, W 1: Primary and secondary 1/0 address jumper if T is set to 1, before returning an error. ECC correc- allows two controllers in one chassis. table data errors are corrected after two consecutive Jumpering positions 1-2 selects base matching ECC syndromes are detected. If the error primary address 1FO. Jumpering positions is an uncorrectable error or an error is reported by 2-3 selects base secondary address 170. the WD1010A-05, the command terminates. The W 2: LATCHED status register jumper. L = lat- WRITE FAULT and DRIVE READY inputs are check- ched. In this mode, the WD1002-WAH ed throughout the command's execution. diagnostics registers located at I/O address Diagnose BASE + 7, 3F6 Hex, and 3F7 Hex present The Diagnose command causes the Controller to per- latched status to the Host. This mode is form an onboard diagnostic and to report the result IBM PC AT compatible. Drive select line is in the Error Register. An interrupt is performed upon semi-static. completion of the command. Winchester Board Products 6-131 NON-LATCHED NL = non-latched. This has lines are activated only when the controller is centain timing implications for the disk drives. executing a command, or reading status at 3F6 DRIVE SELECT low to status valid is 355 nsec as or 3F7 Hex. measured at the drive interface. The drive select Figure 5 illustrates the location of W1 and W2. W2 J2 J1 c=J o Pl Wl FIGURE 5. WD1002-WAH JUMPER LOCATIONS 6-132 Winchester Board Products SPECIFICATIONS PHYSICAL Form factor IBM PC Length 20.6 centimeters (8.1 inches) Width 10.7 centimeters (4.2 inches) Height (maximum including 1.27 centimeters (0.05 inches) board, components, and leads) POWER AND ENVIRONMENT Power Current +5V ± 5% 1.5A +12V ± 10% 0.5mA ENVIRONMENTAL Temperature Operating OOC (32°F) to 55°C (131°F) Non-operating -40°C (-40°F) to 60°C (140°F) Humidity Operating 8% to 85% non-condensing Non-operati ng 5% to 95% non-condensing Shock and Vibration Shock 35G/20MS square wave maximum Vibration 1G/0-600 Hz, dwell not to exceed 30 seconds at any resonance Altitude Operating o to 3000 meters maximum (10,000 Ft) Non-operating o to 5000 meters maximum (15,000 Ft) RECORDING SPECIFICATIONS Encoding method MFM Data rate 5.0Mbs Sector format 512 bytes/sector 17 sectors/track (sectors number 01 through 17) track soft sectored format Interleave 2:1 Drives supported 2 maximum Heads supported 16 maximum Tracks supported 1024 maximum Hard error rate less than 1 per 10(E12) bits read Soft error rate less than 1 per 10(E10) bits read Seek error rate less than 1 per 10(E06) seeks READIWRITE CONTROL SPECIFICATIONS Maximum acquisition time 12.8 us @ 5.0Mbs Capture range > ± 2.2% Drive Margin ± 16 ns (with pre-comp off) Asymmetry tolerance 30nsec Winchester Board Products 6-133 ERROR CORRECTION SPECIFICATIONS Method Polynomial division Degree 32 Forward polynomial X32 + X28 + X26 + X19 + X17 +X10 +X06+X02 + 1 Reciprocal polynomial X32 + X30 + X26 + X22 + X15 + X13+ X06+ X04 + 1 Record length (r) 516 by 8 bits maximum Correction span (b) 5 bits Single burst detection span r = 516 by 8 bits with b = 0 32 bits with b == 5 19 bits Single burst detection span r = 516 by 8 bits with b = 0 > 3 bits with b = 5 3 bits Non-detection probability = 2.3 (E-10), r 516 by 8, b= 5 Miscorrection probability 1.57 (E-5), r = 516 by 8, b = 5 TIMING Timing diagrams are shown in Figures 6 through 8, and the timing values are given in Table 9. ·1 FAST I/O 16 SA1-SA9 SAO FIGURE 6. 110 CHANNEL TIMING 6-134 Winchester Board Products =E SoOO-SD15 DATA VALID C ...... (DATA REGISTER) 0 0 READ N DATA ;1E » :I: SOD-SOl DATA VALID FIGURE 7. DATA REGISTER READ DATA I/O TIMING SOOO-So15 DATA VALID (DATA REGISTER) WRITE DATA SOD-SOl DATA VALID FIGURE 8. DATA REGISTER WRITE DATA I/O TIMING TABLE 9. TIMING I/O DEFINITION 16 BIT 8 BIT SA1-SA9·> Fast I/O 16 93 nsec max N/A SAO .> Fast I/O 16 73 nsec max N/A SA1-SA9·> lOR/lOW 97 nsec min 97 nsec min SAO·> lOR/lOW 77 nsec min 77 nsec min lOR/lOW Pulse Width 167 nsec min 542 nsec min lOR/lOW·> Fast I/O 16 93 nsec max N/A lOR .> Data Valid 132 nsec max 498 nsec max Data Valid .> I/OW 71 nsec min 491 nsec min Data Hold from lOW 54 nsec min 46 nsec min Addr Hold from lOR/lOR 47 nsec min 47 nsec min lOR/lOW·> lOR/lOW 375 nsec min 375 nsec min Winchester Board Products 6-135 6-136 Winchester Board Products WESTERN DIGITAL C 0 R P 0 RAT o N WD1002-WA2 Winchester/Floppy Disk Controller FEATURES Control Device, WD2293-08 Floppy Clock and Support Device, and WD10C20 Winchester Data Separator and • AT COMPATIBLE WINCHESTER AND FLOPPY Write Precompensation Device. The WD1002·WA2 CONTROLLER also uses two 2K x 8 static RAM devices as a 16·bit • CONTROLS UP TO TWO WINCHESTER DRIVES wide Sector Buffer, an analog data separator with (ST506/ST412, 16 RIW HEADS EACH) dual VCOs for four floppy data rates, and an N EC • CONTROLS UP TO TWO FLOPPY DISK DRIVES /JPD765A Floppy Disk Controller. DOUBLE-SIDED The WD1014-01 provides error correction for the DOUBLE DENSITY (360kB, 250kbs, MFM) WD1002·WA2's Winchester control circuitry. The QUAD DENSITY (1.2MB, 500kbs, MFM) WD1014·01 generates four ECC bytes and appends FOUR DATA RATES (500kbs, 300kbs, 250kbs, these bytes to the sector data field. The maximum and 125kbs) error correction span is 5·bits. The WD1014·01 also SUPPORTS 360 AND 300 RPM SPINDLE selects the proper drive and head. SPEEDS The WD1015·03 is an 8 bit microprocessor that con· • BASED ON INDUSTRY STANDARD WD1010A·05 trois and coordinates the activity of the Winchester WINCHESTER DISK CONTROLLER disk drives, WD1010A·05, and WD1014·01. The WD1015·03 receives and sends commands or status • 8-BIT, BI·DIRECTIONAL BUS HOST INTERFACE information over the internal WD1002·WA2 FOR CONTROL AND STATUS TRANSFERS multiplexed address/data bus, HDO through HD7. • HIGH·SPEED, 16-BIT PIO DATA TRANSFERS Controlling firmware resides in the WD1015·03's 2K internal ROM. • 32·BIT ECC FOR WINCHESTER ERROR DETEC· TION AND CORRECTION, CRC FOR 10 FIELDS The WD1010A·05 controls all data transfers between the Sector Buffer and the drives. The WD1010A-05 per· • DIAGNOSTIC MODE FOR ERROR CHECKING forms multiple sector Read/Write, Implied and Buf· • WRITE PRECOMPENSATION LOGIC fered Seek commands. The WD1010A·05 also executes programmable format and error recovery • SINGLE CHIP WINCHESTER DATA SEPARATOR algorithms. All Winchester commands are executed (WD10C20) through the seven Task Files of the WD1010A-05 after • ALLOWS CONCURRENT OPERATION OF ONE limited intervention by the WD1015-03 and WD1014-01. FLOPPY AND ONE WINCHESTER DRIVE The Sector Buffer is two 2KB x 8 RAMS. Since the DESCRIPTION WD1010A·05, WD1014·01, and WD1015·03 are 8-bit The WD1002·WA2 is an AT bus compatible Win· devices, two RAMs are used because the Host pro- vides data in 16-bit words. An on board PAL selects chester/Floppy disk controller designed to interface the proper RAM. The Sector Buffer RAMs never con· up to two Winchester and up to two floppy disk drives. tain more than 512 bytes. The board permits the concurrent operation of one floppy and one fixed disk drive. The Winchester drive The WD10C20 performs phase·locked loop data syn- interface is compatible to the Seagate Technology chronization on read data from the Winchester drives. ST506 standard interface for 5Mbs hard disk drives. This device also conditions write data to be recorded The floppy disk drive interface supports 1.2MB, 360 on the disk. The WD10C20 includes both frequency RPM drives as well as 360kB (SA450) drives. The and phase detection. Zero phase error start·up cir- WD1002·WA2 includes all necessary receivers and cuitry eliminates problems due to asymmetry. The drivers to allow direct connection to the drive(s). WD10C20 requires no adjustments and contains all data separation circuitry in a single device. ARCHITECTURE The NEC /JPD765A is a floppy disk controller. Host The WD1002·WA2 is based on the WD1014·01 Error control over the NEC /JPD765A is complete. No on· Detection/Support Logic device, WD1015·03 Buffer board processor controls the floppy controller. Floppy Manager Control Processor, WD1010A-05 Winchester transfers are made in DMA mode. All floppy com· Disk Controller, WD2293·07 Floppy Data Separator mands are supported. Winchester Board Products 6-137 NOTE Refer to the NEC Microcomputer Division Catalog for The analog data separator for the floppy disk con· more detailed information on this device. Where dif· troller consists of a phase detector, amplifier gain ferences exist, the values and descriptions in this data control, a bandpass filter and dual VCOs. Detection sheet take precedence over the NEC documentation. of phase error between read data and VCO input is For example, the sector size is set at 512 bytes per provided by the phase detector. Amplifier gain con· sector by the AT BIOS even though the NEC controller trol throttles the speed of the VCO i.e., increases the allows programmable sector sizes. VCO speed if VCO lags the data and decreases the The WD2293-07 enables the analog floppy data VCO speed if VCO leads the data. The bandpass filter separator to switch to one of four possible data rates. adjusts the bandwidth of the data's frequency. Dual System Data Bits 0 and 1 select the floppy data VCOs are used for different data rates. transfer rate. The WD2293-07 also controls the data Figure 1 is a functional block diagram of the separator phase locked loop (PLL) and voltage con· WD1002-WA2 board. trolled oscillator (VCO). The WD2293-0B controls timing of the data rate and floppy DMA requests. Write precompensation is also provided by the WD2293-0B. Write precompensation time for floppy data transfers is 125 nsec. COIITROl BUS FIGURE 1. WD1002·WA2 BLOCK DIAGRAM 6-138 Winchester Board Products INTERFACE CONNECTORS The WD1002-WA2 has seven interface connectors: The pin descriptions of the connectors are given in Tables 1 through 5. P1 - 62-pin card edge connector Component side - Pins A1 through A31 HOST INTERFACE CONNECTORS Conductor side - Pins B1 through B31 The WD1002-WA2 Controller interfaces with the 16-bit, P1' - 36-pin card edge connector bi-directional data bus by means of the two card edge Component side - Pins C1 through C18 connectors P1 and P1'. The pin descriptions for P1 Conductor side - Pins D1 through D18 are given in Table 1 and P1', in Table 2. J 5 - Winchester control cable connector J 4 - Winchester drive 1 data cable connector J 3 - Winchester drive 2 data cable connector J 1 - Floppy control and data cable connector (daisy-chai ned) J 6 - LED Winchester drive connector TABLE 1. HOST INTERFACE CONNECTOR (P1) PIN DESCRIPTION PIN NUMBER MNEMONIC SIGNAL NAME 110 FUNCTION A1,A10, NC A12 thru A21 A2 SD7 DATA BUS 1/0 Bi-directional, lower 8-bit data bus for data and thru thru BITS 7 status communication between the controller and A9 SDO THRU 0 the Host. All AEN ADDRESS I When AEN is asserted, the DMA controller ENABLE assumes control of the Host address bus, control bus, and data bus. 1/0 port addresses are no longer generated for 1/0 port access. In this mode, the 1/0 port is selected by asserting DACK2. A22 A9 ADDRESS BUS I A 10-bit address bus for 1/0 port addressing by the thru thru BITS 9 thru Host. A31 AO 0 B1,B10 GND GROUND B31 B2 RST RESET I When asserted, RST forces the WD1002-WA2 board into the initial power-up state. B3,B29 +5VDC +5VDC +5VDC B6 DRQ2 DMA REQUEST DRQ2 is asserted whenever data are available for CHANNEL 2 transfer to or from the WD1002-WA2 under DMA control. Applies to floppy controller only. B7 -12VDC -12VDC -12VDC B9 + 12VDC + 12VDC + 12VDC Winchester Board Products 6-:139 TABLE 1. HOST INTERFACE CONNECTOR (P1) PIN DESCRIPTION (CONT'D) PIN NUMBER MNEMONIC SIGNAL NAME 1/0 FUNCTION 84,85, NC 88,811, 812 813 lOW 1/0 WRITE I lOW is asserted when the DMA Controller or Host writes a data, status, or control byte to the WD1002-WA2. - 814 lOR 1/0 READ I lOR is asserted when the DMA controller or Host reads a data from the WD1002-WA2. 815 thru NC 821 822 IRQ6 INTERRUPT 0 IRQ6 is asserted to interrupt the Host upon com- REQUEST 6 pletion of a command. Applies to floppy controller only. 823,B24 825 NC 826 DACK2 DMA 0 DACK2 is asserted in response to DMA request ACKNOWLEDGE channel 2. CHANNEL 2 827 TIC TERMINAL I Indicates sending of the last byte in a floppy disk COUNT transfer. 828 ALE ADDRESS I Indicates board address is available. LATCH ENABLE 829 +5V +5V 830 NC 6-140 Winchester Board Products TABLE 2. HOST INTERFACE CONNECTOR (P1') PIN DESCRIPTION PIN NUMBER MNEMONIC SIGNAL NAME 1/0 FUNCTION C1 NC thru C10 C11 S08 OATA BIT 8 1/0 Bi-directional, upper 8-bit data bus for data transfers thru thru thru only between the controller and the Host. C18 S015 OATA BIT 15 01 NC 02 1/0 CS 1/0 16-BIT I 1/0 CS 16 signals the system board that the cur- 16 CHIP rent data transfer is a 1 wait-state, 16-bit 1/0 cycle, SELECT derived from an address decode. 03 NC thru 06 07 IRQ14 INTERRUPT IRQ14 signals the Host that the Winchester con- REQUEST 14 troller needs attention. IRQ is generated when the IRQ line goes from low to high. 08 NC thru 015,017 016 +5VOC +5VOC +5VOC 018 GNO GROUNO WINCHESTER DRIVE CONTROL CONNECTOR J5 The Winchester drive control cable connector is a 34-pin printed circuit card edge connector daisy- chained to each drive in the system. To terminate the control signals on the W01002-WA2 properly, the last drive on the daisy chain must have a 220/330 ohm resistor pack installed. Pin descriptions and control signals for the drive control connector J5 are given in Table 3. Winchester Board Products 6-141 TABLE 3. WINCHESTER DRIVE CONTROL CONNECTOR (J5) PIN DESCRIPTION SIGNAL 1/0 FUNCTION GND PIN MNEMONIC NAME 1 2 HS3/RWC HEAD 0 The WD1002-WA2 uses HS3 to select one of 16 SELECT31 RIW heads. RWC is not used by drives with REDUCE 16 head drives. RWC is used by drives with 8 WRITE RIW heads. RWC reduces the write current on CURRENT the inner cylinders. This lessens the bit shift caused by greater bit density on these cylinders. 3 4 HS2 HEAD 0 HS2 is one of the head select signals decoded SELECT2 by the drive to select one of eight (or 16) RIW heads. 5 6 WG WRITE 0 WG is asserted when valid data is to be writ- GATE ten on disk. The WD1002-WA2 de-asserts WG when WF is detected. Special circuitry is in- cluded to ensure the system output is free of glitches during power-on. - 7 8 SC SEEK I SC informs the WD1002-WA2 that the head of COMPLETE a selected drive has reached the desired cylinder and has stabilized. 9 10 TKOOO TRACKOOO TKOOO is asserted when the RIW heads are positioned over the outermost cylinder. 11 12 WF WRITE WF is asserted by the selected drive when a FAULT write error occurs. While this signal is being asserted, the command in progress aborts and no other disk command can be executed. 13 14 HSO HEAD 0 HSO is one of the head select signals decoded SELECTO by the drive to select one of eight (or 16) RIW heads. 15* 16 NC 17 18 HS1 HEAD 0 HS1 is one of the head select signals decoded SELECT1 by the drive to select one of eight (or 16) RIW heads. 19 20 INDEX INDEX I INDEX indicates the start of a track. Used as PULSE a synchronization point during formatting and as a time-out mechanism for retries. Pulses once each disk revolution. 21 22 DRDY DRIVE READY I DRDY informs the controller that the drive motor is up to speed. 23 24 STEP STEP PULSE 0 STEP, with DIRIN. positions the heads to the desired cylinder. STEP pulses once for each step. DIRIN determines the step direction. 25 26 DSO DRIVE 0 DSO is used to select drive O. SELECTO 27 28 DS1 DRIVE 0 DS1 is used to select drive 1. SELECT1 29, GND 31 30, NC 32 33 34 DIRIN DIRECTION 0 DIRIN determines the direction in which the IN RIW heads move when the step line is pulsed. De-asserted = out; asserted = in. *Pin 15 is reserved to polarize the connector. 6-142 Winchester Board Products WINCHESTER DATA CONNECTORS J4, J3 TABLE 4. The data lines between the Controller and the two WINCHESTER DRIVE DATA CONNECTORS (J3, J4) Winchester disk drives are connected to J4 and J3. PIN DESCRIPTION As the data lines are not identical, J4 must be con- nected to the cable from Winchester drive 1 and J3, SIGNAL to the cable from Winchester drive 2. Each drive is GND PIN 110 SIGNAL NAME radially connected with a maximum cable length of 1 NC 3 meters (10 feet). Each data connector is a 20-pin 2 GND vertical header on 0.25 mm (0.01 inch) center. Data 3 NC connector pin descriptions and signals are listed in 4 GND Table 4. 5 NC 6 GND 7 NC 8* 9 NC 10 NC 11 GND 12 GND 13 0 + MFMD Write Data 14 0 -MFMD Write Data 15 GND 16 GND 17 I + MFMRD Read Data 18 I -MFMRD Read Data 19 GND 20 GND *Pin 8 is reserved to polarize the connector Winchester Board Products 6-143 TABLE 5. FLOPPY DRIVE CONTROL AND DATA CONNECTOR (J1) PIN DESCRIPTION SIG SIG SIGNAL GND PIN MNEMONIC SIGNAL NAME 1/0 FUNCTION 1 2 WCCNTRL- WRITE- 0 Inverted Form of SOO for read data. Selection CURRENT- of 300kbs data rate asserts WCCNTRL. CONTROL- 1 4 NC 5 Pin 5 is reserved to polarize the connector. 6 NC 7 8 INDEX· INDEX· I Assertion indicates start of a track 9 10 MOTEN1· MOTOR- 0 MOTEN1- (MOTEN2-) turns on the floppy disk ENABLE1· drive spindle. 15 16 MOTEN2- MOTOR- 0 MOTEN1· (MOTEN2-) and the appropriate drive ENABLE2· select signal must be asserted at the same time. 11 12 DS2- DRIVE· 0 Assertion selects drive 2. MOTEN2· must be SELECT2- asserted at the same time as OS2-. 13 14 DS1 DRIVE- 0 Assertion selects drive 1. MOTEN1- must be SELECT1· asserted at the same time as DS1·. 17 18 DIR DIRECTION 0 Assertion moves the selected read/write head inward. De-assertion moves the selected read/rite head outward. 19 20 STEp· STEP- 0 Assertion moves the read/write head one track at PULSE- a time. The head moves in direction determined by the DIR- signal. 21 22 WRT DATA- WRITE· 0 MFM data. DATA- 23 24 WRT EN· WRITE· 0 Assertion enables the writing of data on an DATA· unprotected diskette. 25 26 - - TRKO TRACKO I Assertion indicates that the read/write head is over the outermost track. 27 28 WRT PROT WRITE PROTECT I Assertion indicates a write protected diskette. 29 30 READ DATA READ DATA I M FM Read Data. 31 32 HS1 HEAD 0 Assertion selects head 1. 33 34 DISKETTE DISKETTE I Assertion indicates drive is not ready i.e., drive CHG CHANGE door open, no diskette in drive, or improper asser· tion of motor enable or drive select Signals. 6-144 Winchester Board Products WINCHESTER FORMAT The format used for Winchester disk track formatting is shown in Figure 2. The ID and data fields on any disk are initialized by the Format command. NOTES ID FIELD 1. GAP 1 and 3 length equals 22 bytes A1 = A1 Hex with OA Hex clock 2. Decision to assert RG is made two bytes after the IDENT = Bits 1,0 = Cylinder High start of DRUN FE = 0·255 Cylinders 3. RG is de·asserted: FF = 256·511 Cylinders • If DRUN does not last until A1 FC = 512·767 Cylinders • When any part of the ID does not match the FD = 768-1023 Cylinders one that is expected HEAD = Bits 0,1,2 = Head Number • After CRC, if correct ID has been read. Bits 3,4 = 0 4. Write splice recorded on disk by asserting WG. Bits 5,6 = Sector Size 5. RG is suppressed until after write splice. Bit 7 = Bad Block Mark 6. Not a proper A 1 or FB, set DAM error. Sec # = Logical Sector Number 7. Sector size as stated in ID field, plus four for ECC. DATA FIELD A1 = A1 Hex with 01 Hex clock FB = Data Address Mark: Normal Clock USER = Data Field 512 Bytes FIGURE 2. WINCHESTER DISK FORMAT REPEATED FOR EACH SECTOR I~ ~ I 0 C 10 FIELD L H S C C DATA F I E L D - 1 3 BYTES GAP3 I () GAP' 41E I GAP' 4E 14 BYTES '00' A 1 E Y 0 E A E C R C R C 3 BYTES 12 BYTES '00' '00' A 1 F 8 USER DATA 4ECC '00' 4E N L W 1 1 0 # 1 2 T F II I I I , III I I !I~I--------------------~----~L WRITE GATE , --1.J, I I I I I I I I DRUN~ 1 ///I//$/!//////M 0 4 V#I//III///!1~ READ GATE ~ 2 6 ~ __________ 7....1_ _ __ Winchester Board Products 6':'145 REGISTER ADDRESS MAP The WD1002-WA2 contains seven Read/Write task file task file registers and bit assignments. Figure 4 sum- registers in the WD1010A-05, a 16-bit Data Register, marizes the other I/O registers and bit assignments Digital Output and Input Registers, Alternate Fixed for the WD1002-WA2. Bit assignments are with Disk Status Register and fixed Disk Register. The respect to the Host lower byte bus terms, SD7 through WD2293-07 and WD2293-08 contain a 2-bit Floppy SDO. The fixed size/drive/head (SDH) and status Control Register in each device. Main Floppy Status registers in the WD1010A-05 descriptions Slightly dif- and Data Registers are in the NEC mPD765A. These fer from the standard descriptions in the WD1010-05 registers are mapped into either a primary or secon- data sheet. Please note that the SDH register is set dary I/O address. All Winchester data, control, and for the ECC option mode and 512 bytes per track. The status information pass between the task files or Data SDH register also limits the number of drives to two Register and the Host. All floppy data, control, and and the number of heads to 16. Bit 2 of the status information pass between the floppy registers. WD1010A-05 status register is designated as the Cor- All Winchester data transfers between the Host and rected Data bit. Assertion (setting to 1) of this bit Data Register are word transfers except ECC bytes indicates the sector read from the drive resulted in in Read Longs and Write Longs. These ECC'bytes are a correctable ECC error. Soft errors do not end mUlti- transferred in byte mode. Control and status bytes ple sector transfers. Bit 1 of the WD1010A-05 status are also transferred between the Host in byte mode. register is designated as the Index bit. Assertion of The task file registers are multiplexed with 10R- and this bit occurs each revolution of the currently 10W- to give 14 possible ports. Five of the eight task selected drive. Refer to the WD1 01 0-05 data sheet for file registers are bi-directional. Two of the task file a complete description of all other WD1010A-05 bit registers have different definitions for read and write assignments. Table 7 describes the bit assignments operation. Jumpers select the primary and secondary for the other WD1002-WA2 control and status address. This allows two controllers in the same Host registers. system. However, secondary ports on the NOTE WD1002-WA2 are NOT supported by any version of DOS. Where differences exist, the values and descriptions for Figure 3 take precedence over the WD101().{)5 data Table 6 summarizes the WD1002-WA2 I/O port sheet. address map. Figure 3 summarizes the WD1010A-05 6-146 Winchester Board Products TABLE 6. WD1002·WA2 REGISTER ADDRESS MAP 110 ADDRESS READ WRITE PRIMARY SECONDARY DATA REGISTER 1FO 170 DATA REGISTER DATA REGISTER (16 bits) (16 bits) WD1 01 OA-QS TASK REGISTERS 1F1 171 ERROR REGISTER WRITE PRE-COMP 1F2 172 SECTOR COUNT SECTOR COUNT 1F3 173 SECTOR NUMBER SECTOR NUMBER 1F4 174 CYLINDER NUMBER CYLINDER NUMBER (low byte) (low byte) 1F5 175 CYLINDER NUMBER CYLINDER NUMBER (high byte) (high byte) 1F6 176 SDH REGISTER SDH REGISTER 1F7 177 STATUS REGISTER COMMAND REGISTER CONTROL AND STATUS REGISTERS 3F2 372 DIGITAL OUTPUT REGISTER 3F4 374 MAIN FLOPPY MAIN FLOPPY STATUS STATUS REGISTER REGISTER (N EC u PD765A) N EC u PD765A) 3F5 375 FLOPPY DATA FLOPPY DATA REGISTER REGISTER NEC u765A) (NEC u765A) 3F6 376 ALTERNATE FIXED FIXED DISK STATUS REGISTER 3F7 377 DIGITAL INPUT FLOPPY CONTROL REGISTER REGISTER (WD2293-07 and -08) NOTE All addresses in Table 6 are in Hex. A Read or Write to I/O address 1FO Hex (170 Hex) is a Read or Write for the Sector Buffer. Therefore, the hardware for the 16-bit Data Register is the Sector Buffer. Winchester Board Products 6-147 REGISTER 7 6 5 4 3 2 0 =E WRITE PRE-COMP CYLINDER NUMBER DIVIDED BY 4 C ..... ERROR BB TK DM ECC 0 ID 0 AC 0 SECTOR COUNT NUMBER OF SECTORS 0 I'\) SECTOR NUMBER SECTOR NUMBER ;e ):II CYLINDER NO. CYLINDER NO. 0 0 CYLINDER NUMBER (LOW BYTE) 0 0 0 0 CYL. NO.MSB I'\) SDH 1 0 1 DS HS3 HS2 HS1 HSO COMMAND COMMAND STATUS BSY RDY WF SC DRQ CRD IDX ERR FIGURE 3. WD1010A-05 TASK FILE REGISTER BIT ASSIGNMENT REGISTER 7 6 5 4 3 2 1 0 DIGITAL OUTPUT X X MOEN2 MOEN1 FDMAEN FRST X FDSEL MAIN FLOPPY STATUS RQM DIO EXM CB X X D1B DOB ALTERNATE STATUS BSY RDY WF SC DRQ CRD IDX ERR FIXED DISK 0 0 0 0 HS3EN RST IEN- 0 DIGITAL INPUT DCHG WTG- HS3-/RWC- HS2- HS1- HSO- DS2- DS1- FLOPPY CONTROL TWO BIT REGISTERS IN WD2293-07 AND -08 SDB1 SDBO FIGURE 4. WD1002-WA2 CONTROL AND STATUS REGISTER TABLE 7. WD1002-WA2 CONTROL'AND STATUS REGISTER BIT DEFINITIONS REGISTER BIT MNEMONIC BIT NAME DIGITAL OUTPUT X Reserved MOEN2 MOTOR ENABLE 2 and MOTOR ENABLE1. Controls MOEN1 floppy drive motors. Setting this bit to 0 turns off the associated drive and drive selection can not occur. FDMAEN FLOPPY DISK INTERRUPT and DMA ENABLE. Setting this bit to 1 gates floppy disk DMA and interrupt requests to the I/O interface. Setting to 0 disables the DMA and interrupt request drivers. FRST Setting to 0 resets floppy controller. Floppy reset time is 3.5 usec. Set to 1 by Host software enables the floppy controller. FDSEL FLOPPY DISK SELECT. Set to 0 selects drive A. Set to 1 selects drive B. Appropriate MOTOR ENABLE bit must be set. MAIN FLOPPY STATUS X Reserved RQM REQUEST FOR MASTER. Set to 1 to indicate that the floppy data register is ready for a data transfer. Used with DIO bit. DIO DATA INPUT/OUTPUT. Controls data transfer direction. Set to 0 to indicate data transfer is from Host to floppy controller. Set to 1 to indicate data transfer is to Host from floppy controller. EXM EXECUTION MODE. Set to 1 only during the execution phase in non DMA mode. CB Set to 1 to indicate a Read or Write command in process. D1B Set to 1 when floppy drive B is in Seek mode. DOB Set to 1 when floppy drive A is in Seek mode. 6-148 Winchester Board Products TABLE 7 WD1002-WA2 CONTROL AND STATUS REGISTER BIT DEFINITIONS REGISTER BIT MNEMONIC BIT NAME ALTERNATE FIXED BSY Controller Busy Flag Ready from selected drive Write DISK STATUS RDY Fault from selected drive. WF Seek Complete from selected drive. SC Data Transfer Request Flag Corrected Data Flag from DRO WD1015-03 Index pulse from selected drive. CRD Error Flag from WD1015-03 Index pulse from selected IDX drive. ERR Error Flag from WD1015-03 Set to 1: Enables HS3-. FIXED DISK HS3EN Set to 0: Enables RWC-. RST Reset. Program Controlled reset to board. This bit main- tains the WD1002-WA2 logic reset as long as this is on. This bit must be on for a minimum of 5.0usec. After the bit is on for the minimum time, the bit must be turned off to complete reset function. IEN- Interrupt Enable. Enables or disables IR014. This bit does not clear the interrupt level in the disabled state. A pending interrupt would occur when the interrupt is enabled again. A system master reset clears the inter- rupt but leaves the interrupt enabled. DIGITAL INPUT DCHG DISKETTE CHANGE. Set to 1 if no diskette is in the drive, drive door is open, or the drive is not ready. WTG- Write Gate on HS3- (RWC-) through HSO- Drive head select or RWC- (bit 5) for drives using RWC- DS2-, DS1- Drive select FLOPPY CONTROL SDB1, SDBO The WD2293-07 and WD2293-08 each contain a two bit Floppy Control register. These registers control the data transfer rate between the controller and drive and the data encoding format. The Floppy control registers bit definitions are as follows: SDB1 SDBO 00 500kbs MFM* o 1 300kbs M FM 1 0 250kbs M FM 1 1 125kbs FM** * Default data rate after Reset. ** International exchange standard for 5 1/4 inch floppy diskettes. WINCHESTER COMMANDS The WD1002-WA2 Winchester command set contains Diagnose, and Set Parameters) are executed through eight commands. Five commands (Restore, Seek, the WD1015-03. Read Sector, Write Sector, and Format Track) are Table 8 describes the eight WD1002-WA2 Winchester executed through the WD1010A-05 commmand commands and their bit assignments. The next sec- register. (A sixth WD1010A-05 command, Scan ID is tion describes a typical Winchester command not directly available to the Host. Scan ID may be sequence. Each Winchester command is described executed by the WD1015-03 transparently to the Host.) following the command sequence. The three remaining commands (Read Verify, Winchester Board Products 6-149 TABLE 8. COMMANDS AND COMMAND CODES COMMAND BITS Restore 0 0 0 1 R3 R2 R1 RO Seek 0 1 1 1 R3 R2 R1 RO Read Sector 0 0 1 0 0 0 L T Write Sector 0 0 1 1 0 0 L T Format Track 0 1 0 1 0 0 0 0 Read Verify 0 1 0 0 0 0 0 T Diagnose 1 0 0 1 0 0 0 0 Set Parameters 1 0 0 1 0 0 0 1 LEGEND R3 through RO Step rate selection bits. Refer to The stepping rates for the commands that perform Table 8 for more detailed information. implied seeks are set in the least significant nibble of the last executed RESTORE or SEEK command. L Read or Write Long bit. Set to 1 Table 9 describes the Winchester step rates. enables Read or Write Long mode. T Retry bit. Set to 1 disables retries. TABLE 9. STEPPING RATE STEPPING STEPPING R3 R2 R1 RO RATE R3 R2 R1 RO RATE 0 0 0 0 3Susec 1 0 0 0 4.0msec 0 0 0 1 O.Smsec 1 0 0 1 4.Smsec 0 0 1 0 1.0msec 1 0 1 0 S.Omsec 0 0 1 1 1.Smsec 1 0 1 1 S.Smsec 0 1 0 0 2.0msec 1 1 0 0 6.Omsec 0 1 0 1 2.Smsec 1 1 0 1 6.Smsec 0 1 1 0 3.0msec 1 1 1 0 7.0msec 0 1 1 1 3.Smsec 1 1 1 1 7.Smsec Note: After Diagnose or reset, stepping rate defaults to 7.S msec WINCHESTER COMMAND SEQUENCE asserted. Write and Format commands first set the DESCRIPTION data request status signal DRO. This initiates the Host data transfer. Completion of the data transfer This section secribes a typical Winchester command (S12 or S16 bytes) sets the WD1015-03 WAKEUP Signal execution sequence. The description illustrates the and Busy status. relationship between Host and the major components of the WD1002-WA2 during command execution. The WD1015-03 examines the command, verifies com- mand parameters, and passes the command to the In the idle state: the WD1010A-05 drive control signals WD1010A-OS for execution. are off. The controller status indicates ready. Drive status is valid. Controller interrupt is enabled but not The WD1010A-OS executes the command providing asserted. The WD1015-03 is idle and is monitoring the drive positioning, data transfer control, error monitor· WAKEUP signal input. ing and completion status. The WD10C20 provides The Host outputs the command parameters to the drive read and write data control for commands that WD1010A-OS task file, the operation command (Seek, require data transfers. Read or Write) and the command attributes (Long On command completion, the WD1010A-OS interrupts mode, retry control, etc.). For write operations, the the WD101S-03. The WD101S-03 examines the com- Host also outputs the sector or format data. mand, status etc. for any additional requirements. If The command byte is intercepted by the WD1014-01 completion is indicated, the WD101S-03 sets the con- and is held for later interpretation by the WD101S-03. troller status to indicate ready and interrupts the Host. A Read command output sets the module Wakeup The WD1002·WA2 returns to the idle state and the latch that causes the controller status to indicate Host may examine drive and controller status, read Busy and the WD101S-03 WAKEUP signal to be input data, etc. as required to complete the operation. 6-150 Winchester Board Products WINCHESTER COMMAND DESCRIPTION automatically retries for ten disk revolutions when the retry bit is enabled. The WD1010A-05 properly sets the RESTORE error and status registers if the retries are unsuc- The Restore command is used to move the R / W cessful. Disabling retries allows only two disk revolu- heads to the Track 000 position. The controller issues tions for automatic retries before the WD1010A-05 step pulses to the drive until the Track 000 indicator sets the error and status registers. from the drive is asserted. If Track 000 is not asserted within 1023 steps, the Error Error bit in the Status For ECC errors, eight Read retries are made at reading Register is set and a Track 000 error is posted in the before a soft uncorrectable error is reported. A Read Error Register. The implied seek step rate may be set retry results in the reissuing of the WD1010A-05 Read up according to Table 8 by the Restore command. The Sector command. The WD1010A-05 Read Sector com- restore step rate is established by the seek complete mand attempts to verify the sector ten times, if T is signal from the drive, i.e., each step pulse is issued set to 1 before returning an error. ECC correctable only after seek complete is asserted by the drive from data err~rs are corrected after two consecutive mat- the previous step. If the DRIVE READY- signal is de- ching ECC syndromes are detected. If the error is an asserted or WRITE FAULT- is asserted, this command uncorrectable error or an error is reported by the terminates with the error bit set in the status register WD1010A-05, the command terminates. and the error register reports an aborted com~and. Interrupts occur as each sector is ready to be read SEEK by the system. No interrupt is generated at the end of the command. If the DRIVE READY- signal is de- This command moves the R / W heads to the cylinder asserted or WRITE FAULT- asserted, this command specified in the task file cylinder high and low terminates with the error bit set in the status register registers. The implied seek step rate is also set by and the error register reports an aborted command. this command. The lower order four bits of the com- mand are used to select one of 16 available step rates. WRITE SECTOR An interrupt is generated at the completion of the A number of sectors (1 - 256) can be written to the command. If the DRIVE READY- signal is de-asserted selected drive. The sector count register in the task or WRITE FAULT- is asserted, this command is ter- file determines the number of sectors to be transfer- minated with the error bit set in the status register red. Multiple sector writes may cross head and and the error register reports an aborted command. cylinder boundaries. READ SECTOR If the Write command is issued prior to initializing a A number of sectors (1 - 256) can be read from the step rate, the default value of 7.5msec is selected and selected drive with this command. The sector count a Recalibrate is performed prior to the Write. register in the task file determines the number of sec- If the heads are not positioned at the cylinder tors to be transferred. Multiple sector reads may cross head and cylinder boundaries. specified in the cylinder high and low registers, the controller performs an implied seek. The step rate If the Read command is issued prior to initializing a used is determined by the step rate field of the most step rate, the default value of 7.5msec is selected and recently executed Restore or Seek command. a Recalibrate is performed prior to the Read. The optional long bit (L set to 1 enables Write Long.) If the R / W heads are not positioned over the target informs the WD1002-WA2 whether or not to append track, the controller performs an implied seek to the the Host supplied ECC bytes. These four bytes are proper cylinder. The stepping rate used during the transferred as individual bytes, not words, as is data implied seek is the value specified during the previous field information. The data request bit in the status Seek or Restore command. register must be valid before each byte transferred The optional long bit (L set to 1 enables Read Long.) and at least 2usec will pass between each byte informs the WD1002-WA2 whether or not to include transferred. the four ECC bytes. These four ECC bytes are The optional retry bit (T set to 1 desables retries.) transferred as individual bytes, not words, as is the disables or enables retries. The WD1010A-05 performs data field information. The data request bit in the up to ten automatic retries when the retry bit is status register must be valid before each byte enabled. The WD1010A-05 properly sets the error and transferred and at least 2usec will pass between each status registers if the retries are unsuccessful. Disabl- byte transferred. ing retries allows only two automatic retries before Data errors up to 5 bits in length will be automatically the WD1010A-05 sets the error and status registers. corrected on normal Read commands. If an uncor- rectable error occurs, the data transfer will still take The WD1002-WA2 interrupt is generated as the data place, a multi-sector read, however, will terminate for each sector is required to be transferred into the after the sector in error is read by the system. Sector Buffer (except the first sector) and at the end of the command. The first sector may be written to The optional retry bit (T set to 1 disables retries.) the buffer immediately after the command has been disables or enables retries. The WD1010A-05 sent, and the data request status is set. If DRIVE Winchester Board Products 6-151 READY- signal is de-asserted or WRITE FAULT- is DIAGNOSE asserted, this command terminates with the error bit The Diagnose command causes the Controller to per- set in the status register and the error register reports form an on-board diagnostic and to report the result an aborted command. in the Error Register. An interrupt is performed upon FORMAT TRACK completion of the command. The track specified by the task file is formatted with The Diagnose command performs tests on the 10 and data fields according to the interleave table WD1015-03's internal ROM and RAM, the WD1014-05, transferred to the buffer. The interleave table, consists and the Sector Buffer. If any component fails, the of two bytes per sector as follows: appropriate error code is loaded into the error register. 00 PHYSICAL SECTOR 1 Error codes are as follows: 00 PHYSICAL SECTOR 2 01 No errors 00 PHYSICAL SECTOR 3 02 WD1010A-05 register access error 03 Sector Buffer RAM data error 04 WD1014-01 register access error 05 WD1015-03 ROM checksum or RAM data 00 PHYSICAL SECTOR 17 error The data transfer must be 512 bytes even though the 00, 06-FF Not used. Undefined. table may be only 34 bytes. The sector count register In addition, the Diagnose command sets the write pre- must be loaded with the number of sectors per track comp task file register to 32. This causes write pre- before each Format Track command. The Format compensation to begin at cylinder 128. (Since the Track sommand supports no error reporting. A bad write pre-comp register holds the desired value block may be specified by replacing a 00 table entry divided by four.) The sector count register is reset to with an 80 hex. When switching between drives, a one while the cylinder high, cylinder low, and SOH Restore command must be executed prior to attemp- registers are all set to zero. ting a format. Command completion will leave all data SET PARAMETERS fields initialized to zeroes. The completion interrupt is generated after each track has been formatted. This command sets up the drive parameters regar- ding the maximum number of heads and sectors per READ VERIFY track. The WD1002-WA2 uses these two parameters This command functions similarly to a normal Read when performing multiple sector operations. The SOH command except that data is not output to the Host. task file register specifies the drive affected. The sec- One to 256 sectors may be verfied at one time. The tor count and SOH registers must be set up before generated ECC bytes are compared with the recorded this command is issued. An interrupt is set at the ECC bytes for data verification. A single interrupt is completion of the command. generated upon completion of the command or in the This command must be issued before any multiple event of an error. sector operations are undertaken. By setting the SOH If the Read Verify command is issued prior to initializ- register for each of the two possible drives, this com- ing a step rate, the default value of 7.5msec is mand allows the WD1002-WA2 to support two drives selected and a recalibrate is performed prior to the with different characteristics. Read Verify. FLOPPY COMMANDS AND FLOPPY COMMAND For ECC errors, eight Read retries are made at reading SEQUENCE before a soft uncorrectable error is reported. A Read The WD1002-WA2 supports all NEC uPD765A com- retry results in the reissuing of the WD1010A-05 Read mands. Table 10 lists the NEC uPD765A commands Sector command. The WD1010A-05 Read Sector com- and command codes. Refer to the NEC Microcom- mand attempts to verify the sector ten times, if T is puter Division Catalog for further descriptions of the set to 1, before returning an error. ECC correctable floppy disk controller commands, command protocols data errors are corrected after two consecutive mat- and command sequence. ching ECC syndromes are detected. If the error is an uncorrectable error or an error is reported by the WD1010A-05, the command terminates. The WRITE FAULT- and DRIVE READY- inputs are checked throughout the command's execution. 6-152 Winchester Board Products TABLE 10. COMMAND CODE DESCRIPTION COMMAND COMMAND CODES SDB7 SDB6 SOBS SDB4 SDB3 SDB2 SDB1 SDBO READ DATA· MT MF SK 0 0 1 1 0 READ MT MF SK 0 1 1 0 0 DELETED DATA· WRITE DATA· MT MF 0 0 0 1 0 1 WRITE MT MF 0 0 1 0 0 1 DELETED DATA· READ TRACK· 0 MF SK 0 0 0 1 0 READ ID· 0 MF 0 0 1 0 1 0 FORMAT 0 MF 0 0 1 1 0 1 TRACK· SCAN EQUAL· MT MF SK 1 0 0 0 1 SCAN LOW MT MF SK 1 1 0 0 1 OR EQUAL· SCAN HIGH MT MF SK 1 1 1 0 1 OR EQUAL· SENSE 0 0 0 0 0 1 0 0 DRIVE STATUS· SEEK· 0 0 0 0 1 1 1 1 RECALIBRATE·· 0 0 0 0 0 1 1 1 SENSE 0 0 0 0 1 0 0 0 INTERRUPT STATUS SPECIFY 0 0 0 0 0 0 1 1 SRT HUT HLT ND INVALID Invalid command codes: No operation - floppy controller enters standby state. ·Second byte of command code for these commands is as follows: SDB7 through SDB3: Set to zero. SDB2: HD. SDB1: O. SDBO: 0 ··Second byte of command code for Recalibrate is as follows: SDB7 through SDBO: Set to zero. LEGEND MT Multi-track Set to one for multi-track operation. If set to one after execution of Read / Write operation on side 0, floppy controller automatically searches for sector 1, side 1. MF FM/ MFM mode Set to zero for FM. Set to one for MFM: SK Skip Set to one to skip deleted data address mark. HD Head Set to one for head 1. Set to zero for head O. SRT Step Rate 1 to 16 msec in 1msec increments (Ohex = 16msec, 1hex =15msec ... Time Ehex = 2msec, Fhex = 1msec. Step rates apply to both drives. HUT Head Unload 16 to 240msec in 16msec increments. Time HLT Head Load Time 2 to 254msec in 2msec increments. ND Non-DMA Mode Set to one for non-DMA mode. Winchester Board Products 6-153 SUPPORT OF 1.2MB AND 360KB DRIVES INSTALLATION The WD1002-WA2 supports 1.2MB and 360kB drives. This section briefly describes the installation of the Diskettes written on 1.2MB drives with the 360kB den- WD1002-WA2 board in IBM PC-AT compatible sity may not be readable on 360kB drives due to a computers. difference in track widths. High capacity drives 1. Ensure that system power is off. (1.2MB) require special media to support a recording density of 9646 bits per inch. This special media 2. Insert the WD1002-WA2 board into the computer requires much higher write currents than 360kB drives chassis and connect the drive cables. (J1 = floppy can produce. Thus, the special media is incompati- drives 1 and 2 cable, J5 = Winchester control ble with the high capacity drives. cable, J4 = Winchester drive 1 cable, J3 = Win- chester drive 2 cable) High capacity drives rotate at 360 RPM instead of 300 RPM. A new data transfer rate of 300kbs is used to The WD1002-WA2 board is configured for IBM PC-AT enable the Host system to read diskettes written on compatible computers. Jumper plugs are installed at 360kB media. This means that a diskette recorded at E1 / E6 and E7 / E8. Figure 5 illustrates the 250kbs on the 300 RPM drives reads at a 300kbs rate WD1oo2-WA2 jumper locations. The following jumper in the 360 RPM drives. options are available: Recorded track width is determined by the Standard: E2-E3 Selects primary addresses 3F2, read / write head. The 1.2M B drives write tracks at a 3F4 / 3F7 hex for the floppy disk 0.16mm (0.00063 inch) width instead of the 0.33mm drives. (0.0130inch) track width for 360kB drives. This can cause some incompatibilities when exchanging E5-E6 Selects primary addresses media written on the high density drive at the low den- 1FO /1 F7 hex for the Winchester sity rate. This type of interchange is best supported disk drives by addition of a 360kB drive to the Host system. Jumpered: E1-E2 Selects secondary addresses 372, Floppy write precompensation is 125 nsec at all 374 / 377 hex for the floppy disk transfer rates over all tracks. Floppy write precompen- drives sation cannot be disabled or programmed. E4-E5 Selects secondary addresses Other features for the high capacity drives include 170/177 hex for the Winchester 3msec track to track access time vs. 6 msec and a disk drives motor start time of 750msec vs. 250msec. The Standard: E7-E8 Jumper installed. Must be left WD1002-WA2 supports only two drives. Data transfers jumpered at all times. are performed over the DMA channel. E1 E2 E3 E7 E8 J3 J4 J5 Jl ~~ ~~ [8 _ _ _ _ _ Al Pl FIGURE 5. WD1002·WA2 Jumper Locations 6-154 Winchester Board Products SPECIFICATIONS Hard Disk Floppy Disk Encoding Method: MFM FM and MFM Data Rate: 5Mbs 125kbs, 250kbs, 300kbs, 500kbs Format: IBM XT compatible IBM PC-XT compatible Sectoring: Soft, 512 byte by 17 per track Soft, up to 15 by 512 byte sectors (Numbered 1 through 17) per track Cylinders: 1024 77 max Heads: 16 max 2 max Drives: 2 2 Soft Error Rate: 1 in 10E10 bits read 1 in 10E09 bits read Head Error Rate: 1 in 10E12 bits read 1 in 10E12 bits read Seek Error Rate: 1 in 10E6 seeks 1 in 10E6 seeks Precompensation: + / - 12 nsec, single-level MFM + / - 125 nsec write pre- compensation for all data rates Interleave Factor: 2 to 1 min A A A CRC Polynomial: x 16 + x 12 + x- 5 + 1 \ A A A A A ECC Polynomial: x 32 + x 28 + x 26 + x 19 + x 17 A A A + x 10 + x 6 + x 2 + 1 A A ECC Polynomial xA 32 + xA 30 + xA 26 + x 22 + x 15 A A A Reciprocal: + x 13 + x 6 + x 4 + 1 ID Field CRC Polynomial: Data Field CRC Polynomial: DATA SEPARATOR: Type: WD10C20 self-adjusting VCO Analog with dual R-C VCO Features: reference clock, 0 phase startup, single adjustment for each VCO, read pulse extension, DRUN genera- automatic of adjustment tion write precompensation Acquisition Time: Less than 8 bytes Less than 8 byte times Capture Range: + /-3% min + / -8.5% min Phase Error: + / -10 deg POWER: Logic Supply: +5V+ / -5%,2.5 A max Supply Ripple: + / -100mV, pop Analog Supply 1: + 12V + / -10%,0.150 A max Supply Ripple: + / -100 mV, pop Analog Supply 2: -12V + / -10%, 0.01 A max Supply Ripple: + / -100 mV, pop ENVIRONMENTAL: Temperature Operating OoC to 50°C -40°C to 60°C (32°F to Non-operating 122°F) HOoF to 140°F) Air Flow 100 LFM min constant unidirec- tional, measured on a plane 1 /4 in. equidistant from PCB surface. Winchester Board Products 6-155 Hard Disk Floppy Disk Humidity Operating 8% to 80% non-condensing Non-operating 5% to 95% non-condensing Altitude Operating o to 3000 meters (0 to 10000 feet) Non-operating o to 5000 meters (0 to 16000 feet) Vibration Operating 6 to 600 Hz at 1.0 G PHYSICAL: Length 33.3 centimeters (13.1 inches) Width 12.2 centimeters (4.80 inches) Height 1.90 centimeters (0.75 inches) HOST INTERFACE TIMING Timing diagrams are shown in Figure 6. the timing values are given in Table 11. SA09-01 ( )-- -.----------------------~ 5AOO - - - ( >-- -lOR/-lOW \ _______ ----11 -IOC516 \_------------~I READ DATA ----------------~(~----------~)~--- WRITE DATA ------------~(~------------~)~--- FIGURE 6. I/O CHANNEL TIMING 6-156 Winchester Board Products TABLE 11. TIMING CHARACTERISTIC TIMING (nsec) min max -IOC816 from 8A09~01 93 -IOC816 from 8AOO 73 + IOC816 from + lOR / + lOW 93 8015-00 from -IOR(16 bit I/O) 132 8007-00 from -lOR (8 bit I/O) 498 8015-00 to + lOW (16 bit I/O) 71 6007-00 to + lOW ( 8 bit I/O) 491 + lOW to 8015-00 HIZ (16 bit I/O) 54 + lOW to 8007-00 HIZ (8 bit I/O) 46 -lOR / -lOW Pulse Width (16 bit I/O) 160 -lOR / -lOW Pulse Width (8 bit I/O) 540 + lOR / + lOW to -lOR / -lOW 375 AOOR HaLO from + lOR / + lOW 47 8A09-01 to -lOR / -lOW 97 Winchester Board Products 6-157 6-158 Winchester Board Products WESTERN DIGITAL COR P 0 RAT o N =E c ..... WD1003-SCS Winchester Disk Controller o o w FEATURES • COMMAND QUEUING en (') • SCSI COMPATIBLE BUS HOST INTERFACE • LOGICAL UNIT ADDRESSING en • CONTROLS UP TO TWO ST506 COMPATIBLE • SCSI BUS PARITY OPTION DRIVES • FULL HARDWARE COMPLIANCE WITH ANSI • ALLOWS OVERLAPPED SEEKS SCSI X3T9.2 SPECIFICATIONS • UP TO 16 HEADS AND 2,048 CYLINDERS • SUPPORTS DISCONNECT/RECONNECT • PROGRAMMABLE SECTOR SIZES (128,256,512, OPERATIONS AND 1024 BYTES PER SECTOR) • OPTIONALLY SUPPORTS RESELECTION • PROGRAMMABLE STEPPING RATES (3 TIME·OUT ' MSEC/STEP MINIMUM) • SUPPORTS ALL STANDARD AND EXTENDED • PROGRAMMABLE GAP SIZES COMMANDS, AND WESTERN DIGITAL'S UNIQUE • USER-SELECTABLE DEVICE ADDRESS COMMANDS • PROGRAMMABLE 1:1 INTERLEAVE • SINGLE-BYTE MESSAGES • FULLY SUSTAINED, SEQUENTIAL READfWRITE • SENSE AND EXTENDED-SENSE CAPABILITY OPERATIONS • RESERVATONS SUPPORTED TO LOGICAL UNIT • SELF-TEST DIAGNOSTICS NUMBER LEVEL • 32-BIT ECC FOR WINCHESTER DATA ERROR • SECTOR LEVEL BAD BLOCK MAPPING DETECTION AND CORRECTION CAPABILITY DOCUMENT SCOPE Commands directed to the drives are executed by the WD1003-SCS and all communications and data This document is intended to provide the reader with transfers to and from the Host take place via the SCSI an overview of the WD1003-SCS. For a detailed bus in accordance with SCSI protocol. understanding it will be necessary to refer to the following documents: The WD1003-SCS functions only as a Target device in the SCSI environment. Because the WD1003-SCS • WD1003·SCS Winchester Disk Controller OEM supports disconnect/reconnect operations, full Manual Doc. 79-000025 arbitration capability is provided. In addition, the • SCSI Specification ANSI X3T9.2 August 1984 WD1003·SCS Controller board supports one-to-one • ST-506 Winchester Disk Controller disk interleave, i.e., fully sustained operations on ST506 S.M. sequential read access. Seagate Technology, The WD1003-SCS is based on a proprietary chip set Scotts Valley, Cal. consisting of the WD2010·05, WD11COO-19 and • ST-506 Electrical Interface Specification WD10C20 LSI devices, designed specifically for Win- Seagate Technology, chester/SCSI interface. Extensive error detection and Scotts Valley, Cal. correction, as well as data recovery techniques for • WD2010-05 Winchester Controller Data Sheet disk errors, are incorporated within the controller's design. This circuitry resides in the WD2010-05. The • WD10C20 Self-Adjusting Data Separator Data WD11COO-19 is used to control all communications Sheet and data transfer. DESCRIPTION ARCHITECTURE The WD1003-SCS is a single-board Winchester Disk The WD1003-SCS architecture allows an optimum Controller designed to support up to two ST506 com- amount of design functions to reside within the board. patible disk drives and to interface to the Small This is accomplished by creating a unified internal Computer System Interface (SCSI) bus. Bus operation bus structure, whereby all major LSI devices share is in compliance with the ANSI X3T9.2 SCSI the same buses. Specifications. Winchester Board Products 6-159 "'001 ,C/O, 1/0,115& DP,m,m PM' DAlAl/O,seSIIJO BUS If( A{D(SS BUS CAO-CAI!. (CNITAOI. ~ r'" FIGURE 1. BLOCK DIAGRAM As illustrated in Figure 1, the WD1003-SCS contains In addition, built-in Error Checking and Correction four major VLSI devices: (ECC) capability in the WD2010-05 enables error detec- tion and correction on all data transfers from the disk. • 8085 microprocessor A set of check bits are calculated and appended to • WD2010-05 Winchester Controller the data field when data is written to the disk. • WD10C20 Self-Adjusting Data Separator • WD11COO-19 SCSI Protocol Support Device WD10C20 Self-Adjusting Data Separator Control Processor The WD10C20 is an LSI device implemented in the 3-micron, high-speed CMOS as a read/write channel. The Control Processor is an 8085 microprocessor It performs all sensitive read/write Signal operations used for the main board control, and is supported by between the Winchester Disk Controller and data a 2764 (8K X 8) EPROM and a (2K X 8) 2016 static RAM drivers and receivers. The device performs both phase- device. The WD1003-SCS Controller's unique architec- locked loop data synchronization on read data from ture facilitates two major functions: the drive and conditioning write data to the drive. • Support of the SCSI bus application WD11 COO-19 SCSI Protocol Support Device • 1:1 interleave capability The WD11COO-19 is a 40-pin LSI device deSigned to WD2010-05 Winchester Disk Controller provide four major support functions: The primary function of the WD2010-05 is to control • Address generation data transfer between the disk and the Sector Buf- • Data Transfer (read/write) control fer after the on-board control processor has posi- • Arbitration tioned the selected head over the desired track. The • Parity checker/generator WD2010-05 receives the parameters and commands All SCSI commands are read, format converted, and from the control processor via the CDO through CD7 then issued to the WD2010-05 for execution. bus. 6-160 Winchester Board Products SPECIFICATIONS HOST INTERFACE :E Type SCSI c ...... o Cable length 20 ft. (6 m) max. o (,.) Termination all signals Socketed 220/330 ohm resistor pack 220 ohms to + 5 Volts, en C1 330 ohms to ground CJ) Addressing Jumper selectable (0 through 7) Default = 0 DRIVE INTERFACE Encoding method MFM Cylinders per drive Programmable up to 2048 Bytes per sector Programmable (128, 256, 512, 1024) Sectors per track Programmable Heads per cylinder Programmable up to 16 Drives 2 Stepping rates/algorithm Programmable (3 usec/step min.) Data transfer rate 5 Mbps Write precompensation 12 nsec Sectoring Soft CRC polynomial X16+X12+X5 + 1 ECC polynomial X32 + X28+ X26 + X19 + X17 +X10+X6 +X2 +1 Cable length: Control (daisy-chained) 10 ft. (3 m) max. Data (radially connected) 10 ft. (3 m) max. Termination: all signals 220 ohms to + 5 Volts, 330 ohms to ground Control on last drive in chain Data on WD1003-SCS DATA SEPARATOR The operational parameter limits of the Data Separator circuitry on the WD1003-SCS provided here are related only to ST506 Winchester disk operations. For the WD1003-SCS to function properly, the hard disk drive mechanism must perform within the following specifications: Drive margin ± 16 nsec min Drive Asymmetry 30 nsec. measured over 5 Mhz RAWMFM periods of 185 nsec, 215 nsec, 185 nsec. ELECTRICAL Voltage and Current +5 Vdc±5% @ 1.5 amps nominal 2 amps max + 12 Vdc ± 10% @ 0.25 amps nominal SCSI electrical description When measured at the SCSI bus device connection, each signal driven by an SCSI device has the following output characteristics: Signal assertion = 0 to 0.5 Vdc Minimum driver output capability = 48mA(sinking) @ 0.5 Vdc Measured at the connector, each signal has the following input characteristics: Signal Asserted 0 to 0.8 Vdc Maximum total input load -0.4 rnA @ 0.4 Vdc Signal de-asserted 2.0 to 5.25 Vdc Winchester Board Products 6-161 PHYSICAL DIMENSIONS :ec Length Width 8 inches (20.3 cm) 5.75 inches (14.6 cm) ..... Height (including board, 0.75 inches (1.9 cm) o o components and leads) w en o ENVIRONMENTAL en Temperature: Operating range OOC (32°F) to 55°C (131°F) Storage range -400C (-40°F) to 60°C (140°F) Relative Humidity Operating range 8% to 80% non-condensing Storage range 5% to 95% non-condensing Maximum wet bulb 24° C (75° F) Altitude Operating range Airflow ° to 10,000 ft. (3048 m) 150 linear ftjmin @ 0.25 inches from component sutfaces Corrosion Connectors, exposed contacts, and conductors are protected to resist corrosion under all conditions of storage and operating life. INTERFACE ORGANIZATION The WD1oo3-SCS is designed to be mounted directly The WD1003-SCS accommodates up to two Win- onto a 5.25" Winchester-type hard disk drive. It con- chester hard disk drives. The control cable is daisy- tains four vertical-header connectors, and one power chained to each of the two drives; and the drive data connector located along the peripheral edges of the cables, which carry differential signals, are radially board: connected. Table 1 defines the WD1oo3-SCS connec- • Two Winchester drive data connectors J1, J2 tors and a source for the mating connectors on the • Winchester drive control connector J3 associated cables. • Power connector J4 • Host interface connector J5 TABLE 1. EQUIVALENT CONNECTOR INTERFACE FUNCTION MATING CONNECTOR J1,J2 Drive Data (Radially-connected) Burndy tfFRS20BS J3 Drive Control (Daisy-chained) Brundy tfFRS34BS J4 Power AMP 1-4840424-0 J5 Host Interface (SCSI Bus) Burndy tfFRS50BS 6-162 Winchester Board Products HOST INTERFACE CONNECTOR The WD1003-SCS interfaces to the Host via J5, a packs in position Z1 and Z3. Each signal is terminated :E 50-pin vertical header connector mounted on 0.1 inch to + 5 volts via 220 ohms and 330 ohms to ground. c-" centers. The cable used should be a flat ribbon or Table 2 provides the connector pin descriptions and o twisted pair cable of not more than 20 feet in length. its bus signals. o (,.) Cable termination is via 220/330 ohm resistor en (') TABLE 2. HOST INTERFACE CONNECTOR (J5) PIN DESCRIPTION en SIG. SIG. SIGNAL 1/0 GND. PIN MNEMONIC NAME * FUNCTION 1 2 DBO DATA BUS 0 110 These signals comprise the SCSI tri-state, bi- thru thru thru thru directional data bus used to transfer com- 17 18 DB? and DATA BUS? mands, status and data. DBO through DB? DBP DATA BUS are used for Target device selection and PARITY arbitration. DBP is odd parity for DBO through DB? and is not valid during the arbitration process. 19 thru GROUND 25 26 N.C. Not Connected 2? thru GROUND 30 -- 31 32 ATN ATIENTION I Asserted by the Host to indicate a message is ready for the WD1003-SCS. This message is read by the WD1003-SCS at its conve- nience by performing a Message Out Phase. 33 34 GROUND 35 36 - BSY - - BUSY 1/0 Indicates to the Host that the SCSI bus is busy executing a command and is unable to accept another. When asserted, BSY acknowledges receipt of SEL and its own address. De-asserted indicates the transfer is completed. -- 3? 38 ACK ACKNOWLEDGE I Acknowledgement for a REQ/ACK data transfer handshake, acknowledges to the WD1003-SCS that the Host has accepted the byte for data transfer. -- - 39 40 RST RESET I When asserted at least 25 usec, RST places the WD1003-SCS into its initial power- up state. -- 41 42 MSG MESSAGE 0 Asserted during the Message Byte Transfer Phase. Used with 1/0 and C/O to indi- cate the type of transfer. - --- 43 44 SEL SELECT 1/0 Used by the Host to select the WD1003-SCS, or by the WD1003-SCS to reselect the Host. When asserted, gives control of the bus to the DBO through DB? address selected by the J6 jumper. Winchester Board Products 6-163 TABLE 2. HOST INTERFACE CONNECTOR (J5) PIN DESCRIPTION (cont.) =E SIG. SIG. SIGNAL 1/0 c ..... GND. PIN MNEMONIC NAME * FUNCTION o o (,.) 45 46 CID CONTROU a c/O along with 1/0 and MSG indicates to en (") DATA the Host whether control or data is on the bus. en = C/O - 0 Control -1 = Data Control is defined as a: command, status, or message. 47 48 REQ REQUEST a A request for a REQIACK data transfer handshake. Indicates to the Host that the WD1003-SCS is ready for data transfer. 49 50 I/O INPUTI a Indicates direction of transfer between the OUTPUT Host and the WD1003-SCS. 1/0 - 0= Input to the Host -1 = Output from the Host * The I/O column is in relation to the WD1003-SCS and not the Host. WINCHESTER DRIVE CONTROL CONNECTOR The WD1003-SCS supports the Seagate Technology The control signals are to be terminated at the last ST506 drive control protocol. The control connector drive in the daisy-chain with a 220/330 ohm resistor is a 34-pin vertical header mounted on a 0.1 inch pack. Each control signal is connected to + 5 volts center. Control signals are common to both drives and with the 220 ohm resistor and to ground with 330 are daisy-chained on a single connector J3. The cable ohms. used should be a flat ribbon or twisted-pair not more The drive control connector J3 pin description is pro- than 10 feet in length. vided in Table 3. TABLE 3. DRIVE CONTROL (J3) PIN DESCRIPTION SIG. SIG. SIGNAL 1/0 GND. PIN MNEMONIC NAME * FUNCTION 1 2 HS3 HEAD a HS3 is one of four Head Select signals or SELECT 3 decoded by the drive to select one of 16 RIW RWC or heads. RWC is asserted when the cylinder REDUCE WRITE specified by the Inquiry Data Format com- CURRENT mand is reached. An asserted RWG allows the 8085 to initiate RWC on succeeding cylinders. - 3 4 HS2 HEAD a One of four Head Select signals decoded by SELECT 2 the drive to select one of 16 RIW heads. - - 5 6 WG WRITE GATE a WG is asserted when valid data is to be written on the disk. WD1003-SCS de-asserts this signal when a WF is detected. - 7 8 SC SEEK I SC is asserted by the selected drive when COMPLETE the head has reached the desired cylinder and stabilized. 9 10 TKOOO TRACK 000 I The drive asserts this signal when the RIW heads are positioned over the outermost cylinder, cylinder zero. 6-164 Winchester Board Products TABLE 3. DRIVE CONTROL (J3) PIN DESCRIPTION (cant.) SIG. SIG. SIGNAL :ec GND. PIN MNEMONIC NAME 1/0 FUNCTION -a. o 11 12 WF WRITE I WF is asserted by the selected drive when a o CAl FAULT write error occurs. The command in progress aborts and no other disk command can be en (") executed while this signal is asserted. en 13 14 HSO HEAD 0 One of four Head Select signals decoded by SELECT 0 the drive to select one of 16 RIW heads. 15 16 N.C. Not Connected 17 18 HS1 HEAD 0 One of four Head Select signals decoded by SELECT 1 the drive to select one of 16 RIW heads. -- 19 20 INDEX INDEX I Indicates the start of a track and is used both PULSE as a synchronization point during formatting and a time-out mechanism for retries. This Signal pulses once for each disk revolution. -- 21 22 DRDY DRIVE I Informs the WD1003-SCS that the drive motor READY is up to speed. 23 24 STEP STEP PULSE 0 STEP, together with DIRIN, positions the heads to the desired cylinder. STEP pulses once for each cylinder. DIRIN determines the direction. 25 26 DSEL 0 DRIVE 0 DSELO is used to select drive o. SELECT 0 27 28 DSEL 1 DRIVE 0 DSEL 1 is used to select drive 1. SELECT 1 29 30 N.C. Not Connected 31 32 N.C. Not Connected -- 33 34 DIRIN DIRECTION 0 DIRIN determines the direction the RIW IN heads take when the Step signal is pulsed. o = in, 1 = out. WINCHESTER DRIVE DATA CONNECTOR The data is differential in nature and must be radially cable, or twisted pair, not more than 10 ft. in length. connected to each drive with its own cable, drive 0 The connecter is a 20-pin vertical header on 0.1 inch to J1 and drive 1 to J2. It should be a flat ribbon center. Winchester Board Products 6-165 TABLE 4. DRIVE DATA CONNECTORS· J2, J3 SIG. SIG. SIGNAL GND. PIN 1/0 NAME 1 NC 2 GND 3 NC 4 GND 5 NC 6 GND 7 NC 8 GND 9 NC 10 NC 11 GND 12 GND 13 0 + MFM Write Data 14 0 -MFM Write Data 15 GND 16 GND 17 I + M FM Read Data 18 I -M FM Read Data 19 GND 20 GND POWER CONNECTOR A 4-pin, neoprene-type connector (J4) is provided for power input to the WD1003-SCS board. PIN VOLTAGE 1 +12V 2 GND. 3 GND. 4 +5V COMMAND DESCRIPTION The WD1003-SCS supports 22 commands. These A summary of these commands, along with their commands are separated into three Groups: 15 stan- Command Description Block is illustrated in the dard commands in group 0, 4 extended commands tables that follow. in group 1, and 3 diagnostic commands in group 7. 6-166 Winchester Board Products TABLE 5. SUMMARY OF GROUP 0 AND 7 COMMANDS OP LBAI NOB/RSBI :E COMMAND CODE LUN FD,CL,DLF INT NB I PLL ERTY c...... o TEST DRIVE READY 00 V n n n n o w REZERO UNIT REQUEST SENSE 01 03 V V n n n n n V(RSB} n n en () FORMAT UNIT 04 V V(FD,CL,DLF} V n n CJ) REASSIGN BLOCKS 07 V n n n n READ 08 V V(LBA} n V(NOB} V WRITE OA V V(LBA} n V(NOB} V SEEK OB V V(LBA} n n n INQUIRY DATA 12 V(LBA} n V(NB} n FORMAT MODE SELECT 15 V n n V(PLL} n RESERVE UNIT 16 V n n n n RELEASE UNIT 17 V n n n n MODE SENSE 1A V n n V(PLL} n RECEIVE DIAGNOSTIC 1C V n n n n SEND DIAGNOSTIC 1D V n n n n READ LONG E5 V V(LBA} n V(NOB} V WRITE LONG E6 V V(LBA} n V(NOB} V READ DIF E7 V n n n n LEGEND: V Must be a valid parameter. n Not used (should be 0 for future compatibility). LUN Logical Unit Number of drives. 0 or 1 for WD1003-SCS. LBA Logical Block Address. FD Format Data bit. CL Complete List bit. DLF Defect List Format bits. INT Interleave factor. NOB Number Of Blocks. RSB Requested Sense Bytes. NB Number of Bytes. PLL Parameter Length List. ERTY Error Retry bit. GROUP 0 AND 7 COMMAND DESCRIPTION BLOCK The Command Description Block format used by the 15 Group 0 and 3 Group 7 commands is provided in Figure 2. Winchester Board Products 6-167 :e c BITS ..... o o w en BYTE 7 I 6 I 5 4 I 3 -1 2 I 1 I 0 ("') 0 OPERATION CODE en LOGICAL BLOCK ADDRESS (MSB) OR FORMAT 1 LUN DATA/COMPLETE LIST/DEFECT LIST FORMAT 2 LOGICAL BLOCK ADDRESS 3 LOGICAL BLOCK ADDRESS (LSB) OR INTERLEAVE (MSB) NUMBER OF BLOCKS, REQUESTED SENSE BYTES, 4 NUMBER OF BYTES, INTERLEAVE (LSB), OR PARAMETER LIST LENGTH 5 ERTY I 0 I 0 0 I 0 I 0 I 0 I 0 FIGURE 2. GROUP 0 AND 7 COMMAND DESCRIPTION BLOCK Operation Code Number of Blocks Bits 7-5 designates that the command is used in a Indicates the number of contiguous logical data Group 0 or 7 operation. blocks to be transferred by an operation. When zero, 256 blocks are transferred. Any other value indicates Bits 4-0 identify the function of a command, e.g., Read the number of blocks to be transferred. or Write, to be performed within Command Group 0 or 7. Requested Sense Bytes LUN The number of bytes indicates the length of data allocated by the Host for the returned sense informa- Specifies the Logical Unit Number of the attached tion. The count also determines the format of the drive. Must be 0 or 1. returned sense data. Sense data can be returned in Logical Block Address one of two supported sense byte formats: (1) stan- Specifies the Logical Block Address where an opera- dard Non-Extended Sense Byte format, and (2) tion is to begin. Extended Sense Byte format. A requested sense byte count of zero results in a data transfer of four. The Format Data, Complete List, Defect List Format requested count, but never more than eight sense Used in conjunction with the Reassign Blocks and bytes, are sent on all other requested values. Format Commands: Parameter List Length - Format Data. Bit 4 of byte 1. - Complete List. Bit 3 of byte 1. The only valid length for proper operation is 30 - Defect List. Bits 2, 1, and 0 of byte 1. (decimal). Zero represents a No-Operation condition. Interleave (MSB) and (LSB) Number of Bytes The interleave factor is used by format commands. Indicates the data length allocated by the Host for The disk may be formatted at a 1:1 ratio. And the max- the Returned Sense data. imum interleave is equal to the sectors-per-track ERTY minus one. Disk error retry bit. When set, indicates a request for Byte 3 or 4 can be any interleave number from 0 a retry operation. (Used if retries are supported by a through 28. If an interleave factor of 0 is used, the specific command.) WD1003-SCS uses a default interleave of 2. 6-168 Winchester Board Products TABLE 6. SUMMARY OF GROUP 1 COMMANDS OP :E COMMAND CODE LUN LBA NOB PMI ERTY c-" o READ CAPACITY 25 V V n V n o w V V V READ EXTENDED 28 V V V n n V en WRITE EXTENDED 2A V o SEEK EXTENDED 2B V V n n V en LEGEND: V Must be a valid parameter. NOB Number Of Blocks. n Not used (should be 0 for future compatibility). PMI Partial Medium Indicator bit. LUN Logical Unit Number of drives 0 and 1. ERTY Error Retry bit. LBA Logical Block Address. GROUP 1 COMMAND DESCRIPTION BLOCK The Command Description Block format used by the four Group 1 commands is provided in Figure 3. BITS BYTE 7 I 6 I 5 I 4 I 3 I 2 I 1 I 0 0 OPERATION CODE 1 LUN I 0 I 0 I 0 I 0 I 0 2 LOGICAL BLOCK ADDRESS (MSB) 3 LOGICAL BLOCK ADDRESS 4 LOGICAL BLOCK ADDRESS 5 LOGICAL BLOCK ADDRESS (LSB) 6 0 I 0 I 0 I 0 I 0 I 0 I 0 I 0 7 NUMBER OF BLOCKS (MSB) 8 NUMBER OF BLOCKS (LSB) OR PMI 9 ERTY I 0 I 0 I 0 I 0 I 0 I 0 I 0 FIGURE 3. GROUP 1 COMMAND DESCRIPTION BLOCK FORMAT Operation Code LUN Bits 7-5 designates that the command is used in a Specifies the Logical Unit Number of the attached Group 1 operation. drive. Must be a 0 or 1. Bits 4-0 identify the function of a command e.g., Read Logical Block Address Extended, Write Extended, or Seek Extended to be Specifies the Logical Block Address where an opera- performed within Command Group 1. tion is to begin. Winchester Board Products 6-169 Number of Blocks RETRY :ec Indicates the number of contiguous logical data blocks to be transferred by an operation. When zero, Disk error retry bit. When set, indicates an error con- dition and a request for a retry operation. (Used if ...L o 256 blocks are to be transferred. Any other value retries are supported by a specific command.) o indicates the number of blocks to be transferred. W I en PMI o en ° Partial Medium Indicator. Bit of byte 8 used in the Read Capacity Command. Setting this bit to: °= Controller returns address of the last block on the LUN device. 1 = Controller returns the last block prior to a cylinder boundary that follows the Block Address given by the Host. For example, Block ° Address results in the controller returning Block Address 67 on a device with four heads and is formatted with 17 sectors per track (512 bytes per sector). TABLE 7. POSSIBLE COMMAND ERROR CODES COMMAND ERROR CODE TEST DRIVE READY 00,03,04,1 C,22 REZERO UNIT 00,03,04,06,OA,1 C,21 ,22 REQUEST SENSE NONE FORMAT UNIT 00,03,04,1 A, 1B,1 C, 1D, 1E,22 REASSIGN BLOCKS 00,03,04,1 A, 1B,1 C, 1D, 1E,22 READ 00,03,04,06,OA,1 0,11,13,18,1 C,21 ,22,80 WRITE 00,03,04,06,OA,1 0, 19,1C,21 ,22,80 SEEK 00,03,04,OA,1 C,21 ,22 INQUIRY DATA 00,22 FORMAT MODE SELECT 00,20,21,22 RESERVE UNIT 00,03,04,22 RELEASE UNIT 00,03,04,22 MODE SENSE 00,20,21,22 RECEIVE DIAGNOSTIC 00,1 C,22,30,31 ,32,33,34,37 SEND DIAGNOSTIC 00,1 C,22,30,31 ,32,33,34,37 READ CAPACITY 00,20,21,22 READ EXTEN DED 00,03,04,06,OA, 10, 11,13,18,19,1 C,21 ,22,80 WRITE EXTENDED 00,03,04,06,OA,1 0,18,19,1 C,21 ,22,80 SEEK EXTENDED 00,03,04,06,OA,1 C,21 ,22,80 READ LONG 00,03,04,06,OA,1 0,13,19,1 C,21 ,22,80 WRITE LONG 00,03,04,06,OA,1 0,13,19,1 C,21 ,22,80 READ DIF 1C,22 6-170 Winchester Board Products TABLE 8. ERROR CODE DESCRIPTION ERROR CODE* TYPE OF =E (HEX) ERROR NAME ERROR DESCRIPTION c ...... o 00 No Sense Indicates that there is no specific Sense Key informa- o tion to report for a designated LUN. No error is w detected and the command is completed successfully. en (") - en 03 Write Fault Disk Drive Indicates write current had not occurred when WG is de-asserted, or an SC is not asserted and a drive is selected while WG is asserted. 04 Drive Not Disk Drive Indicates the LUN address cannot be accessed. The Ready selected drive's DRDY is de-asserted. The motor of the selected drive is not up to speed. 06 Track 0 Disk Drive This code is returned by the Rezero Unit Command. Not Found Indicates TKOOO from the selected drive was not asserted after the maximum number of steps (up to 1024) toward cylinder O. OA Disk Full Operational Insufficient medium (hard disk) capacity. Indicates the specified address reached the file device's given range. 10 ID Error Disk Drive An ID CRC error. 11 Uncorrectable Disk Drive Indicates an error in the data field is beyond the ECC's Data Error correction capability. Data for the block in error is not sent to the Host. 13 Data Address Disk Drive Indicates header of a selected block is found, but its Mark Data Address Mark is not detected. Not Found 18 Correctable Disk Drive Indicates an error in the data field is within the ECC's Data Error correction capability and is corrected. The data block is sent to the Host. This status serves as a warning to the Host that a marginal condition may exist. 19 Bad Block Operational Indicates a formatted bad block is encountered. 1A Bad DIF Operational The Drive Information File cannot be read by the or Reassign Blocks or Format command with the Add To Disk Drive DIF option selected. 1B Cannot Read Media On all attempts to read the alternate address from the Alternate Track bad track a read error occurred. Information 1C Disk Not Operational This error can only occur on the first disk access after Formatted an initial power up or a reset. Sector zero track zero Correctly was read and found not to contain a Drive Informa- tion File. 1D Address Of The Operational Defective block address exceeds the size of the disk. Defective Block Too Large 1E No Alternates Operational 1. No alternate tracks were allocated and format has Left been requested with Bad Track Mapping option only. 2. Not enough alternate tracks allocated to accom- modate the number of bad blocks specified in the Drive Information List. 3. No unused alternate tracks available for use during a Reassign Blocks command. Winchester Board Products 6-171 TABLE 8. ERROR CODE DESCRIPTION (cont.) =E ERROR CODE· TYPE OF c ...t. (HEX) ERROR NAME ERROR DESCRIPTION o o 20 Bad Command Indicates an invalid Command Group, OP. Code,LUN, w en (') Command Logic Block Address, ID, Interleave, Block Length, or Partial Medium Indicator. en 21 Illegal Block Operational Not a valid address for a Logical Block or Parameter. Address 22 Unit Attention Occurs only once after reset. Indicates the removable medium (hard disk) may have been changed or the WD1003·SCS has been reset (by a Bus Device Reset message or a "hard" Reset condition) since the last command was issued to the LUN. When the error con· dition is detected, the requested command is not per- formed. The Unit Attention Sense Key is reported to all Initiators that subsequently issue a command to the LUN. This Sense Key is cleared for the next com- mand from the same Initiator. 30 Bad ROM Diagnostics Indicates the ROM checksum does not match the calculated checksum. 31 Bad RAM Diagnostics Indicates the external RAM failed. 32 Bad Winchester Diagnostics Indicates the WD2010-05 Disk Controller failed. 33 Bad Address Diagnostics Address generation has failed. Indicates a WD1100-19 Generation error. 34 Bad Instruction Diagnostics Indicates an invalid instruction set from the 8085 Set microprocessor. 36 Good Pass Of Diagnostics Diagnostics completed successfully. Diagnostics 37 Bad Bus Diagnostics Indicates an internal bus hardware error. +80 Valid Address A valid address bit, indicating the Block Address fields contain valid information. "Error codes returned reflect only one error although multiple errors may exist. In this case, the error considered to most severe will be reported. + 80 is ORed with the error code: e.g. 37 = B7 6-172 Winchester Board Products WESTERN DIGITAL COR P 0 RAT ION WD1003-WA2 Winchester/Floppy Disk Controller ADVANCED INFORMATION FEATURES • 8-BIT, BI·DIRECTIONAL BUS HOST INTERFACE • AT COMPATIBLE WINCHESTER AND FLOPPY FOR CONTROL AND STATUS TRANSFERS CONTROLLER • HIGH·SPEED, 16-BIT PIO DATA TRANSFERS • CONTROLS UP TO TWO WINCHESTER DRIVES • 32·BIT ECC OR WINCHESTER ERROR DETEC· (ST506/ST412, 16 R/W HEADS EACH, 2048 TION AND CORRECTION, CRC FOR ID FIELDS CYLINDERS) • DIAGNOSTIC MODE FOR ERROR CHECKING • CONTROLS UP TO TWO FLOPPY DISK DRIVES: DOUBLE·SIDED • WRITE PRECOMPENSATION LOGIC DOUBLE DENSITY (360kB, 250kbs, MFM) • WD10C20 DATA SEPARATOR AND WRITE QUAD DENSITY (1.2MB, 500kbs, MFM) PRECOMPENSATION DEVICE FOUR DATA RATES (500kbs, 300kbs, 250kbs, • WD11COOA·22 (RMAC) AND WD16C92 FLOPPY and 125kbs) DISK READ/WRITE CONTROLLER (FRWC) SUPPORTS 360 AND 300 RPM SPINDLE REDUCE POWER CONSUMPTION AND COMPO· SPEED NENT COUNT • WD2010A·05 WINCHESTER DISK CONTROLLER • ALLOWS CONCURRENT OPERATION OF ONE FLOPPY AND ONE WINCHESTER DRIVE DESCRIPTION one fixed disk drive. The Winchester drive interface The WD1003·WA2 is a cost reduced version of the is compatible to the Seagate Technology ST506 stan· WD1002·WA2. The WD1003-WA2 is an IBM Person· dard interface for 5Mbs hard disk drives. The floppy nal Computer AT bus compatible Winchester/Floppy disk drive interface supports 1.2MB, 360 RPM drives disk controller designed to interface up to two Win· as well as 360kB (SA450) drives. The WD1003·WA2 chester and up to two floppy disk drives. The board includes all necessary receivers and drivers to allow permits the concurrent operation of one floppy and direct connection to the drive(s}. Winchester Board Products 6-173 ~"M-EOO ~aM 9 ~ WDllCOOA·22 pc.A'r- ~L~ ~~8S N n8 NON H C ~ -: Interlace lAO 1~ T N C N o ¥ ~ 0 ~T hS~~ " Controller ~~ TOO i~ ~R I N WAUPl N R ~ ~ F A C E vy WAUPL .L ~~ ,...--;;- L...-- ~.HS3 DSO.DS1 .. 12 ... ... N V C I H E ~ DRIVE StATUS (B BY '! • :~ ~ ... ~8 ~ SECTOR BUFFER AND WINCHEStER CONTROL SIGNALS E N H o 0 C ...- ~ WINCHESTER DRIVE StATUS ECEIVE!I: ,. ORIVE StATUS R T R S N SOB SOlS BUFFER HDl HO~ A WD?ClO TAS~ FILE ADDRESS AND CONTROL SIGNALS' DISK ~ " 0 T N StEP L -y CONTROLLER =e E CORRD - I C DrAiN ERA WD1015 BADY c N T E T 0 A ALE BUFFER INTRO .~ MANAGER o R WA o F CONTROL ,,} HD1· H~ EARLY ~ A RD PROCESSOR W. ~ C E ..... ~~ WClK -y FIG WD1OC20 DATA wD I A ~ I "J.HD1. H~ ----- SEPIO.RATOR WMFM OA1VES WIAFIA i8 RCLKI WD ~=TE WAUP ~ HWE RD we; ~ L...-- RAl' I..-.-eo AM DRUN _ Awe ~~~_ N CD I ~ ~ r- o o ,......!1.!!... .. RAG . AM AND CONTROL SIGNALS ~ . SEC10R BUFFER DLYDR TEARIY DEVICE ~ TNOAIA WClK CONTROL BUS SIGNALS DELAY g8 ACS TLAre R( K "); ~ I LINE ·.. ---; 1 S N THAlFWIN RD c ~ T N TFULLWIN ~ 0~ DCHG ~A HD7· Hot G) ::D T E R DAC~ 2 TIC I ... DCHG 10MH XTAL I )(fAll XTAl2 - » R ~ ~I NEe 765 .... FLOPPY StATUS 8 F 3: · ~~ ~~ DRUN RC DRUN RC .. DIGITAL "'(clFOO. FD2 FD5~OUTPUT I FLOPPY CONTROL P E CIACU1T r~ :. y C T PlJMPAND ....... .. FLOPPY CONTROL .. o R R I 0 ADJUST CURRENT I PlJIAP (;o,,~ ~. r"~ ~ FREP FRMFM CONTROL FLDPI'Y v WRCL~ FIN( E ADJ DISC REAOI ·- RDP, ~ . WAITE ·FllJER AND PUIAP ROCL~ vco VCOIN ~ CONTROLLER :::s ,.. roo. FD2 rD5)(c NTR0~ SIGNALS DN~ "l CLAMP VCOOUT .. DN3 o r :::s- FD<.. FllJERS et) C/) ..,CD rDI U~ UP) . )I VCOENI 1125 ~6SI250 KBSISOO KBSI r OSCI 125 KBSi20;0 KFlVfll KASI VCOEN1 I300KBS) , DUAL 0SC2 ,300 KBSI 1 OJ \/COo g a. ~ IAQ6 o~ DR02 g o en WESTERN DIGITAL COR P 0 RAT ION WD1003·WAH Winchester Disk Controller ADVANCED INFORMATION FEATURES DESCRIPTION • AT COMPATIBLE WINCHESTER CONTROLLER The WD1003-WAH is a cost reduced version of the WD1002-WAH. The WD1003·WAH is an IBM Person- • CONTROLS UP TO TWO WINCHESTER DRIVES nal Computer AT bus compatible Winchester con· (ST506/ST412, 16 R/W HEADS EACH, 2048 troller board designed to interlace up to two drives. CYLINDERS) The drive interlace is based upon the Seagate Technology ST506. The drives need not be of the • 8·BIT, BI·DIRECTIONAL BUS HOST INTERFACE same capacity or configuration. All necessary receivers and drivers are included on the board to • 16·BIT, HIGH SPEED PIO DATA TRANSFERS allow direct connection to the drive(s). • 32·BIT ECC FOR WI NCH ESTER ERROR DETEC· TION AND CORRECTION • MULTIPLE SECTOR READIWRITE COMMANDS (MAY CROSS HEAD AND CYLINDER BOUNDARIES • IMPLIED AND BUFFERED SEEK COMMANDS • READ/WRITE DIAGNOSTIC AND VERIFY COMMANDS • PROGRAMMABLE FORMAT AND ERROR RECOVERY ALGORITHMS • WD10C20 DATA SEPARATOR AND WRITE PRECOMPENSATION • WD2010A-05 WINCHESTER DISK CONTROLLER Winchester Board Products 6-175 H"M-£OO ~aM ?> ~ ,....;.;;.. .. l.~ r---- H C ~ ~ ~~ W L H C WDllCOOA-22 I E ~ SA9 oS IRQ ,,, N 0 T 0 N N .: : BUFFER MANAGER AND I C ~ 8 !r1S; CONTROL lDGlC N T I N r T 0 E R ¥~ T ~ WHUPL ~ ~ ~ ~ ~ c E WAUPL ..:..... C A u;.. 0T ~ ,--..;..-. ---- P;J~ ~ ~.~ = US1 DRIVE STATUS fB _A .2X ~ 'N1 2 C H V I E ~ r---- , 8 ~ ~ W02010 A R~ A SECTOR BUFFER AND WINCHESTER CONTROl SIGNALS WINCHESTER DRIVE STATUS ECEIVE5(: DAIVE STATUS 8 .... ~ ~ ~ H ¥~ L-J'" 0 WD20'O TASK FILE ADDRESS AND CONTROL SIGNALS g:TROLLE STEP L o SOlI so, FFE HD7 Hot A o lAIN ~T 0~ r CORIRD KUa BRDY I w J2~ ERA W01015 I IN ~ » == F R -ALE WR BUFFER MANAGER .... ~ W01OC20 R M F M _ RMFU :J: OJ A C E R ATHD7. HOG . CONTROL PROCESSOR -- HRE A HD7 - HOG WCLK r lAt. FIG DATA SEMRATDR AND WRITE ~WD8 WUFM CAlVES WMFU ~ ~ N CAN r- RCLK WD ~ -y o WAUP RD WG PRECOMPEN - ~ ~ o '--- RA9 HWE ~ I'I'M:: ~~~~ ~ ~ ~ c -" P- E "'- I RAIl . RAg AND CONTROl SIGNALS ~ SECTOR BUFFER DELAY DLVDR TE LV NOR'" weLK R ); CONTROL BUS SIGNALS y UNE LArE ReLK --'\.- G) o C RCS ~ 0 r HAlFWIN :a S N l I » T I f N E rAT HD7 -H~ r_ XTAl1 3: N 10MH XTAL L XT&Z i~ F DRUN RC DR UN RC A CIRCUIT -l PUMP AND ADJUST CURRENT CONTROL I P "'P ~ ADJ FiLlER AND PU ....p C) VCO ~IN :::J- CLAMP L VCOOUT (l) (J) ..,(t) OJ g a. o~ Q. c: C) en WESTERN DIGITAL COR P 0 R A T o N WD2401' Buffer Management Tape Controller FEATURES BSY vee • 40-PIN DIP XTAL1 ROY XTAL2 PR • NMOS TECHNOLOGY BRST RG • SINGLE + 5V POWER SUPPLY PU SPYEN INT ST • 6 MHZ CLOCK RATE PO BYTIN • SUPPORTS 1/4" STREAMING TAPE UNITS RE BFROVFL NC RGAP • SASI HOST INTERFACE WE BREa • CONTROLS TAPE MOTION ALE EPT3 DO Ell"f2 • STREAMING TAPE COMMAND TRANSLATION 01 EPTl • SELF TEST DIAGNOSTICS 02 EPTO 03 Vee • AUTOMATIC RETRIES ON ALL ERRORS 04 NC 05 CLRSSY 06 MSG 07 I/O DESCRIPTION Vss C/O The WD2401 Buffer Management Tape Controller (BMTC) is a complete control processor for stream- PIN DESIGNATION ing tape controllers. This device executes all basic functions for 1/4" streaming tape backup of disk images or logical files. WD2401 firmware programs handle all aspects of SASI Host command interpreta- tion, tape motion control, and buffer management of the WD24C02 ReadIWrite Formatter. Execution of error recovery routines provide complete backup with minimal Host intervention. The error recovery routines attempt a maximum of 16 retries to recover most error conditions. Tape Drive Control/er Products 7-1 PIN DESCRIPTION :ec SIG. SIGNAL N PIN MNEMONIC SIGNAL NAME 1/0 FUNCTION J:a, o ..... 1 BSY BUSY I Indicates start of SASI Command phase. 2 XTAL1 CRYSTAL1 I External crystal for timing purposes. 3 XTAL2 CRYSTAL2 I External crystal for timing purposes. 4 BRST RESET I Initializes the internal logic of the BMTC. Starts execution of diagnostic TEST routine. 5 PU PULL UP I Tied to external one ohm pull·up resistor. 6 INT INTERRUPT I Indicates the WD24C02 has started to read or write a gap. 7 PD PULL DOWN I Tied to external 330 ohm pull-down resistor. 8 RE READ ENABLE 0 Asserted to read data from the Host or WD24C02. 9 - NOT USED 0 Left open. 10 WE WRITE ENABLE 0 Indicates valid data during bus write. 11 ALE ADDRESS 0 Strobes address into external device. Occurs once LATCH each instruction cycle. ENABLE 12 DO DATA 0 1/0 8-bit, tri-state, bi-directional bus. DO is the least thru thru thru significant bit (LSB). D7 is the most significant bit 19 D7 DATA 7 ~B). Data is written on or read from the bus using WE or RE strobes, respectively. Also contains the address and data during an exter~access to or from port devices. ALE, RE, and WE controls the external access. 20 Vss GROUND GROUND 21 cin CONTROUDATA 0 Indicates whether the current byte on the SASI bus is a control or data byte. - 22 1/0 INPUTIOUTPUT 0 Indicates the direction of the current byte on the SASI bus. 23 MSG MESSAGE 0 Indicates a Data Message Out phase on the SASI bus. 24 CLRBSY CLEAR BUSY 0 Indicates release of SASI bus. 25 NC Not Connected 7-2 Tape Drive Controller Products PIN DESCRIPTION (CONT' D.) =E SIG. SIGNAL c N PIN MNEMONIC SIGNAL NAME 110 FUNCTION ,J:::a. 26 Vcc +5V + 5V power supply. o ..... 27 EPTO ENABLE PORT 0 0 S!!9bes output data to an external latch when (5 (I/O) is asserted. Enables exte.,!!lal latch to input data to the WD2401 when I (I/O) is asserted. --- 28 EPT1 ENABLE PORT 1 0 Strobes drive control data from the WD2401 into an external register. Refer to Table 1 for the defini- tions of these control data bits. -- 29 EPT2 ENABLE PORT 2 0 Strobes drive control data from the WD2401 into an external register. Refer to Table 2 for the defini- tions of these control data bits. -- 30 EPT3 ENABLE PORT 3 0 Assertion of this signal enables sending of the tape drive status to the WD2401. Refer to Table 3 for the definitions of these status bits. 31 BREQ BUS REQUEST 0 Assertion of this signal allows the WD2401 to request use of external bus. The WD2401 controls external bus when RDY is asserted. 32 RGAP RAW GAP I Assertion of this signal indicates the occurance of the gap in the incoming data stream. 33 BFROVFL BUFFER I Assertion indicates completion of a transfer of a OVERFLOW block of data between the Host and WD24C02. 34 BYTIN BYTE IN I Assertion of this signal indicates the Host port on the tape controller board is ready to transfer a byte. 35 ST START HOST 0 Asserted for Host data transfers. DATA TRANSFER 36 SPYEN ENABLE SPY 0 Asserted for spying on the SASI bus. MODE (Currently not implemented.) 37 RG READ GATE 0 Asserted to switch external data separator from reference to the incoming data bits. 38 PR PRIME 0 Assertion of this signal initializes the WD24C02 for data transfers to the Host. 39 RDY READY I Assertion of this signal indicates the WD2401 con- trols external bus. 40 Vcc +5V + 5V power supply. Tape Drive Controller Products 7-3 TABLE 1. DRIVE CONTROL BIT DEFINITIONS (EPT1) =e c BIT FUNCTION N ~ 0 Track bit 0 (LSB) .... o 1 Track bit 1 2 Track bit 2 3 Track bit 3 (MSB) 4 Head Current 5 Prime spy mode 6 Spare 7 Spare' NOTE: This device specifies up to 16 tracks (Track bits 0-3) TABLE 2. DRIVE CONTROL BITS (EPT2) BIT FUNCTION 0 Write enable 1 Erase enable 2 Reverse direction 3 Start tape motion 4 Drive select 0 5 Threshold 6 Spare 7 SASI enable TABLE 3. TAPE DRIVE STATUS BIT DEFINITIONS (EPT3) BIT FUNCTION 0 Upper tape hole 1 Lower tape hole 2 Drive selected 3 Cartridge inserted 4 Tape write enabled 5 Tachometer pulses 6 Abort command (From Host) 7 No data on tape 7-4 Tape Drive Controller Products ARCHITECTURE The WD2401 consists of the 1/0 interface, control aspects of SASI Host command interpretation, tape logic, 4KB ROM, 256 bytes RAM, clock, and program motion control, and buffer management of WD24C02. counter. Figure 1 illustrates the architecture of the The 256 bytes of internal RAM serve as a scratch-pad WD2401. memory for the WD2401. Transmission and reception of data, control, and The a-bit CPU follows the standard architecture of status is the responsibility of the 1/0 interface. most popular CPUs. The control logic receives, decodes, and executes Timing signals for the WD2401 internal logic are instructions received from the 110 interface or other derived from the clock circuitry. The WD24C02 clock internal logic. requires connection to an external crystal with a fun- The 4KB ROM contains firmware programs. These damental frequency of 6 MHz. programs enable the control logic to handle all CONTROL LOGIC 4KB I/O ROM INTERFACE 256 BYTES RAM 8 BIT CLOCK CPU 6 MHz FIGURE 1_ WD2401 BUFFER MANAGEMENT TAPE CONTROLLER SIMPLIFIED BLOCK DIAGRAM Tape Drive Controller Products 7-5 WD2401 COMMAND SET The WD2401 command set implements all the basic HIGH along with Byte 2 (MIDDLE) and Byte 3 functions to backup Winchester disk images or (LOW) make up the Tape Block Number used only logical files. WD2401 commands control the basic by the Read Tape Block command. functions of tape positioning, data transfer, and Byte 4 contains the COUNT field used by the Read operational modes. File Mark and Write File Mark commands. Command protocol follows the SASI standard. Com- Byte 5 contains the option bits. mand descriptor blocks (CDB) consist of six bytes and Figure 2 illustrates the CDB format. Tables 4 and 5 contain the following information: summarizes command parameters and option bits, Byte 0 contains the command group in bits 7 respectively. Table 6 lists error codes and their through 5 and the command op code in bits 4 definitions. through O. Byte 1 contains the tape drive's Logical Unit Number (LUN bits 7 through 5), and the five high order bits of the Tape Block Number (HIGH bits 4 through 0). BITS BYTES 7 I 6 I 5 4 I 3 I 2 I 1 I 0 0 OPCODE 1 LUN HIGH 2 MIDDLE 3 LOW 4 COUNT 5 OPTION BITS See Table 5 FIGURE 2. COMMAND DESCRIPTOR BLOCK FORMAT 7-6 Tape Drive Controller Products TABLE 4. COMMAND SUMMARY OP COMMAND COMMAND TYPE CODE LUN HIGH MIDDLE LOW COUNT OPTIONS REWIND TO TAPE 11 0 0 0 0 0 0 BEGINNING OF TAPE POSITION READ FILE MARKS TAPE 24 0 0 0 0 V T POSITION ERASE TAPE TAPE 26 0 0 0 0 0 0 POSITION RETENSION TAPE TAPE 27 D 0 0 0 0 0 POSITION FIND END OF DATA TAPE 28 0 0 0 0 0 0 POSITION TEST DRIVE READY OPERATION 00 0 0 0 0 0 0 MODE READ SENSE BYTES DATA 03 0 0 0 0 0 C TRANSFER READ BLOCK BUFFER DATA 10 0 0 0 0 0 P TRANSFER WRITE BLOCK DATA OF 0 0 0 0 0 P BUFFER TRANSFER READ TAPE BLOCKS DATA 21 0 V V V V R,T,F TRANSFER WRITE TAPE BLOCKS DATA 22 0 0 0 0 V T,U,H TRANSFER WRITE FILE MARK DATA 23 0 0 0 0 V T,H TRANSFER READ EXTENDED DATA 25 0 0 0 0 0 C STATUS TRANSFER BACKUP DISK IMAGE OPERATION 40 0 0 0 0 0 T,U,H MODE PERFORM OPERATION E4 0 0 0 0 0 0 CONTROLLER MODE DIAGNOSTICS DEFINE TAPE OPERATION OC 0 0 0 0 0 0 PARAMETERS MODE EXIT Spy MODE OPERATION 41 0 0 0 0 0 U MODE Tape Drive Controller Products 7-7 LEGEND :eC D V Target drive number Valid parameter R Reposition option F Flush bit ~ T Threshold U Underrun g C Clear internal counters H High current P Page number. External block buffer contains sixteen pages of memory. Each page of memeory is 512 bytes. a Must be a TABLE 5. OPTION BITS SUMMARY BITS COMMAND 7 6 5 4 3 2 1 0 WRITE BLOCK BUFFER 0 0 0 0 P P P P READ BLOCK BUFFER 0 0 0 0 P P P P READ TAPE BLOCKS R F T 0 0 0 0 0 READ FILE MARKS 0 0 T 0 0 0 0 0 WRITE TAPE BLOCKS 0 0 T H U 0 0 0 WRITE FILE MARKS 0 0 T H 0 0 0 0 FIND END OF DATA 0 0 T 0 0 0 0 0 READ EXTENDED STATUS 0 0 0 0 0 C 0 0 READ SENSE BYTES 0 0 0 0 0 C 0 0 NOTE: Bits 0 through 7 in byte 5 of command block are set to zero for all other commands. LEGEND P Page number. External block buffer contains sixteen pages of memory. Each page of memory is 512 bytes. R Reposition. 0 = disable. 1 = enable repositioning. Enabling repositioning requires a tape block address in the HIGH, MIDDLE, and LOW bit positions and starts a flush. F Flush. 1 = flush data blocks in the buffers before reading more blocks. 0 = disable flushing. T Threshold. 0 = disable. 1 = enables threshold at read head. Eliminates data of questionable quality. H High current. 0 = disable. 1 = enables increased write current for high coercivity tape, e.g. DC600A. U Underrun. 0 = stop tape motion on an underrun. 1 = maintain streaming on an underrun. C Clear internal Read CRC, Write CRC, and Underrun/Overrun counters when set to 1. 7-8 Tape Drive Controller Products TABLE 6. ERROR CODES HEX CODE DEFINITION 04 Drive not ready. Drive could not be selected. 20 Illegal command in COB. 30 WD2401 RAM failure. 31 ROM checksum error. 35 Maximum number of retries exceeded. 36 End of tape. 37 Addressed tape block not found. 38 Write protected. 39 File mark not detected. 3A End of physical media. 3B End of recorded data. 3C Illegal tape structure. Missing blocks. TAPE POSITIONING COMMANDS ERASE TAPE Tape positioning commands (Rewind to Beginning of (OP CODE 26) Tape, Erase and Retension only) issued to the BMTC This command erases and retensions the entire tape. are completed immediately, i.e., the Host issues the command, the WD2401 stores the command in inter- RETENSION TAPE nal RAM, then the WD2401 releases the SASI bus. The (OP CODE 27) WD2401 remains connected to the SASI bus until completion of the Read File Marks command. The This command causes the tape drive to rewind the Host issues a Test Drive Ready command to the tape to the BOT positon. Next, the tape drive winds WD2401 to determine if the positioning command has the tape to the end of tape (EOl) position and rewinds been completed. An error condition is generated for to the BOT position. an uncompleted drive positioning command. Normal completion of a drive positioning command is FIND END OF DATA assumed if no error is presented. (OP CODE 28) This command searches for the last recorded block REWIND TO BEGINNING OF TAPE on tape. (OP CODE 11) This command causes the tape drive to rewind the DATA TRANSFER COMMANDS tape from the tape's current position to the beginn- ing of tape (BOT) position. READ FILE MARKS (OP CODE 24) The Read Fi Ie Marks command moves the tape for- ward to a specified file marker. This command allows processing of multiple disk images or logical files as individual data sets. Tape Drive Controller Products 7-9 READ SENSE BYTES WRITE FILE MARK (OP CODE 03) (OP CODE 23) This command returns one status byte. The block This command writes a file mark block at the current number with the error follows the status byte. A no tape postion. A file mark denotes the end of a com· error condition returns the block number of the last plete disk image data set or the end of a logical file. read or written block of data. The WD2401 returns four bytes of data to the Host. These bytes are: READ EXTENDED STATUS (OP CODE 25) 7 6 5 4 3 2 1 0 The Read Extended Status command allows the user BYTE 0 B 0 T T E E E E access to extensive error status information. This command sends 20 bytes of data to the Host. BYTE 1 D D D HIGH The contents of these bytes are: BYTE 2 MIDDLE 7 I6 I5 I4 I3 I2 I1 BYTE 3 LOW BYTES 1 . 0 NUMBER OF REPOSITIONS NOTE: B represents the block address valid bit. BYTES 2· 3 NUMBER OF UNDERRUNS 1 = block address is valid. 0 = invalid. T represents the error type. BYTES 4· 5 NUMBER OF OVERRUNS E represents the error code. BYTES 6· 7 NUMBER OF READ CRC D represents the drive number in error. ERRORS WRITE BLOCK BUFFER BYTES 8· 9 NUMBER OF WRITE CRC (OP CODE OF) ERRORS This command allows the Host to perform memory BYTE 10 MOST RECENT ERROR CODE diagnostics on the internal RAM. The controller must be in an idle state before this command is issued. BYTES 11· 13 MOST RECENT ERROR BLOCK BYTES 14· 16 NEXT BLOCK TO BE READ OR READ BLOCK BUFFER WRITTEN (OP CODE 10) This command allows the Host to perform memory BYTE 17 NUMBER OF BLOCKS diagnostics on the internal RAM. The controller must BUFFERED IN EXTERNAL RAM be in an idle state before this command can be issued. BYTE 18 MAJOR VERSION OF FIRMWARE BYTE 19 MINOR VERSION OF FIRMWARE READ TAPE BLOCKS (OP CODE 21) The Read Tape Blocks command restores the data from a streaming backup tape cartridge. This com· mand restores both disk images and logical files. All read data transfers must pass the data into the Host memory. WRITE TAPE BLOCKS (OP CODE 22) The Write Tape Blocks command writes data to tape from Host memory. 7-10 Tape Drive Controller Products OPERATIONAL MODE COMMANDS BACKUP DISK IMAGE DEFINE TAPE PARAMETERS (OP CODE 40) {OP CODE ~C) This command arms the tape controller and slaves The Host issues this command to pass hardware it to the disk controller. The WD24C02 ReadlWrite For- parameters to the WD24C02. The Buffer Management matter intercepts data on the SASI Bus and writes Tape Controller passes these parameters to the the data to the tape. Interception of the data on the WD24C02 in three bytes. These bytes are: SASI Bus is the spy mode. The WD24C02 ReadlWrite Formatter throttles the disk controller by regulating the ACK Signal from the Host. 71 6 I 5 I 4 I 3 I 2 I 1 I 0 BYTE 0 NUMBER OF TRACKS PER DRIVE PERFORM CONTROLLER DIAGNOSTICS (OP CODE E4) BYTE 1 NUMBER OF RETRIES This command causes the WD2401 to execute PER COMMAND diagnostics and to detect errors. The user determines BYTE 2 BLOCKS TO BUFFER BEFORE the exact error code by issuing the Read Sense STARTING TAPE Command. EXIT SPY MODE (OP CODE 41) This command ends spy mode operation for short and long terms. Normal completion of a disk image dump or catastrophic errors require that streaming opera· tions stop. Short term spy exits allow the Host to intermix disk operations with other disks. TEST DRIVE READY (OP CODE 00) The user issues this command to determine comple- tion of a tape motion command. Completion of this command with no error indicates normal execution of the previously issued tape motion command. Simultaneous execution of this command and a tape motion command results in an error condition. Issu- ing a Read Sense Byte determines the exact state of the tape motion command or the cause of the error conditon. Tape Drive Controller Products 7-11 ELECTRICAL CHARACTERISTICS =E C ABSOLUTE MAXIMUM RATINGS N ~ Operating Temperature .................................................. OOC (3~F) to 70°C (158°F) ..... Storage Temperature ............................................. -65°C (-85°F) to + 150°C (302°F) Volatage on any Pin with respect to ground .......................................... -0.5V to + 7V Power Dissipation .................................................................... 1.5 Watts NOTE: Maximum limits indicate where permanent device damage occurs. Continuous operation at these limits is not intended and should be limited to those conditions specified in the DC Operating Characteristics. DC Operating Characteristics TA = OOC (32°F) to 70°C (158°F); Vss = OV, Vcc = 5V + 10% SYMBOL CHARACTERISTICS MIN MAX UNITS CONDITIONS V 1L Input Low Voltage (All except -0.5 0.8 V BRST, XTAL 1, and XTAL2) V 1L1 Input Low Voltage (BRST, -0.5 0.6 V XTAL1, and XTAL2) V 1H Input High Voltage (All 2.0 5.0 V except BRST, XTAL1, and XTAL2) V 1H1 Input High Voltage (BRST, 3.8 5.0 V XTAL1, and XTAL2) VOL Output Low Voltage 0.45 V IOL = 2.0 rnA (Bus) V OL1 Oute.!:!!.. Low Voltage 0.45 V IOL = 1.8 rnA (RE,WE,ALE) V OL2 Output Low Voltage 0.45 V IOL = 1.6 rnA (All other Outputs) V OH Output High Voltage 2.4 V IOH = -400 /-LA (Bus) VOH1 Oute.!:!!.. High Voltage 2.4 V IOH = -100/-LA (RE,WE,and ALE) VOH2 Output High Voltage 2.4 V IOH = -40/-LA (All other Outputs) 7-12 Tape Drive Controller Products DC Electrical Characteristics (Cont'd.) TA = OOC (32°F) to 70°C (158°F); Vee = 5V ± 10%; Vss = OV SYMBOL CHARACTERISTICS MIN MAX UNITS CONDITIONS :E c N IlL Input Leakage Current (ROY ±10 ",A Vss!S VIN ::; Vee ~ and INn o ...... IIL1 Input Leakage Current (Pins -500 ",A Vss + 0.45!S 21 through 38) VIN!S Vee ILO Output Leakage Current (Bus ±10 ",A Vss + 0.45!S - High Impedance State, VIN!S Vee BSy) Vee Total Supply Current 80 rnA AC CHARACTERISTICS TA = OOC (32°F) to 70°C (158°F); Vss = OV, Vee = +5V + 10% ~~-t-LL-~-----tCY----------·~1 ALE J 1--1_ _ _ _ _~I ------.L INSTRUCTION FETCH FROM EXTERNAL MEMORY TIMING INSTRUCTION FETCH FROM EXTERNAL MEMORY TIMING SYMBOL CHARACTERISTICS TYP UNITS CONDITIONS (NOTE 1) tey Cycle Time 2.5 ",sec NOTE 2 tLL ALE Pulse Width 413 nsec tLA Address Hold from ALE 126 nsec tAL Address Setup to ALE 223 nsec NOTE 3 tAD1 Address Setup to Data 1030 nsec NOTES: 1. Control output load capacitance equals 80 pF. Bus load capacitance equals 150 pF. 2. Assumes 50% duty cycle on XTAL1 and XTAL2. 3. Bus high impedance load equals 20 pF. Tape Drive Controller Products 7-13 --.J ~tLAFC --.J~---"'" ALE J L ALE L WR - - - - - - - - - , R5------.....; ~ tec ~ tCA f.- I I BUS ~ tAFC j ~ I FLOATING =1 t tOR -F-LO-A-T-IN-G-- L:===tA02~tRO WRITE TO EXTERNAL DATA MEMORY READ FROM EXTERNAL DATA MEMORY SYMBOL CHARACTERISTICS TYP MIN SYMBOL CHARACTERISTICS TYP MIN t LAFC ALE to Control t LAFC ALE to Control (WE, RE) 425 nsec (RE, WE) 425 nsec tcc Control Pulse Width tcc Control Pulse Width (WE, RE) 1050 nsec (RE, WE) 1050 nsec tCA Control (WE, RE) 126 nsec tCA Control to ALE to ALE (RE, WE) 126 nsec - tow Data Setup before 883 nsec t AFC Address float to RE 293 nsec WE tOR Data Hold RE 220 nsec two Data Hold after 116 nsec - t RO RD to Data In 746 nsec WE t A02 Address setup to 1530 nsec tAW Address Setup to 683 nsec read data WE NOTE: Control output load capacitance equals NOTE: Control output load capacitance equals 80 pF. Bus output load capacitance equals 80 pF. Bus output load capacitance equals 150 pF. 150 pF. 7-14 Tape Drive Controller Products PACKAGE DIAGRAM :ec N I--- 2060 ± .020 I ~ o I" '" A A"... 52.32 ± .51 -r ..... ,~4~E(:::::::::C::::::~~rp'N"D 020 ~g~~ 645 ± 030 1638 ± .76 J ,---------------.1], ~;: 30 ± .08 075 ± .025 1.90 ± .64 ~! ! 1 .100 ± .010 2.54 ± .64 J~~.150 ' ± .020 3.81 ± .51 018 ± .003 46 ± .08 40 LEAD PLASTIC PL Tape Drive Controller Products 7-15 7-16 Tape Drive Controller Products WESTERN DIGITAL CORPORAT ON WD2404-DSM Tape Data Separator Module FEATURES • FABRICATED USING STATE-OF-THE-ART SURFACE MOUNT TECHNOLOGY • SMALL FORM FACTOR (2" X 2.5") • INDUSTRY STANDARD OIC-36 INTERFACE • CONFORMS TO OIC-36 ISV, BIT JITTER AND ASYMMETRY SPECIFICATIONS • COMPLETELY SELF-ADJUSTING • ± 10% CAPTURE RANGE • + 5V and + 12V OPERATIONS DESCRIPTION The WD2404-DSM is a completely self-contained, self An optional delay line is included on the module adjusting, state-of-the-art design implemented in which can be disabled by the user. Surface Mount Technology. The tape data separator module provides a generic interface to a tape con- There are absolutely no adjustments on the troller implementing a OIC-36 drive interface and WD2404-DSM. The module looks at Raw Data Pulse OIC-24 recording format for 114" streaming tape. (RDP) from the drive at Read Gate (RG) time and generates Expect to Receive Sync (ERS) and Read It requires a high speed 14.4 MHz clock and provides Gap (RGAP). It separates data and clock and 7.2 MHz and 3.6 MHz clocks for system interface. generates RCLK and RD signals. It also detects the absence of data (Erased Tape) by asserting signal The tape data separator module consists of the NDTA. The WD2404-DSM also has the capability to following basic functional blocks. narrow the bit cell window during Read After Write • DATA SEPARATION LOGIC (RAW) operation for additional data integrity. • CHARGE PUMP CIRCUITS The module is easy to integrate and is fabricated using Surface Mount Technology for high reliability. • LOOP COMPENSATION CIRCUIT The module requires + 5V and + 12V supply. • VCO CIRCUITS Tape Drive Controller Products 7-17 ,,-. -- RESET +12V ClK (14.4 MHz) - RDP 1 PUP CHARGE 10 lOOP PUMP CaMp. RG PDN CKT. CKT. ....:::!£ 20 ERS PIN WEN 2 DIS 4 CONN. C 560NS 7.2 MClK 0 3 DTA 0 WClK (3.6MHz) DlDTA I~ VCO CKT. DlYSEl 20 PIN DIP RGAP VCO I RD RClK I I NOTA ,---+5V _+12V _GNO --- .. TAPE DATA SEPARATOR BLOCK DIAGRAM PIN NO. SIGNAL SIGNAL FUNCTION 1/0 1 RG READ GATE I 2 CLK 14.4 MHz CLOCK I 3 7.2 MCLK 7.2 MHz CLOCK 0 4 RDP RAW DATA PULSE I 5 DLYSEL DELAY SELECT O-EXTERNAL 1-INTERNAL I 6 RGAP READ GAP 0 7 WCLK WRITE CLOCK 3.6 MHz 0 8 DTA DATA FOR DELAY LINE APPLICATION 0 9 RESET RESET I 10 DLDTA EXTERNAL DELAYED DATA I 11 ERS EXPECT TO RECEIVE SYNC 0 12 N/C RESERVED 13 NDTA NO DATA DETECTED 0 14 RD READ DATA (SYNCHRONIZED) 0 15 WEN WRITE ENABLE I 16 RCLK READ CLOCK (FOR CLOCKING RD) 0 17,19 GND DC GROUND 18 VCC +5V DC 20 +12V + 12V DC 7-18 Tape Drive Controller Products SIGNAL FUNCTIONAL DESCRIPTION RG READ GATE Asserted whenever the tape controller is ready to read data from the drive also asserted during tape write for read after write function. CLK CLOCK 14.4 MHz TTL clock all tape related timings are derived from this high speed clock. 7.2 MCLK 7.2 MCLK Divide by two clock for WD3600 tape controller. -- RDP RAW DATA PULSE Incoming data pulse from OIC·36 drive after 220/330Q termination. This signal should meet the min/max pulse width/period requirements of OIC·36 specs. DLYSEL DELAY SELECT This signal selects the internal 24C03 digital delay or external delay thru delay line default (line floating) state is digital delay connected to GND for delay line selection. RGAP READ GAP Whenever a consecutive string of recorded one's (1's) are detected (min 32) this line is asserted and will stay asserted during the entire gap time minimum OIC·24 gap is 125 bits. WCLK WRITE CLOCK This clock is four times the bit rate of tape data transfer (divide by four clock for WD24C02). DTA DATA Data for delay line application (not to be used externally). RESET RESET Master reset used to synchronize internal circuits or WD24C03. DLDTA EXTERNAL Data from delay line. (Not to be used externally). DELAYED DATA ERS EXPECT TO This signal is asserted by the module when a valid OIC·24 gap is verified RECEIVE SYNC and the data separator is locked in a phase mode assertion of this indicates the imminent occurence of sync mark shortly. NDTA NO DATA This signal is asserted when illegal GCR pattern is encountered erased tape will constitute illegal GCR pattern. RD READ DATA True vinary data separated from clock read data is synchronized with read clock (RCLK). WEN WRITE ENABLE If asserted during a write operation this narrows the bit cell window for read after write operation providing additional data integrity. -- RCLK READ CLOCK Read Clock synchronized with seperated data. Data to be clocked with rising edge of the clock. GND GROUND Power supply ground + 5V & 12V return. vce vcc + 5V from power supply. +12V +12V + 12V from power supply. Tape Drive Controller Products 7-19 7-20 Tape Drive Controller Products WESTERN DIGITAL CORPORATION WD24C02 Read/Write Formatter Advance Information FEATURES REQ 1 • 40-PIN DUAL IN-LINE PACKAGE GATE ARRAY ACK DEVICE INT 3 • SINGLE +5V POWER SUPPLY CLKOUT 4 MR 5 • SUPPORTS QIC-24 REV. D TAPE FORMAT RE 6 • READ-AFTER-WRITE VERIFICATION WE 7 • SUPPORTS AN EXTERNAL 8 KB (16 BLOCKS) AD? 8 AD6 9 BLOCK BUFFER AD5 10 • INTERFACES TO AN EXTERNAL BUFFER AD4 11 MANAGER (E.G., WD2401) AD3 12 AD2 13 • DIRECT INTERFACE TO DATA SEPARATOR AD1 14 LOGIC ADO 15 • HANDLES DMA REQUEST AND ACKNOWLEDGE BRQ 16 HANDSHAKE FOR HOST DATA TRANSFERS RDY 17 WCLK 18 • BUS CONTROL AND A MULIPLEXED ADDRESS ALE 19 AND DATA BUS FOR MICROPROCESSOR INTER- GND 20 FACE • COMMAND AND STATUS REGISTERS PIN DESIGNATION DESCRIPTION The WD24C02 is a multifunctional gate array device. bus, when required, to compensate for disk latencies. This device performs QIC·24 read and write format- The WD2402 also maintains the buffer addresses ting with read-atter-write verification. (QIC is an (lower 9 bits) for Host or device access. acronym for Quarter-Inch Compatibility). The The Status Register represnts the current status of WD24C02 is controller by a Buffer Management Tape the WD24C02 and is read by the buffer manager. All Controller (WD2401) or other external microprocessor read and write functions are selected by writing a programmed for buffer management of tape data. command in the Command Register. The WD24C02 DMA request and acknowledge signals The WD24C02 runs at a 3.6 MHz clock rate and pro- control the transfer of read and write data between vides a real time clock of 90 KHz for the tape drive the Host and an external block buffer. (The block buf- interface. External data separator logic directly inter- fer is an external 8K byte random access memory.This faces with the WD24C02. memory is divided into 16 pages. Each page is 512 bytes in length.) These signals throttle the SASI Tape Drive Controller Products 7-21 SIG. SIGNAL SIGNAL 110 == C N PIN MNEMONIC NAME DESCRIPTION ~ 1 REQ DMA REQUEST I Assertion of this signal indicates the Host is ready (') to access the external block buffer for a read or write. o N 2 ACK DMA 0 Assertion of this signal indicates to the requesting ACKNOWLEDGE device that the address is available to the external block buffer for a read or write cycle. 3 INT INTERRUPT 0 Assertion of this signal indicates to the Host the start of a read or write gap. 4 CLKOUT OUTPUT CLOCK 0 Real time clock for external circuitry. 5 MR MASTER RESET I Assertion initializes the WD24C02. * 6 -RE READ ENABLE 110 Bi-directional, tri-state line. Assertion as an input writes data into the WD24C02 internal register. Asser- tion as an output indicates the WD24C02 is writing data to the external block buffer. - * 7 WE WRITE ENABLE 110 Bi-directional, tri-state line. Assertion as an input writes data into the WD24C02 internal registers. Assertion as an output indicates the WD24C02 is writing data to the external block buffer. 8 AD7 MULTIPLEXED 110 Eight-bit, bi-directional, multiplexed data and address thru thru ADDRESS AND bus. Addresses are input only. The bi-directional data 15 ADO DATA lines transfer command and status information. BUS 16 BRQ BUS REQUEST I Assertion indicates a request for access to the WD24C02 internal registers. 17 RDY READY 0 Assertion indicates to the requesting device that the bus is available. At least one access can be made every 11.111sec. DMA requests are not acknowledged during this time. 18 WCLK WRITE CLOCK I Internal clock for write data transfers and other inter- nal timing purposes. 19 ALE ADDRESS I Assertion of this signal latches the address from the LATCH multiplexed address and data bus. ENABLE 20 GND GROUND Ground. 21 BFAO BUFFER 0 Address bus for external buffer RAM. BFAO is the thru thru ADDRESS least significant bit (LSB). 33 BFA12 BUS 34 BFOFL BUFFER 0 Assertion of this signal indicates to the BMTC that OVERFLOW the 512 byte external RAM buffer is full. The page pointer requires updating for the next data transfer. 35 WD- TAPE WRITE 0 Run length limited (RLL) encoded data. DATA- 36 WD+ TAPE WRITE 0 Complementary data. DATA + 7-22 Tape Drive Controller Products SIG. SIGNAL SIGNAL 1/0 PIN MNEMONIC NAME DESCRIPTION 37 RD TAPE READ I RLL encoded data (from Data Separator). DATA -- 38 ERS EXPECT TO I Assertion of this signal indicates to the read RECEIVE sequencer the imminent occurrence of the syn· SYNCHRONIZATION chronization character. -- 39 RCLK READ CLOCK I Extracted clock from RAW DATA PULSE (RDP). 40 vcc vcc + 5V + 5% power supply. Tape Drive Controller Products 7-23 7-24 Tape Drive Controller Products WESTERN DIGITAL COR P 0 RAT o N :E WD1036R-SHD Streaming Tape Controller ....c o CAl en :p FEATURES DOCUMENT SCOPE en ::I: • SASI 8-BIT BI-DiRECTIONAL BUS HOST This document is intended to provide the reader with C INTERFACE an overview of the WD1036R-SHD, for a detailed understanding it will be necessary to refer to the • QIC-36 1/4-INCH STREAMING TAPE following documents: DRIVE SASI™ • CON FORMS TO QIC-24 FORMAT QIC-24, QIC-36 SPECIFICATIONS WD1036R-SHD OEM manual document number 79-000028 • READ-AFTER-WRITE VERIFICATION WD2401 BMTC Data sheet • EXTENSIVE ERROR RECOVERY ABILITY WD24C02 RIW Formatter Data sheet SASI is a trademark of Shugart Inc. • ON-BOARD 8K BYTE BUFFER DESCRIPTION • SUPPORTS TAPE DRIVES WITH A 720-K BIT DATA TRANSFER RATE The WD1036R-SHD is a stand-alone Streaming Tape Controller board that interfaces to a single 114-inch • 90-IPS TAPE SPEED QIC-36 streaming tape drive. The WD1036R-8HD uses • START/STOP OR STREAMING industry standard QIC-24 ReadlWrite formatting. OPERATION The WD1036R-SHD communicates with the Win- • 5.5 IN. X 8 IN. PCB FORM FACTOR chester disk drive controller (possibly a WD1002-SHD) through the Host controlled SASI bus. All data, status • ADJUSTMENT FREE DATA information, and commands are transferred via this SEPARATOR bus. Figure 1 shows a typical system configuration . - -- .DISK DRIVE ~ WINCHESTER \ DISK DRIVE ST-506 .I CONTROLLER -- -- DISK DRIVE A ~ A HOST I HOST V COMPUTER 1\ ." r " ADAPTER 1\ ~ SASI BUS QIC-36 to V" \ I WD1036R-SHD CONTROLLER - -.. INTERFACE 1/4-IN STREAMING TAPE DRIVE FIGURE 1. TYPICAL SYSTEM CONFIGURATION Tape Drive Controller Products 7-25 ARCHITECTURE The WD1036R-SHD has three on-board connectors, WD24C02 ReadlWrite Formatter, an 8K byte RAM, the power connector P1, Host connector J1, and tape Data Separator, SASI interface, tape drive interface, drive connector J2. Figure 2 is a block diagram and misc. buffers and latches. illustrating the major areas of the WD1036R-SHD. These sections consist of a WD2401 Buffer ManagerfTape Controller, TWD+ TWD- CONTROl TAP[ DRIVE INTERFACE (QIC-36) BUFFER 1Gl./ TAPE CONTLR PORT 0 1102401 PORT 1 PORT Z PORT 3 RCLIt ROF +5VOC CLOCKS RG FIGURE 2. WD1036R-SHD STREAMING TAPE CONTROLLER, BLOCK DIAGRAM WD2401 BMTC The WD2401-BMTC consists of an 8-bit microcon- • Manage the RAM buffer and furnish the four high- troller, 4K bytes of ROM, containing Western Digital order address bits (page number) to the WD24C02. proprietary firmware, and 256 bytes of RAM. The • Initialize the Page Pointer and Command Registers WD2401-BMTC is responsible for performing the in the WD24C02 following a power up reset, or a following functions: reset (RSl) from the initiator. • Receive an interpret SASI commands and pass • Perform a diagnostic routine to test the certain commands to the WD24C02 ReadlWrite microprocessor, RAM, and ROM at power-up or Formatter. reset from the initiator. • Act as the handshake controller with both SASI • Perform error handling and maintain an error log interface hardware and the tape drive, and con- in it's internal RAM. trol all tape drive motion. • Periodically poll the status and sense signals from the tape drive, then determine and initiate the appropriate action. 7-26 Tape Drive Controller Products WD24C02 RIW Formatter Buffer RAM Write formatter logic in the WD24C02 reads data from The 8K-byte RAM is treated as 16 blocks of 512 bytes the RAM buffer, formats it to QIC-24 requirements, each, which correspond to the block size on tape. The and serializes the data to be written on the tape. four high-order address lines select the block. Bi- directional data lines are connected to SASI Bus lat- Read formatter logic accepts serial data from Data ches and to the WD24C02 data lines. The buffer is Separator logic, deserializes it, decodes GCR-coded addressed by the WD24C02 while the WD2401 con- data, and transfers data to the RAM Buffer. This logic trols the reading and writing of the buffer. also detects File Marks, strips out the gap, sync characters, and block address, and performs the CRC Data Separator Check, generating a CRC error flag when an error occurs. Read formatter logic also performs the Read The Data Separator recognizes the data as it is read Check during a write operation. from the tape, removes the clock pulses, and transfers the data (RD) to the WD24C02. Handshaking with the The WD24C02 detects error status and passes it on WD2401 is through RG and RGAP signals which to the WD2401, which maintains an error log in its define the beginning of data. The WD2404-DSM is internal RAM. initialized at power-up or by the initiator issuing RST. The WD24C02 maintains the nine low-order address bits at the RAM Buffer for either Host or drive access. The WD2404-DSM is a self contained module requir- The four high-order address bits - block select - are ing no adjustments. It is installed as a piggy-back card maintained by the WD2401 but supplied to the RAM by mating the rear entry connector J1 on the module by the WD24C02. to J3 on the WD1036R-SHD. Buffer arbitration is managed so that the Host does not run over a restricted block buffer. A bad block is not transferred to the Host during a restore operation. Tape Drive Controller Products 7-27 SPECIFICATIONS HOST INTERFACE Type SASI Cable length (Daisy Chained) 15 ft. (4.6m) max. Cable connector 50 pin Berg 65610·150 or Molex 10·89·1501 Termination Socketed 220/330 ohm resistor pack Addressing Jumper selectable (1 through 8) Default = 2 DRIVE INTERFACE Type QIC·36 Rev. B Standard Cable length 10 ft. (3 m) max. Cable connector 50 pin Berg 65610-150 or Molex 10·89·1501 Termination 220 ohms to + 5 volts 330 ohms to ground Recording method QIC·24, NRZI, GCR (0,2) at 10,000 frpi. CRC polynomial X16 + X12 + X5 + 1 Cartridge Capacity 1/4 in. 9 track DC300A = 30 M Byte DC300XL = 45 M Byte DC600A = 60 M Byte DATA SEPARATOR Acquisition time <64 bit times Capture range ±25% Bit jitter tolerance See Figure 3 Asymmetry tolerance See Figure 3 POWER Cable connector 4 pin, right angle Molex 15·24-4041 AMP 641737-1 Voltage +5 VDC ±5% +12 VDC ±5% Current 1.5A max. 1.2A typo @ 5 volts 50ma max. 20ma typo @ 12 volts Ripple 0.1 volt DIMENSIONS Length 8 inches Width 5.50 inches Height (max. including board, components, 0.5 inch and leads) ENVIRONMENTAL Ambient temperature OOC (32°F) to 55°C (131°F) Relative humidity 10% to 90% non-condensing Altitude o to 10,000 ft (3048 m) Air flow 150 linear ftlmin @ 0.25 inches from the component surface MTBF 10,000 hrs. MTTR 30 min. 7-28 Tape Drive Controller Products 30 =E c ..... o w en 25 :IJ en :I: ~ C z: -o - > ~ 20 0 :: ex:: c L.I.J L.I.J Q.. V) 15 V) :::> o L.I.J z: ex:: ~ RECOVERED ex:: t;; 10 - z: 5 o o 5 10 15 20 25 30 35 FIGURE 3. BIT JITIER (%) HOST INTERFACE The SASI interface is a daisy-chained bus intercon- The bus is terminated at the WD1036R-SHD using a necting the Host computer, the WD1036R-SHD, Win- socketed resistor pack to facilitate daisy-chaining. chester drive controller, and other peripheral or The WD1036R-SHD is strapped at the factory to res- peripheral controllers up to a total of eight. The pond to SASI address 2 but may be changed by mov- WD1036R-SHD is connected to the bus through a 50- ing a jumper to the desired address. pin flat cable which may be as long as 15 feet. The connector on the WD1036R-SHD is a Berg 65610-150 or Molex 10-89-1501. Tape Drive Controller Products 7-29 TABLE 1. HOST INTERFACE CONNECTOR (J1) PIN DESCRIPTION SIG. SIG. SIGNAL GND. PIN MNEMONIC NAME 1/0 FUNCTION 1 2 DO DATA 0 I/O Eight-bit, bi-directional, tri-state, bus used to transfer thru thru thru thru commands, status, and data between the Host and 15 16 D7 DATA 7 Controller and other devices on the bus. 17 18 ABORT ABORT I Optional hardware ABORT signal. Pin selected by thru thru movable jumper. Allows the Host to reset the 33 34 WD1036R-SHD without effecting other devices on the bus. 35 36 BSY o Indicates to the Host that the WD1036R-8HD is busy executing a command and is unable to accept another command. The trailing edge acknowledges receipt of SEL and indicates that the transaction is completed. 37 38 ACK ACKNOWLEDGE I ACK is an input signal when used with REQ as a handshake signal for byte transfer. Both leading and trailing edges are used. 39 40 RST I When asserted for at least 100 nsec, RST places the WD1036R-SHD in its initial power-up state. 41 42 MSG MESSAGE o Indicates the end of the present transaction. 43 44 SEL SELECT I When asserted, gives control of the bus to the selected device address. 45 46 C/D CONTROU o As an output signal, C/D along with I/O and MSG DATA signals the Host the type of bus transfer that is expected by the WD1036R-SHD. C/D - 0 = Control - 1 = Data Control is defined as a: command, status or message. 47 48 REQ REQUEST o REQ is an output signal when used with ACK as a handshake signal for data transfer between the Host and WD1036R-SHD. Both leading and trailing edges are used. 49 50 I/O INPUT/ o As an output singall/O defines the direction of OUTPUT the transfer: 1 = output from the Host o = input to the Host 7-30 Tape Drive Controller Products TAPE DRIVE INTERFACE The WD1036R-SHD interfaces to the tape drive The lines are terminated with 220 ohms to + 5 volts ::E through a 50-pin flat cable no more than 10 feet in and 330 ohms to ground. All signals to the WD1036R- c ...L length. The interface comprises 25 lines, three of SHD are terminated at the WD1036R-SHD and must o which are reserved for future use. The 50-pin edge be able to drive two TTL loads plus the termination. W 0') connector on the WD1036R-SHD mates with a Berg :0 65610-150, Molex 10-89-1501, or equivalent. en TABLE 2. TAPE DRIVE INTERFACE CONNECTOR (J2) PIN DESCRIPTION ::r: c SIG. SIG. SIGNAL GND. PIN MNEMONIC NAME 110 FUNCTION 1 2 GO GO 0 GO controls the capstan servo. GO starts thEL.!mJe motion sequences in the direction specified by REV. -- 3 4 REV REVERSE 0 REV controls the direction of the capstan servo. When asserted with GO, the tape motion is in the reverse direction. - - 5 6 TR3 TRACK 0 Track Select bit 3. TR3 through TRO is the binary SELECT 3 coded track number used by the drive to select a designated track. (MSB) - - - 7 8 TR2 TRACK 0 Track Select bit 2. TR3 through TRO is the binary SELECT 2 coded track number used by the drive to select a designated track. - - 9 10 TR1 TRACK 0 Track Select bit 1. TR3 through TRO is the binary SELECT 1 coded track number used by the drive to select a designated track. 11 12 TRO TRACK 0 Track Select bit O. TR3 through TRO is the binary SELECT 0 coded track number used by the drive to select a designated track. (LSB) 13 14 RST RESET 0 RST is a minimum pulse of 13 usec. It starts the in- itialization routine and recalibration of the head to its reference position. 15 16 RESERVED 17 18 RESERVED 19 20 RESERVED 21 22 DSO DRIVE 0 When asserted D~ermits basic tape drive opera- SELECT 0 tions to proceed. DSO enables the transfer of control signals: RDP CIN USF TCH EEN. The drive acknow- ledges receipt of DSO by sending SLD. 23 24 HC HIGH 0 When asserted, enables operation with DC GOOA tape CURRENT cartridges. Refer to ANSC Project 671 Unrecorded Magnetic Tape Cartridge for Information Interchange, 0.250 inch (6.30mm) 6400-10000 flux-reversals per inch (252-394 frpmm). -- 25 26 RDP READ DATA I Serial-bit data read from tape to the WD1036R-SHD. PULSE RDP ...!Lpresent when data passes the read head and DSO is asserted. Tape Drive Controller Products 7-31 TABLE 2. TAPE DRIVE INTERFACE CONNECTOR (J2) PIN DESCRIPTION SIG. SIG. SIGNAL GND. PIN MNEMONIC NAME 1/0 FUNCTION 27 28 UTH UPPER TAPE I UTH and LTH encode information having to do with POSITION tape position as follows: HOLE 29 30 LTH LOWER TAPE I UTH - LTH MEANING POSITION 1 1 Beginning of Tape HOLE 0 1 End of Tape 1 0 Warning Zone 0 0 Recording Zone The Recording Zone is between the Load Point and the Early Warning hole if BOT or EOT has been detected since the last cartridge insertion (CIN). Otherwise 0 0 means the tape position is not known. 31 32 SLD DRIVE I Tape drive acknowledgement to the WD1036R·SHD or SELECTED receipt of the DSO. 33 34 CIN CARTRIDGE I CIN is asserted when a tape cartridge i§.J.n place IN and the WD1036R·SHD asserts DSO, and GO. 35 36 USF UNSAFE I The drive asserts USF when the File Protect Plug is not in the safe position on the cartridge and the WD1036R·SHD asserts DSO. This state permits data to be written and erased. 37 38 TCH TACH PULSE I TCH is present while tape is moving. 39 40 WDA· WRITE DATA· 0 Data to be written on tape, enabled while WEN is asserted. System is optimized to record GCR data at a nominal density of 10,000 frpi. 41 42 WDA+ WRITE DATA+ 0 The inverse of WDA·. 43 44 THO THRESHOLD 0 Sets a percentage-qualifying voltage threshold for Read Data. Eliminates data of marginal quality read from tape. 45 46 HSD HIGH SPEED 0 Asserted = 90 ips tape speed. WD1036R·SHD never de·asserts HSD. 47 48 WEN WRITE 0 When asserted, enables drive to write data. ENABLE 49 50 EEN ERASE 0 Tape is erased the full width of the erase head when ENABLE the WD1036R·SHD selects track 0, and asserts DSO and EEN. WD103SR-SHD COMMANDS To facilitate intergration of the WD1036R-8HD into the system, the protocol and command structure is the same as that of the WD1002-SHD Disk Controller. The commands can be classified into three groups: Tape positioning, data transfer and control mode. Each command is characterized by a 6-byte Com· mand Description Block. Table 3 is a summary of the commands and Table 4 represents the Command Description Block. 7-32 Tape Drive Controller Products TABLE 3. COMMAND SUMMARY OP BLOCK COMMAND CODE LUN NO. COUNT OPTIONS Tape Position Rewind To BOT 11 D 0 0 0 Read Fi Ie Marks 24 D 0 V T Erase Tape 26 D 0 0 0 Retension Tape 27 D 0 0 0 Find End of Data 28 D 0 0 T Data Transfer Read Sense Bytes 03 D 0 0 C Write Block Buffer OF 0 0 0 P Read Block Buffer 10 0 0 0 P Read Tape Blocks 21 D V V RTF Write Tapes Blocks 22 D 0 V UTH Write File Mark 23 D 0 V TH Read Extended Status 25 D 0 0 C Operation Mode Test Drive Ready 00 D 0 0 0 Define Tape Parameters OC D 0 0 0 Diagnostics E4 0 0 0 0 TABLE 4. COMMAND DESCRIPTION BLOCK BIT BYTE 7 I 6 I 5 I 4 I 3 I 2 I 1 I 0 0 OPERATION CODE LOGICAL UNIT BITS 20 THRU 16 OF 1 NUMBER I TAPE BLOCK ADDRESS 2 BITS 15 THRU 8 OF TAPE BLOCK ADDRESS 3 BITS 7 THRU 0 OF TAPE BLOCK ADDRESS 4 COUNT FIELD 5 OPTION BITS (see table 5.) Operation Code Bits 7-5 designates a command class of 0, 1,2, or 7. Bits 4-0 identifies the function of the command, e.g., Erase, Rentension, etc. Logical Unit No. Logical unit number of the target tape drive. Tape Block Address Used by the Read Tape Block command to locate the first block to be read within a file. Count Field Used by the Read File Mark command to locate the file that is to be read by a Read Tape Block command. Used by a Write File Mark command to control the number of File Marks to be written. Used by a ReadlWrite Tape Blocks command to control the number of blocks to be read or written. Option Bits See Table 5. Tape Drive Controller Products 7-33 TABLE 5. OPTION BITS =E c ...a. BIT o COMMAND 7 6 5 4 3 2 1 0 (,.) 0') Read Sense Bytes 0 0 0 0 0 C 0 0 :xJ I Find End of Data 0 0 T 0 0 0 0 0 en Write Block Buffer 0 0 0 0 P P P P ::I: Read Block Buffer 0 0 0 0 P P P P c Read Tape Blocks R F T 0 0 0 0 0 Read File Marks 0 0 T 0 0 0 0 0 Write Tape Blocks 0 0 T H U 0 0 0 Write File Marks 0 0 T H 0 0 0 0 Read Extended Status 0 0 0 0 0 C 0 0 All other commands 0 0 0 0 0 0 0 0 LEGEND: P - Page Number. External block number contains sixteen 512·byte pages of memory. R - Reposition. o =Disable 1 = Enable. Reading starts at the tape block specified in the Command Description Block. The Reposition option also initiates a Flush option. F - Flush. o = Disable 1 = Flush data blocks from buffers before reading more blocks. U - Underrun. o = Stop tape motion on underrun. 1 = Continue streaming on underrun. T - Threshold o = Disable 1 =Enable threshold at Read Head. H - High Current o = Disable 1 = Increase Write Current for high-coercivity tape. e.g., DC600A C - Clear Inernal o = Disable Counters 1 = Clear Read/Write CRC errors and Under/Overrun counter. 7-34 Tape Drive Controller Products WESTERN DIGITAL COR P 0 RAT o N =E c ...... WD10368-WX2 Streaming Tape Controller o w 0) FEATURES • EXTENSIVE ERROR RECOVERY WITH AUTO- ~ >< • 3.9 X 8.1" IBM PCIXT/AT FORM FACTOR MATIC RETRIES N • SUPPORTS ONE 1/4" BASIC TAPE DRIVE (OIC-36) • DMA TRANSFER CAPABILITY • INDUSTRY STANDARD OIC·24 RECORDING • SUPPORTS 90 IPS STREAMING OPERATION FORMAT • APPLICATION SOFTWARE TO RUN UNDER IBM • ON BOARD WD24C02 READIWRITE FORMAT· PC DOS 2.0 TO EMULATE IBM'S BACKUP/ TER CHIP RESTORE COMMANDS • READ·AFTER-WRITE VERIFICATION • FILE-BY-FILE BACKUP/RESTORE CAPABILITY DESCRIPTION HARDWARE ARCHITECTURE The WD1036S-WX2 is a single board streaming tape The WD1036S-WX2 is based on the WD24C02 controller for IBM PC/ATIXT and compatible com- ReadlWrite Formatter device. There are three support puters. This controller supports one 1/4" cartridge modules to the WD24C02. One module buffers Host tape drive with OIC-36 interface. (OIC is an acronym bus Signals, decodes and translates Host bus com- for Quarter-Inch Compatibility). mands into board control Signals, and builds The two utilities TBACKUP and TRESTORE provided WD24C02 commands. Another module separates the with the controller enable file backup and restore from drive data into clocks and read data and provides Winchester to tape and vice versa on the IBM system signals that indicate tape data gap times. The last bus. These utilities require a minimum of 128KB of module is responsible for the drive status and con- memory, but achieve a higher performance with trol. Figure 1 is a hardware block diagram of the 256KB or more. The memory size determines the max- WD1036S-WX2. imum number of blocks that can be transferred by The PC interface and Buffer module contains bus a single command during backup and restore opera- transceivers, address decoding circuitry, control tions. The command set also allows searching of signal receivers, and the WD1100-18 gate array. The records on tape. WD1100-18 translates Host bus commands and The recording format conforms to the OIC-24 stan- generates control Signals for the WD24C02. The dard. The WD1036S-WX2 performs read-after-write WD1100-18 also serves as a two byte DMA buffer verification and rewrites the data block, as required, between the Host and WD24C02. in case of an error. Similarly, it repositions and rereads The Data Separation module uses a phase lock loop a record for read errors. A 16-bit cyclical redundancy that tracks incoming data pulses, generates a read check (CRG) ensures detection of an error. The clock and read data. WD1036S-WX2 automatically attempts to reread or The Drive Control and Status module contains a set rewrite data up to 16 times on errors. of registers that are loaded via Host bus commands. Application software is supplied which emulates These registers transmit control bits to the drive selective file backup and restore functions provided through high current drivers. This module also buf- by IBM PC DOS 2.0. fers status lines from the drive. Issuing a Read Status command to the WD1036S-WX2 places the status information including the cartridge-in status unto the Host bus. Tape Drive Controller Products 7-35 SOFTWARE ARCHITECTURE ....-----TBACKUP and TRESTORE utilities The two stand·alone utilities TBACKUP and TRESTORE are designed to run under IBM PC DOS "Core" standard module - - - - - - , version 2.0 or later. These utilities will operate with a 128KB memory system. But a higher performance is achieved with 256KB or larger memory systems. APPLICATION Figure 2 illustrates the architecture of the TBACKUP and TRESTORE programs. The Application Level is LEVEL written to interface with a common module called Core. The Core is a high level interface between the COMMAND ) application code and the Tape Access Module. The PROCESSOR Core isolates the application program from the low level operations of tape positioning, tape drive inter· face timing characteristics, and data formatting con· MANAGER BUFFER I ) siderations. Thus, an application program is simplified by not dealing with these low level operations. TAPE DISK The Core module contains two functional com· ACCESS ACCESS ponents, a Command Processor and a Buffer MODULE MODULE Manager. These components are compatible with machines that differ from the IBM PC. Compatibility DOS calls is achieved by coding these functions in C and per· forming no hardware or operating system dependent operations in the Core. Direct 1/0 or DMA transfer to The Application level module uses the high level com· WD1036S-WX2 mand set described in the section titled Software Commands. FIGURE 2. WD1036S-WX2 SOFTWARE BLOCK DIAGRAM I '5'"CR I i I f,~~ vT I ltr ~ INTOO-6 E RS o T TR0.3. HC. HSO. RST T A ~r- LE I ~ p ~'"'OO' _MIClocK ..l E I -, I B ~ RESET RESET M I - I II _-v. WOA. BUSOIR DAO-7 I J.. WD. I I I ~ ~ ~? MOCLOCKrt: GO. REV. THO. DSO. EEN o R NJ.3 WE. RE I - " E R S WEN WEN I B U S ~r- JUMPER ....7 BOARD SELECT CLOCKOUT MRI I 2.co2 ERS. RD. RCLK. WCLK I I twA~ " 'M~V~"l1 V E ~ A8-9 11()().18 I I SEP ~ ~ RDP AEN ALE I ...!!!!.- RGAP f I- :1 -:~ l '- '--- I ..;\. INTI DRC'·3 JJUMPER I '-1'" INTDO-7 1 jJ I T TCH. UTH. LTH. SlD. USF. C'N I U ~JUMPER -" .------. I II S ~ L I STATUSEN T lOR. lOW. CLOCK. RESET DR ! : IIOCHRDV ALE '--- 11 I I I I 1002·7 JJUMPER INT i I I I II I ! I PC INTERFACE AND BUFFER MODULE SEPARATION i DRIVE CONTROL AND STATUS MODULE I DATAMODULE Figure 1. WD1036S-WX2 HARDWARE BLOCK DIAGRAM 7-36 Tape Drive Controller Products SPECIFICATIONS HOST INTERFACE Type IBM PC/AT, PC/XT :ec Cable length Connects directly to the Host mother board with a ...... o 62-Pin card edge connector. CAl 0') Addressing Jumper selectable (300 through 3FO) Default = 330 en Interrupt Channel Jumper selectable (IRQ2 through IRQ7) Default IRQ3 :e:>< DMA Channel Request Jumper selectable (DRQ1,2 and 3) Default DRQ1. N Memory Requirements 12BK Bytes min. 256K bytes or more are recommended. DRIVE INTERFACE Type QIC-36 Rev. B Standard Cable length 10 ft. (3 m) max. Cable connector 50 pin 3 M 3425-6050 at the WD1036S-WX2 3 M 3415-001 at the drive Termination 220 ohms to + 5 volts 330 ohms to ground Recording method QIC-24, NRZI, GCR (0,2) at 10,000 frpi. CRG polynomial x16 + x12 + x5 + 1 Cartridge Capacity 1/4 in. 9 track DC300A = 30 M Byte DC300XL = 45 M Byte DC600A = 60 M Byte Tape speed 90 inches per second DATA SEPARATOR Acquisition time < 64 Bit times. Capture range ±25% Bit jitter tolerance See Figure 3 Asymmetry tolerance See Figure 3 POWER Voltage +5 VDC ±5% + 12 VDC ±5% Current 1A max. BOOma typo @ 5 volts 30 rna max. 20ma typo @ 12 volts Ripple 0.1 volt DIMENSIONS Length B.1 inches Width 3.9 inches Height (max including board, 0.5 inch components, and leads). Tape Drive Controller Products 7-37 ENVIRONMENTAL Ambient temperature OOC (32°F) TO 55°C (131°F) Relative humidity 10% to 90% non-condensing Altitude o to 10,000 ft (3048 m) Air flow 150 linear ft/min @ 0.25 inches from the compo- nent surface MTBF 10,000 Hrs. MTTR 30 min. 30 25 N :z: - 0 .... - «( ~ > 20 0 LAJ LAJ 0... Vl 15 Vl ::» 0 LoJ :z: ....z c( RECOVERED .... c( 10 - Vl z 5 o o 5 10 15 20 25 30 35 FIGURE 3. BIT JITTER % 7-38 Tape Drive Controller Products CONNECTORS The WD1036S-WX2 has two on-board connectors for J1 - The Tape Drive connects to this 50-pin con- interfacing to an IBM PC/ATIXf or compatible Host nector via a cable of no more than 10 feet (3m) and one 114" QIC-36 cartridge tape drive. in length. All incoming signals are terminated P1 - The Host connects to this 62-pin card edge with a 220 ohm resistor to + 5V and 330 ohm connector. Pins A1 through A31 are on the resistor to ground. The signals applied to this component side of the board and pins B1 connector are described in Table 2. through B31 are on the artwork side. The signals applied to this connector are described in Table 1. TABLE 1. HOST INTERFACE CONNECTOR (P1) PIN DESCRIPTION PIN NUMBER MNEMONIC SIGNAL NAME 1/0 FUNCTION A1 NOT CONNECTED A2 07 DATA 7 I/O 8·Bit, tri-state, bi-directional bus for data and status thru thru thru communication between the WD1036S-WX2 and A9 DO DATA 0 Host. A10 I/O CH ROY I/O CHANNEL I This tri-state signal adds one Wait State to allow for READY WD24C02 related commands. A11 AEN ADDRESS I AEN is asserted by the Host DMA controller. ENABLE Asserted, the DMA Controller has control of the address, control, and data buses. Only memory I/O operations can occur during assertion of AEN. A12 NOT CONNECTED thru A21 A22 A9 ADDRESS BIT 9 I Address bus. thru thru thru A31 AO ADDRESS BIT 0 B1 GND GROUND B2 RST RESET DRV I Initializes the WD1036S-WX2 during power-up or low line voltage condition. B3 +5V +5 VOLTS B4 IRQ2 INTERRUPT 0 The WD1036S-WX2 asserts IRQ2 to interrupt the Host REQUEST upon the completion of a block operation. IRQ2 LEVEL 2 through IRQ7 is jumper selectable. B5 NOT CONNECTED B6 DRQ2 DMA REQUEST 0 WD1036S-WX2 asserts DRQ2 to inform the DMA Con- CHANNEL 2 troller that data is available for transfer in either direc- tion. DRQ1,2 and 3 are jumper selectable. B7 NOT CONNECTED B8 B9 +12V + 12 VOLTS B10 GND GROUND B11 NOT CONNECTED B12 Tape Drive Controller Products 7-39 TABLE 1. HOST INTERFACE CONNECTOR (P1) PIN DESCRIPTION (cont.) PIN NUMBER MNEMONIC SIGNAL NAME 1/0 FUNCTION 813 lOW 1/0 WRITE I The Host or DMA controller asserts lOW when a data or control byte is to be written to the WD1036S-WX2. - 814 lOR 110 READ I The Host or DMA controller asserts lOR when a data or status byte is to be read from the WD1036S-WX2. -- 815 DACK3 DMA I The DMA Controller asserts DACK3 in response to ACKNOWLEDGE DRQ3 sent by the WD1036S-WX2. DACK1, 2 and "3 CHANNEL 3 are jumper selectable. 816 DRQ3 DMA REQUEST 0 WD1036S-WX2 asserts DRQ3 to inform the DMA Con- CHANNEL 3 troller that data is available for transfer in either direc- tion. DRQ1,2 and 3 are jumper selectable. -- 81? DACK1 DMA I The DMA controller asserts DACK1 in response to ACKNOWLEDGE DRQ1 sent by the WD1036S-WX2. DACK1,2 and "3 CHANNEL 1 are jumper selectable. 818 DRQ1 DMA REQUEST 0 WD1036S-WX2 asserts DRQ1 to inform the DMA con- CHANNEL 1 troller that data is available for transfer in either direc· tion. DRQ1, 2 and 3 are jumper selectable. 819 NOT CONNECTED 820 CLK SYSTEM CLOCK I System clock with a period of 210 nsec and 33% duty cycle. 821 IRQ? INTERRUPT 0 The WD1036S-WX2 asserts IRQ? to interrupt the Host REQUEST upon the completion of a block. IRQ2 through IRQ? LEVEL? is jumper selectable. 822 IRQ6 INTERRUPT 0 The WD1036S-WX2 asserts IRQ6 to interrupt the Host REQUEST upon the completion of a block. IRQ2 through IRQ? LEVEL 6 is jumper selectable. 823 IRQ5 INTERRUPT 0 The WD1036S-WX2 asserts IRQ5 to interrupt the Host REQUEST upon the completion of a block. IRQ2 through IRQ? LEVEL 5 is jumper selectable. 824 IRQ4 INTERRUPT 0 The WD1036S-WX2 asserts IRQ4 to interrupt the Host REQUEST upon the completion of a block. IRQ2 through IRQ? LEVEL 4 is jumper selectable. 825 IRQ3 INTERRUPT 0 The WD1036S-WX2 asserts IRQ3 to interrupt the Host REQUEST upon the completion of a block. IRQ2 through IRQ? LEVEL 3 is jumper selectable. 826 DACK2 DMA I The DMA controller asserts DACK2 in response to ACKNOWLEDGE DRQ1 sent by the WD1036S-WX2. DACK1, 2 and "3 CHANNEL 2 are jumper selectable. 82? NOT CONNECTED 828 829 +5V +5VOLTS 830 NOT CONNECTED 831 GND GROUND 7-40 Tape Drive Control/er Products TABLE 2. DRIVE CONNECTOR (J1) PIN DESCRIPTION SIG. SIG. MNEMONIC SIGNAL 110 FUNCTION GND. PIN NAME 2 GO GO o Assertion starts tape motion. The state of REV determines the direction of tape motion. 3 4 REV REVERSE o Assertion causes the tape drive to move tape in the reverse direction. De-assertion causes the tape drive to move tape in the forward direction. The WD1036S- WX2 must assert GO to enable REV. 5 6 TR3 TRACK o Track Select bit 3. TR3 through TRO is the binary SELECT 3 coded track number used by the drive to select a designated track. (MSB). 7 8 TR2 TRACK o Track Select bit 2. TR3 through TRO is the binary SELECT 2 coded track number used by the drive to select a designated track. 9 10 TR1 TRACK o Track Select bit 1. TR3 through TRO is the binary SELECT 1 coded track number used by the drive to select a designated track. 11 12 TRO TRACK o Track Select bit o. TR3 through TRO is the binary SELECT 0 coded track number used by the drive to select a designated track. (LSB). 13 14 RST o RST is a minimum pulse of 13 usec. It starts the initialization routine and recalibration of the head to its reference position. 15 16 RESERVED 17 18 RESERVED 19 20 RESERVED 21 22 DSO DRiVE o When asserted DSO permits basic tape drive SELECT 0 operations to proceed. DSO enables the transfer of control signals: RDP CIN USF TCH EEN. The drive acknowledges receipt of DSO by sending SLD. 23 24 HC HiGH o When asserted, enables operation with DC 600A CURRENT tape cartridges. Refer to ANSC Project 671 Unrecorded Magnetic Tape Cartridge for Informa· tion Interchange, 0.250 inch (6.30mm)6400-10000 flux-reversals per inch (252-394 frpmm). 25 26 RDP I Serial-bit data read from tape to the WD10368-WX2. RDP ~resent when data passes the read head and DSO is asserted. 27 28 UTH UPPER TAPE I UTH and LTH encode information having to do POSITION with tape position as follows: HOLE 29 30 LTH LOWER TAPE I UTH LTH MEANING POSITION 1 1 Beginning of Tape HOLE o 1 End of Tape 1 o Warning Zone o o Recording Zone The Recording Zone is between the Load Point and the Early Warning hole if BOT or EOT has been detected since the last cartridge insertion (CIN). If that is not the case 0 0 means the tape position is not known. Tape Drive Controller Products 7-41 TABLE 2. DRIVE CONNECTOR (J1) PIN DESCRIPTION :E SIG. SIG. MNEMONIC SIGNAL I/O FUNCTION c ..... GND • PIN NAME o w en 31 32 SLD DRIVE I Tape drive acknowledgment to the WD1036S-WX2 en :e>< 33 34 CIN SELECTED CARTRIDGE I of receipt of the DSO. CIN is asserted when a tape cartridge is in...Qlace N IN and the WD1036S-WX2 asserts DSO and GO. 35 36 USF UNSAFE I The drive asserts USF when the File Protect Plug is not in the safe position on the cartridge and the WD1036S-WX2 asserts DSO. This state permits data to be written and erased. 37 38 TCH TACH PULSE I TCH is present while tape is moving. It is not looked at or used by the WD1036S-WX2. 39 40 WDA- WRITE DATA- 0 Data to be written on tape, enabled while WEN is asserted. System is optimized to record GCR data at a nominal density of 10,000 frpi. 41 42 WDA+ WRITE DATA+ 0 The inverse of WDA- 43 44 THD THRESHOLD 0 Sets a percentage-qualifying voltage threshold for Read Data. Eliminates data of marginal quality read from tape. 45 46 HSD HIGH SPEED 0 Asserted =9O-ips tape speed. Utilities supplied by Western Digital always asserts HSD. -- 47 48 WEN WRITE 0 When asserted, enables drive to write data. ENABLE -- 49 50 EEN ERASE 0 Tape is erased the full width of the tape when the ENABLE WD1036S-WX2 asserts DSO and EEN. COMMAND SUMMARY HARDWARE COMMANDS The commands associated with the WD1036S-WX2 There are a total of 16 commands recognized by the fall into one of two categories. Hardware commands, WD1036S-WX2. Ten of these commands are the direct those low level commands that communicate directly responsibility of the WD1100-18 and six are performed with the WD1036S-WX2 and are implemented by the by the WD24C02. The WD1036S-WX2 occupies six- WD1100-18 and WD24C02, and high level software teen 1/0 addresses, 0 through F Hex. The base commands, those commands within the application address is jumper selectable at the time of installa- level module that interface between the application tion to start at one of sixteen locations from 300 Hex program and Core. through 3FO Hex. Following is a brief summary of the hardware com- mands. For a more indepth description, refer to the OEM manual, DOC. number 79-000037. 7-42 Tape Drive Controller Products TABLE 3. HARDWARE COMMAND SUMMARY OFFSET 1/0 COMMAND NAME DESCRIPTION == C ..... 0 lOR READ STATUS Returns a status byte representing the state of the following o signals: w en Bit 7 = RGAP Bit 6 = TCH Bit 3 = SLD Bit 2 = LTH ~ >< Bit 5 = USF Bit 1 = UTH N Bit 4 = CIN Bit 0 = INT 4 lOR START DMA PIPELINE Two ORO DACK handshakes are completed. This writes two data bytes into a DMA buffer in the WD11DO-18. A Write Tape command can now be started. 8 lOR CONTROLLER RESET Resets all WD1100-18 internal logic, both Drive Control registers and de-asserts MR to the WD24C02. C lOR READ WD24C02 STATUS Returns to the Host the state of the following signals: REGISTER Bit 7 = CBK Bit 2 = FMD Bit 6-4 not used Bit 1 = WGP Bit 3 = RGP Bit 0 = CER F lOR READ BLOCK ADDRESS Returns to the Host the block address of the last data block read. The block address is four bytes in length. Therefore, four consecutive Read Block Address commands must be issued. The MSB is returned first. 0 lOW SET CONTROL FLlp·FLOPS This command establishes the state of the DMA enable and Repeat Flip/Flops. Bit 0 = Set DMA Enable Bit 1 = Set Repeat Write Data Command. Bit 2 = Reset Repeat F/F 4 lOW SET DRIVE CONTROL Drive Control Register 0 controls the following signals: REGISTER 0 Bit 7 not used Bit 3 = Drive Select Bit 6 = Read Gate Enable Bit 2 = Threshold Bit 5 = Write Enable Bit 1 = Reverse Bit 4 = Erase Enable Bit 0 = Go 8 lOW SET DRIVE CONTROL Drive Control Register 1 controls the following signals: REGISTER 1 Bit 7 not used Bit 3 = Track Select 3 Bit 6 = Reset Drive Bit 2 = Track Select 2 Bit 5 = High Speed Bit 1 = Track Select 1 Bit 4 = High Current Bit 0 = Track Select 0 C lOW LOAD COMMAND REGISTER A byte\representing one of six possible commands is writ· ten into the Command Register in the WD24C02. Bit 7 = Abort Bit 2 = Read Scan Bit 6 = Write File Mark Bit 1 = Write Data Bit 5, 4 not used Bit 0 = Read Data Bit 3 = Write Gap F lOW WRITE BLOCK ADDRESS The Block Address Register is four bytes in length, therefore REGISTER this command must be issued consecutively four times. The MSB is written first. Tape Drive Control/er Products 7-43 SOFTWARE COMMANDS The commands that comprise the Application-to-Core Status Format Module can be divided into four categories: Tape Returned upon completion of a command Access commands, Disk Access commands, Host Buffer Manager commands and Mode commands. Following is a brief summary of the Application-to- OP.CODE I STATUS BYTE 1 - 2 Core command set. For a more indepth description, STATUS 2 BYTE 3 - 4 refer to the OEM manual, DOC. number 79-000037. STATUS 3 BYTE 5 - 6 Command Format OP. CODE I OPTION BYTE 1 - 2 PARAMETER 2 BYTE 3 - 4 PARAMETER 3 BYTE 5 - 6 TABLE 4_ SOFTWARE COMMAND SUMMARY COMMAND OP OPTION PARAMETERS CODE Tape Commands Retension 01 00 Do not erase - - 01 Erase - - Read Tape 02 00 Start reading at the beginning of the tape. - - 01 Start reading following the last block read by a Read - - Command or found with a Find Command Write Tape 03 00 Start writing at the beginning of the present track. - - 01 Start writing at the end of recorded data. - - Find Tape Block 04 00 Find Data Block "n". n = Parm 2 01 Find Control Block "n". n = Parm 2 02 Find File Mark Block "n". n = Parm 2 03 Find Block Address "addr". addr = Parm 2 and 3 04 Find beginning of track "n". n = Parm 2 Stop Tape 05 00 No options - - Disk Commands Set Disk Mode 06 00 Disk Image - - 01 File Image - - Read Disk 07 00 No Options - - Write Disk 08 00 No Options - - 7-44 Tape Drive Controller Products TABLE 4. SOFTWARE COMMAND SUMMARY (cant) COMMAND OP OPTION PARAMETERS CODE Host Buffer Commands Read Buffer 09 00 Read previous page - - 01 Read current page - - 02 Read next page - - 03 Skip one page - - 04 Skip to next data block - - 05 Skip to next control block - - 06 Skip to next File Mark - - Write Buffer OA 00 Write a data block - - 01 Write a control block - - 02 Write a File Mark block - - OB Reserved Mode Commands Write OC 00 Miscellaneous Status. Data to be written Configuration 01 Maximum number of tracks. in Parm 2 02 Number of pages in buffer. 03 Seg. of buffers' first page 04 Offset of first page. OE Write CRC error counter. OF Pointer to local buffer. 10 Pointer to word containing expected tape block address 11 Pointer to word containing last tape block address. 12 Pointer to word containing current tape track. 13 Reposition counter. Read 00 00 Miscellaneous Status. Data read is Configuration 01 Maximum number of tracks. returned in Stat 2 02 Number of pages in buffer. 03 Seg. of buffers' first page 04 Offset of first page. 00 Read CRC error counter. OF Pointer to local buffer. 10 Pointer to word containing expected tape block address 11 Pointer to word containing last tape block address. 12 Pointer to word containing current tape track. 13 Reposition counter. Initialize OE 00 All (options 01 - 05) 01 Tape portion 02 Core variables 03 Buffer Manager 04 Cartridge status 05 Controller reset Tape Drive Controller Products 7-45 7-46 Tape Drive Controller Products WESTERN DIGITAL COR P 0 RAT o N :E c WD8206 Error Detection and Correction Unit CD N o0) FEATURES • 68-PIN LEADLESS JEDEC PACKAGE • SINGLE + 5V SUPPLY • DETECTS AND CORRECTS ALL SINGLE BIT ERRORS GENERAL DESCRIPTION • DETECTS ALL DOUBLE BIT AND MOST MULTI- The HMOS 8206 Error Detection and Correction Unit PLE BIT ERRORS is a high-speed device that provides error detection • 52 NSEC MAXIMUM FOR DETECTION; 67 NSEC and correction for memory systems (static and MAXIMUM FOR CORRECTION (16-BIT SYSTEM) dynamic) requiring high reliability and performance. • EXPANDABLE TO HANDLE 80-BIT MEMORIES Each WD8206 handles 8 or 16 data bits and up to 8 • SYNDROME INPUT AND OUTPUT BUSSES - NO check bits. WD8206's can be cascaded to provide cor- TIMING STROBES REQUIRED rection and detection for up to 80-bits of data. Other • SUPPORTS READS WITH AND WITHOUT COR- WD8206 features include the ability to handle byte RECTION, \WRITES, PARTIAL (BYTE) WRITES, writes, memory initialization, and error logging. AND READ-MODIFY-WRITES • HMOS TECHNOLOGY FOR LOW POWER 16 01 0-15 ~......,...2__ POSO.1 STB _=:::r---J , - - - - - - - 4 I----~ ERROR r - - - - - - - 1 I - - - - _ + _ CE CBI/SYI0-7 16 DATA SYO/CBO/PPOO_('-_4-_-" CORREC· DOIW010-15 TION PPI/POS/NSL - + - - - " . 1 16 Mis GNO +5V 11 Vss Vcc WZ BM0-1 FIGURE 1. WD8206 BLOCK DIAGRAM Main Memory Device 8-1 TABLE 1. PIN DESCRIPTION :E PIN c00 NUMBER SYMBOL 1/0 NAME AND FUNCTION I\:) Data In: These inputs accept a 16-bit word from 1,68-61, Dl0-15 I o RAM for error detection and/or correction. en I 59-53 5 CBIISYl o I Check Bits InlSyndrome In: In a single WD8206 6 CBI/SYI 1 I system, or in the master in a multi-WD8206 system, 7 CBI/SYI 2 I these inputs accept the check bits (5 to 8) from 8 CBI/SYI 3 I the RAM. In a single WD820616 bit system, CBl0-5 9 CBI/SYI 4 I are used. In slave WD8206's, these inputs accept 10 CBI/SYI 5 I the syndrome from the master. 11 CBl/SYl s I 12 CBI/SYI 7 I 51 DOIWDl o 110 Data OutiWrite Data In: In a read cycle, data 50 DOIWDI 1 1/0 accepted by Dl0-15 appears at these outputs cor- 49 DOIWDI 2 1/0 rected if CRCT is low, or uncorrected if CRCT is 48 DOIWDI 3 110 high. The IBM inputs must be high to enable the 47 DOIWDl 4 1/0 output buffers during the read cycle. In a write 46 DOIWDI 5 1/0 cycle, data to be written into the RAM is accepted 45 DOIWDl s 1/0 by these inputs for computing the write check bits. 44 DOIWDI 7 1/0 In a partial-write cycle, the byte not to be modified 42 DOIWDl s 1/0 appears at either D00-7 if BMo is high, or DOS-15 41 DOIWDl g 110 if BM1 is high, for writing to the RAM. When WZ 40 DOIWDI 1o 110 is active, it causes the WD8206 to output all zeros 39 DOIWDI 11 1/0 at D00-15' with the proper write check bits on 38 DOIWDI 12 1/0 CBO. 37 DOIWDI 13 1/0 36 DOIWDI 14 1/0 35 DOIWDI 15 1/0 23 SYO/CBO/PPOo 0 Syndrome Out/Check Bits Out/Partial Parity Out: In 24 SYO/CBO/PP0 1 0 a single WD8206 system, or in the master in a 25 SYO/CBO/PP02 0 multi-WD8206 system, the syndrome appears at 27 SYO/CBO/PP03 0 these outputs during a read. During a write, the 28 SYO/CBO/PP04 0 write check bits appear. In slave WD8206's, the par- 29 SYO/CBO/PP05 0 tial parity bits used by the master appear at these 30 SYO/CBO/PPOs 0 outputs. The syndrome is latched (during read- 31 SYO/CBO/PP07 0 modify-writes) by RJW going low. 13 PPldPOSo I Partial Parity In/Position: In the master in the multi- 14 PPI 1/POS 1 I WD8206 system, these inputs accept partial parity bits 0 and 1 from the slaves. In a slave WD8206, these inputs inform it of its position within the system (1 to 4). Not used in a single WD8206 system. 15 PPI 2/NSLo I Partial Parity In/Number of Slaves: In the master in 16 PPI 3/NSL1 I a multi-WD8206 system, these inputs accept par- tial parity bits 2 and 3 from the slaves. In a multi· WD8206 system, these inputs are used in slave number 1 to tell it the total number of slaves in the system (1 to 4). Not used in other slaves or in a single WD8206 system. 17 PPI 4/CE 110 Partial Parity In/Correctable Error: In the master in a multi·WD8206 system, this pin accepts partial parity bit 4. In slave number 1 only, or in a single WD8206 system, this pin outputs the correctable error flag. CE is latched by RJW going low. Not used in other slaves. 18 PPI 5 I Partial Parity In: In the master in a multi·WD8206 19 PPl s I system, these pins accept partial parity bits 5 to 20 PPI 7 I 7. The number of partial parity bits equals the number of check bits. Not used in single WD8206 systems or in slaves. 8-2 Main Memory Device TABLE 1. PIN DESCRIPTION (CONTINUED) PIN NUMBER SYMBOL I/O NAME AND FUNCTION 22 ERROR 0 Error: This pin outputs the error flag in a single WD8206 system or in the master of a multi-WD8206 system. It is latched by RIW going low. Not used in slaves. 52 CRCT I Correct: When low, this pin causes data correction during a read or read-modify-write cycle. When high, it causes error correction to be disabled, although error checking is still enabled. 2 STB I Strobe: STB is an input control used to strobe data at the DI inputs and check-bits at the CBIISYI inputs. The signal is active high to admit the inputs. The signals are latched by the high-to-Iow transition of STB. 33 BMa I Byte Marks: When high, the Data Out pins are 32 BM1 I enabled for a read cycle. When low, the Data Out buffers are tristated for a write cycle. BMa con- trols DO()'7' while BM1 controls D08. 15. In partial (bytes) writes, the byte mark input is low for the new byte to be written. 21 RIW I Read/Wrlte: When high, this pin causes the WD8206 to perform detection and correction (if CRCT is low). When low, it causes the WD8206 to generate check bits. On the high-to-Iow transition, the syndrome is latched internally for read-modify- write cycles. 34 WZ I Write Zero: When low, this input overrides the BM()'1 and RIW inputs to cause the WD8206 to output all zeros at DO()'15 with the corresponding check bits at CBO a_7· Used for memory initialization. 4 MIS I Master/Slave: Input tells the WD8206 whether it is a master (high) or a slave (low). 3 SEDCU I Single EDC Unit: Input tells the master whether it is operating as a single WD8206 (low) or as the master in a multi-WD8206 system (high). Not used in slaves. 60 Vcc I Power Supply: + 5V 26 Vss I Logic Ground 43 Vss I Output Driver Ground FUNCTIONAL DESCRIPTION are not distinguished from errors in a word. The WD8206 Error Detection and Correction Unit pro- A single WD8206 handles 8 or 16 bits of data, and vides greater memory system reliability through its up to 5 WD8206's can be cascaded in order to han- ability to detect and correct memory errors. It is a dle data paths for 80 bits. For a single WD8206 8-bit single chip device that can detect and correct all system, the DI8-15, DOIWDI8-15 and BM1 inputs are single bit errors and detect all double bit and some grounded. See the Multi-Chip systems section for higher multiple bit errors. Some other odd multiple information on 24-80-bit systems. bit errors (e.g., 5 bits in error) are interpreted as single The WD8206 has a "flow through" architecture. It sup- bit errors, and the CE flag is raised. While some even ports two kinds of error correction architecture: 1) multiple bit errors (e.g., 4 bits in eror) are interpreted Flow-through, or correct-always; and 2) Parallel, or as no error, most are detected as double bit errors. check-only. There are two separate 16-pin busses, one This error handling is a function of the number of to accept data from the RAM (DI) and the other to check bits used by the WD8206 (see Figure 2) and deliver corrected data to the system bus (DOIWDI). the specific Hamming code used. Errors in check bits The logic is entirely combinatorial during a read cycle. Main Memory Device 8-3 This is in contrast to an architecture with only one state the DO drivers. The check bits, 5 to 8 in number, bus, with bi-c:lirectional bus drivers that must first read are then written to the RAM through the CBO pins =E the data and then be turned around to output the cor- for storage along with the data word. In a multi-chip c00 rected data. The latter architecture typically requires system, the master writes the check bits using par- N additional hardware (latches and/or transceivers) and tial parity information from the slaves. oC) may be slower in a system due to timing skews of In a partial write, part of the data word is overwritten control signals. and part is retained in memory. This is accomplished DATA WORD BITS CHECK BITS by performing a read-modify-write cycle. The complete old word is read into the WD8206 and corrected, with 8 5 the syndrome internally latched by RIW going low. 16 6 Only that part of the word not to be modified is out- 24 6 put onto the DO pins, as controlled by the Byte Mark 32 7 inputs. That portion of the word to be overwritten is 40 7 supplied by the system bus. The WD8206 then 48 8 calculates check bits for the new word, using the byte 56 8 from the previous read and the new byte from the 64 8 system bus, and writes them to the memory. 72 8 80 8 READ-MODIFY-WRITE CYCLES FIGURE 2. NUMBER OF CHECK BITS USED BY WD8206 Upon detection of an error, the WD8206 may be used to correct the bit in error in memory. This reduces the READ CYCLE probability of getting multiple-bit errors in subsequent With the RIW pin high, data is received from the RAM read cycles. This correction is handled by executing outputs into the DI pins where it is optionally latched read-modify-write cycles. by the STB signal. Check bits are generated from the The read-modify-write cycle is controlled by the RIW data bits and compared to the check bits read from input. After (during) the read cycle, the system the RAM into the CBI pins. If an error is detected, the dynamic RAM controller or CPU examines the ERROR flag is activated and the correctable error flag WD8206 ERROR and CE outputs to determine if a cor- (CE) is used to inform the system whether the error rectable error occurred. If it did, the dynamic RAM is correctable or not. With the BM inputs high, the controller or CPU forces RIW low, telling the WD8206 word appears corrected at the DO pins if the error to latch the generated syndrome and drive the cor- is correctable, or unmodified if the error was uncor- rected check bits onto the CBO outputs. The cor- rectable. rected data is available on the DO pins. The DRAM If more than one WD8206 is being used, then the controller then writes the corrected data and cor- check bits are read by the master. The slaves generate responding check bits into memory. a partial parity output (PPO) and pass it to the master. The WD8206 may be used to perform read-modify- The master WD8206 then generates and returns the writes in one or two RAM cycles. If it is done in two syndrome to the slaves (SYO) for correction of the cycles, the WD8206 latches are used to hold the data data. and check bits from the read cycle to be used in the The WD8206 may alternatively be used in a "check· following write cycle. The WD8207 Advanced Dynamic only" mode with the CRCT pin left high. With the cor· RAM controller allows read-modify-write cycles in one rection facility turned off, the propagation delay from memory cycle. See the System Environment section. memory outputs to WD8206 outputs is significantly INITIALIZATION shortened. In this mode, the WD8206 issues an ERROR flag to the CPU, which can then perform one A memory system operating with ECC requires some of several options: lengthen the current cycle for cor- form of initialization at system power-up in order to rection, restart the instruction, perform a diagnostic set valid data and check bit information in memory. routine, etc. The WD8206 supports memory initialization by the write zero function. By activating the WZ pin, the A syndrome word, five to eight bits in length and con· WD8206 will write a data pattern of zeros and the taining all necessary information about the existence associated check bits in the current write cycle. By and location of an error, is made available to the thus writing to all memory at power-up, a controller system at the SY00-7 pins. Error logging may be can/set memory to valid data and check bits. Massive accomplished by latching the syndrome and the memory failure, as signified by both data and check memory address of the word in error. bits all ones or zeros, will be detected as an uncor- WRITE CYCLE rectable error. For a full write, in which an entire word is written to MULTI-CHIP SYSTEMS memory, the data is written directly to the RAM, bypassing the WD8206. The same data enters the A single WD8206 handles 8 or 16 bits of data and 5 WD8206 through the WDI pins where check bits are or 6 check bits, respectively. Up to 5 WD8206's can generated. The Byte Mark inputs must be low to tri- be cascaded for 80-bit memories with 8 check bits. 8-4 Main Memory Device When cascaded, one WD8206 operates as a master, than one slave, the above description continues to and all others as slaves. As an example, during a read apply, except that the partial parity outputs of the slaves must be XORed externally. Figure 3 shows the :E cycle in a 32-bit system with one master and one necessary external logic for multi-chip systems. Write c CD slave, the slave calculates parity on its portion of the and read-modify-write cycles are carried out N word - "partial parity" - and presents it to the master o through the PPO pins. The master combines the par- analogously. See the System Operation section for 0') tial parity from the slave with the parity it calculated multi-chip wiring diagrams. from its own portion of the word to generate a syn- There are several pins used to define whether the drome. The syndrome is then returned by the master WD8206 will operate as a master or a slave. Tables to the slave for error correction. In systems with more 2 and 3 illustrate how these pins are tied. 38. 48-Bit System SLAVE 2 PPO 8 3b. 64-Bit System MASTER SLAVE 3 PPI PPO 8 3c. aD-Bit System MASTER SLAVE 3 SLAVE 4 PPI PPO PPO 8 8 FIGURE 3_ EXTERNAL LOGIC FOR MULTI-CHIP SYSTEMS Main Memory Device 8-5 TABLE 2. MASTER/SLAVE PIN ASSIGNMENTS PIN NO. PIN NAME MASTER SLAVE1 SLAVE2 SLAVE3 SLAVE4 4 MIS +5V Gnd Gnd Gnd Gnd 3 SEDCU +5V +5V +5V +5V +5V 13 PPldPOSo PPI Gnd +5V Gnd +5V 14 PPI 1/POS 1 PPI Gnd Gnd +5V +5V 15 16 PPI 2/NSLo PPI;fNSL1 PPI PPI . +5V +5V +5V +5V +5V +5V ·See Table 3. NOTE: Pins 13, 14, 15, and 16 have internal pull-up resistors and may be left as N.C. where specified as connecting to + 5V. TABLE 3. NSL PIN ASSIGNMENTS FOR SLAVE 1 NUMBER OF SLAVES PIN ' 1 2 3 4 PPI 2/NSLo Gnd +5V Gnd +5V PPI;fNSL1 Gnd Gnd +5V +5V The timing specifications for multi-chip systems must in parallel. No WD8206 requires more time for pro- be calculated to take account of the external XOR pagation through logic levels than any other one, and gating in 3,4, and 5-chip systems. Let tXOR be the hence no one device becomes a bottleneck in the delay for a single external TTL XOR gate. Then the parity operation. However, one or two levels of exter- following equations show how to calculate the rele- nal TTL XOR gates are required in systems with three vant timing parameters for 2-chip (n = 0),3- chip (n to five chips. The code appears in Table 4. The check = 1), 4-chip (n= 2), and 5-chip (n =2) systems: bits are derived from the table by XORing or XNOR- ing together the bits indicated by oX's in each row cor- Data-in to corrected data-out (read cycle) = responding to a check bit. For example, check bit 0 TDVSV + TPVSV + TSVaV + ntXOR in the MASTER for data word 1000110101101011 will Data-in to error flag (read cycle) = be "0." It should be noted that the WD8206 will detect TDVSV + TPVEV + ntXOR the gross error condition of all lows or all highs. Data-in to correctable error flag (read cycle) = Error correction is accomplished by identifying the TDVSV + TPVSV + TSVCV + ntXOR bad bit and inverting it. Table 4 can also be used as Write data to check-bits valid (read-mod-write cycle) = an error syndrome table by replacing the oX's with '1 'so Each column then represents a different syndrome TaVaV + TPVSV + ntXOR word, and by locating the column corresponding to Data-in to check-bits valid (read-mod-write cycle) = a particular syndrome the bit to be corrected may be TDVSV + TPVSV + TSVaV + TaVaV + identified. If the syndrome cannot be located, then TPVSV + 2ntXOR the error cannot be corrected. For example, if the syn- Data-in to check-bits valid (non-correcting read- drome word is 00110111, the bit to be corrected is bit modify-write cycle) = 5 in the slave one data word (bit 21). TDVaU + TaVaV + TPVSV + ntXOR The syndrome decoding is also summarized in Table HAMMING CODE 5, which can be used for error logging. By finding the appropriate syndrome word (starting with bit zero, the The WD8206 uses a modified Hamming code which least significant bit), the result is either: 1) no error; was optimized for multi-chip EDCU systems. The code 2) an identified (correctable) single bit error; 3) a dou- is such that partial parity is computed by all WD8206's ble bit error; or 4) a multi-bit uncorrectable error. 8-6 Main Memory Device 50 ~ () ~ 50 1l)(I)~ (..)0.0 a" i I\) 6-1l)C'" ;:;:g:~ o ~ ~ Il)en *"3 50 coen ~ _ r+ :::T ~ ~o Il) (I) (I) (l) BYTE NUMBER 0 1 2 3 ::::I a@ -i CD » OPERATION o 1 234 567 o 1 234 5 6 7 OPERATION 0. :E BIT NUMBER o 1 234 5 6 7 o 1 234 5 6 7 (Xl en 0. OJ _0 0 r- CBO = XX-X-XX- X--X-X-- XNOR -XXX-XX- -XX--X-- XOR ::::I Q~ m CB1 = X-X--X-X -X-XX-X- XNOR XXX--X-X XX-----X XOR & en >< ~ ~HECKCB2 = -XX-X-XX --X-X--X XOR -XXX-XXX --XX---- XOR 6 en 0 ::II CB3 = XXXXX--- XXX----- XOR XOR 7 "0 ::D =- XX--X-XX X--XX--- 3 g _': 0 BITS CB4 = ---XXXXX -----XXX XOR XX--XXXX ----X-X- XOR CB5 = -------- XXXXXXXX XOR ---XXXXX -----XXX XOR co 2 o 0.::::1 ..... _0"T1 CB6 = -------- -------- XOR -------- XXXXXXXX XOR ~~ ro ~ ;:;: _ iii C CB7 = 1-------- -------- XOR -------- -------- XOR en 0 ct> ::I: DATA BITS oo 0 0 0 0 0 0 0 00111 1 1 1 1 1 1 1 2 2 2 2 222 2 2 2 3 3 ~ ~~ » 1 2 3 4 5 6 7 890 1 2 3 4 5 16 BIT OR MASTER 6 7 8 901 2 3 456 7 8 901 SLAVE #1 3en:::T- :s::s:- - ct> - 0Q I I I I o ct>:::T ~ ct> Z C) C'" () C') ;::::;: OJ 0 ~ 0 c Z ~ m o 0. C') BYTE NUMBER 4 5 6 CD _ () OJ ::I: m 7 . 8 9 OPERATION BIT NUMBER o 1 2 3 4 5 6 7 o 1 2 345 6 7 o 1 2 3 4 5 6 7 o 1 234 5 6 7 o 1 2 3 4 5 6 7 o 1 234 5 6 7 :::T..... C') CBO = XX-X-XX- X--X-X-- X-X-XX-- X-XX--X- -XXX-XX- -XX--X-- XOR ~ a 0. (I) " OJ CB1 = X-X--X-X -X-XX-X- -XX---XX XXX---X- -XXX-XXX --XX---- XOR ~ Il) =i CHECKCB2 = I-XX-X-XX --X-X--X -XXX-XX- -XX--X-- X--X-XX- -XX--X-X XOR ct> g: C) CB3 = XXXXX--- XXX----- X-X--XX- XX--XX-- -XXXX--X XX--X--- XOR 0) 0- en Zm BITS CB4= ---XXXXX -----XXX ---XXXXX -----XXX -XX---XX XXX---X- XOR :::T:E m CB5 = XXXXXXXX -------- -------- XXXXXXXX X-XXXX-X ---X---X XOR ~ :!. ;:tI CB6 = XXXXXXXX -------- XXXXXXXX -------- XX--XXXX ----X-X- XOR "0 » CB7 = -------- XXXXXXXX -------- XXXXXXXX -------- XXXXXXXX XOR C'":::T ::::! ;:;: Il) 0 3 3 3 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5555666 6 6 6 6 6 6 6 7 7 777 7 7 7 7 7 en Z DATA BITS 32 33 34 53 36 789 en o 1 2 345 6 7 890 1 234 5 67890 1 2 3 456 7 8 9 0 1 2345678 9 50 X Il)Z I SLAVE #2 II SLAVE #3 II SLAVE #4 I ..... 0 O)::D 6- (1)- ;:;:0. en -0 '< ::::I ~s:: (I) Il) - 3 ~ (I) CjO -....I~ "'"'J 90lsaM TABLE 5. SYNDROME DECODING o0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Syndrome 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 Bits 2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 7 6 5 4 3 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 N CBO CB1 D CB2 D D 18 CB3 D D 0 D 1 2 D 0 0 0 1 CB4 D D 5 D 6 7 D D 3 16 D 4 D D 17 0 0 1 0 CB5 D D 11 D 19 12 D D 8 9 D 10 D D 67 0 0 1 1 D 13 14 D 15 D D 21 20 D D 66 D 22 23 D 0 1 0 0 CB6 D D 25 D 26 49 D D 48 24 D 27 D D 50 0 1 0 1 D 52 55 D 51 D D 70 28 D D 65 D 53 54 D 0 1 1 0 D 29 31 D 64 D D 69 68 D D 32 D 33 34 D 0 1 1 1 30 D D 37 D 38 39 D D 35 71 D 36 D D U 1 0 0 0 CB7 D D 43 D 77 44 D D 40 41 D 42 D D U 1 0 0 1 D 45 46 D 47 D D 74 72 D D U D 73 U D 1 0 1 0 D 59 75 D 79 D D 58 60 D D 56 D U 57 D 1 0 1 1 63 D D 62 D U U D D U U D 61 D D U 1 1 0 0 D U U D U D D U 76 D D U D U U D 1 1 0 1 78 D D U D U U D D U U D U D D U 1 1 1 0 U D D U D U U D D U U D U D D U 1 1 1 1 D U U D U D D U U D D U D U U D N =No Error SYSTEM ENVIRONMENT CBX = Error in Check Bit X The WD8206 interface to a typical 32-bit memory X = Error in Data Bit X system is illustrated in Figure 4. For larger systems, D = Double Bit Error U =Uncorrectable Multi-Bit Error the partial parity bits from slaves two to four must be XOR'ed externally, which calls for one level of XOR gating for three WD8206's and two levels for four or five WD8206's. CHECK DATA MEMORY BITS DATA MEMORY OE 16-BITS 7-BITS 16-BITS ~ 01 00 01 00 01 00 ;7'4 X . (11- ~ v . 32-BIT C ... OATA BUS ~ I--- I-- R t--- i--- I-- '" .,- l......- T ' OO/WOI ~ . 01 I- SYOI CB1O-6 !1 .. II ' SYIO-6 OO/WOI ~ . 01 ~ CBO ~~ PPIO-6 PPOO-6 POSo ~ ....---. POS1 h CRCT PPI7 CRCT CBI7 NSLo ~ CO NTROL { WZ ~ WZ L INES STB R/ill WD8206 MASTER ~ STB MIS I:T0+V ~ R/W WD8206 SLAVE NSL1 MIS ~ '4 SEOCU PP15-7 BMO BMO .. SEOCU 9- 0 + 5V em { MARKS BM1 ERROR !I BM1 CE I SYI7 ERROR SIGNALS - FIGURE 4. 32-BIT WD8206 SYSTEM INTERFACE 8-8 Main Memory Device The WD8206 is designed for direct connection to the such features as automatic scrubbing (correcting WD8207 Advanced Dynamic RAM Controller. The WD8207 has the ability to perform dual port memory errors in memory during refresh), extending RAS and CAS timings for Read·Modify-Writes in single memory :eo control and Figure 5 illustrates a highly integrated cycles, and automatic memory initialization upon 00 I\) dual port RAM implementation using the WD8206 and reset. Together, these two chips provide a complete o C) WD8207. The WD8206/WD8207 combination permits dual·port, error·corrected dynamic RAM subsystem. ACKB 1 ACKB ADDR DYNAMIC RAM .... .. CMDI RAS 32·BITS + CAS r PEA 7 CHECK BITS CMD/PEB A.- CMDI WE K>o-o WE 01 CBI 001 cao r PEB WD8207 .. -h .II MUX ADRC WZ ADDRB -- ClK~ ClK PSEN - L --- CE ERROR --I ~DDR DBM - - L L'0, UX ~ -- L R/W OIlC~' CMD/PEA ACKA PSEl ERROR CE ADORA R/W SYOI R/W ACKA ....- +5V- STB CBO PPI .. PPO STB --+ 5V CRCTWD8206 ~ CRCTWD8206 MASTER ~ SLAVE WZ WZ BM DO/WDI BM DO/WDI ~Iwj- Q Q I i!t: ~ ~ BYTE MARK .... ..... - DECO- DER • a.. , ~ ---- ~ • ~ X VR ~r -RD ~~c~EI PORTA PORTB FIGURE 5. DUAL PORT RAM SUBSYSTEM WITH WD820SIWD8207 (32-BIT BUS) Main Memory Device 8-9 MEMORY BOARD TESTING To read out the check bits, it is first necessary to fill the data memory with all The WD8206 lends itself to straightforward memory zeroes, which may be done by activating board testing with a minimum of hardware overhead. WZ and incrementing memory addresses The following is a description of four common test with WE to the check bits memory held modes and their implementation. inactive, and then performing ordinary Mode 0 -Read and write with error correction. reads. The check bits will then appear Implementation: This mode is the normal directly at the SYO outputs, with bits CSO WD8206 operating mode. and CS1 inverted. Mode 1 -Read and write data with error correction Mode 3 -Write data, without altering or writing check disabled to allow test of data memory. bits, to allow the storage of bit combina- Implementation: This mode is performed tions to cause error correction and with CRCT deactivated. detection. Mode 2 -Read and write check bits with error cor- Implementation: This mode is implemented rection disabled to allow test of check bits by writing the desired word to memory with memory. WE to the check bits array held inactive. Implementation: Any pattern may be writ- PACKAGE ten into the check bits memory by judiciously choosing the proper data word The WD8206 is packaged in a 68-pin, leadless JEDEC to generate the desired check bits, through type A hermetic chip carrier. Figure 6 illustrates the the use of the WD8206 Hamming code. package, and Figure 7 is the pinout. .050 .066 (1.27) (1.68) rl: .800 (20.32) .960 (24.38) ~ ./ PIN NO.18 PIN NO.1 .130 (3.30) .960 (24.38)----~ FIGURE 6. WD8206 JEDEC TYPE A PACKAGE 8-10 Main Memory Device TOP ~ i5 co i5 l"- i5 e i5 :E ~ ~ ~ ~ c a0 a0 C/) a0 a0 (X) I\) 0 g>1 en Wi. BMo BM1 SY~[ SY03 VSS SY02[ SYOo PPI7[ PPI5 01 1 PIN NO.1 MARK ~ e I"- a:: a. a:: a. iii U BonOM e I"- co ~ i5 i5 i5 i5 ~ 3: 3: ,3: a0 a0 C/) a0 a0 Ig> I CRCT WZ 01 BMo BM1 15 [ TYO' Dig SY03 VCC VSS 01 8 J SY0 2 SYOo ERROR R/W PPI ] 7 01 1 PPI5 e i5 ~ gw i IE CD I=>IC/) I I e ~ I C/) CD I"- iiia:: a:: a. U U a. FIGURE 7. WD8206 PINOUT DIAGRAM Main Memory Device 8-11 ABSOLUTE MAXIMUM RATINGS· ·NOTE: Stresses above those listed under "Absolute :ec Ambient Temperature Under Bias ..... OOC to 70°C Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and func- co Storage Temperature .......... -65°C to + 150°C tional operation of the device at these or any other I\,) o Voltage On Any Pin conditions above those indicated in the operational C') With Respect to Ground ........ -0.5V to + 7V sections of this specification is not implied. Exposure Power Dissipation ..................... 2.5 Watts to absolute maximum rating conditions for extended periods may affect device reliability. DC CHARACTERISTICS (TA = OOC to 70°C, Vcc = 5.0V ± 10%, Vss = GND) SYMBOL PARAMETER MIN. MAX. UNIT TEST CONDITIONS Icc Power Supply Current - Single WDS206 or Slave #1 270 rnA - Master in Multi-Chip or Slaves 230 rnA #2, 3, 4 VIL1 Input Low Voltage -0.5 O.S V VIH 1 Input High Voltage 2.0 Vcc + 0.5V V VOL Output Low Voltage - DO 0.4 V 10L = SmA - All Others 0.4 V 10L = 2.0mA VOL Output Low Voltage - DO 2.6 V 10H = -2mA - All Others 2.4 V 10H = 0.4mA ILO I/O Leakage Current -PPI 4/CE ±20 J.lA 0.45V VI/O vcc -DOjWD10- 15 ±10 J.lA III Input Leakage Current - PPIQ-3, 5-7, CBI6-7, SEDCU2 ±20 J.lA OV VIN Vcc - All Other Input Only Pins ±10 J.lA NOTES: 1. SEDCU (pin 3) and MIS (pin 4) are device strapping options and should be tied to Vcc or GND. VIH min = Vcc - 0.5V and VIL max = 0.5V. 2. PP1 0-7 (pins 13-20) and CB1 6_7 (pins 11, 12) have internal pull-up resistors and if left unconnected will be pulled to VCC. A.C. TESTING INPUT, OUTPUT WAVEFORM A.C. TESTING LOAD CIRCUIT 2.4=X. 2.0 ~ TEST <2.0)<= ./" POINTS 0.45 0.8 O.~ A.C. TESTING INPUTS ARE DRIVEN AT 2.4V FOR A LOGIC 1 and O.45V FOR A LOGIC O. TIMING MEASURE- MENTS ARE MADE AT 2.0V FOR A LOGIC 1 AND O.8V CL INCLUDES JIG CAPACITANCE FOR A LOGIC O. 8-12 Main Memory Device AC CHARACTERISTICS (fA = OOC to 70°C, Vcc = +5V ± 10%, Vss = OV, C L = 100pF; all times are in nsec.) WDS206 WDS206-S SYMBOL PARAMETER MIN. MAX. MIN. MAX. NOTES TRHEV ERROR Valid from R/W 25 34 TRHCV CE Valid from R/W (Single WD8206) 44 59 TRHQV Corrected Data Valid from R/W 54 66 1 TRVSV SYO/CBO/PPO Valid from R/W 42 56 1 TDVEV ERROR Valid from Data/Check Bits In 52 70 TDVCV CE Valid from Data/Check Bits In 70 96 TDVQV Corrected Data Valid from Data/Check Bits In 67 90 TDVSV SYO/PPO Valid from Data/Check Bits In 55 74 TBHQV Corrected Data Access Time 37 43 TDXQX Hold Time from Data/Check Bits In 0 0 1 TBLQZ Corrected Data Float Delay 0 28 0 38 1 TSHIV STB High to Data/Check Bits In Valid 30 40 2 TIVSL Data/Check Bits In to STB Set-up 5 5 TSLIX Data/Check Bits In from STB Hold 25 30 TPVEV ERROR Valid from Partial Parity In 30 40 TPVQV Corrected Data (Master) from Partial 61 76 1 Parity In TPVSV Syndrome/Check Bits Out from 43 51 1 Partial Parity In TSVQV Corrected Data (Slave) Valid from 51 69 Syndrome TSVCV CE Valid from Syndrome (Slave 48 65 number 1) TQVQV Check Bits/Partial Parity Out from 64 80 1 Write Data In TRHSX Check Bits/Partial Parity Out from 0 0 1 RIW, WZ Hold TRLSX Syndrome Out from RIW Hold 0 0 TQXQX Hold Time from Write Data In 0 0 1 TSVRL Syndrome Out to RIW Set-up 17 22 TDVRL Data/Check Bits In to RIW Set-up 39 46 1 TDVQU Uncorrected Data Out from Data In 32 43 TTVQV Corrected Data Out from CRCl 30 40 TWLQL WZ to Zero Out 30 40 TWHQX Zero Out from WZ Hold 0 0 NOTES: 1. A.C. Test Levels for CBO and DO are 2.4V AND 0.8V. 2. TSHIV is required to guarantee output delay timings: T DVEV, T DVCV, T DVSV, TSHIV + T IVSL guarantees a min STB pulse width of 35 nsec (45 nsec for the WD8206-8). Main Memory Device 8-13 WAVEFORMS READ - 16-BIT ONLY A/W TSHllt TSLI: r! II 8M I i I~ r I I NI~---- I I I I l.-TBHQV~ : I cg: { I I i I I I VALID I ) I I : I ~TBLQZ"-" 1 I.. I TRHQV - i ~TOXQX-.l -; DO :: I I.. TRVSV W /ff//A _1 VALID ~ I !. SYO I Ii I >W/##ff/d{ I I VALID x= I I I- 1 TOVSV - I I I- 1 TOVQV • ~ I ERROR ii l!~ )((/~7// T~ ~ ~ VALID x= I I" I TOVEV - : : I_ I TOVCV -I I I- TRHCV _I CE V#7//7/~/A VALID )C 8-14 Main Memory Device WAVEFORMS (Continued) :E READ - MASTER / SLAVE cCO N'-_________ I\) o sra JI{ en +tTSHIV~ I I R/W ~ II BM --,...-1.I. . . .,:7 ~ I TBHQVI : '\L'--_-+-_ I c~: ---( ! : VALID : ; I rJ+--TRVSV I ~ I" I4-TDXQX~ II P:~::~:::---)(07M ! VALID X';"':-- I I l.-TPVQV ---+I I 1 I I I 7U I DO(MASTER)--......;:--07$~ VALID k) I I I.TPVSV.j I I SYO(MASTER)---J>V$$m VALID XI11--:- SYI (SLAVE) I I L.fL I TSVQV 1 i I I 14 ., I I Main Memory Device 8-15 WAVEFORMS (Continued) :ec FULL WRITE - 16-81T ONLY CO I\) o I+--TRVSV~ 0') I I R/W---------~~_ _ _ _ ____'____/ : , . - - - - - - I • I TRHSX I ,, TRLSX~ a.- ~ I BM I "*TBLQZ ~ , ------ , ----;------r-------'"" ' DO/WDI DATA OUT ~.¥ WRITE DATA IN )1>......:---- ~ "II I, I ~ .1----, "'1 TaVaV ---+j TaXaX-+1 , I SYO/CBO - - - - - - S - Y - N - - - - - - - - . X 7 / / A I CB X___I SY_N_ FULL WRITE - MASTER/SLAVE t----TRVSV----1 R/W------...,,~ : /f I ,......., TBLaz 'I lTRHSX I I ~ BM==X : ! I I I I I _-:----1 : I I ~TaVaV~ I , I.+-: DO/WDI ===D=AT.=A=O=U=T==}----{ : I WRITE DATA IN 1~1:""---- I I TaXaX~ J.- I I I PPO(SLAVE) - - - - - - - - - . . . ; . . . . . . PPI (MASTER) '~+iELAI ---------..,...Jj 7P VALID x= ,.. ., ,- ., , TRLSX , TPVSV : ....J~,..,""""::I~~~-~,...~'T"~-rir--C-B-x= I SYO/CBO _ _ _ _S_YN_ _ _ _ _ I 8-16 Main Memory Device WAVEFORMS (Continued) :E READ MODIFY WRITE - 16-BIT ONLY c co I\) STB jII 1••-----TIVSL-----t_~1 t 'F-l___________ 1.......i----TSLlX----i.~1 o 0) TSHIV·-+I I+- I I I I, I R/W =:?f ~ _______-----,fil----r-:-- , I I I 1-t1-----TovRL---~..~,I.--TRvsv___.J 1ooI1 .. I I I I II I II I BM __~i~:--~-------~-L-,O-r:----~:-------~ I' , I~ I tRHSX~ I !.-TBHQV. . .' : TBLQZ-+/ I t. I I ! I 1 I 01 CBI ~ I I I VALID I ). I I I~I------~I--~I----~~------I , I ..t-----TRHQV I&.oII I _, I J I I I I I TOXQX....J 14-, I I OO/WOI ---ti-" TO_VQ_V--c@!?IT t-:_ _ _ _ I I TQXQX~ ~ 1 .....t - - - - - T R V S V - - -••I I~ I....- TRLSX I SYO/CBO --r---- I I I I I I I : SYN~----~-~""-CB I --fC ,......t-----Tovsv---~.I I+--TQVQV~ Main Memory Device 8-17 WAVEFORMS (Continued) =E READ MODIFY WRITE - MASTER/SLAVE c CO N o en R/W ------J)i '{'---------J/f I 1 I , 'J4-TRHSX~ ! BM __ >Krr I I X I ! I f'+--TBHQV---+t I TIVSL I !.-TBLQZ----+l r I I 4 _I I 1 , STB ~ ..../ ITsHlv I I I I I II tI I 1 : ~ I 1'_ -I- I TDVSV~ 1 , I C~: -----« : : : iVALID ! ii I I I I I 1 TRVSV I , I ~TRVSV--+I I ~TSVRL -I- -I I 1 p:::~::, =rzR~D7 {~ : VALID )(w)lg iK 1 TP~SV I I, I ' ,4 ; _, I I I (~~~~~~) ---t------...:-@:VALID I I :Yhl I . I I !PVS~ I I ~TPVQV""" SYO/CBO(MASTE~ >V~ SYI (SLAVE) ITSVQV SYN >07M I CO k , ~TQVQV~ 1 I ~~~~------+-----------~-~--~~--~+---------~-L-ID----------~~~ 8-18 Main Memory Device WAVEFORMS (Continued) NON·CORRECTING READ CRCT----------------------~~~I_____________~~----------- I I I I DO/WDI --------------WA UNCORRECTED CORRECTED }UNCORRECTti- WRITE ZERO I....I----TWLQL------..~I Wi -----------....." I ~ : I A----- I ~~------------------~I---------~ I I I I+- TQVQV(1) +t I I I I I I TQVQV(2)----+i ~ ~ ~TWHQX I I I I DO 0'#///#////////4 I I I I I WZ I I TRHSX I ~ I V- AW/ff///#/7/M p:~:~~~::/W --.J·TPVSV~ VALID ~ I I I SYOICB0o/ NOTE: (1): 16-BIT ONLY (2): MASTER/SLAVE ff//P',0/7# U~/M I "AUD x= I Main Memory Device 8-19 8-20 Main Memory Device WESTERN DIGITAL c ORPORAT 0 N =E c CD WD93020 Integrated Drives (,.) o N o WD93020 INTEGRATED DRIVES BASIC CONTROLLER FEATURES: Western Digital's initial peripheral subsystem offer· • PLUG COMPATIBLE INTERFACES: SCSI, IBM PC- ing, the WD93020 series of integrated disk drives, XT, AND IBM PC-AT. adds all disk controller functions to a 20 megabyte • MODIFIED FREQUENCY MODULATION (MFM) Winchester disk drive. Eliminating the requirement for ENCODING a separate controller card, the subsystem's small size and attractive price make it economically feasible to • PROGRAMMABLE SECTOR INTERLEAVE FOR CONSECUTIVE SECTOR TRANSFERS: 2:1 use Winchester disk drive technology into applica· INTERLEAVE ON PC INTERFACES; 1:1 tions like portable personal computers or low cost INTERLEAVE ON SCSI INTERFACES. home computers. Western Digital Integrated Drive models are configured with a popular selection of • BUILT·IN SELF·TEST AND DIAGNOSTIC host computer plug compatible interfaces: SCSI, IBM CAPABILITIES COVERING BOTH DRIVE AND PC·XT, and IBM PC·AT. CONTROLLER OPERATION. • IMPROVES DATA RELIABILITY BY INCOR· BASIC DRIVE FEATURES: PORATING ONBOARD DATA SEPARATION. • TWO·PLATTER, 3.5·INCH, FIXED MEDIA DISK • AUTOMATIC WRITE PRECOMPENSATION. DRIVE. • ATIXT • SUPPORTS MULTIPLE TRACK/CYLINDER • A FORMATTED DATA CAPACITY OF 20 READIWRITE. MEGABYTES. • SCSI· SUPPORTS BLOCK MODE TRANSFER. • A SINGLE PRINTED CIRCUIT BOARD ASSEMBLY. • ERROR DETECTION AND CORRECTION • AN AVERAGE ACCESS TIME OF 85 CAPABILITY USING A 32·BIT POLYNOMIAL. MILISECONDS. • THE SCSI INTERFACE HAS FULL IMPLEMENTA· • POWER DISSIPATION OF LESS THAN 12 WATTS. TION OF THE SCSI PROTOCOL INCLUDING • UP TO 850 TRACKS PER INCH. DISCON N ECT/RECON N ECT. • A 40·PIN, SINGLE CABLE CONNECTION FOR TH E I BM PC MODELS. Integrated Drive Electronics 9-1 INTEGRATED DRIVE SPECIFICATIONS =e c TECHNOLOGICAL CHARACTERISTICS CO CAPACITY - Formatted 20.0 Megabytes w - Unformatted 25.5 Megabytes o N CYLINDERS 612 o TRACK CAPACITY 10,416 Bytes NUMBER OF DISKS 2 MEDIA Ferrous Oxide or Thin Film RECORDING SURFACES 4 READjWRITE HEADS 4 HEAD POSITIONER Stepper Motor ENCODING METHOD Modified-frequency Modulation PERFORMANCE CHARACTERISTICS SEEK - Track to Track 15 Milliseconds - Average 85 Milliseconds - Maximum 150 Milliseconds ROTATIONAL LATENCY 8.6 Milliseconds HEAD SETTLING Included in Seek Times TRANSFER RATE 5.0 Megabits per Second RELIABILITY CORRECTED ERROR RATES - Hard 1 in 10-13 Read retries and - Soft 1 in 10-11 ECC Enabled - Seek NIA RAW ERROR RATES - Hard Errors 1 in 10-12 - Soft Errors 1 in 10-10 - Seek Errors 1 in 10-6 MTBF 15,000 Power-On-Hours PREVENTIVE MAINTENANCE None SERVICE LIFE 5 Years MTTR 30 Minutes PHYSICAL CHARACTERISTICS SIZE - Height 41.0 mm. (1.614 in.) - Width 101.0 mm. (3.976 in.) - Depth 129.5 mm. (5.100 in.) WEIGHT 1.2 Lbs. DC POWER - Input Voltage +5 VDC ± 5% @0.8 Amps Typ. + 12 VDC ± 5% @ 0.7 Amps Typ. - Maximum Start 2 Amps @ +5 VDC 1 Amp @ +12 VDC HEAT DISSIPATION 12 Watts Average ENVIRONMENTAL CHARACTERISTICS TEMPERATURE - Operating 4°-50°C (40°-122°F) - Non-operating -40°-60°C (-40°-140°F) - Gradient ± 10°C/Hour (± 18°F/Hour) RELATIVE HUMIDITY 8 - 90% No Condensation MAXIMUM WET BULB 76°F Non-condensing SHOCK - Operating 10 G 10 ms Half Sine Wave - Non-operating 50 G 10 ms Half Sine Wave VIBRATION - Operating 2 - 10 Hz 0.1 in. Dbl Amplitude 10 - 500 Hz 0.5 G (O-P) - Non-operating 2 - 10 Hz O.4in. Dbl Amplitude 10 - 500 Hz 2.0 G (O-P) ALTITUDE - Operating -1,000 - 10,000 Feet - Non-operating -1,000 - 50,000 Feet Specifications and features are subject to change without notice. 9-2 Integrated Drive Electronics :E Address Bus c CO w o r--'I N o WD10C20A RAM Data Separator : Host • Bus and PLL Servo Data Spin Motor WD6002 DAC Control ---r--- : Servo DAC I i Drivers L._~ Spindle WD60C01 Motor Servo. Control Control WD93020 INTEGRATED DRIVE ELECTRONICS (TYPICAL) Integrated Drive Electronics 9-3 9-4 Integrated Drive Electronics ORDERING INFORMATION OBSOLETE PACKAGE DESIGNATIONS CURRENT PACKAGE DESIGNATIONS A 40 Lead DIP·Ceramic PACKAGE TYPE: LEAD COUNT: B 40 Lead DIP·Relpak A Ceramic DIP A <14 Lead C 24 Lead DIP·Ceramic P Plastic DIP D 18 Lead E 28 Lead DIP·Ceramic C Cerdip DIP E 20 Lead F 28 Lead DIP·Relpak D Ceramic QUAD F 22 Lead J 16 Lead DIP·Ceramic J Plastic QUAD H 28 Lead K 16 Lead DIP·Plastic (Totally Encapsulated) L 40 Lead L 18 Lead DIP·Ceramic M 44 Lead M 18 Lead DIP·Plastic (Totally Encapsulated) N 48 Lead P 40 Lead DIP·Plastic (Totally Encapsulated) T 68 Lead R 28 Lead DIP·Plastic (Totally Encapsulated) T 48 Lead DIP·Ceramic U 20 Lead DIP·Ceramic V 20 Lead DIP·Plastic (Totally Encapsulated) X 20 Ceramic KIT Y 20 Plastic KIT Example of obsolete method: Example of current method: WD1943MOO Where M = Single Digit WD1943PDOO Where PD = Double Digit Package Designator (M = 18 Lead Plastic) Package Designator (P =Plastic and D = 18 Lead) The following listing indicates the available packages for each product. DIP QSM PRODUCT DUAL IN-LINE PACK. QUAD SURFACE MOUNT WD1010·0S PL, AL DM, JM WD1014·00 PL, AL WD101S·02,10,24 PL, AL DM, JM WD10C20 PH, AH DH, JH WD10S0-00 or WD1100·01 PE, AE WD1100·03 PE, AE WD1100-04 PE, AE WD1100·0S PE, AE WD1100·06 PE, AE WD1100-07 PE, AE WD1100-09 PE, AE WD1100-12 PE, AE WD11COO·13 PE, AE DH, JH WD1100-21 AL WD11COO·17 or WD1691-00 PE, AE, CE WD16C92 PL, AL WD1770,72,73 PH, AH DH, JH WD1771-01 PL, AL Ordering Information 10·1 DIP QSM PRODUCT DUAL IN-LINE PACK. QUAD SURFACE MOUNT F0179X-02 PL, AL WD2010-05 PL, AL OM, JM WD2143-03 PO, AD, CD WD2401 PL, AL WD24C02 PL, AL WD279X-02 PL, AL WD33C92 PN, AN OM, JM WD33C93 PL, AL OM, JM WD8206-00,02 OT WD8207-02,05 OT WD9216-00,01 PA, CA WD92C32-00 PA, AA 10-2 Ordering Information Package Diagrams IlSt 0°_-1 1 J.4JtZ5_ Jjl:.~ 012t 00] l ".i."In' li 717i.38 'SO,03O ~7e 8 LEAD CERDIP "CA" 8 LEAD PLASTIC "PA" J. 1 .015 1 4 - .900 _ _ ~ MIN -L-I - I MAX - I ~3 . 10.j MAX.., fmNWW~MINf9 .100TYP ~ ~~048-.J .062 k-+ ~ .390 .014 .021 18 LEAD CERAMIC "AD" 18 LEAD CERDIP "CD" 250~ '6.35 :t .38 T E:n::d~ -- + PIN 1 I.D. .310±.015, l .140+.015 020.':: -.;-;--:-y- 7.87±.38~~38 3.56%. ~:;::;:;:;;:;:;::;;:;;;)~. 1;~l±±O~~t I ~ ·1.27:t .51 060 II~ ~:-.~=: :~ 1.~±08.1 3.81:t:.S1 350 ± .030 ~ 18 LEAD PLASTIC "PD" 20 LEAD CERAMIC "AE" 1I5t·010_1 •. " •.2S I Lat.oI .0"'t.0D:3 lO.! .... lI '"",1 ... -';'Lo:-=t'" 20 LEAD CERDIP "CE" 20 LEAD PLASTIC "PE" Package Diagrams 11-1 28 LEAD CERAMIC "AH" 28 LEAD CERAMIC "DH" L - - - - - - ' .tOO t 020 I ~:=J ·~EEI3 28 LEAD PLASTIC "JH" 28 LEAD PLASTIC "PH" 40 LEAD CERAMIC "AL" 40 LEAD PLASTIC "PL" ='iNGm::'';'" :':':1 "';:p..2!!; L - ~"~1 -.fl"'t:~·::'"" .. _:0121 fi.~-= + + --. "'~-= 11I ~.: 'I :di..71'moo~", ,:::,TYP 44 LEAD CERAMIC "DM" 44 LEAD PLASTIC "JM" 11-2 Package Diagrams ~"'-"'.'. IL~Q·~ _1 48 LEAD CERAMIC "AN" 68 LEAD CERAMIC "DT" Package Diagrams 11-3 Component Products Terms and Conditions 1. ACCEPTANCE: Unless otherwise provided, it is agreed that sales are made on the terms, conditions and warranties contained herein and that to the extent of any conflict, the same take precedence over any terms or conditions which may appear on Buyer's order form. Seller shall not be bound by Buyer's terms and conditions unless expressly agreed to in writing. In the absence of written acceptance of these terms, acceptance of or payment for any of the articles covered hereby shall constitute an acceptance of these terms and conditions. 2. F.O.B. POINT: All sales are made F.O.B. point of shipment. Seller's title passes to Buyer and Seller's liability as to delivery ceases upon mak· Ing delivery of articles purchased hereunder to carrier at shipping point In good condition; the carrier acting as Buyer's agent. All claims for damages must be filed with the carrier. Unless specific Instructions from Buyer specify which method of shipment Is to be used, the Seller will exercise his own discretion, 3. DELIVERY: Shipping dates are approximate only, Seller shall not be liable for any loss or expense (consequential or otherwise) Incurred by Buyer If Seller falls to meet the specified delivery schedule because of unavoidable production or other delays. Seller may deliver the articles In Installments, Seller shall not be liable for any delay In delivery or for non-dellvery, In whole or In part, caused by the occurrence of any contingency beyond the control either of Seller or Seller's suppliers, Including, by way of illustration but not limitation, war (whether an actual declaration thereof Is made or not), sabotage, Insurrection, riot or other act of civil disobedience, act of public enemy, failure or delay In transpor· tation, act of any government or any agency or subdivision thereof, judicial action, labor dispute, accident, fire, explosion, flood, storm or other act of God, shortage of labor, fuel, raw material or machinery or technical failure where Seller has exercised ordinary care In the preven- tion thereof. If any contingency occurs, Seller may allocate production and deliveries among Seller's customers. 4. TERMS AND METHODS OF PAYMENT: Where seller has extended credit to Buyer, terms of payment shall be net thirty (30) days from date of Invoice, The amount of credit or terms of payment may be changed or credit withdrawn by Seller at any time, If the articles are delivered In Installments, Buyer shall pay for each Installment In accordance with the terms hereof. Payment shall be made for the articles without regard to whether Buyer has made or may make any Inspection of the articles. If shipments are delayed by Buyer, payments are due from the date when Seller has prepared to make shipments. Articles held for Buyer are at Buyer's sole risk and expense. 5. TAXES: All prices are exclusive of all federal, state and local excise, sales, use, and similar taxes; when applicable to this sale or to the articles sold, will appear as separate additional Items on the invoice unless Seller receives a properly executed exemption certificate from Buyer prior to shipment. 6. PATENTS: The Buyer shall hold the Seller harmless against any expense or loss resulting from infringement of patents or trademarks arising from compliance with Buyer's designs or specifications or instructions. The sale of products by the Seller does not convey any license, by implication, estoppel, or otherwise, under patent claims covering combinations of said products with other devices or elements. Except as otherwise provided In the preceding paragraph, the Seller shall defend any suit or proceeding brought against the Buyer so far as based on a claim that any product, or any part thereof, furnished under this contract constitutes an infringement of any patent of the United States, If notified promptly in writing and given authority, Information and assistance (at the Seller's expense) for the defense of same, and the Seller shall pay all damages and costs awarded therein against the Buyer. In case said product, or any part thereof, is In such suit held to constitute infringement and the use of said product or part Is enjoined, the Seller, shall at its own expense, either procure for the Buyer the right to continue using said product or part, or replace same with non-infringing product, or modify It so It becomes non- infringing, or remove said product and refund the purchase price and the transportation and Installation costs thereof. The foregoing states the entire liability of the Seller for patent Infringement by the said products or any part thereof. 7. ASSIGNMENT: The Buyer shall not assign his order or any interest therein or any rights thereunder without the prior written consent of Seller. 8. WARRANTY: Seller warrants articles of its manufacture against materials or workmanship for a period of one year from date on which Seller delivers said articles. The liability of Seller under this warranty is limited at Seller's option, solely to repair, replacement with equivalent articles, or an appropriate credit adjustment not to exceed the original sales price of articles returned to the Seller provided that (a) Seller is promptly notified In writing by Buyer upon discovery of defects, (b) the defective article Is returned to Seller, transportation charges prepaid by Buyer, and (c) Seller's examination of such article disclosed to its satisfaction that defects were not caused by negligence, misuse, improper Installa- tion, accident, or unauthorized repair or alteration by the Buyer. In the case of equipment articles, this warranty does not include mechanical parts falling from normal usage nor does It cover limited life electrical components which deteriorate with age. In the case of accessories, not manufactured by Seller, but which are furnished with the Seller's equipment, Seller's liability Is limited to whatever warranty is extended by the manufacturers thereof and transferable to the Buyer. This Warranty is expressed In lieu of all other Warranties, expressed or Implied, including the Implied Warranty of fitness for a particular purpose, and of all other obligations or liabilities on the Seller's part, and It neither assumes nor authorizes any other person to assume for the Seller any other liabilities. This Warranty should not be confused with or con- strued to Imply free preventative or remedial maintenance, calibration or other service required for normal operation of the equipment articles. These Warranty provisions do not extend the original Warranty period of any article which has either been repaired or replaced by Seller. In no event will Seller be liable for any incidental or consequential damages. 9. TERMINATION: Buyer may terminate this contract In whole or from time to time In part upon 60 days written notice to Seller. In such event Buyer shall be liable for termination charges which shall Include a price adjustment based on the quantity of articles actually delivered, and all costs, direct and Indirect, Incurred and committed for this contract together with a reasonable allowance for pro-rated expenses and pro- fits. Any termination or back off in scheduling will not be allowed on shipments scheduled for the month In which the request is made and for the month following. 10. GOVERNMENT CONTRACTS: If the articles to be furnished under this contract are to be used In the performance of a Government contract or subcontract and a Government contract number shall appear on Buyer's purchase order, those clauses of the applicable Government pro- curement regulation which are mandatorialy required by Federal Statute to be Included In Government subcontracts shall be incorporated herein by reference. 11 • ORIGIN OF ARTICLES:Selier engages In off-shore production, assembly and / or proceSSing and makes no warranty or representation, expressed or implied, that the articles delivered hereunder are United States articles or of U.S. origin for the purpose of any statute, law, rule, regulation or case thereunder. If Buyer ships the articles hereunder out of the U.S. for assembly, then at Buyer's request in writing, Seller shall provide information applicable to identification of any articles not of U.S. origin. 11-5 Published by Software Publishing & Packaging, Inc. 1333 East Thousand Oaks Blvd. Thousand Oaks, CA 91362 805·495·7423 11-6 ~.