How are you reading the ADC? Most ADCs have a bit somewhere to signal
End-of-Conversion. If your loop is simply reading a register that is
supposed to contain converted data, but is not waiting for EoC, that
would explain erratic readings. If a time-delay is inserted, as with
usleep(), it would allow time for the conversion to complete, and
provide you with valid readings. Again, this is consistent with the
behavior you are seeing. Can you confirm that you are reading the ADC in
a way that assures it has completed a conversion?
--- rod.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|