ATA PIO Mode: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Added 2 more sections
mNo edit summary
Line 118: Line 118:
0x1F7 Command port / Regular Status port -- write commands / read status
0x1F7 Command port / Regular Status port -- write commands / read status
</pre>
</pre>

====Status Byte bit definitions:====
====Status Byte bit definitions:====

<pre>Bit Abbreviation Function
<pre>Bit Abbreviation Function


7 BSY Drive is preparing to accept/send data -- wait until this bit clears. If it never clears, do a Software Reset. Technically, when BSY is set, the other bits in the Status byte are meaningless.
7 BSY Drive is preparing to accept/send data -- wait until this bit clears. If it never
clears, do a Software Reset. Technically, when BSY is set, the other bits in the
Status byte are meaningless.
6 RDY Bit is clear when drive is spun down, or after an error. Set otherwise.
6 RDY Bit is clear when drive is spun down, or after an error. Set otherwise.
5 DF Drive Fault Error (does not set ERR!)
5 DF Drive Fault Error (does not set ERR!)
4 SRV Overlapped Mode Service Request
4 SRV Overlapped Mode Service Request
3 DRQ Set when the drive has PIO data to transfer, or is ready to accept PIO data.
3 DRQ Set when the drive has PIO data to transfer, or is ready to accept PIO data.
0 ERR Error flag (when set). Send a new command to clear it (or nuke it with a Software Reset).
0 ERR Error flag (when set). Send a new command to clear it (or nuke it with a Software
Reset).
</pre>
</pre>
It is a Bad Idea to test the "Seek Complete" (DSC) bit -- it has been deprecated and reused for another purpose.
It is a Bad Idea to test the "Seek Complete" (DSC) bit -- it has been deprecated and reused for another purpose.