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

10f222 pullup?

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



Joined: 09 Mar 2010
Posts: 314
Location: Denmark

View user's profile Send private message

10f222 pullup?
PostPosted: Wed Jun 02, 2010 12:57 pm     Reply with quote

How to use the weak pull up on this chip?
From the data sheet there is a GPWU bit in the OPTION reg.
But the command port_x_pullups won't work?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 02, 2010 1:10 pm     Reply with quote

Use the set_options() function to do this. The link below shows the
macro for that function. For the function parameter, use the value that
you want to set the OPTION register to. Look in the 10F222 data sheet
for a description of the bits in the OPTION register.
http://www.ccsinfo.com/forum/viewtopic.php?t=42414&start=2

Here is another example:
http://www.ccsinfo.com/forum/viewtopic.php?t=42138&start=6
hmmpic



Joined: 09 Mar 2010
Posts: 314
Location: Denmark

View user's profile Send private message

PostPosted: Wed Jun 02, 2010 1:35 pm     Reply with quote

Thanks for your help!
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