用pxa270片选5接cpld,从cpld dma数据过来.dma过来的数据有些正常,有些不正常.请问跟哪方面有关?请高手指点一下啊.
DCSR(channel) = DCSR_NODESC; DSADR(channel) = 0x14000000;//+0x1000000; //外设源地址 DTADR(channel) = dmaaddr; //内存地址 DCMD(channel) = DCMD_INCTRGADDR | DCMD_FLOWSRC | DCMD_ENDIRQEN | DCMD_WIDTH2 |DCMD_BURST8 |MAX_LINE_BYTE; DCSR(channel) &= ~DCSR_STOPIRQEN; //启动 DCSR(channel) |= DCSR_RUN; |