Dear all
I have two timers configured, one at 350 kHz and another at 25 Hz. I used the 350 kHz to trigger the reading of the ADC, so that is my sampling frequency. I can read continuously without problems.
The problem is that I want the ADC to begin reading synchronized with the 25 Hz timer. Read 3000 samples (it would take 8.5 ms ~), deactivate the ADC and start again with the change of state of the 25Hz timer. I have tried a couple of things without success, I do not attach my code because I think my problem is that I am not understanding how to do it correctly.
Could you give me some clue how to do this properly or correct me if I'm confused on how I'm seeing things.