FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
sonic11
Posts: 35
Joined: Tue Jan 21, 2014 10:04 pm
Has thanked: 7 times
Been thanked: 1 time

FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?

Post by sonic11 »

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

medelec35
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 ?

Post by medelec35 »

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?
Martin

sonic11
Posts: 35
Joined: Tue Jan 21, 2014 10:04 pm
Has thanked: 7 times
Been thanked: 1 time

Re: FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?

Post by sonic11 »

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)

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: FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?

Post by Benj »

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,
COUNTER MOD_v6.fcfx
(10.31 KiB) Downloaded 308 times

sonic11
Posts: 35
Joined: Tue Jan 21, 2014 10:04 pm
Has thanked: 7 times
Been thanked: 1 time

Re: FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?

Post by sonic11 »

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

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: FLOW CODE V6.4 7 SEGMENT 4DIGIT BUG ?

Post by Benj »

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.

Post Reply