转至:
http://blog.youkuaiyun.com/dhdahai/archive/2009/03/30/4037420.aspx
2440 DMA 寄存器 :
1. DISRCn (DMA initial source c ):始端数据基地址。
2. DISRCCn (DMA initial source control register ):始端总线类型(系统总线AHB or 外围总线 APB )和地址类型(increment or fixed )。
3. DIDSTn (DMA initial destination register ):终端数据基地址。
4. DIDSTCn (DMA initial destination control register ):中断产生时刻,终端总线类型(系统总线AHB or 外围总线 APB )和地址类型(increment or fixed )。
5. DCONn (DMA control register ):
- Demand mode or Handshake mode
- DREQ 和DACK 同步方式
- 中断使能
- the transfer size of an atomic transfer (1or4 )
- Single service mode or Whole service mode
- DMA request source
- Software source or Hardware source
- 自动重新加载on/off
- 数据宽度
- Transfer count 初始值
6. DSTATn (DMA status register ):
- ready or busy
- Transfer count 当前值
7. DCSRCn (DMA current source register ):current source address
8. DCDSTn (DMA current destination register ):current destination address
9. DMASKTRIGn (DMA mask trigger register ):
- Stop DMA
- DMA channel on/off
- S/W request mode 时用于触发DMA