If I understand well, you want to put the ADC to continuously sample an input at some sampling rate.The ADC ring buffer depth will be set to 1 and should store the value of the last sample. Is that correct?
If yes I think that is not possible because adc_receive() will refuse new data if FIFO is full. Daniel Pereira de Carvalho Em qua., 21 de out. de 2020 às 11:35, <disruptivesolution...@gmail.com> escreveu: > Is it possible to achieve a continuous ADC conversion, where the > sample[0].am_data is written in a struct (and constantly updated) and where > I can get and check the voltage from the ADC? > > I have it working that the value I get is true and it also seems to > measure the change, but after some time the conversion seems to stop. And > it only seems to do n-counts.. even though I have not set a count. > > I have set a TIM3 channel 1 with frequency 100Hz in make menuconfig. > > With kind regards, > Ben > >