MCP3202 only 10bit?
guenthert
Posts: 36
I'm using the MCP3202 object from OBEX to read the values from a MCP3202. I find that the lowest two bits are always zero, making it effectively a 10bit ADC. I couldn't see an obvious problem with the software, so I wonder if my chip is broken or I got a fake? Anyone made similar experiences?
Comments
It's definitely a 12 bit 2 channel adc, and I have used it a couple of times before standardizing on the 3208. IIRC I used the MCP320x_ez driver.
Right you are. It was just that I downloaded the code a while ago and only recently took this 'project' up again. I just had another look and am able to identify it as http://obex.parallax.com/object/386 . I now see a comment there indicating that it might not work. Hmmh.
Googling, I also found https://github.com/mrmorphic/led-cylinder/blob/master/code/lib/MCP3202.spin , but that looks like it needs more work.
Now I have a few more links I need to digest, but first I need to get lunch ...
This was just a test more or less to satisfy my curiosity, but eventually, I'll have to look more closely, what's wrong with the PASM driver (wonder, whether it might be timing).
Now using "http://obex.parallax.com/object/371" since settling on the MCP3208. Not much point in stocking multiple adc's since they are only a few cents apart in price.