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 CCS Technical Support

ADC always reads 0 on PIC24EP512GU810
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 19535

View user's profile Send private message

PostPosted: Fri Oct 03, 2014 11:08 am     Reply with quote

Start by testing with a meter, that you really do have the voltage on the right pin.
ccowley



Joined: 12 Sep 2009
Posts: 19

View user's profile Send private message

PostPosted: Fri Oct 03, 2014 11:32 am     Reply with quote

Yeah, that is one of the first things I did. I have confirmed I have 3.0 volts on the input pin of the microcontroller.
ccowley



Joined: 12 Sep 2009
Posts: 19

View user's profile Send private message

Solved
PostPosted: Fri Oct 03, 2014 12:30 pm     Reply with quote

It is finally working!! Thanks to all who helped guide me!!

The final clue was Ttelmah's #device ADC=xx. AFter looking through the manual I found that #device ADC=10 changed the values in AD1CON1 to 10 bit and gave me the integer output that I wanted.

Thank you all!!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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