8271/8271-6 REGISTERS. STATUS REG. | COMMANDO AEG. AESULT REG. | PARAMETER REG. = TEST MOCE -——-—----——-- WA OATA SERIAL INTERFACE CONTROLLER Pe RO DATA DATA WINDOW paq ————————_ ORtK ———————_ PLO/SS input Pu TRACKO aurreR PT COUNTOPI OnIVE IMTERSACE CONTROLLER ro SELECTO p> SELECT I P—- WR ENABLE =» OUTPUT be LOAD HEAD BUFFER L. seexssTeP = DIRECTION INTERNAL DATA BUS FAULT RESET/ LOW CURRENT oro CPU INTERFACE ne) OISK INTERFACE Figure 3. 8271 Block Diagram Showing CPU Interface Functions Status Register Reflects the state of the FDC. Ay Ag D7 Dg Ds Dg D3 D2 Dy Og bopey | Pet ft peje) | ae 1 = NON-OMA DATa REQUEST 1= INTERRUPT REQUEST 1 = RESULT REGISTER FULL t = PARAMETER REGISTER FULL 1 = COMMAND REGISTER FULL 1 = COMMAND BUSY Reset Register Allows the 8271 to be reset by the program. Reset must be active for 11 or more chip clocks. INT (Interrupt Line) Another element of the control interface is the interrupt line (INT). This line is used to signal the CPU that an FOC operation has been completed. It remains active until the result register is read. DMA Operation The 8271 can transfer data in either OMA or non DMA mode. The data transfer rate of a floppy disk drive is high enough (one byte every 32 usec) to justify DMA transfer. in DMA mode the elements of the DMA interface are: DRQ: DMA Request: The DMA request signal is used to request a transfer of data between the 8271 and memory. DACK: DMA Acknowledge: The DMA acknowledge signal notifies the 8271 thata DMA cycle has been granted. RD, Wr: Read, Write The read and write signals are used to specify the direction of the data transfer. DMA transfers require the use of aDMA controller such as the Intel®8257. The function of the DMA controller is to provide sequentia! addresses and timing for the transfer at a starting address determined by the CPU. Counting of data block lengths is performed by the FOC. To request a OMA transfer, the FDC raises O(RQ. DACK and RD enabie DMA data onto the bus (independently of CHIP SELECT). DACK and WR transfer OMA data to the FOC. If a data transfer request (read or write) is not serviced within 31 usec, the command is cancelled, a late OMA status is set, and an interrupt is generated. In DMA mode, an interrupt is generated at the completion of the data block transfer. When configured to transfer data in non-DMA mode, the CPU must pass data to the FDC in response to the non- DMA data requests indicated by the status word. The data is passed to and from the chip by asserting the DACK and the RD or WR signals. Chip select should be inactive (HIGH). REGISTERS STATUS REG | COMMAND REG AESULT REG [PARAMETER REG RESET WR DATA INSYNC So DATA BUS 08, Cy BUFFER VNSE® DATA DATA WINDOW PLOVSS a fP=— REAOYO 2: >-— ATADY I q TRACKS COUNT/OP: INDEX WA PROTECT FAULT READ: WRITE a, ——---] DMA CONTROL ‘ Ay ———*] L0GIc - . SELECTO SELECT YT WR ENABLE LOAD HEAD SEEK/STEP OIRECTION LOW CURRENT FAULT RESET APO. INTERNAL DATA BUS CPU INTERFACE ~) DISH INTERFACE Figure 4. 8271 Block Diagram Showing Disk Interface Functions AFN-002238