2014-12-23 05:40 AM
2014-12-23 06:11 AM
/* ADC1 Init */
ADC_InitStructure.ADC_Resolution = ADC_Resolution_12b;
ADC_InitStructure.ADC_ScanConvMode = ENABLE; // Multiple Channels
ADC_InitStructure.ADC_ContinuousConvMode = ENABLE; // Keep Sampling
ADC_InitStructure.ADC_ExternalTrigConvEdge = ADC_ExternalTrigConvEdge_None; // NONE !Edge!
ADC_InitStructure.ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1; // Ignored, but valid
ADC_InitStructure.ADC_DataAlign = ADC_DataAlign_Right;
ADC_InitStructure.ADC_NbrOfConversion = 5;
ADC_Init(ADC1, &ADC_InitStructure);
2014-12-23 07:49 AM
This can happen if a channel is connected to one source and other channels are unconnected, or if the signal sources have high impedance. Using a buffer amplifier between each sensor and the ADC channel pin is a good solution if you have the problem with all channels connected.
Cheers, Hal2014-12-23 07:59 AM
Thanks for your help.
I changed it but still got the problem that the other channels are entrained. My values without any voltage on the pins is okay. (toggles between 0 and 300) i can live with that.If I put 3 V on pin PA1: Just PA1 shows 4095 --> okayIf I put 3 V on pin PA 2: PA2, PA3, PC1 and PC2 show me 4095If I put 3V on pin PA3: something like the backgroundcolour of the LCD turns blue, nothing else happensIf I put 3 V on PC1: PC1 and PC2 show 4095If I put 3 V on PC2: nothing happensVery strange :)2014-12-23 09:47 AM
LCD? What board do you actually have an STM32F4-DISCO or the STM32F429I-DISCO?
The latter has VERY FEW available pins, you'll need to go over the pin list in the manual.2014-12-23 08:37 PM
Thanks a lot for your reply.
I thought I did already chose the pin's very carefully but it seems that I have got a wrong verified table with the pin availability of the STM32F429 Disco. I will try my luck with the new pins and reply again when I got some news.Merry X-mas !!!!!