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

how to float a PIC output pin?

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



Joined: 10 Sep 2003
Posts: 60

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger ICQ Number

how to float a PIC output pin?
PostPosted: Wed Apr 13, 2005 12:36 am     Reply with quote

Hi,

I want to use PB0 and PB1 to output adjust current supplied
to a LED (LED tot current= PB0 mA + PB1 mA). And I afraid
there will be a reverse current to PB0 or PB1 when either one
is turn off and another turn on.

So, What is the command to float PIC output pin when not used?

Or is that possible to use a 1N4001 to cut the reverse current?

Appreciate for your help.


Regards: Min Siang,
_________________
Einly
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Wed Apr 13, 2005 6:52 am     Reply with quote

output_float(pin)

It goes with the functions output_low(pin) and output_high(pin).
_________________
The search for better is endless. Instead simply find very good and get the job done.
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