Production of digital constant voltage constant current power supply