The utility model discloses a constant-current and constant-
voltage circuit without
software control, which comprises a Buck
power level circuit, a
voltage sampling circuit, a current sampling circuit and an error amplifying circuit, and the error amplifying circuit is provided with a first
error amplifier and a second
error amplifier. The output end of the first
error amplifier and the output end of the second error
amplifier are electrically connected with the Buck
power level circuit, the Buck
power level circuit is electrically connected with the
voltage sampling circuit and the current sampling circuit, the voltage sampling circuit is electrically connected with the first error
amplifier, and the current sampling circuit is electrically connected with the second error
amplifier. An FREQ pin of a Buck
chip U4 is grounded, a 0.76 V voltage is obtained through voltage division by a
resistor R27 and a
resistor R29, so that the
switching frequency of a Buck power level circuit is invalid, the voltage is controlled through a first error amplifier, the current is controlled through a second error amplifier, the first error amplifier and the second error amplifier carry out operation, and then a PWM
comparator in the Buck
chip U4 is controlled through a COMP pin of the Buck
chip U4. Therefore, voltage and current are controlled.