cancel
Showing results for 
Search instead for 
Did you mean: 

HOW to set resolution in ADC for STM32F103VBTx

sne_123
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
berendi
Principal

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

View solution in original post

3 REPLIES 3
berendi
Principal

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

oeliks
Senior

berendi is right, only 12bit !​

sne_123
Associate III

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