Skip to main content
This topic has been closed for replies.
Best answer by Ozone

I'm no Cube/HAL user, by the way.

But for all STM32 MCUs I know, the following points are valid:

- Vdd&/ Vdda max. is 3,6V

- the ADC reference voltage is less or equal to Vdda

- analog pins (including ADC) are not 5V-tolerant

- the ADC has a default resoltution of 12 bits, (not 10)

4 replies

Ozone
Principal
October 23, 2019

I'm a bit confused. Doesn't return HAL_GPIO_ReadPin() just a logical state (High/Low) ?

Ala
AlaAuthor
Senior
October 23, 2019

you're right. I then tried ADC but the results didn't change:(

Ozone
OzoneBest answer
Principal
October 23, 2019

I'm no Cube/HAL user, by the way.

But for all STM32 MCUs I know, the following points are valid:

- Vdd&/ Vdda max. is 3,6V

- the ADC reference voltage is less or equal to Vdda

- analog pins (including ADC) are not 5V-tolerant

- the ADC has a default resoltution of 12 bits, (not 10)