The work I did in Proteus!
Hex file was generated using Arduino IDE.
Netmeter.ino contains the source code.

~Jabez Winston :-)