11.02.2013 Views

SMSC LPC47N252 Data Sheet - Keil

SMSC LPC47N252 Data Sheet - Keil

SMSC LPC47N252 Data Sheet - Keil

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DATA REGISTER (FIFO)<br />

FDC I/O Base Address + 0x05 (READ/WRITE)<br />

All command parameter information, disk data and result status are transferred between the host processor and the<br />

FDC through the <strong>Data</strong> Register. <strong>Data</strong> transfers are governed by the RQM and DIO bits in the Main Status Register.<br />

The <strong>Data</strong> Register defaults to FIFO disabled mode after any form of reset. This maintains PC/AT hardware<br />

compatibility. The default values can be changed through the Configure command (enable full FIFO operation with<br />

threshold control). The advantage of the FIFO is that it allows the system a larger DMA latency without causing a<br />

disk error.<br />

Table 43 gives several examples of the delays with a FIFO. The data is based upon the following formula:<br />

Threshold # x [8/DATA RATE] - 1.5ms = Delay<br />

At the start of a command, the FIFO action is always disabled and command parameters must be sent based upon<br />

the RQM and DIO bit settings. As the command execution phase is entered, the FIFO is cleared of any data to<br />

ensure that invalid data is not transferred.<br />

An overrun or underrun will terminate the current command and the transfer of data. Disk writes will complete the<br />

current sector by generating a 00 pattern and valid CRC. Reads require the host to remove the remaining data so<br />

that the result phase may be entered.<br />

F IF O T HR ESH OL D<br />

EXA MPL ES<br />

1 byte<br />

2 bytes<br />

8 bytes<br />

15 bytes<br />

F IF O T HR ESH OL D<br />

EXA MPL ES<br />

1 byte<br />

2 bytes<br />

8 bytes<br />

15 bytes<br />

F IF O T HR ESH OL D<br />

EXA MPL ES<br />

1 byte<br />

2 bytes<br />

8 bytes<br />

15 bytes<br />

DIGITAL INPUT REGISTER (DIR)<br />

FDC I/O Base Address + 0x07 (READ ONLY)<br />

This register is read-only in all modes.<br />

RESET<br />

COND.<br />

Table 35 - FIFO Service Delay<br />

M AXIM U M DEL AY T O SER VIC IN G A T<br />

2 M bp s* DA T A RA T E<br />

1 x 4 ms - 1.5 m s = 2.5 m s<br />

2 x 4 ms - 1.5 m s = 6.5 m s<br />

8 x 4 ms - 1.5 m s = 30.5 m s<br />

15 x 4 m s - 1.5 ms = 58.5 ms<br />

M AXIM U M DEL AY T O SER VIC IN G A T<br />

1 M bp s D AT A R AT E<br />

1 x 8 ms - 1.5 m s = 6.5 m s<br />

2 x 8 ms - 1.5 m s = 14.5 m s<br />

8 x 8 ms - 1.5 m s = 62.5 m s<br />

15 x 8 m s - 1.5 ms = 118.5 m s<br />

M AXIM U M DEL AY T O SER VIC IN G A T<br />

500 K b ps D A TA R A TE<br />

1 x 16 m s - 1.5 ms = 14.5 ms<br />

2 x 16 m s - 1.5 ms = 30.5 ms<br />

8 x 16 m s - 1.5 ms = 126.5 m s<br />

15 x 16 ms - 1.5 m s = 238.5 ms<br />

DIR - PC-AT Mode<br />

Table 36 - FDC DIR all modes<br />

7 6 5 4 3 2 1 0<br />

DSK<br />

CHG<br />

N/A N/A N/A N/A N/A N/A N/A N/A<br />

<strong>SMSC</strong> DS – <strong>LPC47N252</strong> Page 46 Rev. 09/06/2000

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!