关于LM4F232H5QD开发板的ADC-uDMA问题



您好!用LM4F232H5QD开发板的上的Timer触发ADC转换  转换结果由uDMA的Peripheral Scatter Gather模式传输,当安任务列表传输完毕后进入中断,在中断中重新配置uDMA,但配置完后却无法再次进行uDMA传输,附件为工程代码,请问是哪里配置出问题了呢?有没有这方面的例程呢?谢谢!

timer_adc_dma_lab.rar
  • lin Hisen :

      看了一下你的代码,你在用uDMA的时候,在ADC转换完成后用了ADC0的中断。

     但据LM4F232的手册中9.2.8 Peripheral Interface以及9.2.10 Interrupts and Errors中相关说明,可知如下两条:

     1.When using μDMA to transfer data to and from a peripheral, the peripheral must disable all interrupts to the NVIC

       2.if μDMA is used to transfer data for a peripheral and interrupts are used, then the interrupt handler for that peripheral       must be designed to handle the μDMA transfer completion interrupt