Infrared learning device
First Claim
1. An infrared (IR) learning device, adapted for learning an IR signal emitted from an external device, the IR signal comprising a carrier region and a no-carrier region, the carrier region having a carrier wave, and the IR learning device comprising:
- an IR transceiver for receiving the IR signal;
an amplifying and shaping circuit, coupled to the IR transceiver, for amplifying and shaping the IR signal to generate a digital signal related to the IR signal;
a sampling circuit, coupled to the amplifying and shaping circuit, for sampling the digital signal once every period, and performing a level switching record on the digital signal to generate a level switching time while the digital signal having a level conversion; and
a processor, coupled to the sampling circuit and the IR transceiver, for executing the following steps;
determining whether the level switching time is received;
when the level switching time is received, calculating a time interval between the two adjacent level switching times;
accumulating the time interval in a carrier time of the carrier region or in a no-carrier time of the no-carrier region; and
determining whether an end time has been reached, wherein returning to the step of determining whether the level switching time is received if the end time has not been reached; and
calculating a waveform of the IR signal and a frequency of the carrier wave of the carrier region according to the carrier time, the no-carrier time and a half-period number of the carrier wave if the end time has been reached.
1 Assignment
0 Petitions
Accused Products
Abstract
An infrared (IR) learning device is disclosed. A hardware device of the IR learning device amplifies, shapes, and samples an IR signal to acquire a better digital signal related to the IR signal. A software device of the IR learning device calculates the waveform of the IR signal and the frequency of a carrier wave of the IR signal according to the digital signal related to the IR signal. Accordingly, the IR learning device can learn the IR signal emitted from an external device by the hardware device and the software device.
2 Citations
10 Claims
-
1. An infrared (IR) learning device, adapted for learning an IR signal emitted from an external device, the IR signal comprising a carrier region and a no-carrier region, the carrier region having a carrier wave, and the IR learning device comprising:
-
an IR transceiver for receiving the IR signal; an amplifying and shaping circuit, coupled to the IR transceiver, for amplifying and shaping the IR signal to generate a digital signal related to the IR signal; a sampling circuit, coupled to the amplifying and shaping circuit, for sampling the digital signal once every period, and performing a level switching record on the digital signal to generate a level switching time while the digital signal having a level conversion; and a processor, coupled to the sampling circuit and the IR transceiver, for executing the following steps; determining whether the level switching time is received; when the level switching time is received, calculating a time interval between the two adjacent level switching times; accumulating the time interval in a carrier time of the carrier region or in a no-carrier time of the no-carrier region; and determining whether an end time has been reached, wherein returning to the step of determining whether the level switching time is received if the end time has not been reached; and
calculating a waveform of the IR signal and a frequency of the carrier wave of the carrier region according to the carrier time, the no-carrier time and a half-period number of the carrier wave if the end time has been reached. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
Specification