|
发表于 2022-3-16 16:05:37
|
显示全部楼层
看来是真·乒-乓,不过也能满足楼主的需求
In ping pong mode, the controller performs a DMA cycle using one of the data structures and then performs a DMA cycle using the other
data structure. The controller continues to alternate between using the primary and alternate data structures until it reads a data structure
that is invalid, or the host processor disables the channel.
This mode is useful for transferring data from peripheral to memory using different buffers in the memory. In a typical application, the
host must configure both primary and alternate data structures before starting the transfer. As the transfer progresses, the host can
subsequently configure primary or alternate control data structures in the interrupt service routine when the corresponding transfer ends.
The DMA controller interrupts the processor after the completion of transfers associated with each control data structure. The individual
transfers using either the primary or alternate control data structure work the same as a basic DMA transfer |
|