Hi,

I'm trying to count how many milliseconds pass between I power off an uC cutting its battery power and the subsequent power on.

I need to measure around 500 miliseconds.

The circuit its very simple: a 12F675 and a led on port 2

What would be the best electronical solution? I was thinking about using a capacitor for storing some power after batery shutdown.

Any ideas would be greatly appreciated. Thanks in advance!!


Pablo