Driving tri-state LED matrix
- From: Tomás Ó hÉilidhe <toe@xxxxxxxxxxx>
- Date: Fri, 30 May 2008 05:18:39 -0700 (PDT)
The objective is as follows:
uC pin set as output high: The Green LED lights up
uC pin set as output low: The Red LED lights up
uC pin set as input: Both LED's are off
There will never be a time when both LED's are lit.
Here's what I'm currently thinking of for the circuit:
As you can see, I've marked the current path from Vcc, thru a PNP
transistor, thru an NPN transistor, to ground. As far as I'm aware,
this current path will be problematic in that it will in theory keep
both transistors always turned on. What I'm puzzled about, however, is
that I used this exact same setup for my college project and it worked
perfectly... but I don't see how both transistors weren't always
turned on. There will be 700 mV dropped across each BE junction,
granted, but then that still leaves 3.6 V to be dropped across bare
metal... so I thought there should have been a high enough current for
both transistors to be turned on?? I used BC337's and BC327's for my
project.
.
- Follow-Ups:
- Re: Driving tri-state LED matrix
- From: Tomás Ó hÉilidhe
- Re: Driving tri-state LED matrix
- Prev by Date: Re: Data to fill into unused program space on ARM7.
- Next by Date: Re: Newbie question: the essence of embedded world!!!
- Previous by thread: Re: USB firmware programming
- Next by thread: Re: Driving tri-state LED matrix
- Index(es):