For present Time I am working on a normal MEGA board
Is it possible to keep the last function as it is there after getting turned of the device ?
Or say
after getting all the indicators display motors relay deactivated is it possible to store the last operation
Suppose i designed a counter and started counting and when it comes to 5 or 6 , suddenly power goes off and I want to see again the 5th or 6th count after the power is retrieved
I use FRAM and keep several copies so I can detect a bad write. FRAM operates at read/write speeds with trillions of R/W cycles. There is no delay while it is being written as there is in EEPROM.
You can use the EEPROM in the processor. THere is an example in the Arduino examples directory (didn't we have this discussion before )
You would have to write to the EEPROM every time the state had changed so you risk "wearing out" the EEPROM. I suggest you get it going, saving your data at EEPROM address 0. Once it works you can look at ways to address EEPROM wear out.
Remember with all things Arduino ..... baby steps.
Ya we discussed . . but actually a bit different function I need to have here !!!
Its like I want to make the Arduino unit ON for 24x7 and want to switch OFF rest of the peripherals like LCD Display units Indicators relays motors blah blah things
This is just like the PC mother board 3V Cmos battery do for the setup boot options Clock Time Date etc etc etc etc !!