CPC H02M 1/0029 (2021.05) [H02M 1/088 (2013.01); H02M 1/36 (2013.01)] | 7 Claims |
1. A microcontroller with a slew-rate control circuit, comprising:
a pre-drive circuit configured to charge and discharge a gate of at least one output power transistor with a constant current;
a measuring circuit configured to measure a transition time period during which a drain-to-source voltage of the at least one output power transistor connected to the pre-drive circuit makes a transition between a first voltage and a second voltage; and
a microprocessor configured to read the transition time period measured by the measuring circuit,
wherein the microprocessor
smooths a plurality of transition time periods read over a plurality of cycles, to calculate a smoothed transition time period, and
controls a constant current set value of the pre-drive circuit such that the constant current set value decreases when the smoothed transition time period is shorter than a predetermined time period and the constant current set value increases when the smoothed transition time period is longer than the predetermined time period.
|