Patent ID: 8350631

Claim:
A system for generating an oscillator signal, the system comprising: a ramp voltage generating circuit for generating a ramp voltage based on a ramp voltage switching signal; a reference voltage generating circuit, coupled to a voltage source, for generating at least one reference voltage; and a reference voltage switching circuit, coupled to the ramp voltage generating circuit and the reference voltage generating circuit, wherein the reference voltage switching circuit includes, at least one comparator having a first input terminal that receives the ramp voltage and a second input terminal that receives the at least one reference voltage; a digital logic circuit, connected to an output terminal of the at least one comparator, for generating a reference voltage switching signal, the ramp voltage switching signal, and the oscillator signal; and at least one reference voltage switch, coupled between the reference voltage generating circuit and the second input terminal of the at least one comparator, for providing the at least one reference voltage to the second input terminal of the at least one comparator based on the reference voltage switching signal, wherein the reference voltage switching signal, the oscillator signal, and the ramp voltage switching signal toggle based on a predetermined relationship between the ramp voltage and the at least one reference voltage, and wherein the ramp voltage generating circuit comprises: at least one capacitor connected to ground by way of a first ramp voltage switch; and at least one resistor having a first terminal coupled to the at least one capacitor by way of a second ramp voltage switch, and a second terminal coupled to the voltage source, wherein the first and second ramp voltage switches toggle based on the ramp voltage switching signal.