Joined: 09 Aug 2004 Posts: 7 Location: Kensington, MD
Any body (succesfully) using A to D on 18F4620
Posted: Wed Sep 08, 2004 2:59 am
I am having a problem getting the A to D converter do a conversion accurately. It appears that the compiler is generating code is masking the reading to 8 bit instead of 10 bits. for instance I get a reading of 110 instead of 604.
Any suggestions?
Charles Stieff
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Wed Sep 08, 2004 6:11 am
Are you using the #device ADC=10 ?
Is your result a 16bit variable? int16?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum