Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 9 months ago.
The read result on A5 always 0.
Hi, mbed & ST team
I am using F103RB in one product. I used A5/PC0 as input of reference voltage. However, it always returns 0.
My code:
main.cpp
//AnalogIn refer_2V5(A5); AnalogIn refer_2V5(PC_0); // A5 float ref = refer_2V5.read();
I also tried out PC_1/PC_2/PC_3/PC_4. They are working correctly. Only PC_0/A5 returns 0.
I tried run code on NUCLEO as well as many custom boards. PC_0/A5 always 0.
Please give me some advice.
Thanks.
Question relating to:
1 Answer
8 years, 9 months ago.
I don't have this problem on my board.
You should check the solder bridges:
SB56 and SB51 should be ON
SB46 and SB52 should be OFF
(see nucleo datasheet p 24/25 for details)
Or maybe you zapped the pin? it is located at the corner of the board...