
The hardware requires a special sequence in order to start DMA to the disk. This sequence
prevents accidental writes to the disk. In short, the DMAEN bit in the DSKLEN register
must be tuned on twice in order to actually enable the disk DMA hardware. Here is the
sequence you should follow:
1. Enable disk DMA in the DMACON register (See Chapter 7 for more information)
2. Set DSKLEN to $4000, thereby forcing the DMA for the disk to be turned off.
3. Put the value you want into the DSKLEN register.
4. Write this value again into the DSKLEN register. This actually starts the DMA.
5. After the DMA is complete, set the DSKLEN register back to $4000, to prevent
accidental writes to the disk.
As each data word is transferred, the length value is decremented. After each transfer
occurs, the value of the pointer is incremented. The pointer points to the the next word of
data to written or read. When the length value counts down to 0, the transfer stops.
The recommended method of reading from the disk is to read an entire track into a buffer
and then search for the sector(s) that you want. Using the DSKSYNC register (described
below) will guarantee word alignment of the data. With this process you need to read from
the disk only once for the entire track. In a high speed loader, the step to the next head
can occur while the previous track is processed and check summed. With this method
there are no time-critical sections in reading data, other high-priority subsystems (such as
graphics or audio) are be allowed to run.
If you have too little memory for track buffering (or for some other reason decide not to
read a whole track at once), the disk hardware supports a limited set of sector-searching
facilities. There is a register that may be polled to examine the disk input stream.
There is a hardware bug that causes the last three bits of data sent to the disk to be lost.
Also, the last word in a disk-read DMA operation may not come in (that is, one less word
may be read than you asked for).
- Interface Hardware 241 -
Summary of Contents for Amiga A1000
Page 1: ...AMIGA HARDWARE REFERENCE MANUAL 1992 Commodore Business Machines Amiga 1200 PAL...
Page 20: ...Figure 1 1 Block Diagram for the Amiga Computer Family Introduction 11...
Page 21: ...12 Introduction...
Page 72: ...Figure 3 12 A dual Playfield display Playfield Hardware 63...
Page 87: ...Figure 3 24 Horizontal Scrolling 78 playfield hardware...
Page 101: ...92 Playfield Hardware...
Page 199: ...Figure 6 9 DMA time slot allocation 190 Blitter hardware...
Page 203: ...Figure 6 13 Blitter Block Diagram 194 Blitter Hardware...
Page 229: ...220 System Control Hardware...
Page 246: ...Figure 8 8 Chinon Timing diagram cont Interface Hardware 237...
Page 265: ...256 Interface Hardware...
Page 289: ...280 Appendix A...
Page 297: ...288 Appendix B...
Page 298: ...APPENDIX C CUSTOM CHIP PIN ALLOCATION LIST NOTE Means an active low signal Appendix C 289...
Page 302: ...APPENDIX D SYSTEM MEMORY MAP Appendix D 293...
Page 343: ...334 Appendix F...
Page 351: ...342 Appendix G...
Page 361: ...352 Appendix H...
Page 367: ...358 Appendix I...