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

Internal Pullup only on RB5 - PIC16F677

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



Joined: 03 May 2007
Posts: 42

View user's profile Send private message

Internal Pullup only on RB5 - PIC16F677
PostPosted: Thu Mar 13, 2008 2:23 pm     Reply with quote

Hello All,

The target IC is a PIC 16F677:

I need to use only one Port B pin with an internal pullup. According to the datasheet this is possible by setting up RABPU[bar] and setting the proper bits in the WPUB register.

The other Port B pins are as follows:

Portb.4 = I2C Data
Portb.5 = I need this one to have its internal pull up enabled.
Portb.6 = I2C Clock
Portb.7 = Digital Output


I didn't see a specific function or command in the CCS libraries to modify the WPUB register and set or clear the RABPU[bar] register.

Can someone point out how to do this?


Thank you all!
necati



Joined: 12 Sep 2003
Posts: 37
Location: istanbul

View user's profile Send private message

pullups
PostPosted: Thu Mar 13, 2008 2:51 pm     Reply with quote

port_b_pullups (0b00100000);
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