Hi all,
I've a application working that uses a RTCC on the I2C bus, it checks the time on a regular basis, it runs from the mains and I would like to code in some protection against power cuts.
I've had a quick read through the data sheet for the 18f2523 I'm using and the HLVD (high/low voltage detection) module looks just the job?
Basicaly I would like the PIC to save the current time in the internal eeprom before the power goes! Has anyone got experience using the HLVD module to do a task like this? Are then any pits I might fall in?! Or is there a better way?
I did consider a battery backup RTCC but its better if my application starts up where it left off when the power went time wise.
Thanks Geoff
I've a application working that uses a RTCC on the I2C bus, it checks the time on a regular basis, it runs from the mains and I would like to code in some protection against power cuts.
I've had a quick read through the data sheet for the 18f2523 I'm using and the HLVD (high/low voltage detection) module looks just the job?
Basicaly I would like the PIC to save the current time in the internal eeprom before the power goes! Has anyone got experience using the HLVD module to do a task like this? Are then any pits I might fall in?! Or is there a better way?
I did consider a battery backup RTCC but its better if my application starts up where it left off when the power went time wise.
Thanks Geoff