MD1050-DCC M-Systems Inc., MD1050-DCC Datasheet - Page 41

no-image

MD1050-DCC

Manufacturer Part Number
MD1050-DCC
Description
Diskonchip Ide Pro Data Sheet
Manufacturer
M-Systems Inc.
Datasheet
5.1.22 Write Sector(s) – 30h, 31h
This command writes from 1 to 256 sectors as specified in the Sector Count register. A sector count
of 0 requests 256 sectors. The transfer begins at the sector specified in the Sector Number register.
When this command is accepted, DiskOnChip IDE Pro sets BSY, then sets DRQ and clears BSY,
and then waits for the host to fill the sector buffer with the data to be written. No interrupt is
generated to start the first buffer fill operation. No data should be transferred by the host until it
clears BSY.
For multiple sectors, after the first sector of data is in the buffer, BSY is set and DRQ is cleared.
After the next buffer is ready for data, BSY is cleared, DRQ is set and an interrupt is generated.
When the final sector of data is transferred, BSY is set and DRQ is cleared. It remains in this state
until the command is completed, at which time BSY is cleared and an interrupt is generated.
If an error occurs during a write of more than one sector, writing terminates at the sector where the
error occurs. The Command Block registers contain the cylinder, head and sector number of the
sector where the error occurred. The host may then read the command block to determine what error
has occurred, and in which sector.
40
Sector Number
Sector Number
Cylinder High
Cylinder High
Sector Count
Sector Count
Cylinder Low
Device/Head
Cylinder Low
Command
Register
Register
Features
Status
Error
BSY
R
7
7
0
DRDY
Cylinder[15:8] or LBA[23:16] of the first sector/LBA to transfer
UNC
LBA
Cylinder[7:0] or LBA[15:8] of the first sector/LBA to transfer
DiskOnChip IDE Pro Data Sheet, Rev. 1.5
6
6
0
Sector[7:0] or LBA[7:0] of the first sector/LBA to transfer
MC
30h (with retry) or 31h (without retry)
DF
5
5
0
OUTPUT
INPUT
IDNF
DSC
Sector count
D
4
4
1
MCR
DRQ
3
H[3:0] or LBA[27:24] of the starting
3
0
CORR
ABRT
2
2
sector/LBA
TKONF
IDX
1
1
0
0
91-SR-012-01-8L
AMNF
ERR
0
0
0

Related parts for MD1050-DCC