Claims
- 1. A circuit comprising:
- a photodetector which produces a current responsive to incident illumination;
- an integrator stage coupled to said photodetector which converts said current into voltage and integrates said voltage over an integration period to provide an output signal; and
- a window comparator which receives said output signal from said integrator stage and compares said output signal to a first threshold and a second threshold to provide a measurement signal defining a pulse having a width which corresponds to the time interval over which said output signal increases from said first threshold to said second threshold, wherein said second threshold is greater than said first threshold.
- 2. The circuit according to claim 1 wherein said integrator stage has two inputs from said photodetector which are biased by a bias voltage, wherein said bias voltage is below said first threshold.
- 3. The circuit according to claim 2 further comprising a switch coupled to said integrator stage which when enabled resets said integrator stage to provide said output signal substantially equalling said bias voltage.
- 4. The circuit according to claim 3 further comprising means for controlling said switch to reset said integrator stage, and determining the time interval corresponding to the width of said pulse, said time interval being proportional to the current produced by said photodetector.
- 5. The circuit according to claim 3 further comprising a diode coupled between said switch and a reference voltage of said circuit to suppress transients produced by said switch.
- 6. The circuit according to claim 3 wherein said switch is a mechanical relay.
- 7. The circuit according to claim 4 wherein said integrator stage further comprises an amplifier and a capacitor connected across one of said two inputs of said integrator stage and an output providing said output signal.
- 8. The circuit according to claim 7 wherein said switch is connected across said capacitor.
- 9. The circuit according to claim 7 wherein said means further comprises means for measuring the current produced by said photodetector responsive to the capacitance of said integrating capacitor, the difference between said second and first thresholds, and the reciprocal of said determined time interval.
- 10. The circuit according to claim 9 wherein said means is provided by a microcontroller comprising an input capture register for receiving said measurement signal.
- 11. The circuit according to claim 4 wherein said means for determining the time interval operates with a dynamic range greater than 16 bits.
- 12. The circuit according to claim 1 wherein said integrator stage has two inputs from the photodetector, and one of said inputs is referenced to ground.
- 13. The circuit according to claim 1 wherein said window comparator comprises:
- a first comparator which compares said output signal from said integrator stage to said first threshold and outputs a first signal which is high when said output signal exceed said first threshold, and low otherwise;
- a second comparator which compares said output signal from said integrator stage to said second threshold and outputs a second signal which is high when said output signal exceed said second threshold, and low otherwise; and
- an XOR gate which receives said first and second signals to provides said measurement signal.
- 14. The circuit according to claim 13 wherein said first and second comparators are located on the same die structure.
- 15. The circuit according to claim 1 wherein said photodetector is a photodiode.
- 16. A method comprising the steps of:
- providing a current responsive to incident illumination with the aid of a photodetector;
- converting said current into voltage;
- integrating said voltage over an integration period to provide an output signal;
- comparing said output signal to a first threshold;
- outputting a first signal which is high when said output signal exceeds said first threshold, and low otherwise;
- comparing said output signal to a second threshold which is greater than said first threshold;
- outputting a second signal which is high when said output signal exceeds said second threshold, and low otherwise; and
- combining said first and second signals to provide a measurement signal which is high for the interval when said first signal is high until said second signal is high, and low otherwise.
- 17. The method according to claim 16 further comprising the step of providing a bias voltage to said photodetector, wherein said bias voltage is below said first threshold.
- 18. The method according to claim 17 further comprising the step of resetting said output signal substantially to said bias voltage with the aid of a switch.
- 19. The method according to claim 18 further comprising the steps of:
- controlling said d switch to carry out said resetting step; and
- determining the time of said interval when said measurement signal is high, wherein the time of said interval is proportional to the current produced by said photodetector.
- 20. The method according to claim 19 where in said determining step is carried out with a dynamic range greater than 16 bits.
- 21. The method according to claim 19 further comprising the step of:
- measuring the current produced by said photodetector responsive to said determined time interval.
- 22. The method according to claim 18 further comprising the step of providing a diode coupled between said switch and a reference voltage to suppress transients produced by said switch.
- 23. The method according to claim 18 wherein said switch is a mechanical relay.
- 24. The method according to claim 16 wherein said photodetector is a photodiode.
RELATED APPLICATIONS
This application is related to application Ser. No. 08/210,806 filed Mar. 18, 1994, and Application Serial No. 08/330,339 filed Oct. 27, 1994. Both applications are assigned to the same assignee as the present application.
US Referenced Citations (1)
Number |
Name |
Date |
Kind |
4306807 |
Sakane et al. |
Dec 1981 |
|