In any modern factory all types of DC motors, AC motors, power amplifiers are used. Therefore there is need of intelligent devices capable of controlling and driving a wide range of electromechanical devices. Series architecture of variable resistors is not good for controlling the speed of DC motor because it drops excess of energy and flux control is affected by commutation and armature control methods cannot provide speed control in the desirable range. Therefore Voltage control method is used to control the DC motor in which PWM signal is used to control electromechanical devices. PWM signal obtained from analog or digital IC contains harmonics; therefore mostly PWM signals are generated from (TMS 320 F 28027) Microcontroller. It reduces the hardware complexity and it consumes less power. By modifying CCP register of TMS controller PWM signal is generated. DC motor is connected with TMS through Motor driver. PWM signal is generated at four duty cycle for controlling speed of motor.