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

newbie question; configuring a pin

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








newbie question; configuring a pin
PostPosted: Mon Feb 22, 2010 4:30 pm     Reply with quote

Hey I have a quick one. I'm using a 16f684 and I'm trying to configure pin RA5 as an i/o. I see the table for setting the correct bit to change this pin, but I'm not sure how to do so in the compiler. Most tutorials I've seen for configuring pins use fuses, but I'm trying to find out how to figure out which fuse sets the bit correctly. The fuses in the .h file don't reference which bits they are manipulating, so there must be something I'm missing. I'm still fairly new at reading data sheets. Thanks!!

I would post the link for the data sheet, but it wont let me because I'm not registered.
Guest








PostPosted: Mon Feb 22, 2010 4:36 pm     Reply with quote

Never mind, I figured it out. The datasheet actually labels the fuses as well. I had to set the INTRC_IO fuse. (internal clock i/o)
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