DSP Controlled Battery Testing