Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/17/08 04:40
Modified:
  05/17/08 04:47

Read: times


 
#154832 - Integrate and Decimate
Responding to: ???'s previous message
I use this theory

http://www.atmel.com/dyn/resou...oc8003.pdf

Increase the overall resolution by oversampling and then you have an improved reading. It does take more reads for each effective bit of resolution, but the result is worth it.

Say you have an 8bit ADC, with integration and decimiation you can get 12 bits out of this, then drop the bottom two bits if you are having "flicker issues" and you have a nice smooth reading with 10bits effective resolution from your 8bit ADC.


Anyway read the appnote, it explains it better than me. Heres the summary from the appnote

-------APPNOTE SUMMARY FOLLOWS----------------

When the ADC samples a signal, it quantizes the signal in discrete steps. This introduces some error, often referred to as quantization error. Normal averaging will only even out signal fluctuations, while Decimation will increase the resolution.

In a 4-times-oversampled signal, four adjacent data points are averaged to produce a new data point. Which frequency to oversample the signal with, can be calculated by equation 3-1. Adding these extra samples and right-shifting the result by a factor n,yields a result with resolution increased by n bits. Averaging four ADC results to get a new ADC result is the same as if the ADC sampled at ¼ of the rate, but also has the effect of averaging the quantization noise, which improves SNR. This will increase the ENOB and reduce the quantization error. With the availability of faster ADCs and with low memory cost, the advantages of oversampling are cost effective and desirable.

• Some noise has to be present in the signal, at least 1 LSB.
• If the noise amplitude is not sufficient, add noise to the signal.
• Accumulate 4n 10-bit samples, where n is the desired extra number of bits in the resolution.
• Scale the accumulated result, by right shifting it n times.
• Compensate for errors, according to Application Note AVR120.


Regards

Marshall

List of 41 messages in thread
TopicAuthorDate
ADC smoothing assistance...            01/01/70 00:00      
   Low-pass filter            01/01/70 00:00      
      How stabile is your power supply?            01/01/70 00:00      
         Not very, apparently.            01/01/70 00:00      
            Getting better...            01/01/70 00:00      
            To ground            01/01/70 00:00      
            Start by cleaning up the supply ...            01/01/70 00:00      
               Right!            01/01/70 00:00      
            Correction.            01/01/70 00:00      
               Maybe what you need is a low-impedance probe            01/01/70 00:00      
                  Springtime...            01/01/70 00:00      
                     yes, that looks like mine ... sort-of            01/01/70 00:00      
      Still listening...            01/01/70 00:00      
   Digital and Analog            01/01/70 00:00      
   try steady and more than minimum            01/01/70 00:00      
   ahhhhhh...........so its not only me!            01/01/70 00:00      
   is 2 lsb random error close enough?            01/01/70 00:00      
      Thanks...            01/01/70 00:00      
      Yep.....and that IS the final answer......            01/01/70 00:00      
      Don't truncate ...            01/01/70 00:00      
   LSB flickering            01/01/70 00:00      
      Erm ... not quite true.            01/01/70 00:00      
         Specific Case....            01/01/70 00:00      
            Should work in any case ...            01/01/70 00:00      
         Sorry, but you are entirely wrong...            01/01/70 00:00      
            You must know more about the flickering            01/01/70 00:00      
            I shouldn\\\'t post after a long workday ...            01/01/70 00:00      
   I need to chime in on this thread,,,,            01/01/70 00:00      
      throwing away bits            01/01/70 00:00      
      Integrate and Decimate            01/01/70 00:00      
         Here's my code            01/01/70 00:00      
            Where's the integration?            01/01/70 00:00      
         Dropping bits will not prevent flickering...            01/01/70 00:00      
            this confuses the issue            01/01/70 00:00      
               Immanent flickering            01/01/70 00:00      
                  I don't disagree ...            01/01/70 00:00      
                     Precision...            01/01/70 00:00      
   How I solved my Midi Controller LSB Flicker/Flutte            01/01/70 00:00      
      "Slack" same as hystersis            01/01/70 00:00      
         Sorry!            01/01/70 00:00      
      slack            01/01/70 00:00      

Back to Subject List