2018-06-03 12:31 AM
Hi everyone and thanks for the help in advance
I'm trying to read 4 channels of ADC using stm32f043 MCU and get the results on DMA interrupt, the problem I'm having is that I can only get accurate and fix results from one channel and although the signal is steady, the reading on all other channels are bouncing and changing constantly , I have tried to decouple the line using different capacitors and also I have taken the VSSA and VDDA from the hardware design file from ST.
how can I get steady readings from all my ADC channels?
again thanks in advanced
#stm32f0 #hal-adc #dma-adcSolved! Go to Solution.
2018-06-03 11:58 PM
do you have any pins on 5V level ?like TTL-RS232 bouncing around...
any level above VDD will affect some channels
Try the slowest rate of conversion, is there a hurry ?
I found the first and second fastest were less stable, then everything else seemed to work.
drop the clocking rate too.. it all helps
did you add the a small capacitance to the pin ? maybe 0.1uF
2018-06-03 04:25 AM
Make sure the sources you are measuring can charge/discharge the sampling capacitor within the sample-time window you have selected.
2018-06-03 01:34 PM
Thanks for the heads up
so far I have tried 1.5 cycles and 7.5 cycles and 71.5 cycles.
the problem is that in the first two sampling times I can read one channel accurately no matter what kind of sensor I'm connecting to it but for the second channel it stays the same bouncing up and down no matter what I attach to the analog input, even if I connect it to the ground it still does not stay on 0.
what am I missing here?
thanks again.
2018-06-03 11:58 PM
do you have any pins on 5V level ?like TTL-RS232 bouncing around...
any level above VDD will affect some channels
Try the slowest rate of conversion, is there a hurry ?
I found the first and second fastest were less stable, then everything else seemed to work.
drop the clocking rate too.. it all helps
did you add the a small capacitance to the pin ? maybe 0.1uF
2018-06-04 03:11 PM
Hi T J
Thanks for responding
yes I have the small capacitor on the pin as you said and I have also tried slower rates of conversion, actually the slower the rate of conversion the bouncier it gets, any other suggestions?
2018-06-04 05:12 PM
Do you have a scope ?
I guess that your signal is actually moving around...
or you power supply is noisy.
2018-06-28 04:40 AM
Thanks for your great help.
I managed to solve the problem by changing the sampling time to the right value.