cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F411RE6: Analog input on PB5 and PB6 is always 0

Vandi
Associate

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

Screenshot from 2024-03-30 09-31-46.png

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

2 REPLIES 2

PB5 and PB6 on STM32F411 are not connected to ADC. See "pin definitions" table in STM32F411 datasheet.

JW

 

IMG_7253.jpeg

Thanks @waclawek.jan  for the contribution, Indeed 

IMG_7254.jpeg

 changed the label used from L4 to F4 series .

Let us know @Vandi @if you will be able to get it working now ?

Ciao

ST1