Dynamic Voltage Restorer (DVR) is a custom power device that is used to compensate voltage sag. The DVR generally consists of voltage source inverter (VSI), injection transformers, passive filters and energy storage (battery). The efficiency of the DVR depends on the efficiency of the control technique involved in switching the inverters. The inverters are switched using Space Vector Pulse Width Modulation pulses (SVPWM) to maximize the usage of DC link voltage. The control strategy that is used to generate the pulses will be illustrated in this paper. The flow chart of the program and the modules involved in the implementation of the control algorithm using DSP board TMS320F2812 will be described in detail. The implementation of the control using TMS320F2812 is tested using a 3kVA lab prototype and the results are presented.