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.

CC2430 configuring DMA and ADC

Other Parts Discussed in Thread: CC2430

hello hardware developers,

i am trying very hard to make DMA and ADC work together: 

the 12 bit temperature reading from ADC, trigger the DMA and then gets transferred to a memory location, the destination address should increment by 1 word (16 bits) and wait for next ADC trigger. no CPU is needed until the set number of DMA transfers are done, and then CPU should wake up to do data processing.

that is the plan, but all of my efforts have failed: 

-managed to transfer from a set of data from 1 memory location to another using repeated single. (is repeated single the best choice for the above description? )

-ADC trigger appears to be working

-7 bit ADC reading cannot be successfully transferred, returns a number around 205, and having finger on the CC2430 increments the number by a little.

-12 bit ADC not sure how to work the 2 byte transfer.

 

Would really appreciate if anyone can provide some sort of sample code showing interaction between 12 bit ADC output and DMA.

many thanks