74hc595 help?


Closed Thread
Results 1 to 4 of 4

Thread: 74hc595 help?

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,141


    Did you find this post helpful? Yes | No

    Default Re: 74hc595 help?

    In fact, I have same question, and either I'm not searching correctly, or all code returned is too complicated, has many side functions, so it is hard to "cut out" necessary part of the code.

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 74hc595 help?

    This is for a non-latching shift register which is fast enough for an LED display,
    but for latching shift register like 74595 you only have to pull the latch pin at the end right before the return.
    Code:
    byte cnt’
    byte buff’
    byte send byte’ byte to send to port
    
    
    shiftbyte:
    for cnt = 0 TO 7
    buff = sendbyte >> cnt;
    SERCLK_PIN = 0;
    SERDAT_PIN = buff.bit0;
    SERCLK_PIN = 1;
    NEXT cnt
    return

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts