Energy conversion unit with optimized waveform generation