2013-09-18 11:05 AM
Hello guys, unfortunately I observe very odd behavior with ADC on the Discovery board. In my hardware setup i have only a power supply to generate the voltage for ADC and I have soldered a 2.2nF capacitor on the input pin to minimize the interference. I reproduce this behavior also with ADC DMA example from stm32f4discovery firmware package. So I suppose there should not be a software problem. I observe high interference at ADC values 256, 512, 768, 1024 and so on, altogether 16 points. At these points my value jumps 256 values up and down. What is wrong?
Thank you in advance,Ilya2013-09-18 12:53 PM
What's the sample time in cycles?
2013-09-18 08:00 PM
I have tested many samplings times, nothing is changing. Right now I have 3 cycles, as same as in the example. You can see the behaviour on the pictures i have attached. By the way this interference occures the most at 256*n (n=1..15) and at least at 256*n -128 (n=1..15) ADC values. In other words interference minima is between two maximas, but it occures everywhere!
Screenshots:2013-09-19 03:08 AM
Does anybody have an idea?
2013-09-19 03:46 AM
Can you record the data in the processor independently of the Studio app? And is this error present there? ie DMA 1000 samples into an array, stop, review delta between samples.
Off by ~256 screams of byte level incoherency from asynch DMA and debug operations.2013-09-20 05:15 AM
Just did a first test and it looks good! Thank you!