Hitachi C4K60 Specifications - Page 51

DMA Data In/Out Command, 3.4. Non-Data Command, 3.5. Command BSY Timing

Page 51 highlights

7.3.3. DMA Data In/Out Command The Read DMA and Write DMA commands execute data transfer using the slave-DMA channel. The host is required to enable the slave-DMA feature, if using these commands. 1) The host initializes the slave-DMA feature, if using these commands. 2) The host write any required parameters to the Features, Sector Count, LBA Low (Sector Number), LBA Mid (Cylinder low), LBA High (Cylinder High), and Device/Head registers. 3) The host writes the command code to the Command Register. 4) The device sets the DMARQ when it gets ready to transfer. 5) The slave-DMA channel shall respond by negating CS0- and CS1-, asserting DMACK- signal. And it shall begin data transfer using DMA transfer protocol. CS0- and CS1- shall remain negated as long as DMACK- is asserted, and DMARQ and DMACK- signal shall remain asserted until at least one word of data has been transferred. The register contents are not valid during a DMA Data Phase. 6) The device generates the interrupt to the host, when the data transfer has completed. 7) The host resets the slave-DMA channel. 8) The host reads the Status Register. In response to the Status Register being read, the device negates INTRQ. 7.3.4. Non-Data Command Execution of these commands does not involve any data transfer: 1) The host writes any required parameters to the registers. 2) The host writes the command code to the Command Registers. 3) The device sets BSY. 4) When the device has completed processing, it clears BSY and asserts INTRQ. 5) The host reads the Status Register. 6) The device negates INTRQ. 7.3.5. Command BSY Timing The manner in which a command is accepted varies by the three classes of command acceptance all predicated on the fact that to receive a command, BSY=0. The following describes by the conditions under which busy is set after receipt of a command. Class 1 - The device sets busy within 400 ns. Class 2 - The device will set BSY within 400 ns, then sets up the sector buffer for a write operation, then sets DRQ, and clears BSY within 400 ns of setting DRQ. Note: DRQ may be set so quickly on classes 2 that the BSY transition is too short for BSY=1 to be recognized. K6610170 Rev.2 Dec 22, 2004 - 51 -

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145

K6610170
Rev.2
Dec 22, 2004
- 51 -
7.3.3. DMA Data In/Out Command
The Read DMA and Write DMA commands execute data transfer using the slave-DMA channel.
The host is required to enable the slave-DMA feature, if using these commands.
1)
The host initializes the slave-DMA feature, if using these commands.
2) The host write any required parameters to the Features, Sector Count, LBA Low (Sector Number),
LBA
Mid (Cylinder low), LBA High (Cylinder High), and Device/Head registers.
3)
The host writes the command code to the Command Register.
4)
The device sets the DMARQ when it gets ready to transfer.
5) The slave-DMA channel shall respond by negating CS0- and CS1-, asserting DMACK- signal. And it
shall begin data transfer using DMA transfer protocol.
CS0- and CS1- shall remain negated as long as
DMACK- is asserted, and DMARQ and DMACK- signal shall remain asserted until at least one word of
data has been transferred.
The register contents are not valid during a DMA Data Phase.
6)
The device generates the interrupt to the host, when the data transfer has completed.
7)
The host resets the slave-DMA channel.
8) The host reads the Status Register. In response to the Status Register being read, the device
negates INTRQ.
7.3.4. Non-Data Command
Execution of these commands does not involve any data transfer:
1)
The host writes any required parameters to the registers.
2)
The host writes the command code to the Command Registers.
3)
The device sets BSY.
4)
When the device has completed processing, it clears BSY and asserts INTRQ.
5)
The host reads the Status Register.
6)
The device negates INTRQ.
7.3.5. Command BSY Timing
The manner in which a command is accepted varies by the three classes of command acceptance all
predicated on the fact that to receive a command, BSY=0. The following describes by the conditions
under which busy is set after receipt of a command.
Class 1 - The device sets busy within 400 ns.
Class 2 - The device will set BSY within 400 ns, then sets up the sector buffer for a write operation,
then sets DRQ, and clears BSY within 400 ns of setting DRQ.
Note
: DRQ may be set so quickly on classes 2 that the BSY transition is too short for BSY=1 to be
recognized.