Question
STM32F411RE6: Analog input on PB5 and PB6 is always 0
- March 30, 2024
- 2 replies
- 883 views
Hi, I'm working with a STM32F411RE6 on a pcb and i've noticed that trying to read an input from PB5 and PB6 just returns 0. I've tried fiddling with the registers eg. setting them to analog input mode, pullup, pulldown and left floating but none of it seems to make a difference. my guess is that is has to do with the ADC. for reference below is a screenshot of my teleplot grah showing various pin analog input

I've also included a copy of my code and kicad schematic/board
