This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SAADC 2Channels Scan Mode with EasyDMA

I need to collect data from 2 ADC channels. Ultimately, the data is to be sent to a table of 1000 samples (500 per channel). Samplerate can be 2KHz - 8kHz. When the table is full, the interrupt should be given.
It does not work for me. Here is my code.

1.Initialization

INITIALIZATION CODE

2.IRQ

Interrupt works with 1channel-1sample-TASK_SAMPLE combination (ONE-SHOT), but not for more channels.

What is wrong?

 

Parents Reply Children
Related