home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / electron / 13671 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.5 KB

  1. Path: sparky!uunet!sun-barr!male.EBay.Sun.COM!jethro.Corp.Sun.COM!exodus.Eng.Sun.COM!appserv.Eng.Sun.COM!oobleck!bender
  2. From: bender@oobleck (Duke of Canterbury)
  3. Newsgroups: sci.electronics
  4. Subject: Re: LED buffer  (how?) (was 8051 help needed)
  5. Date: 31 Jul 1992 01:08:34 GMT
  6. Organization: SPARK's R US
  7. Lines: 44
  8. Message-ID: <l7h4kiINN6vs@appserv.Eng.Sun.COM>
  9. References: <1992Jul30.181542.19932@uwm.edu>
  10. Reply-To: bender@oobleck.eng.sun.com
  11. NNTP-Posting-Host: oobleck
  12. X-Newsreader: Tin 1.1 PL3
  13.  
  14. pegasus@csd4.csd.uwm.edu (David R Hucke) writes:
  15. : Thank you all for helping me out with my 8051 question..
  16. : Several said that I would pulling too much current through the port
  17. : pin and I should use a transistor as a buffer...
  18. : WOuld somebody tell me how to do that?  Do I use an NPN or PNP?
  19. : What does the schematic look like?
  20.  
  21.                 +5V
  22.                  ^
  23.                  |
  24.                  |
  25.                  |
  26.                 ___
  27.                 \ / LED
  28.                 ---
  29.                  |
  30.                  |
  31.                  Z
  32.                  Z 100 ohms
  33.                  Z
  34.                  |
  35.     |             |
  36.    8051 |       1K           b|/c
  37.    port +--------/\/\/\---------|  NPN (2N2222 typ.)
  38.    pin  |            |\e
  39.     |             |
  40.                  |
  41.                  |
  42.                    -----
  43.                 ---
  44.                  -
  45.  
  46. When you set your 8051 port pin HIGH, the LED will illuminate.
  47.  
  48. : Could somebody explain to me in clear english the theory behind the 
  49. : operation of the transistor being used as a buffer?
  50.  
  51. In this example, the transistor is used to sink a larger amount of current
  52. than the 8051 port pin can sink or source.  100 ohms for the LED current
  53. limiting resistor may be a bit aggressive, but I like my LED's bright :-).
  54.  
  55. mike
  56.