I'm using the PIC16F88 and need to read an input from RA5. I have the fuse NOMCLR which should turn the pin to digital input. I have TRISA and ANSEL set (even though I don't think they affect RA5). Despite all this I'm not reading a high on RA5 when I'm supposed to be. I'm relatively new to embedded systems in general and wondered if maybe I missed another fuse or something. Any suggestions?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Thu May 27, 2010 1:36 pm
Post a compilable test program that shows how you're reading the pin.
The program should have the #include for the PIC, #fuses statement,
and #use delay, etc. It should also have a main(), and show all variable
declarations, if needed, and should compile with no errors. Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=38057&start=1
Also post a description or schematic of the external circuits connected to the PIC pin. Example:
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