At 04:43 PM 11/22/04 -0500, you wrote:
> >Two, when I take the value from ADDR I place it into an int. However
> >I am saving these values into an 8-bit value array so I have to
> >shift right twice (due to the ADC being 10-bit). Or so I thought.
> >The values I get from this array seem to be about right, but the
> >resolution is in steps of 8 or 16 not the expected 1. This is no
> >good for my application. I have also tried dividing by 4, but this
> >produces even stranger results!
>
>Have you compared before and after values? If the division is not tracking
>the input values it's probably just a simple arithmetic error.
Also note that the A/D result register contains more than the result. The
top 16 bits are various status fields and the low 6 bits are zero (allowing
compatible expansion to 16 bits of resolution).
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, IIIMessage
Re: [lpc2000] LPC2129 ADC
2004-11-22 by Robert Adsett
Attachments
- No local attachments were found for this message.