Skip to main content
This topic has been closed for replies.
Ozone
OzoneBest answer
Principal
Oct 23, 2019 8:24 AM UTC

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
Oct 23, 2019 8:07 AM UTC

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

Ala
AlaAuthor
Senior
Oct 23, 2019 8:12 AM UTC

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

Ozone
OzoneBest answer
Principal
Oct 23, 2019 8:24 AM UTC

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)