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

Using RA5/MCLR' as input PIC16F88

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



Joined: 27 May 2010
Posts: 52

View user's profile Send private message

Using RA5/MCLR' as input PIC16F88
PostPosted: Thu May 27, 2010 1:04 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu May 27, 2010 1:36 pm     Reply with quote

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:
Code:

                   +5v 
                    |
                    > 
               4.7K <          push button
            pullup  >          switch
                    |          ----
PIC pin ------------o----------o  o-----
                                       |
                                     -----  Ground
                                      ---
                                       -
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