230V puls counter
This counter is designed to count 230V AC pulses. The count value is stored if the power supply is turned off. With an reset button the count value can be reset.
If the power supply is turned off then the optocoupler switches his output of, this generates an interrupt in the pic witch will write his count value to the internal eeprom.