Subtract a number of the EEPROM

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
electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Subtract a number of the EEPROM

Post by electron67 »

Hello, Merry Christmas for all and have a good year 2018 !!! :D

Could someone help me, what is wrong with the program; I'm taking Martin's program to record numbers from 1 to 900 in the EEPROM of the pic, I think is simple, but I have something wrong, first I have a delay of 2 minutes to turn on A2, then a timer keeps counting to 900 , I think that by disconnecting the pic from the power source, the number found in the timer will be recorded in the EEPROM, when reconnecting the pic, the EEPROM will be read and subtract 2, and when the count reaches that value go off A2.

Thanks
Enrique
Attachments
RET887.fcf
Flowchart
(28.52 KiB) Downloaded 201 times

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: Subtract a number of the EEPROM

Post by medelec35 »

Hi Enrique,
Thank you & merry Christmas to you too.
You first need a routine to check when power source as been removed.
This post may be of some help?

Martin
Martin

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Subtract a number of the EEPROM

Post by electron67 »

Hi Martin

Thank You very much for the answer, with the diode and capacitor works as a small battery.

Enrique

Post Reply