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

How to use A6 and A7 on 16f88

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



Joined: 07 May 2004
Posts: 263

View user's profile Send private message

How to use A6 and A7 on 16f88
PostPosted: Thu Sep 29, 2005 5:57 pm     Reply with quote

I have a 16f88 and want to use A6 and A7 as inputs. I 'm setting up to use the internal osc using

#fuses intrc_io

but the lines

Button=input(PIN_A6);
if(button==0)
LSkipper-=10;

don't work (LSpipper never changes). A6 and A7 are both pulled high with a 10K and a switch pulls them low. The Pic never sees the switch closeure . A couple more switches on different pins work fine. Is there a setup that I'm missing somewhere?


Thanks
Ringo
_________________
Ringo Davis
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Sep 30, 2005 1:33 am     Reply with quote

Post a complete (but short) test program and post your version of the
compiler.
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