Claims
- 1. A system for measuring output from a photodetector comprising:
a) a photodetector operable to generate a photodetector output signal; b) a ramp generator operable to generate a ramp signal; and c) a comparator operable to compare the ramp signal with the photodetector output signal and generate an output signal resulting in a pulse width of length proportional to the time it takes the ramp signal to exceed the photodetector output signal.
- 2. The system of claim 1, wherein the system further comprises a microcontroller operable to repeatedly sample the photodetector output signal and store resulting samples.
- 3. The system of claim 1, wherein the ramp generator further comprises a capacitor coupled to a pulsed input signal.
- 4. The system of claim 3, wherein the ramp generator further comprises a resistor divider and a diode coupled to the capacitor.
- 5. A system for generating a ramp voltage signal comprising:
a) a capacitor operable to generate a ramp signal, wherein the ramp voltage signal has a low voltage level; and b) a voltage divider operable to set the low voltage level of the ramp voltage.
- 6. The system of claim 5, wherein the ramp signal is used as an input to a comparator.
- 7. The system of claim 6, wherein an output signal of the comparator is sampled.
- 8. The system of claim 7, wherein hysterisis is used to prevent oscillations in the sample values.
- 9. The system of claim 7, wherein the values of the capacitor and the voltage divider are set such that multiple samples of the output of the comparator can be obtained during the period of time between the ramp voltage being substantially equal to the low photodetector voltage level and the ramp voltage being substantially equal to a high photodetector voltage level.
- 10. A method of converting a varying voltage level to a varying width pulse, the method comprising:
a) generating a ramp signal for use as an input to a comparator; b) providing a photodetector output signal as an input to the comparator; c) producing an output signal of the comparator having a crossover point; and d) sampling the output signal of the comparator to produce a digital pulse of a width proportional to the varying voltage level.
- 11. The method of claim 9, wherein the ramp voltage is provided by a capacitor coupled to a pulsed signal.
- 12. The method of claim 9, wherein the ramp voltage varies between a minimum voltage and a maximum voltage.
- 13. The method of claim 9, wherein the average crossover point occurs between a second sample and a second to last sample by the microcontroller.
Parent Case Info
[0001] This application is a divisional of prior application Ser. No. 09/773,978 filed Jan. 31, 2001.
Divisions (1)
|
Number |
Date |
Country |
Parent |
09773978 |
Jan 2001 |
US |
Child |
10431072 |
May 2003 |
US |