Hi, Im using the onboard ADC for a project I am working on. However I seem to be getting some strange values and it isnt acting as I expect it to. Two things mainly: One, when I take a voltage input of a constant voltage (0.5 * 3.3V) I get fluctuating values from the ADC which I output to hyperterminal. This is very strange as they should be all the same value. 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! Any help would be appriciated. Thanks, FG
Message
LPC2129 ADC
2004-11-22 by firegenie1980
Attachments
- No local attachments were found for this message.