This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR6972AD采样的几个问题



1、MSP430AD采样的触发方式有没有周期触发 (不是用计时器中断触发那种方式)

2、MSP430AD采样转换后的结果只能通过AD中断去读取么?

  • 1、没有周期触发

    2、不用中断也可以用查询的方式去读取。ADC转换都有个启动和转换完成标志,判断那个标志就可以正确采集到想要的数据呢

  • 芯片没有跑系统,while循环时间有点长,如果在while查看AD转换标志,会遗漏一些AD采样值;

    不知道能不能用DMA去读AD的转换值,同时又不打断程序或中断的执行?

  • 可以用DMA把AD采样值存储到指定的地方。

    不是太明白你的思路,用中断岂不是更方便?

  • DMA把AD采样值存储到指定的地方时,会挂起系统终端.......恰恰不想要这个挂起

    11.2.8 Using DMA With System Interrupts
    DMA transfers are not interruptible by system interrupts. System interrupts remain pending until the
    completion of the transfer. NMIs can interrupt the DMA controller if the ENNMI bit is set.
    System interrupt service routines are interrupted by DMA transfers. If an interrupt service routine or other
    routine must execute with no interruptions, the DMA controller should be disabled before executing the
    routine.

  • 用DMA把AD采样值存储到指定的地方时会挂起系统中断,恰恰不想要这个挂起...................

    11.2.8 Using DMA With System Interrupts
    DMA transfers are not interruptible by system interrupts. System interrupts remain pending until the
    completion of the transfer. NMIs can interrupt the DMA controller if the ENNMI bit is set.
    System interrupt service routines are interrupted by DMA transfers. If an interrupt service routine or other
    routine must execute with no interruptions, the DMA controller should be disabled before executing the
    routine.