
Table 5-3: DMA and Audio Channel Enable Bits
DMACON REGISTER
Bit Name Function
15 SET/CLR When this bit is written as a 1, it
sets any bit in DMACONW for which
the corresponding bit position is
also a 1, leaving all other bits alone.
9 DMAEN Only while this bit is a 1 can
any direct memory access occur.
3 AUD3EN Audio channel 3 enable.
2 AUD2EN Audio channel 2 enable.
1 AUD1EN Audio channel 1 enable.
0 AUD0EN Audio channel 0 enable.
For example, if you are using channel 0, then you write a 1 into bit 9 to enable DMA and a
1 into bit 0 to enable the audio channel, as shown below.
BEGINCHAN0:
LEA CUSTOM,a0
MOVE.W #(DMAF_SETCLR!DMAF_AUD0!DMAF_MASTER),DMACON(a0)
STOPPING THE AUDIO DMA
You can stop the channel by writing a 0 into the AUDxEN bit at any time. However, you
cannot resume the output at the same point in the waveform by just writing a 1 in the bit
again. Enabling an audio channel almost always starts the data output again from the top
of the list of data pointed to by the location registers for that channel. If the channel is
disabled for a very short time (less than two sampling periods) it may stay on and thus
continue from where it left off.
The following example shows how to stop audio DMA for one channel.
STOPAUDCHAN0:
LEA CUSTOM,a0
MOVE.W #(DMAF_AUD0),DMACON(a0)
-
- Audio Hardware 141 -
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...