Figure 2 The programming for microcontroller is done using the Keil software. The Keil software provides IDE platform to levelop the ARM based applications. Keil provide both modes to write the programme i.e. Assembly and Embedded C. The developed circuit diagram and its simulation in proteus software are shown below: Keil software is used for the Programing of controller. The program is written in Embedded C. Program is compiled, Debuc and hex file is created using Keil software. The hex file is burned in controller using Flash Magic software. Algorithm for prepaid energy meter is given below: