Patent ID: 8213809

Claim:
A consumer infrared (CIR) receiver comprising: a switching element configured to select between a modulated signal and a demodulated signal to produce an incoming signal; an edge detector coupled to the switching element; an adjustable clock; a counter, having a value, coupled to the edge detector and the adjustable clock, wherein the counter is incremented for each clock cycle of the adjustable clock and wherein the counter is reset whenever the edge detector detects an edge in the incoming signal; a memory coupled to the edge detector and the counter wherein the value is transferred from the counter to the memory whenever the edge detector detects an edge in the incoming signal; and a controller; wherein when the CIR receiver is in a carrier frequency detection mode the controller causes the switching element to select the modulated signal; sets the adjustable clock to a sampling rate for sampling a carrier signal; and determines a carrier frequency of the modulated signal after a sufficiency condition is met while in the carrier frequency detection mode; when the CIR receiver is in a decoding mode, the controller causes the switching element to select the demodulated signal and sets the adjustable clock to a sampling rate for sampling a demodulated signal, and wherein, the controller adds a total elapsed time to a first entry in the memory during a transition from carrier frequency detection mode and decoding mode.