Dear all..
thank u for u r support on my previous questions..
My application is ON/off a RELAY for 60 times by making one pin of the micro controller is high/low and counting the cycles(ON/OFF)..
In this condition while perform the task power is off..after power ON i want to continue from before the power is off..
for EXAMPLE
At 25 cycle power is off ..After power ON i want to continue from 25cyycle on-wards..
Now i am using PIC12F675 or 16F73 MICRO controller ..
is this possible ..(with using external supply for micro controller)
if it is possible...
please help meee
Using EEPROM is the simple and best way for your application.
Just update the EEPROM after each cycle.
While powering on read the EEPROM and decide your pending cycles
Mostly all microcontroller has built in EEPROM
But if your microntroller doesn't have one in built, then you have to use external chip.
U have to utilize either I2C or SPI peripheral of your microntroller to communicate with the EEPROM chip
Not a big task.
If last state doesn't change frequently then last state counter can be saved in eeprom and after device reset the state machine counter can be read and based on it the required code can be executed.