Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. Integrated Woz Machine ( IWM ) Device Specification [ Revision 19 ] AUTHOR Apple Computer Inc. DOCUMENT DATES OF RECORD 1978 - February 1982 ( This page is not part of the original document ) Distributed under the Creative Commons License on page 4 | Page 0001 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. INTRODUCTION What is this document? The Integrated Woz Machine (IWM) Device Specification describes the internal operation of this single chip circuit whose purpose was to integrate the descrete logic of the Apple Disk II floppy disk drive controller into a single integrated circuit. This device was used by the Apple IIc, Apple IIgs and Apple Macintosh computers to control attached Apple Disk II 5.25" floppy drives (capacity 143 KB) or Apple 3.5" floppy drives (capacity 800 KB). This is specification revision 19. "Woz" refers to Steve Wozniak, the original designer of the Apple Disk II floppy drive and its drive controller. Revision history at the end of this document includes the initials of several people involved in the development of the IWM device: rhn=??? bcs=Bryan Stearns ws=Wendall Sanders woz=Steve Wozniak This specification was not made public by Apple Computer, Inc. Facts about this document Author: Apple Computer Inc Document dates of record: 1978 - February 1982 Owner: Organization: DigiBarn Computer Museum (www.digibarn.com) Curator: Bruce Damer (http://www.damer.com/) This digital rendition of this document is available for non-commercial, educational and research purposes with the requirement to provide attribution and share-alike under the Creative Commons license provided on page 5. All other uses require the agreement of the DigiBarn Computer Museum (contact through www.digibarn.com). ( This page is not part of the original document ) | Distributed under the Creative Commons License on page 4 | Page 0002 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. References US Patent 4,742,448 "Integrated Floppy Disk Drive Controller", 03 May 1988 This the IWM patent as assigned to Wendell Sander and Robert Bailey. US Patent 4,916,556 "Disk Drive Controller", 10 April 1990 This is the SWIM patent, the IWM's successor, as assigned to Wendell Sander and Brian Sander. Steve Wozniak interview, "The Apple Story: Part II" BYTE magazine, January 1985 (Part I can be found in BYTE December 1984) BYTE: The Macintosh uses a custom chip called the IWM - Integrated Woz Machine - that does the same sort of recording. Can you tell us anything about that? WOZNIAK: My design was basically a little sequencer, or state machine. It used a PROM and a latch and cycled through various states depending on the input data coming off the floppy disk. The IWM takes that design and adds other features like the ability to go twice as fast - it can also do IBM format, double-density recordings. BYTE: It sounds like a fascinating part. Do you think well see Apple II owners benefit from it in any way? WOZNIAK: Well, it's our standard disk controller now, and it's cheaper than the older design. It's used in the Apple IIc. BYTE: Could you use it to get higher-density recording on an Apple II 5/4- inch disk? WOZNIAK: No, because the disk drives themselves aren't certified for double-density recording. You need heads with the proper gap, and they're more expensive. BYTE: You're a former hobbyist. Could a hobbyist guy one of these chips and a spec sheet and start playing with it? WOZNIAK: I don't think Apple would give out the spec sheet. I totally disagree with that policy because I'm very respectful to the hobbyists. They're a tiny part of our market, but they're loyal supporters and faithful people to the company. If they had a spec sheet, they could start playing with it and figure out a lot more incredible things that we never planned it to be used for -- even using it as a communications channel from Apple to Apple, Macintosh to Macintosh. There are a lot of great tricks you could do with that little part. It's a beautiful random I/O device that has too many things that have not been taken anywhere. ( This page is not part of the original document ) | Distributed under the Creative Commons License on page 4 | Page 0003 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. PROPERTY STATEMENT This document is the property of the DigiBarn Computer Museum which is offering it under the following Creative Commons License found on page 4. Under the terms of this license you must credit the DigiBarn Computer Museum and Apple Computer, Inc. if whole or part of this document is used for non-commerical, educational or research purposes. All other uses require the agreement of the DigiBarn Computer Museum (contact through www.digibarn.com). ( This page is not part of the original document ) | Distributed under the Creative Commons License on page 4 | Page 0004 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. creative ommons Attribution - Non Commercial - No Derivative Works 2.5 You are free: * to copy, distribute, display, and perform the work Under the following conditions: Attribution. You must attribute the work in the manner specified by the author or licensor. Noncommercial. You may not use this work for commercial purposes. No Derivative Works. You may not alter, transform, or build upon this work. % For any reuse or distribution, you must make clear to others the license terms of this work. * Any of these conditions can be waived if you get permission from the copyright holder. Your fair use and other rights are in no way affected by the above. This is a human-readable summary of the Legal Code. ( This page is not part of the original document ) | Distributed under the Creative Commons License on page 4 | Page 0005 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. Disclaimer The Commons Deed is not a license. It is simply a handy reference for understanding the Legal Code (the full license) — it is a human-readable expression of some of its key terms. Think of it as the user-friendly interface to the Legal Code beneath. This Deed itself has no legal value, and its contents do not appear in the actual license. Creative Commons is not a law firm and does not provide legal services. Distributing of, displaying of, or linking to this Commons Deed does not create an attorney-client relationship. ( This page is not part of the original document ) | Distributed under the Creative Commons License on page 4 | Page 0006 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. Integrated WOZ Machine (IWM) ee ee me ee ee ee ee ee ee ee Device Specification Features * Backwards-compatible with 16 sector Disk J[ controller * Use of 7M (Cor 8 mHz) to minimize sampling error rate * Fast mode using 2 uS bit cells * Asynchronous mode with pollable handshake registers General Description The IWM is an integration of the Disk II floppy disc interface. When the IWM is reset, it becomes a controller compatible with the current Disk II interface in its operation with currently supported Apple II and /// software. In addition the IWM has extensions including a status register, mode register, and mutiple modes of operation. The IWM provides an asynchronous mode which relaxes the precise software/hardware timing required in synchronous mode, a fast mode with a data rate twice that of Disk II, and an optional 1 second one-shot timer to hold the enable outputs low. The IWM is a peripheral device that connects to a host data bus. The device generates and receives serial GCR coded data. A programmable digital one shot is used for serial data rege Nes IWM generates buffered drive enables and phase line control,.¢ Packaging and Pin sestgnaeh. Aa The IWM is packaged i dard 28 » 660 mil plastic DIP . es PHASE® | 1 J. 28 | PHASE] PHASE2 | 2 Ta: | PHASE3 AG | 3 26 | Vec Al | 4 25 | Q3 A2 | 5 24 | FCLK A3 | 6 23 | / RESET / DEV | 7 22 | RDDATA WRDATA | 8 21 | SENSE /WRREQ 9 20 /ENBL1 Dp 1p 19 /ENBL2 D1 ) 11 18 | D7 D2 12 17 D6 D3 13 16 DS GND | 14 15 | D4 4—------------~--- —+ IWM device specification page l Septenber 24, 1982 rev# 19 | Distributed under the Creative Commons License on page 4 Page 0007 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. Technical Description The primary purpose of the IWM is to allow a microprocessor to read and write serial GCR (group code) encoded data. The IWM may be controlled by setting state bits and reading or writing registers. Setting a state bit and accessing a register is done simultaneously. The registers are the mode register, the status register, the write-handshake register, the read data register, and the write data register. The modes selected by the mode register include synchronous or asynchronous mode and slow or fast mode. The data format is an 8 bit nibble with the MSB set. The MSB of the 8 bit data nibble is shifted in or written out first. A bit is transferred every bit cell time. The bit cell time defaults to 4 uS (set to 2 uS in fast mode). Therefore the data rate is one nibble every 32 uS (16 uS in fast mode). When writing data out, a one is written as a transition on the WRDATA output at a bit cell boundry time and a zero is written as no transition. The IWM is put into the write state by a transition from the write protect sense state to the write load state. In the synchronous mode, the time of that transition and every 8 Q3 periods (4 uS) thereafter, until L7 is cleared, marks the beginning of a write window. The duration of the write window is 4 periods of the Q3 input signal (2 uS). The the data written at the last write access occurring within this write window will load the shift register with the data to be shifted out. If the next write access has not occured 32 uS (64 Q3 periods) after a load, the write will be extended in multiples of 4 uS (8 Q3 periods) until another write access, and zeros will be shifted out. In synchronous mode, Q3 clock input , Xe\ used internally to generate the 32 and 4f uS timings, which would then, Awe {ese of " Q3 clock input periods in duration, respectively, and they _ 1 {ni rate periods per bit cell time in slow mode. ae aay In asynchronous mode the WY Lee re (oO Xs red and, when the buffer is empty, the IWM sets/t wiite-hands ake register to a one to indicate that the next datd - es e ° written to the buffer. The buffer register may be written ime during the write state. Only the data last written into the b moe before the contents of the buffer register is transfered to the wr}We shift register, is used. In asynchronous mode CLK is used to generate the bit cell timings. In fast mode the CLK clock is equivalent to the clock input on FCLK. In slow mode CLK is equivalent to the clock input on FCLK divided by two. Therefore, in 7M and slow mode the bit cell time will be 28 FCLK clock input periods in duration, in 8M and slow mode the cell time will be 32 periods, and in 8M and fast mode the cell time will be 16 periods. In asynchronous mode the write shift register is loaded every 8 bit cell times starting seven CLK periods after the write state begins. IWM device specification page 2 September 24, 1982 revit 19 | Distributed under the Creative Commons License on page 4 Page 0008 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. An underrun occurs when data has not been written to the buffer register between the time the write-handshake bit indicates an empty buffer and the time the buffer is transferred to the write shift-register. If an underrun occurs in asynchronous mode /WRREQ will be disabled (set to a TTL high state) and the /underrun flag will be set to zero. This occurrance can be detected by reading the write-handshake register before clearing state bit L7. Clearing state bit L7 will reset the /underrun flag. When L6 and L/ are both zero the IWM is in the read state. When reading serial data, a falling transition within a bit cell window is considered to be a one, and no falling transition within a bit cell window is considered to be a zero. The receive data input on RDDATA is synchronized internally with the CLK clock. The synchronized falling transition is then discriminated to the nearest bit cell window using the 7/8 mHz FCLK clock signal in fast mode and the FCLK signal divided by two in slow mode. A digital one-shot data recovery scheme is used. Every falling transition establishes the bit cell windows, used by the data seperator in the IWM to recover the following bits, until another falling transition is received. In the read state the data is shifted into the LSB of the shift register, and the shift register shifts data from LSB to MSB. A full data nibble is considered to be shifted in when a one is shifted into the MSB. When a full data nibble is shifted into the internal shift register, the data will be latched by the read data register and the shift register will be cleared to all zeros so that it will then be ready to shift in the next data word. In the synchronous mode the shift register is readable yy iniermegint state with this exeception : when a ae is shifted in yy the shift register will appear, to the data bus,*:&o be s ged a r oo of two bit times plus four CLK periods. This. ~ “U) process time to poll the MSB to determine when. dere che v ee, (iroenrones a the data register will latch the shift: register, na ~ shifted into the MSB and will be cleared 14 FCLK periods *( Os er a valid data read takes place (a valid data read being d¢fi as ns) /DEV being low and D7 (the msb) outputting a one from the data re at least one FCLK period). IWM device specification page 3 September 24, 1982 rev# 19 | Distributed under the Creative Commons License on page 4 Page 0009 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. Read data bit cell windows mode - Ncelks period data notes slow 7M 7-29 FCLK/2 1 2.¢-5.71+ uS 21-34 $1 6.6-9.71+ uS 35-48 Op1 19.¢-13.71+ uS window is 28 clks slow 8M 8-23 FCLK/2 1 24-39 $1 49-55 $1 fast 7M 7-20 FCLK ] window is 14 clks 21-34 $1 35-48 $1 fast 8M 8-23 FCLK |. 1 1.6-2.875+ uS 24-39 $1 3.6-4.75+ uS 46-55 $01 5.9-6.875 uS window is 16 clks The table above shows how the data seperator in the IWM discriminates between ones and zeros when reading. Nclks is the number of clock periods between falling transitions of the internally synchronous version of RDDATA. The clock period is either that of the FCLK input or that of the FCLK input divided by two in slow mode. Each falling transition resets the read data windows for subsequent data to be relative to that transition. The data patterns noted above are the bit patterns that are shifted in as a result of the transitions and the absence of transitions in their respective windows. In port operation, which is asynchronous mode true and l#&ch mode false with /DEV held low indefinitely, read a will, appear an ge as if the IWM were being continually read. NN pergején cat be used to continously clock data into exter ATED, st : he |M ll Be cleared at — least six FCLK periods before bet ‘eer. Meee A operafion, in 0 asynchronous mode the latch mode ctive state, and aa oe} the modes to their defaults. = 3. Inputs (2) RDDATA The serial data input. The falling transition of each pulse is synchronized by the IWM. SENSE An input to the IWM that can be polled via the status register. IWM device specification page 5 September 24, 1982 rev# 19 | Distributed under the Creative Commons License on page 4 Page 0011 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. 4. Outputs (8) WRDATA /ENBL1 , /ENBL2 /WRREQ- PHASEG-3 IWM device specification The serial data output. A transition occurs on this output for each one bit. Programmable buffered output lines. No more than one enable may be low at any time. If an enable is low than Motor-On is true. If the l-second on board timer is ena then the selected one will stay low, fdr bout 1 second after it is programmed i This signal is a Kalo le ae fared output line. are "i On put lines. AS may \ ny (2Y4 volts) -can be riving two darlington av i uts ye . page 6 September 24, 1982 rev# 19 | Distributed under the Creative Commons License on page 4 Page 0012 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. Register Description Se State Register This isan 8-bit write-only pseudo-register. The bits in this register are individually addressed by A3,A2,Al . The data on Af is latched into the addressed state bit by /DEV low. All eight state bits are reset to @ by ) /RESET low. Not only do the state bits control certain chip functions and outputs, the setting of two of the state bits L6 and L7, and Motor-On, internally select which register is to be selected and whether the operation is to be a read or a write. If an operation occurs that changes the state of one of these bits to a new state, that new state will select the register to be accessed during that operation and whether that operation is to be a read or a write.. Address Name _ Function p Al in this bit a drive PHASE# to a high state. 1 PHASE] 2 PHASE2 3 anh, y jruses 4 LMotor-On A 7 on -On enable selected below low 5 Drive-Sel Al on et bit spl “sph a @ selects /ENBLI] 6 L6. Gt = on : 7 L7 ein a4 on Bb Aow) The state bits L/7 pr. On, select ich register is available to be read or written. hex reg sters are read during any operation in which Ag is a zero. A regis (rritten when both L6 and L7 are set or are being set to 1 and A® is a one. The combination of L7 and Motor-On and /underrun enables /WRREQ low. L7 L6 Motor-On register operation selected State Name ') ¢ read all ones Hp g 1 read data register Read 1 x read status register Write-Protect Sense 1 @ x read write-handshake register Write 1 1] ) write mode register Mode Set 1 1 1 write data register Write Load IWM device specification page 7 September 24, 1982 rev# 19 | Distributed under the Creative Commons License on page 4 Page 0013 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. Mode register ( a write only register ) All eight mode bits are reset to G@ by /RESET low. “bit... function LSB @ 1 = latch mode (should be set in asynchronous mode) ] § = synchronous handshake protocol; 1 = asynchronous 2 § = 1-second on board timer enable; 1 = timer disable 3 @ = slow mode; 1 = fast mode ( 2 uS bit cell timing ) 4 $ = 7MHz; 1 = 8MHz (7 or 8 mHz clock descriptor) 5 1 = test mode; $ = normal operation 6 1 = MZ~reset MSB 7 reserved for future expansion In latch mode the msb of the read data is latched internally during /DEV low (this internally latched msb is then used for the determination of a valid data read). - If the l1~second timer bit is a zero then the enable (/ENBLI1 or /ENBL2) selected by Drive-Sel will be held low for 2723 +-1$% FCLK periods (about 1 second) after the LMotor—On state BAAN Ss reset to zero. If the latch mode bit is set the timer is not guarantie SS unt YP to, 2~ Motor-On is synonomous with either FENBLI \ W i amu Fast mode selects a bit. oe ad of #4 uS. The 7/8 mHz descriptor indicates whethe ‘1. Me cf) FCLK) is to be divided by 7 or 8 to provide 1 uS internal ti When the test mode bit i Vice operation is unspecified, except that status register bit 5 can “ay s be read and that the mode register can always be set. IWM device specification page 8 September 24, 1982 revi 19 | Distributed under the Creative Commons License on page 4 Page 0014 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. Status register ( a read-only register ) bit function "p24" same as mode register 5 1 = either /ENBL] or /ENBL2 is currently active (low) 6 1 = MZ ( reset to @ by /RESET and MZ-reset ) 7 1 = SENSE input high; § = SENSE input low The MZ bit is reserved for compatibility with future products and should always be read as a zero. Handshake Register ( a read only register ) bit function p-5 reserved for future use (currently read as ones) ~ 6 1 = write state ( cleared to @ if a write underrun occurs ) 7 1 = write data buffer register ready for data Data Register The operation of the data Srey it e che) \ of state bits L6 and L7 and on the synchronous, bit Ke L7 clear, the data register operates as a aeReCN oe Ke set the data register operates in the write state ge a aa ffer. IWM device specification page 9 September 24, 1982 revi# 19 | Distributed under the Creative Commons License on page 4 | Page 0015 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. Maximum Ratings supply voltage -$.3 to +7.9 V input voltage —-$.3 to +7.9V storage temperature -35 to +125 degrees C operating ‘temperature ¢@ to+7$ degrees C (ambient) DC characteristics sym parameter min max units notes Vee supply voltage . 4.75 5.25 Volts Ice supply current — 260 mA 5 vil Input low — §.8 Vv. 3 , Vih Input high 2.9 — Vv 4 11 input leakage _— 169 uA 1 Vol TIL output low —_ 4 Vv - Voh TTL output high 24 — V Ioh source current at Voh 232 — mA 2 Tol sink current at Vol 3.2 — mA 2 Notes a ANS ges 1. Inputs. & Ay Ss The inputs have static pratisetion 14 OA utg and bidirectional lines in the input mode. ate“h Wh reads except/ as noted below: WPROT and /RDDATA : Lis eplvec of 19K ohms nominal (source current’ Nh vA at $.4 to 2.8 Volts) 2. Outputs Ioh and Iol apply to Dy) ve D7 and WRDATA. The following output lines have special drive capabilities, noted below. /ENBL1, /ENBL2: Sink current of at least 5.$ mA at Vol Source current of at least 4f uA at Voh /WRREQ: Sink current of at least 1%. mA at Vol Source current of at least 4% uA at Voh PHASE#-3: Source current of at least 1.9% mA at Voh Source current of $.5 mA when pulled down to 3.9 V. Sink current of at least 2.4 mA at Vol . 3. TIL Vil is also referred to as a zero. 4. TTL Vih is also referred to as a one. 5. at 5.25 V over full operating temperature range. IWM device specification page 10 September 24, 1982 rev# 19 | Distributed under the Creative Commons License on page 4 Page 0016 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. AC characteristics sym parameter min max units notes tas Ag-A3 to /DEV, fe 4D -—- ns setup tah . /DEV, re to A$-A3 invalid -] nS addr hold tds ~ -data-.to (Q3 OR /DEV), re 59 — nS setup tdh (Q3 OR /DEV), re to data 1p — nS data hold tda /DEV, fe to data out -_— 206 nS access, l. tdsl /DEV low 20D — nS — 6. © tdsh /DEV high 459 — nS tde /DEV to /ENBLx or /WRREQ — 566 ns 2. tdph /DEV to PHASEx — 566 nS 2. trdh RDDATA high time 309 — nS 5. tckh FCLK high time | 5 200 ns tckl FCLK low time | 59 209 nS KQ) tekp FCLK period 126 143 nS _ tckpt FCLK period, no timer 126 50 nS ll. tqdsl Q3, re to /DEV, fe 1 169 nS 7. tqdsh Q3, re to /DEV, re 1 196 ns #e tq3h Q3 high 269 30D nS 7. tq3l1 Q3 low 199 i nS 7. tdmsbh Df-6 valid to D7 re 59 — nS 8. tres /RESET low time 560 —- nS 1p. trwrh ./RESET to /WRREQ high — 39 nS tsj sampling jitter — 12.5 nS 4, tckwr write clock, re to WRDATA — 599 nS 9. twrj write data jitter — 62.5 nS 9. cp pin capacitance —_ 15 pF notes a % Ke, 1. Load = 13% pF and 8 LS TTL léags” 2. Load = 169 pf and rated maximum cuyrAdt 9) | 3. fe = falling edge ( TTL IMglr to ie y, re = rising edge . Vv \ 4. tsj is the uncertainty a7 ia sa ph ng the asynchronous input RDDATA and synchronizing it interna th | at any constant Vcc and temperature. 5. trdh and trdl must be at KYO e the period of CLK to be properly synchronized. \ 6. the time between 2 succesive EV selects will be greater than 2 CLK periods, and in synchronous mode will be no less than 1 Q3 period. /DEV may be held low indefinitly. 7. These apply to the synchonous mode only. In other modes Q3 may be held low indefinitly. ; 8. If, when /DEV is low, data on D§-7 is changing to a word with D7 high, the data on D#-6 must become valid before the rising edge of D7. 9. tckwr is the time from FCLK, re, in asynchronous mode, or Q3, re, in synchronous mode, to changes in the output WRDATA, driving a load of 199 pF. twrj is the change in tckwr from edge to edge of WRDATA at any constant Vcc and temperature. 19. for test purposes tres must be at least 24 times tckp. 11. tckpt is max FCLK period with 5l-second timer disabled. IWM device specification page ll September 24, 1982 rev# 19 | Distributed under the Creative Commons License on page 4 Page 0017 of 0018 | Integrated Woz Machine (IWM) Specification -- 1982 -- DigiBarn Computer Museum -- Apple Computer, Inc. This specification is confidential to Apple and contains proprietary information. changes from earlier specs A$-3 pinout corrected /ENBL1] and /ENBL2 pinout corrected tdmsbh specified latch mode added (change to breadboard also) Df/-7 pinout changed to facilitate IC layout write jitter specified ——— changes from rev#12 spec (5/5/82) Address setup time changed to 4% nS changes from rev#l4 spec (6/4/82) changes from rev#l7 mae 782 read data stall tim nif} te CLKs relaxed AC and D mas rhn 92/65/82 bes 01/11/82 ws 16/26/81 woz 1978,79 IWM device specification page 12 September 24, LMotor-On different from Motor-—On Phase lines sink 2.4 mA tres test condition. ‘aeited ata underrun and other momencl d 7 elar 1982 rev# 19 | Distributed under the Creative Commons License on page 4 | Page 0018 of 0018 |