Hi, I am trying to read the analog values from potentiometer which is connected ADC channel 0, namely pin PA0 in my development board. I have attached the related part of the code. I got all of these registers' values from reference manual. I watched many videos and read articles and wrote this code, but there is an issue. The values that I get (I display them on LCD) are random and don't depend on the rotation of the potentiometer. PA0 behaves like if it is not connected to the...
Reading analog values from potentiometer through ADC in STM32F4 Discovery Board.
Reading analog values from potentiometer through ADC in STM32F4 Discovery Board.