Download RX02 Floppy Disk System User's Guide

Transcript
7
Drive Ready - This bit is asserted if the unit currently selected exists, is properly supplied
with power, has a diskette installed correctly, has its door closed, and has a diskette up to
speed.
NOTE 1
The drive ready bit is only valid when retrieved via a
read status function or at completion of Initialize
when it indicates status of drive O.
NOTE 2
If the error bit was set in the RXCS but error bits are
not set in the RXES, specific error conditions can be
accessed via a read error register function (Paragraph 4.2.3.7).
8
Unit Select - Drive 0 is selected if this bit is "0"; drive 1 is selected if this bit is a "I."
4.2.3 Function Codes
Following the strict protocol of the individual function, data storage and recovery on the RX 11 and
RXVII occur with careful manipulation of the RXCS and RXDB registers. The penalty for violation
of protocol can be permanent data loss.
A summary of the function codes is presented below:
000
001
010
011
100
101
110
III
Fill Buffer
Empty Buffer
Write Sector
Read Sector
Not used
Read Status
Write Deleted Data Sector
Read Error Register
The following paragraphs describe in detail the programming protocol associated with each function
encoded and written into RXCS bits 1-3 if Done is set.
4.2.3.1 Fill Buffer (000) - This function is used to fill the RX02 buffer with 128 8-bit bytes of data
from the host processor. Fill buffer is a complete function in itself; the function ends when the buffer
has been filled. The contents of the buffer can be written onto the diskette by means of a subsequent
write sector function, or the contents can be returned to the host processor by an empty buffer function.
RXCS bit 4 (Unit Select) does not affect this function since no diskette drive is involved. When the
command has been loaded, RXES, OUT, and Done are cleared. When the TR bit is asserted, the first
byte of the data may be loaded into the data buffer. The control then clears TR and after supplying the
appropriate number of shift pulses to store the data, again asserts TR. The same TR cycle will occur as
each byte of data is loaded. The RX02 counts the bytes transferred; it will not accept less than 128
bytes and will ignore those in excess. Any read of the RXDB during the cycle of 128 transfers is
ignored by the RX II jRXVll. When the complete buffer has been filled, the control asserts Done.
4.2.3.2 Empty Buffer (001) - This function is used to empty into the interface the buffer of the 128
data bytes loaded from a previous Read Sector or Fill Buffer command. This function will ignore
RXCS bit 4 (Unit Select) and negate Done. For this function, TR and shift pulses are generated in the
same manner as for the fill buffer but the buffer is emptied.
4-27