Shift Register 74HC595

Moderator: Benj

Post Reply
jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Shift Register 74HC595

Post by jgu1 »

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 :lol: but compared with the TM1637 its behavior is a weird :wink:

Br Jorgen
Attachments
74HC595.fcfx
(13.96 KiB) Downloaded 219 times

User avatar
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

Post by Benj »

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

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Shift Register 74HC595

Post by jgu1 »

Hi Ben!

Yes I see now that changing the amount of 7 segment on panel work, also in "real world". :D

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.

User avatar
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

Post by Benj »

Ooh excellent, thanks Jorgen much appreciated :D

Yes that address is correct thanks.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Shift Register 74HC595

Post by jgu1 »

Hi Ben!

Send a display to this monday. Please let me know when you receeive it. :D

Br jorgen

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Shift Register 74HC595

Post by jgu1 »

Hi Again Ben!

I'm surprised you haven't received the display yet. So far the UK is not from Denmark :lol:. 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.

User avatar
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

Post by Benj »

Thanks Jorgen,

No sign of it yet but things can get held up in customs I suppose, especially now :roll:

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Shift Register 74HC595

Post by jgu1 »

Oh yaeh, forgot that, make a Brixin again :lol:

Jorgen

User avatar
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

Post by Benj »

Hi Jorgen,

It arrived today, many thanks I'll have a go at firing it up tomorrow.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Shift Register 74HC595

Post by jgu1 »

Very nice Ben, Thank you.

Br Jorgen

User avatar
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

Post by Benj »

Got somewhere with this now and seems to be better reflecting the sim now. I'll do some more testing using your example.
20200218_225943.jpg
20200218_225943.jpg (50.41 KiB) Viewed 6084 times
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 :D

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Shift Register 74HC595

Post by jgu1 »

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. :D

You hear.

Br Jorgen.

User avatar
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

Post by Benj »

Thanks Jorgen, Should be there for you now.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Shift Register 74HC595

Post by jgu1 »

Hi Ben!

I have now test the update component thank´s. I create a new testprogram. The component macro Digit and Digits work perfect :D

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 205 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Shift Register 74HC595

Post by jgu1 »

Hi Ben

I dare to ask you. Kindly :wink: 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. :D

Jorgen

User avatar
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

Post by Benj »

Hi Jorgen,

Just investigating for you now, that's a nice example to show the problem :D

Edit: should be all fixed for you now, thanks for the nudge :D

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Shift Register 74HC595

Post by jgu1 »

Ben, Flowcode and you are amazing, :lol:

Just testet, work perfect, so nice, thank you :D

Have a nice weekend

Br Jorgen...………...

Post Reply