Design And Implementation of A Digital Controller With Dsp For Half-Br