13.07.2015 Views

Intel 80312 I/O Companion Chip - ECEE

Intel 80312 I/O Companion Chip - ECEE

Intel 80312 I/O Companion Chip - ECEE

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Intel</strong> ® <strong>80312</strong> I/O <strong>Companion</strong> <strong>Chip</strong>DMA Controller Unit9.3.4 Synchronizing a Program to Chained TransfersChained DMA transfers can be synchronized to a program executing on the <strong>Intel</strong> ® 80200 processorthrough the use of processor interrupts. The channel generates an interrupt to the <strong>Intel</strong> ® 80200processor under certain conditions. They are:1. [Interrupt & Continue] The channel completes the data transfer for a chain descriptor and theNext Descriptor Address Register is non-zero. When the Interrupt Enable bit within theDescriptor Control Register is set, an interrupt is generated to the <strong>Intel</strong> ® 80200 processor. Thisinterrupt is for synchronization purposes only. The channel sets the End Of Transfer Interruptflag in the Channel Status Register. Since it is not the last chain descriptor in the list, the DMAchannel starts to process the next chain descriptor without requiring any processor interaction.2. [End of Chain] The DMA channel completes the data transfer for a DMA chain descriptor andthe Next Descriptor Address Register is zero specifying the end of the chain. When theInterrupt Enable bit within the Descriptor Control Register is set, an interrupt is generated tothe <strong>Intel</strong> ® 80200 processor. The channel sets the End Of Chain Interrupt flag in the ChannelStatus Register.3. [Error] An error condition occurs (refer to Section 9.12 for DMA error conditions) during aDMA transfer. The channel halts operation on the current chain descriptor and not proceed tothe next chain descriptor.Each chain descriptor can independently set the Interrupt Enable bit in the Descriptor Controlword. This bit enables an independent channel interrupt upon completion of the data transfer forthe chain descriptor. This bit can be set or clear within each chain descriptor. Control of interruptgeneration within each descriptor aids in synchronization of the executing software with DMAtransfers.Figure 9-6 shows two examples of program synchronization. The left column shows programsynchronization based on individual chain descriptors. Descriptor 1A generated an interrupt to theprocessor, while descriptor 2A did not because the Interrupt Enable bit was clear. The lastdescriptor nA, generated an interrupt to signify the end of the chain has been reached. The rightcolumn in Figure 9-6 shows an example where the interrupt was generated only on the lastdescriptor signifying the end of chain.9-10 Developer’s Manual

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!