Thats correct...  so I have to start the conversion every time over again... 
and het the value after that conversion.... I have seen continuous conversions 
ADC on an STM32...

I will try to find a plausible solution.

Ben

-----Oorspronkelijk bericht-----
Van: Daniel Pereira Carvalho <daniel...@gmail.com> 
Verzonden: woensdag 21 oktober 2020 17:14
Aan: dev@nuttx.apache.org
Onderwerp: Re: NuttX and continuous ADC conversion

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
>
>

Reply via email to