Hi E.W. Hu,
In the practical usage, customer can combine the software design the hardware design together.
Use the LVD function together, if the power down event happens, in the LVD interrupt function check whether the emulate eeprom data wrote is finished.
If it is not finished, you can write it again in the interrupt.
But just use the LVD function in the software is not enough, you must make sure the time from enter LVD interrupt to 2.7v is enough to write your unfinished data.
This time you can calculate it by the flash program time(find it from the datasheet), the detail time which power down to 2.7V in the board also can be designed by the hardware, you can add a larger capacitor guarantee it.
More details, you need to do the testing on your own board.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------