74HC595 is a serial to parallel converter.
Although this is old tec now, I have had a couple of pms asking if I could post a flowchart driving 74HC595, so here it is
I will create a circuit diagram if the interest is there os just let me know.
Hopefully all required information has been added to flowchart.
I have tested this on hardware and 7seg display was incrementing by 1 every second as expected.
In simplified terms Referring to the diagram the serial to parallel chip works as follows:
1st bit of serial data sets or clears at pin 14
then Clock (pin 11) is toggled
2nd bit of serial data sets or clears at pin 14
Clock (pin 11) is toggled again.
The above is repeated until all 8 bits of serial data have controlled pin 14
Now the serial data has to be is transferred to pins the parallel pins :
15(Q0 which will be the same state as 1st bit of serial data connected to seg a of 7seg)
1 (Q1 which will be the same state as 2nd bit of serial data connected to seg b of 7seg)
2 (Q2 which will be the same state as 3rd bit of serial data seg c of 7seg) etc.
To transfer the store serial data to all the parallel pins (Latch data to the pins)
just involves toggling (or clocking is another word) pin 12 just once!
Now all the serial data is latched to the parallel pins, andwill remain there until power is removed or the whole process is started all over again with another lot of serial data to be converted into parallel.
Martin
Using 74HC595 to control 7seg LED
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Using 74HC595 to control 7seg LED
- Attachments
-
- 74HC595 V2.fcf
- (18.99 KiB) Downloaded 1238 times
Martin
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
Re: Using 74HC595 to control 7seg LED
Hi Martin!
Thank' s for Sharing. I am very interrest in a circurit.
Best regard
Jorgen
Thank' s for Sharing. I am very interrest in a circurit.
Best regard
Jorgen
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Using 74HC595 to control 7seg LED
Hi Jorgen your welcome.jgu1 wrote:Hi Martin!
Thank' s for Sharing. I am very interrest in a circurit.
Best regard
Jorgen
For you and anyone else interested, here is the circuit: Note: I'm sure other serial to parallel devices should also work, but not tested any others yet.
If anyone does try a different version, would you mind posting about it for others to read.
Thank you.
Martin
Martin
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
-
- Posts: 32
- Joined: Thu Nov 15, 2012 7:21 am
- Has thanked: 7 times
- Been thanked: 7 times
Re: Using 74HC595 to control 7seg LED
Hello guys,
i know this is bit of an old thread now,
but i was really wondering if it is possible to connect more than one of these in series to have like 4 or 8 or 16 and each one to display a different number.
Thank you in advance,
Best,
Tom
i know this is bit of an old thread now,
but i was really wondering if it is possible to connect more than one of these in series to have like 4 or 8 or 16 and each one to display a different number.
Thank you in advance,
Best,
Tom
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
Re: Using 74HC595 to control 7seg LED
You should check out the MAX7219 if you want to have multiple 7 seg displays.
- Nicolas
- Nicolas
-
- Posts: 32
- Joined: Thu Nov 15, 2012 7:21 am
- Has thanked: 7 times
- Been thanked: 7 times
Re: Using 74HC595 to control 7seg LED
Dont take my answer as an insult but your reply has nothing to do with what i asked for.
I am aware of the MAX7219.
What i want to know is what modifications the posted flowchart requires so as to have multiple 595's daisy chained.
Best,
Tom
I am aware of the MAX7219.
What i want to know is what modifications the posted flowchart requires so as to have multiple 595's daisy chained.
Best,
Tom
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
Re: Using 74HC595 to control 7seg LED
So, you want to make your program and your circuit board more complex ? I don't see the point in that.
I'm sure you can learn how medelec's program works, and by reading the datasheet of the 74HC595, you should be able to make your own DisplayNumber function which would allow you to write on multiple 7 segment displays.
- Nicolas
You didn't ask that in your previous post.Tom Stefanou wrote:What i want to know is what modifications the posted flowchart requires so as to have multiple 595's daisy chained.
I'm sure you can learn how medelec's program works, and by reading the datasheet of the 74HC595, you should be able to make your own DisplayNumber function which would allow you to write on multiple 7 segment displays.
- Nicolas
-
- Posts: 32
- Joined: Thu Nov 15, 2012 7:21 am
- Has thanked: 7 times
- Been thanked: 7 times
Re: Using 74HC595 to control 7seg LED
Dear Nicolas,
Maybe it was not so clear, but i asked...
i was really wondering if it is possible to connect more than one of these in series to have like 4 or 8 or 16 and each one to display a different number.
Where does this conclude?
Nicolas, if what medelec had posted was not on the current post i would understand you suggesting me to finding it, reading a pdf then and see how can i make the changes.
Now, that his code is already here, why are you suggesting that?
Before asking my question apparently i tried to do it on my own.
Finally, you might not find a reason to make the board more complex but on the other hand, for me asking there is one.
Again, thank you for your advices.
Tom
Maybe it was not so clear, but i asked...
i was really wondering if it is possible to connect more than one of these in series to have like 4 or 8 or 16 and each one to display a different number.
Where does this conclude?
Nicolas, if what medelec had posted was not on the current post i would understand you suggesting me to finding it, reading a pdf then and see how can i make the changes.
Now, that his code is already here, why are you suggesting that?
Before asking my question apparently i tried to do it on my own.
Finally, you might not find a reason to make the board more complex but on the other hand, for me asking there is one.
Again, thank you for your advices.
Tom