Patent attributes
A dual-slope optical sensor is provided. Two terminals of a first charging switch are respectively connected to an optoelectronic component and a first terminal of a capacitor. Two terminals of a second charging switch are respectively connected to a second terminal of the capacitor and grounded. First terminals of third charging and discharging switches are respectively connected to the first and second terminals of the capacitor. First terminals of fourth charging and discharging switches are respectively coupled to first and second reference voltages. Two terminals of a first discharging switch are respectively connected to the optoelectronic component and the second terminal of the capacitor. A first input terminal of a comparator is connected to second terminals of the third charging switch and the fourth discharging switch. A second input terminal of the comparator is connected to second terminals of the fourth charging switch and the third discharging switch.