Hello, Merry Christmas for all and have a good year 2018 !!!
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
Subtract a number of the EEPROM
Moderator: Benj
-
- Posts: 311
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 104 times
- Been thanked: 47 times
- Contact:
-
- 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
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
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
-
- 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
Hi Martin
Thank You very much for the answer, with the diode and capacitor works as a small battery.
Enrique
Thank You very much for the answer, with the diode and capacitor works as a small battery.
Enrique