阅读:1097回复:0
有关9054 DMA中断的理解对否?
这里光提寄存器:
先写入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中先监听了一把,没反应:( |
|