Skip to main content
MAnsa.1
Associate III
March 9, 2021
Question

ADC Accuracy

  • March 9, 2021
  • 13 replies
  • 8225 views

Hi Guys, i am using STM8S003F3 controller and i want to that how can i achive 0.1v accuracy when my ADC resolution is 1023 and my total count is 2000.

This topic has been closed for replies.

13 replies

Ozone
Principal
March 9, 2021

Read the datasheet / reference manual of the STM8.

Absolute resolution is reference voltage divided by number of steps.

MAnsa.1
MAnsa.1Author
Associate III
March 10, 2021

yes you are right 5/1023=4.9mV and step size is total count/2^n-1=2000/1023=1.955.so i can get this accuracy but i want to know is there anyway to get 0.1v accuracy ??

Tesla DeLorean
Guru
March 10, 2021

Also confused here, how can a 10-bit value be 2000?

Or are you averaging 2000 samples? In which case I don't understand your computation.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Ozone
Principal
March 10, 2021

> ... and my total count is 2000.

I don't know what you mean with that.

Check the datasheet for Vref options. Vref is not necessarily Vdd or Vdda.

Otherwise, you can only get Vref/2^n, i.e. Vref/1024 for the 10-bit ADC your controller has.

> ... but i want to know is there anyway to get 0.1v accuracy ??

Do you really mean 0.1V meaning 100mV ?

Then just scale down the result.

MAnsa.1
MAnsa.1Author
Associate III
March 10, 2021

how do i scale it? any sample do u have??