Hello every one,
I have designed a mains power control system for home use around an AT89C51; it's working without any problem as long as mains power contiues. In case of a power failure 'last condition' never returns - as there is no
non-volatile memory.
So I decided to use one AT24C02 to memorize the 'last condition'. With every switching manipulation AT24C02 is written to. After a power failure when it restores again the AT24C02 is read and 'last condition' is restored too acordingly.
Now the problem is: as I go through the datasheets of all such I2C serial memories there is a memory reset in that of AT24C02 which is not present in others. All 24C02 s' are pin to pin replaceable, and as I have decided to use it for a relatively slow SCL (100 KHz), any 24C02 can be substituted. Is memory reset an utter requirement in bus master's firmware? If so please help me with its routine. Flowchart will do.
Please Help, I am new to I2C device.
Thanks.
I have designed a mains power control system for home use around an AT89C51; it's working without any problem as long as mains power contiues. In case of a power failure 'last condition' never returns - as there is no
non-volatile memory.
So I decided to use one AT24C02 to memorize the 'last condition'. With every switching manipulation AT24C02 is written to. After a power failure when it restores again the AT24C02 is read and 'last condition' is restored too acordingly.
Now the problem is: as I go through the datasheets of all such I2C serial memories there is a memory reset in that of AT24C02 which is not present in others. All 24C02 s' are pin to pin replaceable, and as I have decided to use it for a relatively slow SCL (100 KHz), any 24C02 can be substituted. Is memory reset an utter requirement in bus master's firmware? If so please help me with its routine. Flowchart will do.
Please Help, I am new to I2C device.
Thanks.