Optical sensor circuit, method of processing output signal of the same, and electronic apparatus
View Patent ↗An optical sensor circuit has a first optical sensor that outputs a signal according to the amount of received light on an opened light-receiving surface, a second optical sensor that is provided near the first optical sensor and outputs a signal according to the amount of received light on a shielded light-receiving surface, and a difference calculating circuit that calculates a difference between the output signal of the first optical sensor and the output signal of the second optical sensor and outputs the difference.
1. An optical sensor circuit comprising:
a first optical sensor that outputs a first signal according to the amount of received light on an opened light-receiving surface;
a second optical sensor that is provided near the first optical sensor and outputs a second signal according to the amount of received light on a shielded light-receiving surface; and
a difference calculating circuit that calculates a difference between the first signal and the second signal and outputs a signal calculated from the difference and the second signal.
2. The optical sensor circuit according to claim 1 ,
wherein the first and second optical sensors output logical signals having pulse widths according to the amounts of received light respectively, and
the difference calculating circuit has an EX-OR circuit that calculates an exclusive logical sum signal of the first signal and the second signal, an inverter that inverts the logical level of the second signal, a logic circuit that calculates an inverted logical product of the difference and the output of the inverter.
3. An electronic apparatus having the optical sensor circuit according to claim 1 .
4. A method of processing an output signal of an optical sensor circuit which has a first optical sensor that outputs a first signal according to the amount of received light on an opened light-receiving surface, and a second optical sensor that is provided near the first optical sensor and outputs a second signal according to the amount of received light on a shielded light-receiving surface, the method comprising:
calculating a difference between the first signal and the second signal; and
outputting a signal calculated from the difference and the second signal.