Skip to main content
MAnsa.1
Associate III
Question

ADC Accuracy

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

Read the datasheet / reference manual of the STM8.

Absolute resolution is reference voltage divided by number of steps.

MAnsa.1
MAnsa.1Author
Associate III

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

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

> ... 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

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