Patent ID: 8836416

Claim:
A circuit comprising: a filter comprising programmable components; and a tuning circuit comprising: a stimulus generator having an output coupled to an input of the filter, the stimulus generator to generate a pair of signals having different characteristics from each other, wherein the first signal is input into the filter during a first tuning interval and the second signal is input into the filter during a second tuning interval, a comparator having an input coupled to an output of the filter, wherein the comparator compares the filter's output to a respective threshold in each interval; and a feedback network to: generate a reference clock to send to the comparator to sample the output of the filter, activate the stimulus generator, read an output from the comparator in each interval, during each interval, vary the programmable components of the filter according to a search algorithm to derive a respective setting of the programmable components to approximate a desired corner frequency of the filter; and calculate a final setting of the programmable components based on the settings derived from the two intervals.