Patent ID: 8659362

Claim:
A relaxation oscillator circuit with reduced sensitivity of oscillation frequency to comparator delay variation, the relaxation oscillator circuit comprising: a first current source that generates a charging current; a second current source coupled to the first current source to generate a reference voltage; a resistor coupled to the second current source to enable generation of the reference voltage; a capacitor, coupled to the first current source, that is charged based on the charging current; a comparator that is responsive to a voltage corresponding to the capacitor and the reference voltage to generate an output voltage; a peak detector coupled to the capacitor to generate a peak voltage; an error detector coupled to the peak detector and the second current source to generate an error based on the peak voltage and the reference voltage; and a controller coupled to the error detector to control one of the charging current, an offset voltage input to the comparator, and a capacitance of the capacitor.