Hey Guys, My bad. Sorry to make this mistaken post. *10bit ADC is working fine.* Problem is my code. Am trying to smooth the sinal that is read by the ADC. Its a fast (100KHz) oscillating signal (with vpp around 1V) that am trying to read it like DC... Not easy I know. My code is currently reading some hundreds times the signal, then finds the median of all readings and then discard the final reading (make it equal to last median value) if it changes by a small divergence (like 2 bits) from last median value. This is what lead me to think (wrongly) that ADC was converting at 8bit. Sorry again for posting a wrong question.
But now this raises new question; How to smooth an oscillating signal and make it DC reading just like a DC-Voltmeter would do? (Using only code... cannot change my design) Thank you once again. Best regards, Filipe Santos. On Wednesday, August 31, 2022 at 9:26:23 AM UTC+1 Rob Hamerling wrote: > > > On 31/08/2022 10.21, Rob Hamerling wrote: > > adc_read_high_res() returns a word, but your AdcChnn is a byte... > > Sorry, that 'AdcChnn' is a byte isn't the relevant here. Maybe AdcData is > a byte, but I cannot find that in the code you showed. > > > -- > *Rob H*amerling, Vianen, NL > -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/68dfd26e-07d1-4ba5-bf02-f41aee02c29bn%40googlegroups.com.
