WESTERN DIGITAL c O H P O A T f QO wnN WD1770/1772 5%” Floppy Disk Controller/Formatter FEATURES =s CJ +. VY 23[_) INTRO e 28 PIN OlP = Cj 2 73 oRO ® SINGLE 5V SUPPLY ad C7] 3 26 ODDEN a: (7) 4 23( wert e BUILT-IN DATA SEPARATOR cao (7 5 uj iP e BUILTIN WRITE PRECOMPENSATION | cau: (6 21} TRoo 242 Cz)? 2) wo 5s" SINGLE AND DOUBLE DENSITY ta3 8 21[) WG caus 9 2 Mo ¢ MOTOR CONTROL cacs C10 “9f-) RO © 128. 256. 512 OR 1024 SECTCR LENGTHS raré C1 ‘33 CuK Dac? (712 17} CIRC e TTL COMPATIBLE wa (13 “6(—} STEP ¢ 8 BIT BIC!RECTIONAL DATA BUS sso Coa. SE Vee e TWO VERSIONS AVAILABLE WD1770 = STANDARD 179X STEP RATES PIN DESIGNATION WO1772 = FASTER STEP RATES DESCRIPTION serial FM or MFM data from the disk drive. The device has been specifically designed for control of The WD177C :s a MOS/LSI device which pertorms the 5%° floppy disk drives with data rates of 125 functions of a5'%” Floppy Disk ControitenFormatter KBits/Sec (single density) and 250 KBits/Sec (double It ts similay to its prececessor, the WO179X. but also density). in addition, wnte precompensation of 125 contains a Jigital data separator anc wnte precom- Nsec from nominal can be enabled at any point pensation c:rcuitry. The drive side of the interface through simple software commands. Another pro needs no acoitional logic except for bduffers/ grammable feature, Motor On. has been incorporated receivers. Designed for 54” single or double density to enable the spindle motor automatically pnor to Operation, the device contains a programmabie operating a selected Grive. Motor On signal. Two versions of the WWD1770 are available. The star dard version is compatible with the 179X stepping The WD177C is implemented in NMOS silicon gate rates, while the WD1772 offers stepping rates of 2, 3, technology and is available in a 28 pin dual-in-tine. 5 and 6 msec. The WD1770 is a low cost version of tne FD179X The processor interface consists of an &bit bidirec- Floppy Disx ControtierFormatter It is compatible tional bus for transfer of status, data, and commands. with the 179X. but has a built-in digital data separator All host communication with the drive occurs and write crecompensation circuits. A single read through these data lines. They are capabie of driving line (RD, Pin 19) is the only input required tc recover one standard TTL load or three “LS” loads. PIN | NUMBER PIN NAME ' SYMBOL FUNCTION CLLLIOLZZLOM 1 CHIP SELECT me} A logic low on this input selects the chip and | enabie Host communication with the device. 2 READ/WRITE RW A logic high on this input controis the : placement of data on the 00-07 ines from a selected register while a ‘ogic low causes a wnte operation to a selected register. 3.4 ADORESS 0,1 ' AQ, At These two inputs select a register to Read/Wnte_ data | CS Al AQ AWe=1 AW = 0 : | 0 O O StatusReg CommandReg ' | 0 O 1 Track Reg Track Reg Oo 1 0 Sector Reg Sector Reg | Qo 1 1 Data Reg Data Reg 512 | DATAACCESS LINES ; DALO-DAL7 | Eight dit bidirectional bus used tor transfer of | . Q THROUGH 7 | - data, control. or status. This bus is enabled by: | } | | CS and RW. Each line will drive one TTL joad. | 13... MASTER RESET MR i A logic low pulse cn this line resets the device | | and imtalzes the status register internal pull-up). | 14 | GROUND GND Ground. 15 | POWER SUPPLY | VOC +5V = 5° power supply input. | 16 - STEP . STEP The Step output contains a pulse for each step : of the drive's AW head. The WDO1770 and ~ WD1772 offer different step rates. 17 ' DIRECTION , DIRC The Direction output is high when stepping in i towards the center of the diskette, and low i when stepping out. 18 | CLOCK CLK | This input requires a freerunning 50% duty 5; ' cycle clock (for intemal timing) at8 MHZ * 1°%. 19 | READDATA RO This active low input is the -aw data ‘ine | : containing both clock and data pulses from the : rive. 20 MOTOR ON MO Active high output used to enable the spindie motor pnor to read. wnte or stepping opera: tons. 21 WRITE GATE . WG This output 1s made valid prior to writing on the diskette. ! 22 WRITE DATA ' WD FM or MFM clock and data pulses are placedon 7 this line to be wntten on the diskette. | 23 TRACK 00 ' TROO This active low :nput informs the WO1770 that the drive's R/W heads are positioned over Track! | zero lintemnal pull-up). 1 24 | INDEX PULSE iP This active low input informs the WO1770 when ~ ! ; the physical index hole has been encountered. , | on the diskette internal puil-up). | 25 _ WRITE PROTECT WPRT | This :nput is sampled whenever a Write: | Command is received. A logic tow on this | ‘ine will prevent any White Command from | | | executing (intemal pull-up), : 26 ' DOUBLE DENSITY OOEN ' Ths put cin seiects either singié \=M) or ENABLE jgous'e MFM. cersity vWrehen OCEN =°% . cote eo . transterrec to the DAL This Register shouid not be a we ee - ioaded when the device 's busy. F \ nO a oe = Sector Register (SR) — This &bit register hoids the CG el E address of ‘he desired sector position. The contents [029 : = of the register are compared with the recorded sector | og 36D TC number in :ne ID field dunng disk Read or Write ITT Po S$ mast La, operations. The Sector Register contents can be ‘caced from or transferred to the DAL This register should not de ‘ioaded when the device is busy. Command Register (CR) — This 8 bit register holds WD1770 SYSTEM BLOCK DIAGRAM ‘he command cresently being executed. This register should not de ‘caded when the device is Dusy unless ‘the new command ts a force interrupt. The command register can De loaded from the DAL, but not read orto the DAL ARCHITECTURE Status Register (STR) — This &bit register holds The Floppy Disk Formatter dlock diagram ts ib device Status information. The meaning of the Status lustrated on page 4. The primary secticns inc!ude tits is a function of the type of command previously the paralle! processor interface and the F'oppy Disk executed. This register can be read onto the DAL, but interface. not !oaded from the DAL Data Shift Register — This 8 bit ‘eqister assembies CRC Logic — This logic is used to check or to Serial data from the Read Data input (RD) cunng Read generate the 16-bit Cyclic Redundancy Cneck (CRC). operations and transfers serial data to the wnte Data The polynomial is: Output during *Vrite operations. Gix) = x16 4 x12 4 x5 4 1. Data Register — This &bit reg:ster is used as a The CRC inc!udes all information starting with the holcing regisier Gunng Disk Read and vinte opera address mark and up to the CRC characters. The tions. In Oisk Read operations, the assembied data CRC register 's preset to ones pnor to data being byte is trarsierred in parallel to tne Data Register shifted through the circuit. ‘ram tne Data Snift Register. In Disk Write operations. Arithmetic/Logic Unit (ALU) — The ALU is a senal information 1s transferred in parailel from the Data comparator. ‘ncrementer, and decrementer and :s Seqgister to the Data Shift Register. used for register modification and compansons with When executing the Seek command. the Data Regis the disk recorded !O field. ter Noids the adcress of the desired Track position. 45 & 6 1 wane waar DATA SUT SUFFERS COMMANDO SECTOR REG =€G AW CEVECTOR DATA SEPARATOR ORO —_—e, wG -_ ES ela ae WPRT MA z ——_—__—-»| . ce i aE ae ~ TOO ‘TERFACE c CONTROL <= et ‘NTERFACE reg AO CONTROL 1240 XH CONTROL al STEP Al OAc md Ul MOTOR ON CLK 8 MHZ) OP} —_—— —_DDER _ W01770 BLOCK DIAGRAM Timing and Control — All computer and Floppy Disk PROCESSOR INTERFACE interface controls are generated through this logic. The interface to the processor is accomplished The intemal device timing is generated from an exter- through the eight Data Access Lines (DAL) and nal crystal clock. The FD1770 has two different associated control signals. The DAL are used to modes of operation according to the state of ODEN. transfer Data, Status. and Control words out of, or in- When OOEN — 0. double density (MFM) ts enabied. to the W01770. The DAL are three state buffers that When DOEN = 1. single density is enabied. are enabied as output drivers when Chip Select (CS) AM Detector — The address mark detector detects and RW = 1 are active or act as input receivers when ID, data and index address marks dunng read and CS and RW = 0are active. wnte operations. When transfer of data with the Floppy Disk Controller Data Separator — A cigital data separator consisting is required by the host processor, the device address of a ring shift register and data window detection is decoded and CS is made low. The address bits At iogic provides read data and a recovery clock to the and AQ. combined with the signal R/W during a Read AM detector . operation or Write operation are interpreted as select- ng the following -egisters: ee =_— A1- AO | READ (R/W=1) WRITE (R/W = 0} number of tracks as far as the W01770 is concemed is from 0 to 255 tracks. 0 OQ Status Register Command Register CLLLIOLLLGM Oo 1 Track Register - Track Register 4 0 Sector Register Sector Register GENERAL DISK WRITE OPERATION 1 1 Data Register Data Register When wniting is to take place on the diskette the Write Gate (WG) output is activated, allowing current to flow into the Read/Write head. As a precaution to Dunng Direct Memory Access (DMA) types of data transfers between the Data Register of the WD1770 erroneous wniting the first data byte must be loaded into the Data Register in response to a Data Request and tne processoc tne Data Request (ORQ) output from the device before the Wmnte Gate signal can be ig used in Data Transfer control. This signal aiso activated. appears as status dit 1 dumng Read and Vwnte Operanions. Writing is inhibited when the Wiite Protect input is a On Unsx Read operations the Data Request is act+ logic low, in which case any Write command is im- vated iset nigh) when an assembied senal input byte mediately terminated. an interrupt is generated and is transferred in parallel to the Data Registec This bit the Wnite Protect status bit is set. is Cleared when the Data Register is read by the pro- For Write operations, the WD1770 provides Write cessor if tne Data Register is read after one or more Gate (Pin 21) to enable a Write condition, and Write characters are lost. Dy having new Gata transferred in Data (Pin 22) which consists of a series of active high to the register pnor to processor readout, the Lost pulses. These pulses contain both Clock and Data in- Data bit 1s set in the Status Register The Read opera formation in FM and MFM. Vvrite Data provides the tions continues until the end of sector is reached. unique missing clock patterns for recording Address On Disk Write operations the Data Request is ac- Marks. tivated when the Data Register transfers its contents The Precomp Enable bit in Write commands allow to the Data Shift Register, and requires a new data automatic Wnte precompensation to take piace. The byte. it is reset when the Data Register is loaded with outgoing Wnte Data stream is delayed or advanced new data by the processor If new data is not ioaded from nominal by 125 nanoseconds according to the at the time the next senail byte is required by the following tabie: Floppy Disk, a byte of zeroes is written on the diskette and the Lost Data is set in the Status PATTERN MFM FM Registec x 1 1 0 Earty NUA At the completion of every command an INTRO is xX 0 1 1 Late NA generated. INTRO is reset by either reading the 0 0 0 1 Earty NWA status register or by loading the command register 1 0 0 0 Late N/A with a new command. in addition, INTAQ is gen - 4__4 , L_ Next Bit to be sent erated if a Force Interrupt command condition is met Current Bit sending The WD1770 has two modes of operation according Previous Bits sent to the state ODEN (Pin 26). When ODEN = 1. single density is selected. In either case, the CLK input (Pin Precompensation is typically enabled on the inner- 18) is at 8 MHZ. most tracks where bit shifts usually occur and bit density is at its maximun. GENERAL OISK READ OPERATIONS Sector lengths of 128, 256, 512 or 1024 are obtainable COMMAND DESCRIPTION in either FM of MFM formats. For FM, DOEN should be placed to logical “1° For MFM formats, ODEN The WO1770 will accept eleven commands. Com should be placed to a logical “0' Sector iengths are mand words should only be loaded in the Command determined at format time by the fourth dyte in the Register when the Busy status Dit is off (Status bit 0). “10” fied. The one exception is the Force Interrupt command. Whenever a command is being executed, the Busy SECTOR LENGTH TABLE I Status bit 1s set. When a command is compieted, an interrupt is generated and the Busy status Dit is SECTOR LENGTH NUMBER OF BYTES reset. The Status Register indicates whether the FIELD (HEQ IN SECTOR (DECIMAL) completed command encountered an error or was 00 128 ! fault free. For ease of discussion, commands are 01 256 divided into four types. Commands and types are 02 512 summanzed in Table 1. 03 1024 The number of sectors per tract as far as the WD1770 IS concemed can be from 1 to 255 sectors. The ee 47 es: COMMAND SUMMARY TYPE IV COMMANDOS 13-ig Interrupt Condition (Bits 3-0) aL CLLLIOLLLOM TYPE COMMAND 33ccc-o8djag saaaaz3s|0d ab lo = 1. Don't Care [00—--~a0 ~O-4-0 —- YES SE~ 0 WALT 6 INDEX PULSES NO sa, —_-— ‘ S | Aese DIREC TION | | SET DIRECTION | COMMAND vES SET Sed ath. 4 a SIRECTION —_ STEP-IN > “OQ ves ‘Ss ~ OM MAND rES RESET a DIRECTION STE? OUT nO s§ COMMAND ves a SEP crom™ de ’ NO TAACKOANO oIRECTION =z Q S 5 YES COMMANDO a CEEM ? SSU 4 ONE STEP PULSE “O -GESTORE { FFL, TOR DELAY ACCORDING TOR, Ag FIELD $7038 nO Yes R STEP-OU 3 TYPE !| COMMAND FLOW TYPE ! COMMAND FLOW 49 At this time, the Track Register is loaded with zeroes operation takes place if the V flag is on. The hn bit and an interrupt is generated. If the TROO input does allows the Motor On option at the start of the com- not go active low after 255 stepping pulses, the mand. An interrupt is generated at the completion of CLLLIOLLLGM WD1770 terminates operation, interrupts, and sets the command. Note: When using multiple drives, the the Seek error status bit, providing the V flag is set A track register must be updated for the drive selected verification operation also takes place if the V flag is before seeks are issued. set. The h bit allows the Motor On option at the start of command. STEP Upon receipt of this command, the WD1770 issues SEEK one stepping pulse to the disk drive. The stepping This command assumes that the Track Register con motor direction is the same as in the previous step tains the track number of the current position of the command. After a delay determined by the 17,19 field, ReadVite head and the Data Register contains the a verification takes place if the V flag is on. If the U desired track number The WD1770 will update the flag is on, the Track Register is updated. The h bit Track Register and issue stepping pulses in the ap allows the Motor On option at the start of the com. propnate direction until the contents of the Track mand. An interrupt is generated at the completion of Register are equal to the contents of the Data the command. Register (the desired track location). A venfication STEP-IN Upon receipt of this command, the W01770 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 13,19 field, a verification takes place if the V fiag is on. The Nn bit VERIFY allows the Motor On option at the start of the com. SEQUENCE mand. An interrupt is generated at the completion of the command. STEP-OUT Upon receipt of this command, the WD1770 issues one stepping pulse in the direction towards track 0. If the U flag is on, the Track Register is decremented by one. After delay determined by the 11.19 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 y NO { NTRO. RESET BUSY the command. 3ET SEEK ERROR TYPE li COMMANDS “AS 10 AM BEEN The Type It Commands are the Read Sector and Write OETECTED 9 Sector commands. Prior to loading the Type |! Com- mand into the Command Register the computer must load the Sector Register with the desired sector numbdec Upon receipt of the Type il command, the busy status bit is set. If the E flag = 1 the command will execute after a 30 msec delay When an ID field is located on the disk. the WD1770 compares the Track Number on the ID field with the Track Registec If there is not a match, the next en countered ID field is read and a comparison is again made. if there was a match, the Sector Number of the NO | RESET CRC ERROR CRC ID field is compared with the Sector Register If there ? is not a Sector match, the next encountered ID field is read off the disk and comparisons again made. If the 10 field CAC is correct, the data field is then INTRO located and will be either written into, or read from RESET BUSY depending upon the command. The W01770 must find an ID field with a Track number Sector number, and CAC within four revolutions of the disk, other- TYPE | COMMAND FLOW the sector register internally updated so that an ad dress verification can occur on the next record. The CLLEIOLLIGM W01770 will continue to read or write multiple records and update the sector register in numerical ascending sequence until the sector register ex- 1S ceeds the number of sectors on the track or until the TYPE it Force Interrupt command is loaded into the Com COMMANDO RECEIVED mand Register, which terminates the command and 9 generatesan interrupt For example: If the WD1770 is instructed to read sec- SET BUSY, RESET DAO. LOST tor 27 and there are only 28 on the track, the sector DATA RECORD NOT FOUND. & register exceeds the number available. The WD1770 STATUS BITS 5 & 6 INTRO will search for 5 disk revolutions, interrupt out, reset busy, and set the record not found status bit. READ SECTOR Upon receipt of the Read Sector command, the Busy Status bit is set, and when a IO field is encountered Yes that has the correct track numbec correct sector number, and correct CRC, the data field is presented to the computec The Data Address Mark of the data SET “uO field must be found within 30 bytes in single density wait and 43 bytes in double density of the last ID field 6 INDEX PULSES CRC byte; if not, the ID field is searched for and verified again followed by the Data Address Mark | search. If after 5 revolutionsthe DAM cannot be found, the Record Not Found status bit is set and the operation is terminated. When the first character or byte of the data field has been shifted through the OSR, it is transferred to the DR, and DRO is generated. When the next byte is accumulated in the OSR, it is transferred to the OR and another DRO is generated. If the computer has not read the previous contents of the OR before a new character is tras> Sferred that character is lost and the Lost Data Status bit is set. This sequence continues until the com- plete data field has been inputted to the compute if there is a CRC error at the end of the data field, the CRC error status bit is set, and the command is terminated (even if it is a multiple record command). At the end of the Read operation, the type of Data Ad- 5 dress Mark encountered in the data field is recorded in the Status Register (Bit 5) as shown: 21 NO STATUS BIT 5 INTRO RESET BUSY U 1 Deleted Data Mark SET HRITE PROTECT 0 Data Mark TYPE It COMMAND WRITE SECTOR wise, 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 inter- status bit is set. When an ID fleid is encountered that rupt (INTAQ). has the correct track number, correct sector number, Each of tne Type I! Commands contains an (m) flag and correct CRC, a DRO is generated. The WD1770 which determines if multiple records (sectors) are to counts off 11 bytes in single density and 22 bytes in be read or written, depending upon the command. If double density from the CRC field and the Write Gate Mm = 0, a single sector 13 read or wntten and an inter- (WYG) output is made active if the ORQ is serviced rupt is generated at the completion of the command. (i.e., the OR has been loaded by the computer). !f DRO Ifm = 1, multiple records are read or written with has not been serviced, the command is terminated CLLLIOLZLGM 5 INDEX MOLES INTRO. RESET “Sono SET RECORO NOT FOUND BRING I" SECTOR LENGTH FIELD STORE LENGT IN INTERNAL REGISTER -_ SET CAC ed STATUS ERROR AEAD TYPE i! COMMAND and the Lost Data status bit is set. If the DRO has been serviced, the WG is made active and six bytes “ DATA ADDRESS MARK (BIT 0) of zeroes in single density and 12 bytes in double 1 Deleted Data Mark density are then written on the disk At this time, the 0 Data Mark Data Address Mark ts then written on the disk as determined by the ag field of the command as shown The WD1770 then wntes the data field and generates below. DRO's to the computer If the ORQ is not serviced in time for continuous wnting the Lost Data Status Bit ae) CLLLIOLLLOM READ SECTOR SEQUENCE HAS DATA AM NO OCCURED in TIME ? PUT RECORD TYPE In STATUS REG BIT 5 NO “AVE NO ALi BYTES BEEN INPUTTED 9 179 ‘ SECTOR 2EG INTRO BESET BUSY SE? CRC ERROR { ‘ 4 INTRO SESET BUSY TYPE 1 COMMAND CLLLIOLLLOM SEQUENCE | DELAY 2 BYTES OF GaP | SET DRO DELAY 9 BYTES OF GaP HAS OR BEEN LOADED BY COMPUTER INTRO. RESET BUSY SET LOST DATA ,\ORQ = > Yes | SELAY 1 BYTE OF GAP NO YES TULAN ON WG & WRITE = & BYTES CF ZEROES OELAY 11 BYTES ARITE DATA at TURN ON WG & WRIT ACCORDING TO Ag FIELD 2 BYTES OF ZEROES OF WRITE COMMANO - { | OR TO OSA. SET ORO { I WRITE BYTE TO O'SK | SET DATA LOST WRITE BYTE OF ZEROES ALL BYTES BEEN WRITTEN ° mm] t WRITE 1 BYTE OF FE | | TURN OFF WG TYPE It COMMAND is set and a byte of zeroes is written on the disk. The This command has several characteristics which command is not terminated. After the last data byte make it suitable for diagnostic purposes. They are: no CLLEIOLLLOM has been written on the disk, the two-byte CRC is CRC checking is performed, gap information is in computed intemalty and wnitten on the disk followed cluded in the data stream; and the address mark by one byte of logic ones in FM or in MFM. The WG detector is on for the duration of the command. output is then deactivated. INTRO will set 24usec Because the AM detector is always on, write splices (MFM) after the iast CRC byte is written. For partial or noise may cause the chip to look for an AM. sector writing, the proper method is to write cata and The ID AM, ID field, 10 CAC bytes, DAM, Data, and fill the balance with zeroes. Data CRC Bytes for each sector will be correct. The Gap Bytes may be read incorrectly during write-splice TYPE § COMMANOS time because of synchronization. Read Address WRITE TRACK FORMATTING THE DISK Upon receipt of the Read Address command, the (Refer to section on Type ill commands for flow Busy Status Bit is set. The next encountered ID field diagrams.) is then read in from the disk,and six data bytes of the Formatting the disk is a relativety simple task when ID field are assembdied and transferred to the DR, and operating programmed VO or when operating under a DRO is generated for each byte. The six bytes of the OMA with a large amount of memory. Data and gap ID field are shown below: information must be provided at the computer inter- face. Formatting the disk 1s accomplished by pos+ honing the RW head over the desired track number TRACK! SIDE | SECTOR |SECTOR| CRCICAC and issuing the Winte Track command. ADOR | NUMBER |ADDRESS|LENGTH! 1 | 2 Upon receipt of the Write Track command, the Busy 1 |; 2 3 4 |51{6 Status bit is set. Wnting starts with the leading edge of the first encountered index pulse and continues Although the CRC characters are transferred to the until the next index pulse, at which time the interrupt computer, the WD1770 checks for validity and the i$ activated. The Data Request is activated im CRC error status bit is set if there is a CRC error The mediately upon receiving the command, but writing Track Address of the ID fieid is wntten into the sector will not start until after the first byte has been loaded fagister so that a companson can be made by the into the Data Reg:stec If the OR has not been ioaded usec At the end of the operation an interrupt ts within 3 byte times, the operation is ternninated generated and the Busy Status is reset. making the device Not Busy, the Lost Data Status Bit iS set, and the interrupt is activated. If a. byte is not Read Track present in the OR when needed, a byte of zeroes is Upon receipt of the READ track command, the head substituted. Is loaded and the Busy Status bit is set Reading This sequence continues from one index mark to the Starts with the ieacing edge of the first encountered next index mark Normally, whatever data pattern ap- index pulse and continues until the next index pulse. pears in the data register is written on the disk with a All Gap, Header and data bytes are assembied and normal clock pattern. However, if the WD1770 detects transferred to the data register and OAQ's ae a data pattern of F5 through FE in the data register, generated for each byte. The accumulation of bytes this is interpreted as data address marks with i$ synchronized to each address mark encountered. missing clocks or CRC generation. An interrupt is generated at the compietion of the command. DATA PATTERN __ _ ___—IN DR (HEX IN FM (OOEN = 1) IN MFM (DOEN = 00 thru F4 Write 00 thru F4 with CLK = FF Wnte 00 thru F4, in MFM F5 Not Allowed 1 Whnte Atl’ inMFM, Present CRC F6 Not Allowed Wnite C2°* in MEM F7 Generate 2 CRC bytes Generate 2 CRC bytes F8 thru FB Write F8 thru FB, CLK = C7, Preset CRC White F8 thru F8, in MFM FC Write FC with CLK = 07 Write FC in MFM FD Write FD with CLK = FF Wnte FD in MFM FE Write FE, CLK = C7, Preset CRC Write FE in MFM FF Write FF with CLK = FF Write FF in MEM __Missing clock transition between bits 4 and 5. Missing clock transition between bits 3 and 4. ee 6 CLLLIOLZLGOM WRITE TRACK ? Yes SET BUSY. RESET ORO. LOST DATA STATUS BITS 4.5 Yes SET WO DELAY 6 INDEX PULSES INTRO RESET BUSY SET WPRT OELAY 3 BYTE TIMES Tint MAS SE RO LOST OATA NO DRO BEEN RESET BUSY SERVICE YES TYPE It! COMMAND WRITE TRACK 56 8 CLLLIOLLLGM YES MEF ree “ DOEN NO .FM) DOES vES WRITE 2 CRC _ OSA = F7 CHARS CLK = FF NO ISA > = FC CLK = 07 > nO SOES ves [ WATE FO. FE OF SA = FD. FE. | FSF9.CLA = C7 > CA CBF “WITIALIZE CAC .” NC WRITE OSR CLK = FE 'NTRQ OESET BUSY WAITE | BYTE CF ZERCES a SET OATA LOST WRITE ALIN Ew AIT MISSING CLOCK ‘NITIALLZE CRC WRITE C2 iN MEF ATM MISSING CLOCK NOTE 2 CRE _ TMARS WRITE OSA N MEM TYPE lilt COMMAND WRITE TRACK 57 The CRC generator is initialized when any data byte command is received when there is not a current from F8 to FE is about to be transferred from the OR command under execution, the Busy Status bit 's to the OSR in FM or by receipt of F5 in MFM. An F7 reset and the rest of the status bits are updated CLLEIOLLLOM pattern will generate two CRC characters in FM or or cleared. In this case, Status reflects the Tyre | MFM. As a consequence, the patterns F5 through FE commands. must not appear in the gaps. data fields, or !D fields. The user has the option of reading the status register Also, CRC’s must be generated by an F7 patter. through program control or using the DRO line with Disks may be formatted in IBM 3740 or System 34 for- OMA or interrupt methods. When the Data register is mats with sector lengths of 128, 256, 512, or 1024 read the DRQ brt in the status register and the DRO bytes. line are automatically reset A write to the Data register also causes both ORQ’s to reset. TYPE IV COMMANDS The busy bit in the status may be monitored with a The Forced Interrupt command is generally used to usef program to determine when a command is com terminate a multiple sector read or write command or piete. in lieu of using the INTRQ line. When using the to insure Type | status in the status registec This INTRO, a busy status check is not recommended command can be loaded into the command register because a read of the status register to determine the at any time. If there is a current command under ex- condition of busy will reset the INTRO line. ecution (busy status bit set) the command will de ter- The format of the Status Register is shown below. minated and the busy status bit reset. The lower four bits of the command determine the conditional interrupt as follows: 7} 6} S&S} 4,3 ;2 }; 13; °0 19 = Don't Care ' SS? | S6{ SS ; S4j{ S33} S24 St | SO iy = Don't Care lp = Every index Pulse RECOMMENDED — 128 BYTES/SECTOR I3 = Immediate interrupt Shown below is the recommended singie-density for- The conditional interrupt is enabled when the cor- mat with 128 bytes/sectoc In order to format a disk- responding bit positions of the command (i349) are ette, the user must issue the Wnite Track command, set to a 1. Then, when the condition for interrupt is and load the data register with the following values. met, the INTRO line will go high signifying that the For every byte to be written, there is one Data condition specified has occurred. If Iz-ig are ail set to Request zero (HEX DQ), no interrupt will occur but any com mand presently under execution will be immediatety NUMBER terminated. When using the immediate interrupt Con- OF BYTES HEX VALUE OF BYTE WRITTEN dition (1g = 1) an interrupt will be immediately 40 FF (or OG generated and the current command terminated. 6 00 Reading the status or writing to the command 1 FE (ID Address Mark) register will not automatically clear the interrupt. The 1 Track Number HEX DO is the only command that will enable the im- 1 Side Number (00 or 01) mediate interrupt (HEX D@) to clear on a subsequent 1 Sector Number(1 thru 1A) load command register or read status register opera 1 00 (Sector Length) tion. Follow a HEX D6 with 00 command. 1 F7 (2 CRC’s wntten) Wait 16 micro sec (double density) or 32 micro sec 11 FF (or OO) (single density) before issuing a new command after 6 00 issuing a forced interrupt Loading a new command 1 F®8 (Data Address Mark) sooner than this will nullify the forced interrupt 128 Data (IBM uses E5) Forced interrupt stops any command at the end of an 1 F7 (2 CRC’s written) internal microinstruction and generates INTRO ! 10 FF (or OO) when the specified condition is met. Forced interrupt 369°° = FF (or 0 will wait until ALU operations in progress are com *Wiite bracketed field 16 times. plete (CRC calculations, compares. etc.). **Continue wnting until WD1770 interrupts out. Approx. 369 bytes. Status Register Upon receipt of any command, except the Force In- 256 BYTES/ISECTCOR terrupt command, the Busy Status bit is set and the Shown below is the recommended dual-density for- rest of the status bits are updated or cleared for the mat with 256 bytes/sector in order to format a new command. if the Force Interrupt Command is diskette the user must issue the Wnte Track com- received when there 's a current command under ex- mand and toad the data register with the following ecution, the Busy status bit is reset. and the rest of values. For every Dyte to De wniten. there is one data the status bits are unchanged. If the Force Interrupt request. WD1770/1772 IVWNUOS ALISNAG 318N0d | 7314 01 ONS LY rc g ‘ SIAR OZ 4. AV. OO 29. e 4 0 e @ 6 a4. AY. 00. 3. Wy, HUARHE | OWE WD vivo un asn CN PSPLAQ CER ALA CEES TL AR27 FOMOP MOEN IONS TEMOLDIS FE WIS TMOVMET Ot ER VLAGE ISIANCHES FLA09 be. HO193$ HOW3 HOS >| LVWHOS ALISN3G SIONIS OTS uO cr 01419 Ol Ad z 1 | saisees | » Voy | 00. | as z ‘ ‘ e , 34. | 00 an viva STIAA GVaRnis IHD HW HLONF1§5HOIDIS IMS wove ai SVIARQPESVAARND SALAA O01 4D 28D vivowisn + H0193S HOWIHOS | AAlV id dH as Nd <4HQNI NUMBER 1) Sector size must be 128, 256, 512 of 1024 bytes. OF BYTES HEX VALUE OF BYTE WRITTEN 2) Gap 2 cannot be varied from the recommended 60 4E format. CLLLIOLZLGM 12 00 3) 3 bytes of A1 must be used in MFM. 3 F5 (Writes A1) In addition, the index Address Mark is not required 1 FE ID Address Mark) for operation by the WO1770 Gap 1, 3, and 4 lengths 1 Track Number (0 thru 4C) 1 Sioe Number (0 or 1) can be as short as 2 bytes for WD1770 operation, however PLL lock up time, motor speed variation, 1 Sector Number(1 thru 1A) wnite-splice area, etc. will add more bytes to each gap 1 01 ‘Sector Length) to achieve proper operation. It is recommended that 1 F7 (2 CRC’s wnitten) the recommended format be used for highest system 22 4E 12 00 reliability. 3 F5 (Writes A1) 1 F8 \Oata Address Mark) FM MFM 256 DATA Gap | 16 bytes FF 32 bytes 4E 1 F7 (2 CRC’s wnitten) Gap Il 11 bytes FF 22 bytes4& 24 4& ° 6 bytes 00 12 bytes00 668°° 4& ° 3 bytes Al “Write bracketed ‘ieid 16 times. **Continue wnting until WD1770 interrupts out Gap Ilt*° 10 bytes FF 24 bytes 4E Approx. 668 bytes. 4 bytes 00 8 bytes 00 3 bytes Al 1. NonStandard Formats Gap IV 16 bytes FF 16 bytes 4E Vaniations in the recommended formats are possible * Byte counts must De exact to a limited extent if the following requirements are ** Byte counts are minimum, except exactly 3 bytes met of Ai must be wnitten. STATUS REGISTER DESCRIPTION BIT NAME MEANING S7 MOTOR ON This dit refiects 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 Wnte Protect. This bit is reset when updated. S5 RECORD When set. this bit indicates that the Motor SpinUp sequence has completed (6 TYPE/SPIN-UP revolutions) on Type | commands. Type 2 & 3 commands, this bit indicates record Type.0 = Oata Mark. 1 = Deleted Data Mark. S4 RECORD NOT When set, it indicates that the desired track, sectoc or side were not found. This bit FOUND (RNF) is reset when updated. S3 CRC ERROR If S4 is set, an error ts found in one or more !O fields: otherwise it indicates error in data field. This bit is reset when updated. S2 LOST DATAY When set. it indicates the computer did not respond to DRO in one byte time. This TRACK 00 bit is reset to zero when update. On Type | commands, this dit reflects the status of the TRACK 00 Pin. S1 OATA REQUEST! This bit is a copy of the ORQ output. When set, it indicates the OR is full on a Read INDEX Operation or the OR is empty on a Write operation. This bit 1s reset to zero when updated. On Type | commands, this bit indicates the status of the Index Pin. SO BUSY When set, command is under execution. When reset, no command is under execution. DC ELECTRICAL CHARACTERISNCS MAXIMUM RATINGS Storage Temperature ......... — 55°C to + 125°C Maximum Voltage to Any Input Operating Temperature 0°C to 70°C Ambient with Respect to Vss (-— 15 to -0.3V) Se &