welcome
Refer the following problem
I Realizar a counter with 4 digits in flow v6 code works normal flow simulation code v6 but physical installation does not work, nor in Isis
FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?
Moderator: Benj
FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?
- Attachments
-
- COUNTER MOD_v6.hex
- (5.15 KiB) Downloaded 218 times
-
- COUNTER.isis.rar
- (15.49 KiB) Downloaded 236 times
-
- COUNTER MOD_v6.fcfx
- (10.83 KiB) Downloaded 259 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?
Can you explain what is different with your hardware when comparing to simulation.
Also a full circuit diagram and a datasheet of 7seg display will help.
If I get time I will put a flowchart together and test a common cathode Quad 7seg display.
Are you using a common anode quad 7seg?
Also a full circuit diagram and a datasheet of 7seg display will help.
If I get time I will put a flowchart together and test a common cathode Quad 7seg display.
Are you using a common anode quad 7seg?
Martin
Re: FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?
hello Medelec
I rewrote the code flow V5.4 and the program works ok with a Displays common anode, the same program written in v6.4 does not work a display common anode or common cathode
There is no question of wrong installation, the display turns chaotic prints not digits
Wiring diagram can be found in the file (counter Isis Proteus tab)
I rewrote the code flow V5.4 and the program works ok with a Displays common anode, the same program written in v6.4 does not work a display common anode or common cathode
There is no question of wrong installation, the display turns chaotic prints not digits
Wiring diagram can be found in the file (counter Isis Proteus tab)
- 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: FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?
Hello,
I have had a look through your program and it would appear it's the IOC interrupt that's causing the problems as this will fire on any change to the input or output on the upper 4 PortB pins.
I have hopefully fixed the issue for you here,
I have had a look through your program and it would appear it's the IOC interrupt that's causing the problems as this will fire on any change to the input or output on the upper 4 PortB pins.
I have hopefully fixed the issue for you here,
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
Re: FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?
hello
in this situation what to do, how to use interrupt on port B?
In V5.4 works perfectly, so it is a bug? if yes how to solve?
I am interested to use interrupt on prot B
in this situation what to do, how to use interrupt on port B?
In V5.4 works perfectly, so it is a bug? if yes how to solve?
I am interested to use interrupt on prot B
- 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: FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?
Hello,
In Flowcode v5 we would have used a port and a mask to allow us to write to the PortB register using a single instruction.
In v6 we have taken a different approach and used pins to make things more universally simple to work with and configurable, however this will likely end up with two writes to PortB, one for each pin that changes state. This then breaks the state machine you had so I re-wrote the program in a way where the state machine will always work reliably.
In Flowcode v5 we would have used a port and a mask to allow us to write to the PortB register using a single instruction.
In v6 we have taken a different approach and used pins to make things more universally simple to work with and configurable, however this will likely end up with two writes to PortB, one for each pin that changes state. This then breaks the state machine you had so I re-wrote the program in a way where the state machine will always work reliably.
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