Shop OBEX P1 Docs P2 Docs Learn Events
Question concerning the 74HC165 parallel-to-serial shift register...ANSWERED/CL — Parallax Forums

Question concerning the 74HC165 parallel-to-serial shift register...ANSWERED/CL

davejamesdavejames Posts: 4,047
edited 2010-03-06 16:28 in General Discussion
Hi All,

I'm a bit confused whether the 74HC165 parallel-to-serial shift register (Parallax #602-00010) requires "the first data bit ready before the first clock pulse (PRE) or after the first clock pulse (POST)".

I can't find anything written in the 165's data sheet, and the timing diagrams are so cluttered that my eyes imploded.

Anybody know?


Thanks much,

DJ

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


Post Edited (davejames) : 3/6/2010 4:27:57 PM GMT

Comments

  • kf4ixmkf4ixm Posts: 529
    edited 2010-03-05 23:11
    it looks like the clock pulse is first, then the first data bit with the next clock pulse.

    http://www.nxp.com/documents/data_sheet/74HC_HCT165.pdf
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2010-03-05 23:25
    DJ,

    Example code for both the 74HC595 and the 74HC165 can be found on the Stamp Works product page. You can even download the manual for free and it completely explains the operation. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2010-03-05 23:26
    The shift registers in the 74HC165 (like the 74HC595) are positive edge triggered. They shift when the clock pulse goes from low to high. Whether this is pre- or post- depends on the polarity of the clock pulse. If the resting state of the clock pulse is low, then it's triggered by the leading edge of the pulse. If the resting state of the clock pulse is high, then it's triggered by the trailing edge of the clock pulse. The data has to be stable prior to the low to high transition of the pulse.
  • davejamesdavejames Posts: 4,047
    edited 2010-03-05 23:56
    All - thank you.

    I'm calling this request closed.

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • davejamesdavejames Posts: 4,047
    edited 2010-03-06 16:28
    Hi All,

    Utilized the Stamp Works example suggested by Mr. Savage, and, after wiring things correctly (duh!), I'm able to shift in 8 bits of data and display them in the debug window.

    Woo-hoo!

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sign In or Register to comment.