eeprom check

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
siliconchip
Posts: 392
Joined: Wed Jan 05, 2011 11:24 am
Has thanked: 101 times
Been thanked: 24 times
Contact:

eeprom check

Post by siliconchip »

hello,

I want to read the first 5 address's of eeprom then display the 3 highest values in order, I have got as far as reading the address's but im stumped as to how to put the 3 highest values in order and display, any pointers in the right direction would be appreciated i have added a flowchart of what ive got so far :oops:
Attachments
eeprom check.fcf
(9 KiB) Downloaded 319 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: eeprom check

Post by Benj »

Hello,

I think you need to use something like a bubble sort algorithm. I believe Martin wrote one a while ago you should be able to use.

http://www.matrixtsl.com/mmforums/viewt ... 73&#p22074

More discussions on it here.

http://www.matrixtsl.com/mmforums/viewt ... 14&p=56230

siliconchip
Posts: 392
Joined: Wed Jan 05, 2011 11:24 am
Has thanked: 101 times
Been thanked: 24 times
Contact:

Re: eeprom check

Post by siliconchip »

hi benj thanks for the reply the links you added involved me on an earlier project and I have already tried to add some of this flowcode to my problem but im going round in circles and cant quite get my head around the bubble sort I will keep trying

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: eeprom check

Post by medelec35 »

Hi Bob,
Attached flwochart should make things eaiser for you. :)

Martin
Attachments
eeprom check v2.fcf
(15.14 KiB) Downloaded 345 times
Martin

siliconchip
Posts: 392
Joined: Wed Jan 05, 2011 11:24 am
Has thanked: 101 times
Been thanked: 24 times
Contact:

Re: eeprom check

Post by siliconchip »

hi martin
as always many thanks I was taken aback a bit as there isn't any of my original code which from a learning process is a blow BUT hats off to you I now have some thing to work on and hopefully by going through it can get a better understanding thanks :D

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: eeprom check

Post by medelec35 »

Your welcome.
siliconchip wrote: I was taken aback a bit as there isn't any of my original code which from a learning process is a blow
There are different ways to achieve the same results.
Just because you was trying a different way to me and I changed it, does not necessary mean that your method was wrong.

Martin
Martin

Post Reply