Display Using Cascaded 74hc595


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161

    Default Display Using Cascaded 74hc595

    Hello friends,

    I am planning to build a 3 digit (Seven Segment - 4 inch) temperature display using 12F675 and cascaded 74HC595.

    I am familiar with the ADC part on the 12F675, but not too sure on the display part.

    Can anyone help me with some code example for displaying result of my ADC using HC595 or similar.

    Thank you.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    depending on how you'll connect these HC595. Let's say you connect them in cascade, you can use SHIFTOUT three time, one for each digit. that's the easyest way i can see.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default

    Thank you Mister_e

    Do you have any code example for the Shiftout.

    I attach a schematic of the display which I am planning to use.
    Attached Images Attached Images

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    here's a pseudo code

    disable latch
    shiftout ser,clk,mode,[digit2,digit1,digit0]
    enable latch

    looks simple hey!!!

    to test it simply shift three different value out and see if you get the good results at the end. after that you'll have to produce your own table to give to a specific digit value the according output pattern to your 7 segments. Can use internal EEPROM or an ARRAY to store them and refer to it.

    let's say that (they're not the truth here)
    digit=0 OutputTo7Seg=$05
    digit=1 OutputTo7Seg=$03
    digit=2 OutputTo7Seg=$0A
    digit=3 OutputTo7Seg=$06

    store your pattern to Internal EEPROM

    DATA @0,$05,$03,$0A,$06

    after that when you need to convert your digit into 7 segment representation:

    read FirstDigit,digit1 'where FirstDigit is the numeric value to be converted into 7 segment representation

    Shiftout ser,clk,mode,[digit1] 'send to 7 segments display.


    that's a really rough code but suppose to be enough to start...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default

    Thank you,

    Let me try it and get back to you on the code , I shall keep you and others interested , posted on it.

    regards

Similar Threads

  1. Hdsp 21xx display
    By Original in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th June 2012, 21:07
  2. Replies: 2
    Last Post: - 14th July 2008, 23:11
  3. DS1820 display with 7-seg 4 digits
    By chai98a in forum Code Examples
    Replies: 12
    Last Post: - 10th April 2008, 14:12
  4. Replies: 14
    Last Post: - 26th September 2007, 06:41
  5. graphics display
    By adlinsystems in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th June 2004, 13:53

Members who have read this thread : 1

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

Posting Permissions

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