Shop OBEX P1 Docs P2 Docs Learn Events
74hc595 — Parallax Forums

74hc595

MRMR Posts: 46
edited 2009-03-22 19:33 in BASIC Stamp
I ran out of pins on the Basic Stamp 2P40. I need to drive common anode 7 segment displays, is it possible to use a 74HC595 shift register to accomplish this purpose? If it is possible do I need a different type of transistor? I use common anode displays and currently I have the 3906 transistors.
yeah.gifturn.gifjumpin.gifhop.gifburger.giffreaked.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If it Stinks it is Chemistry
If it is Mushy its Biology
If it doesn't work its Physics

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-03-21 13:58
    The 74HC595 outputs are very similar to the Stamp's outputs. Maximum current for any one pin is 20mA and maximum overall current for the 8 pins is 70mA according to the datasheet. One thing to watch out for is the initial condition. There's a Master Reset pin which sets all the outputs to LOW which will turn on the 2N3906 transistors. This is different from the Stamp's initial pin states (which is input mode). If you don't use Master Reset, some pins will start in LOW state and some will have HIGH state.
  • MRMR Posts: 46
    edited 2009-03-21 14:31
    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If it Stinks it is Chemistry
    If it is Mushy its Biology
    If it doesn't work its Physics
  • ForrestForrest Posts: 1,341
    edited 2009-03-21 14:39
    FYI there's a circuit example and code on how to operate 8 LED's from a 74HC595 in the Stampworks Manual available here www.parallax.com/Portals/0/Downloads/docs/books/sw/Web-SW-v2.1.pdf
  • MRMR Posts: 46
    edited 2009-03-21 14:44
    eyes.gif Thanks Mike, Forrest. I will let you know how it turns out.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If it Stinks it is Chemistry
    If it Gooey its Biology
    If it doesn't work its Physics

    They say if you Play a Microsoft CD backwards you can hear satanic messages, that's nothing because if you play it forward it installs Vista!

    I didn't Fail 10,000 times, I simply found 10,000 ways that didn't work. -Thomas Edison

    640 KB is all the memory anyone will every need. -Bill Gates in a 1980's interview talking about Windows.

    In 1969, the crew of Apollo 11 landed on the moon. A standard calculator has more computing power than the Apollo 11 computer, yet it takes almost 3 Gigs to Run Vista. Something is wrong here!
  • hmlittle59hmlittle59 Posts: 404
    edited 2009-03-22 14:44
    I'm starting to use this part now to drive RED/GREEN LEDs, and this information has been very helpful. thanks

    thanks for the info

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I HAVE LEARN SO MUCH...BUT STILL KNOW SO LITTLE!!!

    hmlittle59
  • Craig EidCraig Eid Posts: 106
    edited 2009-03-22 19:33
    Texas Instruments has a high power 8 bit shift register - TPIC6595 - with onboard drive transistors. It is a low side drive part that can handle 250mA per pin, steady state, priced at $2.50 at Digikey. See the·attached datasheet for more details.

    http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=296-1954-5-ND

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ························ Craig Eid


    ··········· Triad Research and Development
    Electical Engineering Design and Consulting Services

    ··················· www.TriadRD.com

    Post Edited (Craig Eid) : 3/22/2009 7:38:31 PM GMT
Sign In or Register to comment.