Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

TWO LEDS SINGLE PIN

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
naseerak

Bascom Member



Joined: 08 Nov 2008
Posts: 138

pakistan.gif
PostPosted: Fri Jul 16, 2010 2:42 pm    Post subject: TWO LEDS SINGLE PIN Reply with quote

HI
Searching the google i found this this useful thing. is this thing possible in bascom using set reset commands for glowing either of the led.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5257
Location: Holland

blank.gif
PostPosted: Fri Jul 16, 2010 8:46 pm    Post subject: Reply with quote

you need the series resistors because at start up when the pin has high impedance, high current will flow though the leds.
since the port can source and sink current, it can be done a bit simpler too.
just connect from port pin to anode and cathode with resistor to ground.
and the other one can go from the pin to cathode and anode goes via resistor to vcc.

_________________
Mark
Back to top
View user's profile Visit poster's website
naseerak

Bascom Member



Joined: 08 Nov 2008
Posts: 138

pakistan.gif
PostPosted: Sun Jul 18, 2010 6:17 pm    Post subject: Reply with quote

HI
THANKS FOR THE LIGHT.
REGARDS
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
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
You cannot attach files in this forum
You cannot download files in this forum