1. Technical Field
The present disclosure relates to a power supply.
2. Description of Related Art
In the field of electronic device function testing, when the electronic devices need to be tested, it is necessary to supply voltages to the tested electronic devices. However, most power supply only supply one voltage value at a time to the tested electronic devices. If other voltages need to be output by the power supply, the power supply need to be adjusted manually, which is inconvenient.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
Referring to
Referring to
Referring to
The voltage obtaining module 11 is used to obtain the input voltage value by the users, and output the input voltage value to the control module 13.
The control module 13 stores a predetermined voltage value which is equal to 5V. The control module 13 is used to receive the input voltage value, and output a pulse width modulation (PWM) signal to the DC voltage converter 20 according to a proportion relationship between the predetermined voltage value and the input voltage value.
The DC voltage converter 20 is used to convert the first voltage into a second voltage according to the PWM signal, and output the second voltage to the determination module 19.
The determination module 15 is used to determine whether a value of the second voltage is equal to the input voltage value. If the value of the second voltage is equal to the input voltage value, the determination module outputs a control signal to the control module 13. The control module 13 controls the DC voltage converter 20 to output the second voltage to the voltage output interface 30, and controls the display 40 to display the value of the second voltage. If the value of the second voltage value is not equal to the input voltage value, that is the value of the second value is greater or less than the input voltage value, the determination module transmits a first or second instruction to the control module 13.
The control module 13 is used to adjust a duty cycle of the PWM signal according to the first or second instruction, and output the adjusted PWM signal to the DC voltage converter 20, to make the value of the second voltage to the input voltage value. That is, the control module 13 increases a duty cycle of the PWM signal according to the first instruction, and decreases the duty cycle of the PWM signal according to the second instruction.
In other embodiments, when the value of the second voltage converted by the DC voltage converter 20 is equal to the input voltage value, the determination module 15 can be omitted. The DC voltage converter 20 outputs the second voltage through the voltage output interface 30 directly, and controls the display 40 to display the value of the second voltage.
It is to be understood, however, that even though numerous characteristics and advantages of the present disclosure have been set forth in the foregoing description, together with details of the structure and function of the disclosure, the disclosure is illustrative only, and changes may be made in details, especially in matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
201110063993.3 | Mar 2011 | CN | national |