We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
could anybody send me sample code for reading counts from cs5532 adc
Of course, if he can't make up his mind what processor he's using, that will tend to make things less understandable...
the counts i have got are not stable at all
not even 16 bits
anyone having any idea what might be the reason
the hardware is perfect
Since the hardware is perfect, the fault has to be with the software or the measured signal itself.
Not even 16 bits
Note that if you have a +/- 2.5V full range, then each step (for 16 bits of precision) is 76uV.
To get 24-bit resolution - or use the 64x gain - the requirements of the input signal quality is extreme.
Are you really sure that your hardware is ok?
Are the most significant bits of the values correct?
How many bits of the data seems to be ok?
the 14 bits are seeming to be ok
beyond that counts flickers very much
the 14 bits are seeming to be ok beyond that counts flickers very much>
congratulations, that is quite good
eead www.8052.com/faqs.phtml
Erik
I would say that there is two important factors that should be tought about even before layout, and that is load impedance and bandwidth.
With high enough impedance, you get a wide-bandwidth radio receiver. And ADC circuit should never be built with Mohm or Gohm input impedance, if the kohm range is acceptable. Correct choice of the load impedance can diretly give 5 or 10 extra bits.
The next design choice to make is required upper bandwidth - if the input signal should be sent through a low-pass filter before being sampled. Besides solving problems with folding, it also affects amount of noise.