Skip to main content
sne_123
Associate III
Jan 10, 2020 6:39 AM UTC
Solved

HOW to set resolution in ADC for STM32F103VBTx

I am working on STM32F103VBTx ADC. I am using HAL drivers. I dont find the setting where I can set the resolution. In old HAL drivers we had "hadc1.Init.Resolution = ADC_RESOLUTION_12B;" this field to set resolution. But in new drivers I dont find that field. By default it is 12bit , but hoe to set 10bit?? I have generated code from STM32CUBEMX. I am new to ADC. Can anyone help?

This topic has been closed for replies.
berendi
berendiBest answer
Principal
Jan 10, 2020 6:57 AM UTC

STM32F1 series hardware supports only 12 bit ADC resolution, there is nothing to set.

3 replies

berendi
berendiBest answer
Principal
Jan 10, 2020 6:57 AM UTC

STM32F1 series hardware supports only 12 bit ADC resolution, there is nothing to set.

oeliks
Associate III
Jan 10, 2020 7:01 AM UTC

berendi is right, only 12bit !​

sne_123
sne_123Author
Associate III
Jan 10, 2020 7:08 AM UTC

oh okay. Thank you @berendi​  and @oeliks​ .