DSP-based Digital Control of a Self-driven Resonant Converter