Digital Benchtop Power Supply (3)
The digital benchtop power supply is controlled by a microcontroller programmed in PIC BASIC, while a Visual BASIC program is responsible for producing the control panel display on a PC.Figure 1 shows the flowchart of the program in the microcontroller. At start-up a brief initialisation sequence runs, which resets the set values to zero and configures some of the microcontroller’s pins. The next step, the measurement of the actual voltage and current values, already forms part of the main program loop. All the remaining parts of the program follow sequentially in this loop. One branch that can occur is when the push-buttons are being read.