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


定义了一个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