As a practice, I did almost exactly the same as your code (M. Rost) except that I used 2 analog inputs and used GPIO_SetBits when a certain condition is met. Your method of using array worked. I'm still studying on how to do the 2-d array and how to store the data. Do you suggest that I average the data then store it or sample every of them and store every of them? Thanks.
I read in the firmware library manual that it can only read from 0 to 3.6V adc values. For this, can I use u16 ADC_RegularConvertedValueTab[5]; and read the values with floating point accuracy? or it can only display 0,1,2 and 3 since u16 is unsigned integer. Any idea on how to implement using usart to display in hyperterminal. I will use this for checking if the ADC values are correct.
It works for GPIOC pins, 4 and 5. ADC channel 14 and 15, how do you setup the ADC channel for GPIOA input, how will you know what ADC channel is for the corresponding GPIOA input.
Does GPIOC pins correspond to channel=(pin number +10). For example GPIOC pin 4 is ADC channel 14 because 4+10=14. For A is it just channel=pin number, example GPIOA pin 3 is ADC channel 3. I'm confused because it doesn't work.
Thanks. I've read it and the pins corresponding to the ADC channels are written there. I'm just confused why some ADC channel config doesn't work like channels 2,3,8,9.