home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!male.EBay.Sun.COM!jethro.Corp.Sun.COM!exodus.Eng.Sun.COM!appserv.Eng.Sun.COM!oobleck!bender
- From: bender@oobleck (Duke of Canterbury)
- Newsgroups: sci.electronics
- Subject: Re: LED buffer (how?) (was 8051 help needed)
- Date: 31 Jul 1992 01:08:34 GMT
- Organization: SPARK's R US
- Lines: 44
- Message-ID: <l7h4kiINN6vs@appserv.Eng.Sun.COM>
- References: <1992Jul30.181542.19932@uwm.edu>
- Reply-To: bender@oobleck.eng.sun.com
- NNTP-Posting-Host: oobleck
- X-Newsreader: Tin 1.1 PL3
-
- pegasus@csd4.csd.uwm.edu (David R Hucke) writes:
- : Thank you all for helping me out with my 8051 question..
- :
- : Several said that I would pulling too much current through the port
- : pin and I should use a transistor as a buffer...
- :
- : WOuld somebody tell me how to do that? Do I use an NPN or PNP?
- : What does the schematic look like?
-
- +5V
- ^
- |
- |
- |
- ___
- \ / LED
- ---
- |
- |
- Z
- Z 100 ohms
- Z
- |
- | |
- 8051 | 1K b|/c
- port +--------/\/\/\---------| NPN (2N2222 typ.)
- pin | |\e
- | |
- |
- |
- -----
- ---
- -
-
- When you set your 8051 port pin HIGH, the LED will illuminate.
-
- : Could somebody explain to me in clear english the theory behind the
- : operation of the transistor being used as a buffer?
-
- In this example, the transistor is used to sink a larger amount of current
- than the 8051 port pin can sink or source. 100 ohms for the LED current
- limiting resistor may be a bit aggressive, but I like my LED's bright :-).
-
- mike
-