74hc595 help?


Closed Thread
Results 1 to 4 of 4

Thread: 74hc595 help?

  1. #1
    Join Date
    Oct 2011
    Posts
    13

    Default 74hc595 help?

    HI FOR ALL...I WANT TO USE 74HC595 AND PIC16F628A TO SHOW NUMBER ON TOW 7 SEGMENT ...CAN ANY ONE HELP ME TO WRITE THE CODE TO SEND DATA BY 74HC595 TO 7 SEGMENT...THANKS FOR ALL...

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: 74hc595 help?

    The search box finds many, many results. One of which is here: http://www.picbasic.co.uk/forum/cont...gment-Displays
    http://www.scalerobotics.com

  3. #3
    Join Date
    Feb 2013
    Posts
    1,122


    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.

  4. #4
    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