TI中文支持网
TI专业的中文技术问题搜集分享网站

MSP430FR6972AD采样的几个问题

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

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

灰小子:

1、没有周期触发

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

zhankui wang:

回复 灰小子:

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

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

灰小子:

回复 zhankui wang:

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

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

zhankui wang:

回复 灰小子:

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

11.2.8 Using DMA With System InterruptsDMA transfers are not interruptible by system interrupts. System interrupts remain pending until thecompletion 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 otherroutine must execute with no interruptions, the DMA controller should be disabled before executing theroutine.

zhankui wang:

回复 灰小子:

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

11.2.8 Using DMA With System InterruptsDMA transfers are not interruptible by system interrupts. System interrupts remain pending until thecompletion 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 otherroutine must execute with no interruptions, the DMA controller should be disabled before executing theroutine.

赞(0)
未经允许不得转载:TI中文支持网 » MSP430FR6972AD采样的几个问题
分享到: 更多 (0)