Skip to main content
sne_123
Associate III
January 10, 2020
Solved

HOW to set resolution in ADC for STM32F103VBTx

  • January 10, 2020
  • 3 replies
  • 2435 views

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.
Best answer by berendi

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

3 replies

berendi
berendiBest answer
Principal
January 10, 2020

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

oeliks
Associate III
January 10, 2020

berendi is right, only 12bit !​

sne_123
sne_123Author
Associate III
January 10, 2020

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