The invention provides a high-precision and self-adapting
relaxation oscillator. The high-precision and self-adapting
relaxation oscillator offsets time
delay produced by a charge-
discharge control circuit arranged in an oscillating circuit according to a
capacitor precharging principle, and comprises the oscillating circuit, a first
capacitor precharging circuit and a second
capacitor precharging circuit, wherein the capacitor precharging circuits are used for precharging a charge-
discharge capacitor of the oscillator, the oscillating circuit performs charging and discharging on the basis of precharging level of the capacitor precharging circuits, error time
delay produced by the capacitor during two times of charging is offset, so that the oscillator works at preset frequency, and frequency-control current
linearity is remarkably improved. The time
delay is not reduced by directly increasing speed of a
comparator or an RS trigger, the time delay produced by the
control circuit and influence of imbalance with external environment change are offset through two times of charging processes, the precision of the oscillator is obviously improved, and the oscillator has quite high temperature stability and power supply rejection, namely, adaptability.