Shift Register 74HC595
Moderator: Benj
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Shift Register 74HC595
Hi Benj!
As promised.
Sorry,I think something is wrong. I create a little testprogram with a counter start from 0 and count up to 9999
1. In panel, and properties I choose from 1 up to 6 I no change in the amount of 7digit in panel, maybe it should be?
2. I have 4 x 7seg. digit. In simulation, if I choose 4 x 7 digit I only see two digit. Have to change it to 6 x7 before I see 4 x7.
3. No matter what order I set the componentmacro for ones, tens, hundred and thausen, in simulation it start always counting from right to left (ok)but in real world the counter start with the lowest significant value from left.
4. You see in the start of my program I use the "segment" and set it to 99 is an square in the top, ok in simulation but the segment in the middle (G) is missing in real world.
5. You see in the testmacro "Value" seemed to work ok in realworld, but opposite in simulation.
Maybe I am doing something wrong, in that case, I apologize but compared with the TM1637 its behavior is a weird
Br Jorgen
As promised.
Sorry,I think something is wrong. I create a little testprogram with a counter start from 0 and count up to 9999
1. In panel, and properties I choose from 1 up to 6 I no change in the amount of 7digit in panel, maybe it should be?
2. I have 4 x 7seg. digit. In simulation, if I choose 4 x 7 digit I only see two digit. Have to change it to 6 x7 before I see 4 x7.
3. No matter what order I set the componentmacro for ones, tens, hundred and thausen, in simulation it start always counting from right to left (ok)but in real world the counter start with the lowest significant value from left.
4. You see in the start of my program I use the "segment" and set it to 99 is an square in the top, ok in simulation but the segment in the middle (G) is missing in real world.
5. You see in the testmacro "Value" seemed to work ok in realworld, but opposite in simulation.
Maybe I am doing something wrong, in that case, I apologize but compared with the TM1637 its behavior is a weird
Br Jorgen
- Attachments
-
- 74HC595.fcfx
- (13.96 KiB) Downloaded 228 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Shift Register 74HC595
Hi Jorgen,
I beleive I have now fixed the problems that you and Martin have reported. The one missing is the missing G segment on hardware. Can you test the DP segment and see if the G and DP are reversed on your hardware.
If they are then I might have to create some kind of a mapping function to allow the segments to be laid out in a different order on the shift register.
I am currently assuming the connections are like this, which on existing hardware might not be the case.
QA = SegmentA
QB = SegmentB
QC = SegmentC
QD = SegmentD
QE = SegmentE
QF = SegmentF
QG = SegmentG
QH = SegmentDP
I beleive I have now fixed the problems that you and Martin have reported. The one missing is the missing G segment on hardware. Can you test the DP segment and see if the G and DP are reversed on your hardware.
If they are then I might have to create some kind of a mapping function to allow the segments to be laid out in a different order on the shift register.
I am currently assuming the connections are like this, which on existing hardware might not be the case.
QA = SegmentA
QB = SegmentB
QC = SegmentC
QD = SegmentD
QE = SegmentE
QF = SegmentF
QG = SegmentG
QH = SegmentDP
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Shift Register 74HC595
Hi Ben!
Yes I see now that changing the amount of 7 segment on panel work, also in "real world".
The DP has no influence on segment G. but the position of DP is not correct according number in componentmacro.
THe other thing I mentioned is still the same.
Ben, Monday I will send you a display, I think it will be easyer for troubleshooting when you have one for testing. And keep it.
I assume the adresses is:
Ben Rowland
Matrix Technology
The Factory
33 Gibbet Street
Halifax
West Yorkshire
HX1 5BA
United Kingdom
Hope this is ok.
Br Jorgen.
Yes I see now that changing the amount of 7 segment on panel work, also in "real world".
The DP has no influence on segment G. but the position of DP is not correct according number in componentmacro.
THe other thing I mentioned is still the same.
Ben, Monday I will send you a display, I think it will be easyer for troubleshooting when you have one for testing. And keep it.
I assume the adresses is:
Ben Rowland
Matrix Technology
The Factory
33 Gibbet Street
Halifax
West Yorkshire
HX1 5BA
United Kingdom
Hope this is ok.
Br Jorgen.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Shift Register 74HC595
Ooh excellent, thanks Jorgen much appreciated
Yes that address is correct thanks.
Yes that address is correct thanks.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Shift Register 74HC595
Hi Ben!
Send a display to this monday. Please let me know when you receeive it.
Br jorgen
Send a display to this monday. Please let me know when you receeive it.
Br jorgen
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Shift Register 74HC595
Hi Again Ben!
I'm surprised you haven't received the display yet. So far the UK is not from Denmark . If you did not receive it this week, I will send you a new one the end of this week, and this time it will be track and trace included.
Br jorgen.
I'm surprised you haven't received the display yet. So far the UK is not from Denmark . If you did not receive it this week, I will send you a new one the end of this week, and this time it will be track and trace included.
Br jorgen.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Shift Register 74HC595
Thanks Jorgen,
No sign of it yet but things can get held up in customs I suppose, especially now
No sign of it yet but things can get held up in customs I suppose, especially now
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Shift Register 74HC595
Hi Jorgen,
It arrived today, many thanks I'll have a go at firing it up tomorrow.
It arrived today, many thanks I'll have a go at firing it up tomorrow.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Shift Register 74HC595
Got somewhere with this now and seems to be better reflecting the sim now. I'll do some more testing using your example.
I'll get the latest component uploaded for you tomorrow. Many thanks for sending in the hardware.
Also gave me a chance to test out my new digital output SCADA slave injector, seems to be working well
I'll get the latest component uploaded for you tomorrow. Many thanks for sending in the hardware.
Also gave me a chance to test out my new digital output SCADA slave injector, seems to be working well
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Shift Register 74HC595
Wow, Ben, look good. It`s me who thank`s. Look forward to test it later today. Nice you can use the display for other purpose too.
You hear.
Br Jorgen.
You hear.
Br Jorgen.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Shift Register 74HC595
Thanks Jorgen, Should be there for you now.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Shift Register 74HC595
Hi Ben!
I have now test the update component thank´s. I create a new testprogram. The component macro Digit and Digits work perfect
But not the "Show segment". It work fine in simulation but not in real world
Try to look in simulation INIT and Show_Temp macro in simulation, perfect, but in mine display, it look like some timing not is correct.
Br Jorgen
I have now test the update component thank´s. I create a new testprogram. The component macro Digit and Digits work perfect
But not the "Show segment". It work fine in simulation but not in real world
Try to look in simulation INIT and Show_Temp macro in simulation, perfect, but in mine display, it look like some timing not is correct.
Br Jorgen
- Attachments
-
- NewTest.fcfx
- (22.12 KiB) Downloaded 217 times
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Shift Register 74HC595
Hi Ben
I dare to ask you. Kindly I know you are a busy guy, and No press, maybe you already work on it. But Do you mean that the component work As it should or is it my display not working correct, because my display is Strange when i use the “ show segment”. In simulation ok, But not in Real World.
Thank’s in advance.
Jorgen
I dare to ask you. Kindly I know you are a busy guy, and No press, maybe you already work on it. But Do you mean that the component work As it should or is it my display not working correct, because my display is Strange when i use the “ show segment”. In simulation ok, But not in Real World.
Thank’s in advance.
Jorgen
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Shift Register 74HC595
Hi Jorgen,
Just investigating for you now, that's a nice example to show the problem
Edit: should be all fixed for you now, thanks for the nudge
Just investigating for you now, that's a nice example to show the problem
Edit: should be all fixed for you now, thanks for the nudge
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Shift Register 74HC595
Ben, Flowcode and you are amazing,
Just testet, work perfect, so nice, thank you
Have a nice weekend
Br Jorgen...………...
Just testet, work perfect, so nice, thank you
Have a nice weekend
Br Jorgen...………...