Patent ID: 7701367
Filing Date: 2010-04-20
Classification: H03M

Abstract:
1. A computer-implemented method to decode a digital signal, the method comprising: (a) receiving the digital signal; (b) reading a first low voltage period of the digital signal, and storing a time duration of the first low voltage period into a first register as a value TL; (c) reading a first high voltage period of the digital signal, and storing a time duration of the first high voltage period into a second register as a value TH; (d) reading the value TL of the first register and the value TH of the second register, and computing a ratio TR=TH/TL; (e) comparing the ratio TR with two predetermined values M and N, wherein the decoded result is a logical “1” if TR=M; and wherein the decoded result is a logical “0” if TR=N; (f) outputting the decoded logical signal “1” or “0”; and (g) determining whether the digital signal has ended, wherein in response to the digital signal has not been completely decoded, reading a first low voltage period of a subsequent data of the digital signal, and storing a time duration of the first low voltage period of the subsequent data of the digital signal into the first register as a value TL; and reading a first high voltage period of the subsequent data of the digital signal, and storing a time duration of the first high voltage period of the subsequent data of the digital signal into the second register as a value TH, and then going back to step (d).