home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / sci / electron / 18382 < prev    next >
Encoding:
Text File  |  1992-11-05  |  2.6 KB  |  65 lines

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!wrb
  3. From: wrb@cbnews.cb.att.com (wallace.r.blackburn)
  4. Subject: Re: Idea for LED sequencer
  5. Organization: AT&T
  6. Distribution: usa
  7. Date: Thu, 5 Nov 1992 18:50:45 GMT
  8. Message-ID: <1992Nov5.185045.28493@cbnews.cb.att.com>
  9. References: <1992Nov3.094923.44351@kuhub.cc.ukans.edu> <Bx7Ez4.MIM@news.cso.uiuc.edu>
  10. Lines: 53
  11.  
  12. In article <Bx7Ez4.MIM@news.cso.uiuc.edu> rky57514@uxa.cso.uiuc.edu (Tall Cool One ) writes:
  13. >heacock@kuhub.cc.ukans.edu (Doug Heacock) writes:
  14. >
  15. >>I'm putting together a quick-and-dirty circuit that will light 10
  16. >>LED's in sequence, one after the other.  Here's my idea so far:  I
  17. >>intend to use half of a 4011 (quad 2-input NAND gate) as a clock
  18. >>oscillator to drive half of a 4518 (dual synchronous up counter),
  19. >>which will in turn drive a 4028 (BCD-to-decimal decoder), which will
  20. >>actually drive the LED's.  I was thinking I could connect all of the
  21. >>LED cathodes to ground through a single 330-ohm resistor, since only
  22. >>one would be lit at a time.
  23. >
  24. >>Does this sound workable?  I welcome more elegant solutions--these
  25. >>chips just happen to be the ones I have on hand at the moment.
  26. >>+-----------------------------------------------------------------+
  27. >>| Doug Heacock, Academic Computing   | heacock@kuhub.cc.ukans.edu |
  28. >>| Services, The University of Kansas | heacock@ukanvax.bitnet     |
  29. >>| Lawrence, KS 66045                 | Amateur radio: N0NZQ       |
  30. >>+-----------------------------------------------------------------+
  31.  
  32. Oh, what the hell?  Might as well give the "swatting a mosquito with a
  33. sledgehammer" approach.
  34.  
  35. IF you have access to a programmer and IF you wouldn't mind writing some
  36. very simple assembler (I know, pretty big ifs):
  37.  
  38. A tiny microcontroller like the MC68HC705K1 could do this easily and
  39. cheaply.  The 'K1 has 10 I/O lines - one for each LED.  They can drive the
  40. LEDs directly since they can source 25 mA.  The code would just be:
  41.  
  42.  
  43.     START    BSET LED1    ;turn on 1
  44.         JSR  DELAY    ;delay subroutine
  45.         BCLR LED1    ;turn it off
  46.         BSET LED2    ;turn on 2
  47.         JSR  DELAY
  48.             .
  49.             .
  50.             .
  51.         BCLR LED10
  52.         JMP  START
  53.  
  54. I know this is overkill, but since the 'K1 sells in singles for $3.35 and
  55. you would need no other chips, it's really not that crazy.  Physical design
  56. becomes trivial and the software would take less than an hour (10 minutes).
  57.  
  58. I've been playing with this MCU a lot lately, so maybe it's a case of "if
  59. all you have is a hammer, everything starts to look like a nail".
  60.  
  61. Comments to att!ccsitn!wrb, flames to /dev/null/eatme.
  62.  
  63.  
  64.             Wally Blackburn AA8DX
  65.