我想使用5509的DMA下面是我写的程序: .bss TBuf1,100 .bss TBuf2,100
_DMAInit: MOV #0H,port(#DMA_CSDP0) MOV #0H,port(#DMA_CICR0) MOV #TBuf1<<1,port(#DMA_CSSA_L0) MOV #0000H,port(#DMA_CSSA_U0) MOV #TBuf2<<1,port(#DMA_CDSA_L0) MOV #0000H,port(#DMA_CDSA_U0) MOV #100,port(#DMA_CEN0) MOV #1,port(#DMA_CFN0) MOV #5340H,port(#DMA_CCR0) BTSTSET #7,port(#DMA_CCR0),TC1 ;enable DMA #0 RET
执行后过了好久发现数据也没有搬过去啊? |