Ata Command Description; Ata Command Set - SanDisk CompactFlash Product Manual

Memory card
Hide thumbs Also See for CompactFlash:
Table of Contents

Advertisement

5. ATA Command Description

This section defines the software requirements and the format of the commands the host sends to the CompactFlash
Memory Cards. Commands are issued to the CompactFlash Card by loading the required registers in the command
block with the supplied parameters, and then writing the command code to the Command Register. The manner in
which a command is accepted varies. There are three classes (see Table 5-1) of command acceptance, all dependent
on the host not issuing commands unless the CompactFlash Card is not busy. (The BUSY bit in the status and
alternate status registers is 0.)
Upon receipt of a Class 1 command, the CompactFlash Card sets the BUSY bit within 400 nsec.
Upon receipt of a Class 2 command, the CompactFlash Memory Card sets the BUSY bit within 400
nsec, sets up the sector buffer for a write operation, sets DRQ within 700 µsec, and clears the BUSY
bit within 400 nsec of setting DRQ.
Upon receipt of a Class 3 command, the CompactFlash Memory Card sets the BUSY bit within 400
nsec, sets up the sector buffer for a write operation, sets DRQ within 20 msec (assuming no re-
assignments), and clears the BUSY bit within 400 nsec of setting DRQ.

5.1. ATA Command Set

Table 5-1 summarizes the ATA command set with the paragraphs that follow describing the individual commands
and the task file for each.
Class
COMMAND
1
Check Power Mode
1
Execute Drive Diagnostic
1
Erase Sector(s) (Note 2)
2
Format Track
1
Identify Drive
1
Idle
1
Idle Immediate
1
Initialize Drive Parameters
1
Read Buffer
1
Read Multiple
1
Read Long Sector
1
Read Sector(s)
1
Read Verify Sector(s)
1
Recalibrate
1
Request Sense (Note 1)
1
Seek
1
Set Features
1
Set Multiple Mode
1
Set Sleep Mode
1
Stand By
1
Stand By Immediate
®
CompactFlash
Memory Card Product Manual, Rev. 10.0 © 2002 SANDISK CORPORATION
Table 5-1. ATA Command Set
Code
FR
E5h or 98h
-
90h
-
C0h
-
50h
-
ECh
-
E3h or 97h
-
E1h or 95h
-
91h
-
E4h
-
C4h
-
22h or 23h
-
20h or 21h
-
40h or 41h
-
1Xh
-
03h
-
7Xh
-
EFh
Y
C6h
-
E6h or 99h
-
E2h or 96h
-
E0h or 94h
-
SC
SN
CY
-
-
-
-
-
-
Y
Y
Y
Y
-
Y
-
-
-
Y
-
-
-
-
-
Y
-
-
-
-
-
Y
Y
Y
-
Y
Y
Y
Y
Y
Y
Y
Y
-
-
-
-
-
-
-
Y
Y
-
-
-
Y
-
-
-
-
-
-
-
-
-
-
-
DH
LBA
D
-
D
-
Y
Y
Y
Y
D
-
D
-
D
-
Y
-
D
-
Y
Y
Y
Y
Y
Y
Y
Y
D
-
D
-
Y
Y
D
-
D
-
D
-
D
-
D
-
5-1

Advertisement

Table of Contents
loading

Table of Contents