njust
驱动牛犊
驱动牛犊
  • 注册日期2002-05-08
  • 最后登录2002-11-11
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1097回复:0

有关9054 DMA中断的理解对否?

楼主#
更多 发布于:2002-08-21 15:44
这里光提寄存器:

先写入INTCSR【8】1
PCI Interrupt Enable. Writing a 1 enables PCI interrupts.
写入DMACSR0【4】1
Channel 0 Done. Reading a 1 indicates a channel transfer is complete.Reading a 0 indicates a channel transfer is not complete.
再写入DMAMODE0【17】1选择产生PCI中断
DMA Channel 0 Interrupt Select. Writing a 1 routes the DMA Channel 0 interrupt to the PCI Bus interrupt. Writing a 0 routes the DMA Channel 0 interrupt to the Local Bus interrupt.
最后写入DMAMODE0【10】1产生一个中断
Writing a 1 enables an interrupt when done. Writing a 0 disables an interrupt when done. If DMA Clear Count mode is enabled, the interrupt does not occur until the byte count is cleared.

但是我在windriver中先监听了一把,没反应:(
游客

返回顶部