Shop OBEX P1 Docs P2 Docs Learn Events
Shift Register not working — Parallax Forums

Shift Register not working

tpw_mantpw_man Posts: 276
edited 2008-01-28 02:08 in Propeller 1
First of all, I am new to the Parallax Forums. smilewinkgrin.gif My problem is that I am trying to use a 74LS164 shift register for a scrolling LED display. It does not work with the propellor, but it works fine with a BS2. I suspect it is a logic level problem, but I am not sure. Does anybody know what to do?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1010, so be surprised!

Post Edited (tpw_man) : 1/27/2008 11:37:24 PM GMT

Comments

  • LeonLeon Posts: 7,620
    edited 2008-01-27 20:34
    Presumably the '164 is powered from 5V. You could try using pullup resistors to 5V on the inputs.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 1/27/2008 8:40:42 PM GMT
  • deSilvadeSilva Posts: 2,967
    edited 2008-01-27 20:37
    I don't know what an LC is?!
    The 74 HC nnn will work fine
    The 74 LS nnn will most likely not.
  • tpw_mantpw_man Posts: 276
    edited 2008-01-27 20:40
    Thanks for the quick reply!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1010, so be surprised!

    Post Edited (tpw_man) : 1/27/2008 9:03:19 PM GMT
  • tpw_mantpw_man Posts: 276
    edited 2008-01-27 20:59
    @deSilva
    It is 'LS', not 'LC'.

    @Leon
    470 ohm resistors don't work. Is there a suggested value that would?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1010, so be surprised!
  • deSilvadeSilva Posts: 2,967
    edited 2008-01-27 21:00
    Then it will not work.. take a HC!
    Edit:
    But I should ask again: What are you doing in the first place? Which supply voltage? Please post a circuit sketch. Leon is right that under certain circumstances you can harm the Propeller when connecting a 5 V output to a Propeller input....

    Post Edited (deSilva) : 1/27/2008 9:09:53 PM GMT
  • tpw_mantpw_man Posts: 276
    edited 2008-01-27 21:25
    My problem is that I am trying to use a 74LS164 serial in/parallel out shift register for a scrolling LED display. It does not work with the propellor, but it works fine with a BS2. The circuits are connected to 5v.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1010, so be surprised!

    Post Edited (tpw_man) : 1/27/2008 11:37:51 PM GMT
    2550 x 3300 - 492K
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-01-27 21:38
    If you're powering the shift register from 3.3V, a 75HC164 will work fine. If you're powering it from 5V, use a 75HCT164 instead.

    BTW, if you're going to post a schematic, please post one that's halfway legible. We're here to help, but runes and hieroglyphics are somewhat out of our realm. smile.gif

    -Phil
  • tpw_mantpw_man Posts: 276
    edited 2008-01-27 22:11
    Is the schematic better? smile.gif I did it in a schematic editing program rather than drawing it. Can I confirm that I need some sort of 3.3v shift register to interface with the propellor? Anyway, thanks for all the help! smilewinkgrin.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1010, so be surprised!

    Post Edited (tpw_man) : 1/27/2008 10:58:09 PM GMT
    814 x 454 - 106K
  • deSilvadeSilva Posts: 2,967
    edited 2008-01-27 23:10
    I shall try again:
    (a) There is no such thing as a 74LC164. Please be more precise.
    (b) When you connect this chip to 5 V supply voltage you can take a 74LS164 (but you should get accustomed to the HC chips which are way more practical with the propeller).
    (c) The OUTPUT from the propeller can control a 74LS; there is no need for a level shifter.
    (d) If - though you do not with that application! - but IF you connect an output from an LS chip to a Propeller input you should include a 1k to 10k resistor to protect the Propeller inputs.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-01-28 01:03
    The datasheet for the 74HC164 states that its operating voltage range is 2-6VDC.· As you lower the voltage you decrease the maximum operating frequency, too, which is likely OK for your purpose.
  • OzStampOzStamp Posts: 377
    edited 2008-01-28 01:24
    Can anybody remember the Forrest M Simms schematics

    His Tandy digital trainer books etc etc were awesome ..
    They were available here in OZ at Tandy..20 years ago alway's loved that (HIS) style easy to read..

    A bit of nostalgy...
    Wander if Forrest M Simms is still alive...?

    cheers Ron.. Mel OZ
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-01-28 01:58
  • deSilvadeSilva Posts: 2,967
    edited 2008-01-28 02:08
    PJ Allen said...
    As you lower the voltage you decrease the maximum operating frequency, too, which is likely OK for your purpose.
    .. and it's also O.K. for the Propeller. @3v3 a HC chip will run with 30 MHz which is generally faster than an LS chip @ 5V. Whith some effort you can shift out one bit each 50 ns, which comes to 10 or 20 Mhz depending on how you count smile.gif
Sign In or Register to comment.