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

pullup resistors set on high

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



Joined: 07 Dec 2006
Posts: 3

View user's profile Send private message

pullup resistors set on high
PostPosted: Fri Mar 16, 2007 11:33 pm     Reply with quote

hello
i have one input (to my device acting like a chip select wich can be any general I/O )that has an internal pull-up resistor and
should be left open (tri-stated by the microcontroller). i don't know how this is done.the pin in question is an output to my micrcontroller.

PIN X :Input with internal pullup resistor (input to device)
Should be driven high or high-impedance to minimize
power consumption

if anyone has an idea onhow this done this could be a great help
thank
Ttelmah
Guest







PostPosted: Sat Mar 17, 2007 4:18 am     Reply with quote

If you set a pin as an input (just read from it, if you are using 'standard_io', or change the tris), then the ouput drivers in the PIC are turned off. The instruction 'output_float', also does the same thing, without you having to read the pin.

Best Wishes
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