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.

怎样通过msp430f1612 DMA将ADC的数据放到定义的数组中去?

Other Parts Discussed in Thread: MSP430F1612

最近使用MSP430F1612单片机,使用到了内部的DMA,需要将ADC的值通过DMA放到数组中去,使用过程中出现了一个问题,请问哪位大神指导怎么解决的?

定义了一个unsigned int  ADC_Result[8]的数组,然后将DMA目的地址设置成改数组所在的地址,代码如下:

DMA2DA =  &ADC_Result;

编译的时候,报错,错误为:

Error[Pe513]: a value of type "unsigned short *" cannot be assigned to an entity of type "unsigned short" C:\Users\thinkpad\Desktop\Four-Axis Aircraft\BLDC_Driver_Software_V10\DMA.c 52

请问哪位大神指导,怎么将DMA目的地址设置为数组(以前用过STM32的单片机,他们的DMA可以这样设置)?