CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Any body (succesfully) using A to D on 18F4620

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
cbstieff



Joined: 09 Aug 2004
Posts: 7
Location: Kensington, MD

View user's profile Send private message Send e-mail

Any body (succesfully) using A to D on 18F4620
PostPosted: Wed Sep 08, 2004 2:59 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Wed Sep 08, 2004 6:11 am     Reply with quote

Are you using the #device ADC=10 ?
Is your result a 16bit variable? int16?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group