Skip to main content
Visitor II
March 9, 2021
Question

ADC Accuracy

  • March 9, 2021
  • 2 replies
  • 5014 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.

    2 replies

    Explorer
    March 9, 2021

    Read the datasheet / reference manual of the STM8.

    Absolute resolution is reference voltage divided by number of steps.

    MAnsa.1Author
    Visitor II
    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 ??

    Graduate II
    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.​

    Explorer
    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.1Author
    Visitor II
    March 10, 2021

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