Single-photon avalanche diode system for ambient light sensing

By combining SPAD pixel arrays with self-clock control, the problems of poor signal-to-noise ratio and high power consumption in ambient light sensing systems under low light conditions are solved, and adaptive and efficient ambient light measurement is achieved.

CN123111461APending Publication Date: 2026-11-17STMICROELECTRONICS INT NV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610659015.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2025-05-15
Filing Date
2026-05-13
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing ambient light sensing systems suffer from poor signal-to-noise ratio and high power consumption under low light conditions, and are difficult to adapt to different lighting conditions, resulting in inaccurate measurements and excessive power consumption.

Method used

By employing a single-photon avalanche diode (SPAD) pixel array, combined with adders, comparators, and time-to-digital converters (TDC), and through a self-clocked control architecture, adaptive measurement of photon detection is achieved, reducing power consumption and improving measurement accuracy.

Benefits of technology

Under different lighting conditions, the system can adaptively adjust the measurement cycle, reduce power consumption, improve measurement accuracy and efficiency, avoid the saturation problem of the fixed window method, and achieve highly sensitive ambient light sensing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123111461A_ABST
    Figure CN123111461A_ABST
Patent Text Reader

Abstract

This disclosure relates to a single-photon avalanche diode system for ambient light sensing. According to one embodiment, a system for ambient light sensing includes: a single-photon avalanche diode (SPAD) pixel array configured to detect photons; an adder coupled to the SPAD pixel array to sum an output representing the detected photons; and a comparator that generates a signal when the adder output reaches a predetermined threshold corresponding to the percentage of the array containing the detected photons. A time-to-digital converter (TDC) measures a time interval between consecutive comparator signals, and when the threshold is reached, a feedback path from the comparator to the SPAD pixel array resets the array. The measured time interval is negatively correlated with ambient light intensity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure generally relates to electronic devices, and in certain embodiments to a single-photon avalanche diode system for ambient light sensing. Background Technology

[0002] Single-photon avalanche diodes (SPADs) are high-sensitivity photodetectors capable of detecting single photons with precise timing resolution. These semiconductor devices operate in Geiger mode, biased above their breakdown voltage, allowing a single photon to trigger the avalanche of charge carriers. The resulting current pulse can be detected and processed by associated circuitry. SPADs offer high sensitivity, fast response time, and compatibility with standard semiconductor manufacturing processes.

[0003] Ambient light sensing (ALS) represents a significant application area for photosensing technology. ALS systems measure the intensity of ambient light to enable automatic display brightness adjustment in consumer electronic devices such as smartphones and tablets. These systems help optimize screen visibility under various lighting conditions while conserving battery power. Additionally, ALS data can aid in color correction in photographic applications by providing information about the spectral characteristics of ambient light.

[0004] Conventional photodiode-based ALS systems measure light intensity by simulating current integration. When light strikes a photodiode, electron-hole pairs generate a current proportional to the incident light intensity. This current can be integrated over time to produce a voltage related to the ambient light level. However, these simulation methods can face challenges under very low light conditions, where the signal-to-noise ratio becomes problematic.

[0005] Time-based measurement techniques offer an alternative to light intensity detection. Instead of directly measuring current or charge, these methods quantify the temporal characteristics of photon arrival. For random photon arrivals from an ambient light source, the time interval between successive photon detections follows an exponential distribution. The mean of this distribution is negatively correlated with the photon arrival rate, which is related to light intensity. Time-to-digital converters (TDCs) can measure these intervals with high precision.

[0006] Large-area photon detection can improve sensitivity in photosensitive applications. Increasing the photosensitive area allows for the capture of more photons, thereby improving the signal-to-noise ratio, especially under low-light conditions. However, extending photon detection over a larger area presents challenges in signal routing, power distribution, and readout architecture. Various methods for combining signals from multiple photosensitive elements can include logic OR combination, adder networks, or other aggregation methods.

[0007] Power consumption is another consideration for portable electronic devices. Circuits requiring high-frequency timing or distributing signals over a large chip area consume significant amounts of power. Power efficiency directly impacts battery life and user experience in battery-powered devices such as smartphones. Techniques that reduce timing requirements or adapt system operation to current conditions can help minimize power consumption while maintaining performance. Summary of the Invention

[0008] The technical advantages are generally achieved through various embodiments of this disclosure, which describe a single-photon avalanche diode system for ambient light sensing.

[0009] The first aspect relates to a system for ambient light sensing, comprising: a single-photon avalanche diode (SPAD) pixel array configured to detect photons; an adder coupled to the SPAD pixel array, the adder being configured to sum an output from the SPAD pixel array to generate a digital output representing the number of SPAD pixels that have detected photons; a comparator coupled to the adder, the comparator being configured to generate a signal in response to the digital output from the adder reaching a predetermined threshold corresponding to the percentage of the SPAD pixel array that has detected photons; a time-to-digital converter (TDC) coupled to the comparator, the TDC being configured to measure a time period between consecutive signals from the comparator; and a feedback path from the comparator to the SPAD pixel array, the feedback path being configured to reset the SPAD pixel array in response to the predetermined threshold being reached, wherein the measured time period determines the ambient light intensity.

[0010] The second aspect relates to a system for ambient light sensing, comprising: a single-photon avalanche diode (SPAD) pixel array configured to detect photons; a controller configured to generate an enable signal; a plurality of transistors, each transistor having a gate terminal coupled to the controller to receive the enable signal, wherein each transistor is coupled to a corresponding SPAD pixel in the SPAD pixel array; an adder coupled to the SPAD pixel array, the adder being configured to sum an output from the SPAD pixel array to generate a digital output representing the number of SPAD pixels that have detected photons; a comparator coupled to the adder, the comparator being configured to generate a comparator signal in response to the digital output from the adder reaching a predetermined threshold corresponding to the percentage of the SPAD pixel array that has detected photons; and a time-to-digital converter (TDC) coupled to the controller and the comparator, the TDC being configured to measure a time period between the enable signal and the comparator signal, wherein the measured time period determines the ambient light intensity.

[0011] The third aspect relates to a method for ambient light sensing, comprising: detecting photons by a single-photon avalanche diode (SPAD) pixel array; summing the output from the SPAD pixel array to generate a digital output representing the number of SPAD pixels that have detected photons; comparing the digital output with the predetermined threshold corresponding to a percentage of the SPAD pixel array; generating a signal in response to the digital output reaching the predetermined threshold; measuring a time period associated with the signal; and determining the ambient light intensity based on the measured time period.

[0012] Each embodiment can be implemented in hardware, software, or any combination thereof. Attached Figure Description

[0013] To gain a more complete understanding of this disclosure and its advantages, reference is now made to the following description in conjunction with the accompanying drawings, wherein:

[0014] Figure 1A This is a block diagram of a circuit used to measure the environment using a system based on a single-photon avalanche diode (SPAD);

[0015] Figure 1B Demonstration shown Figure 1A A series of timing diagrams illustrating the operating principle of the circuit in the diagram;

[0016] Figure 2A This is a block diagram of a circuit for measuring ambient light using an alternative, SPAD-based system;

[0017] Figure 2B Demonstration shown Figure 2A A series of timing diagrams illustrating the working principle of the circuit in the diagram;

[0018] Figure 3A This is a block diagram of a circuit for measuring ambient light using multiple SPAD pixels via an OR gate;

[0019] Figure 3B Demonstration shown Figure 3A A series of timing diagrams illustrating the working principle of the circuit shown;

[0020] Figure 4A This is a block diagram of a circuit for measuring ambient light using multiple SPAD pixels combined by an adder;

[0021] Figure 4B Demonstration shown Figure 4A A series of timing diagrams illustrating the operating principle of the circuit in the diagram;

[0022] Figure 5 This is a block diagram of a circuit for measuring ambient light using a threshold-based method with multiple SPAD pixels;

[0023] Figure 6Is it about Figure 5 An example of how to operate the timing diagram of the circuit shown;

[0024] Figure 7 This is a block diagram of a circuit for measuring ambient light using a threshold-based method with multiple SPAD pixels and self-clocked control.

[0025] Figure 8 It is about Figure 7 Example operation of the timing diagram of the self-clock control circuit shown;

[0026] Figure 9 This is a block diagram of a controller that can be used to implement the control functions of an ambient light sensing system;

[0027] Figure 10 This is a flowchart of an ambient light sensing method using a SPAD-based system; and

[0028] Figure 11 This is a block diagram of a device incorporating the ambient light sensing technology described in the foregoing embodiments. Detailed Implementation

[0029] This disclosure provides numerous applicable inventive concepts that can be implemented in a wide variety of specific contexts. Specific embodiments are merely illustrative of particular configurations and do not limit the scope of the claimed embodiments. Unless otherwise indicated, features from different embodiments can be combined to form other embodiments. Various embodiments are illustrated in the accompanying drawings, wherein identical parts and elements are designated by the same reference numerals, and repeated descriptions are omitted for brevity.

[0030] The variations or modifications described in one embodiment may also be applied to other embodiments. Furthermore, various changes, substitutions, and alterations may be made without departing from the spirit and scope of this disclosure as defined by the appended claims.

[0031] While the aspects described in this disclosure are presented primarily in the context of ambient light sensing for consumer handheld devices, it should be understood that these aspects can also be applied to other photon detection applications. Specifically, aspects of this disclosure can be similarly applied to proximity sensing, gesture recognition systems, biomedical imaging, scientific instruments, automotive sensing, security systems, and industrial automation, where photon counting and timing can provide valuable measurement capabilities. Techniques for efficient photon detection using SPAD arrays can be extended to applications requiring low-power operation, high sensitivity, or adaptive measurement timing across varying light conditions.

[0032] Embodiments of this disclosure provide systems and methods for ambient light sensing using single-photon avalanche diode (SPAD) technology. The described methods are particularly suitable for consumer electronic devices such as smartphones, where power efficiency and accurate light measurement are required.

[0033] The disclosed system utilizes a SPAD pixel array to detect photons spanning a relatively large sensing area. Embodiments of the invention employ adders coupled to multiple SPAD pixels, eliminating the need for separate time-to-digital converters (TDCs) for each SPAD pixel. The adders sum the outputs from the SPAD pixels to generate a digital value representing how many pixels have detected photons at any given time.

[0034] In this embodiment, the comparator monitors the adder output and generates a signal when a predetermined threshold is reached, indicating a specific percentage of photons detected in the SPAD array. A time-to-digital converter (TDC) measures the time between the initial enable signal and the comparator output signal. The measured time is related to ambient light intensity—a shorter time indicates a higher light level, while a longer time indicates a lower light level.

[0035] In some embodiments, the feedback path from the comparator to the SPAD pixel array creates a self-clocked architecture. When the comparator detects that a threshold percentage of pixels have been excited, the feedback signal resets the SPAD array to begin a new measurement cycle. The TDC measures the time between consecutive reset signals, which provides information about the ambient light level without the need for external clocking.

[0036] The described method offers several advantages over conventional solutions. Power consumption can be reduced by making high-speed timing localized within the TDC block rather than distributing the fast clock signal across the entire SPAD array. The recharge signal rate to the SPADs can be reduced, thus saving power in the clock network spanning the entire array. Furthermore, the system can adapt to different optical conditions without requiring an initial scan process to determine appropriate timing parameters.

[0037] In bright light conditions, the system can collect measurements more quickly because it reaches the threshold in less time. In low light conditions, when photon arrival frequencies are lower, the system avoids unnecessary recharge cycles. The self-clocked version improves efficiency by automatically adjusting to an ideal exposure window for any light level. These and other details are discussed further below.

[0038] Figure 1AA block diagram of circuit 100 for measuring an environment using a system based on a single-photon avalanche diode (SPAD) is shown. Circuit 100 includes SPAD pixels 102, a time-to-digital converter (TDC) 104, and a memory bank 106, which may (or may not) be arranged as shown. Circuit 100 may include additional components not shown.

[0039] SPAD pixel 102 includes a photodiode (PD) 108 for detecting individual photons, a resistor (R) 110 for biasing the photodiode, and a buffer / amplifier 112 for conditioning and amplifying the signal before sending it to TDC 104. This configuration represents a basic single-pixel implementation of a SPAD-based ambient light sensor. TDC 104 measures the time interval between photon detection events, and memory 106 stores these measurements.

[0040] In some configurations, an accumulator comprising an adder and a memory can be used instead of memory bank 106, eliminating the need to form a complete histogram. In such implementations, the TDC output is fed to the adder of the accumulator, the adder's output is fed to the memory, and the memory output is fed back to the adder. This method calculates the average inter-pulse time without storing the full histogram distribution.

[0041] In these implementations, the SPAD pixel 102 operates freely without an external clock signal controlling its operation. However, the TDC 104 can utilize a reference clock for its timing measurements.

[0042] Figure 1B A series of timing diagrams illustrating the operating principle of demonstration circuit 100 are shown. These diagrams include Figure 120, Figure 140, and Figure 160.

[0043] Figure 120 depicts photon arrival events over time, where each vertical line represents a discrete photon striking SPAD pixel 102. These arrivals follow the random Poisson process characteristics of ambient light. The interpulse time (IPT) corresponds to the interval between consecutive photon arrivals and can vary based on light intensity.

[0044] Figure 140 illustrates the corresponding pixel output 142 generated by SPAD pixel 102 and provided as input to TDC 104. Each rectangular pulse represents a digital signal generated when the SPAD detects a photon - TDC 104 measures the time interval between these pulses (inter-pulse time).

[0045] Figure 160 shows a histogram representation of the accumulated inter-pulse time (IPT) measurements stored in memory 106. The x-axis represents the measurement time from bin 0 (shortest time) to bin N (longest time), while the y-axis represents the number of measurements at each time interval, with a bin depth of 10 bits. The histogram approximates an exponential distribution, as shown by the probability density function curve 162. Short IPTs are identified on the left side of the histogram, and are more likely to occur under bright light conditions, while long IPTs appear on the right side, and are more likely to occur under lower light levels. Each rectangle 164 of the various bin divisions represents a single TDC measurement stored in memory 106. The average value of this histogram corresponds to the average inter-pulse time, which is negatively correlated with ambient light intensity.

[0046] Figure 2A A block diagram of circuitry 200 for measuring ambient light using an alternative, SPAD-based system is shown. Circuitry 200 includes SPAD pixels 202, a time-to-digital converter (TDC) 104, and a memory bank 204, which may (or may not) be arranged as shown. Circuitry 200 may include additional components not shown, such as a controller coupled to the SPAD pixels 202 and the TDC 104, to generate an enable (EN) signal.

[0047] SPAD pixel 202 includes a photodiode (PD) 108 for detecting individual photons, a resistor (R) 110 for biasing the photodiode, a buffer / amplifier 112 for regulating and amplifying the signal, and a transistor (M) 206 serving as a control gate. Transistor 206 receives an enable (EN) signal that controls when the SPAD pixel 202 is activated. The same enable signal is also provided to TDC 104, thereby creating a reference point for time measurement.

[0048] In this configuration, a common enable control signal is used to trigger SPAD pixel 202 and TDC 104. When a photon is detected, TDC 104 measures the delay between the enable signal and the pixel output from SPAD pixel 202. The delay measurement result is stored in memory 204, which can be implemented as a 32×10-bit memory. In some configurations, a single accumulator memory can be used instead of memory 204 to find the average value of the histogram, which represents the value of interest for the ambient light sensing application.

[0049] The enable signal can be generated by a controller (not shown). This controller is configured to generate periodic enable pulses that activate the SPAD pixel 202 via transistor 206 and simultaneously provide a reference timing signal to TDC 104. The controller can be implemented as digital circuitry that generates precisely timed enable pulses at intervals suitable for ambient light sensing applications.

[0050] Figure 2B A series of timing diagrams illustrating the operation of demonstration circuit 200 are shown. These diagrams include first diagram 220, second diagram 240, and third diagram 260.

[0051] Figure 220 depicts photon arrival events over time. Each vertical line represents a discrete photon striking SPAD pixel 202. These arrivals follow the random Poisson process characteristics of ambient light.

[0052] Figure 240 illustrates the enable (EN) signal that controls SPAD pixel 202 and provides a reference for TDC 104. The enable signal activates SPAD pixel 202 with periodic pulses via transistor 206.

[0053] Figure 260 shows the pixel output generated by SPAD pixel 202 in response to photon detection when enabled. When a photon is detected, TDC 104 measures the time between the falling edge of the enable signal and the rising edge of the pixel output. This measurement method differs from... Figure 1B The inter-pulse time measurement shown is because it measures the delay from the enabled pixel to photon detection, rather than the time between consecutive photon detections.

[0054] Figure 3A A block diagram of a circuit 300 for measuring ambient light using multiple SPAD pixels via an OR gate is shown. Circuit 300 includes multiple SPAD pixels 102a-102c, an OR gate 302, a time-to-digital converter (TDC) 104, and an accumulator 304 including an adder 306 coupled to a memory 308. Although three SPAD pixels (102a-102c) are shown in the figure, this number is not limiting, and embodiments with a greater number of SPAD pixels are contemplated.

[0055] Each SPAD pixel 102a-102c includes a photodiode (PD) 108, a resistor (R) 110, and a buffer / amplifier 112, similar to Figure 1A SPAD pixel 102. The outputs from multiple SPAD pixels are combined using an OR gate 302, producing a logic high output whenever any connected SPAD pixel detects a photon. This method allows the TDC104 and accumulator 304 to be shared across multiple SPAD pixels without requiring the complete circuitry to be replicated for each SPAD pixel.

[0056] TDC 104 measures the inter-pulse time (IPT) between consecutive pulses output from OR gate 302. These measurements are fed to accumulator 304, where adder 306 combines the current measurement with the accumulated value stored in memory 308 and stores the result back in memory 308. This accumulation method allows for the calculation of the average inter-pulse time without storing the complete histogram.

[0057] Figure 3B Demonstration shown Figure 3A The diagram shows a series of timing diagrams illustrating the working principle of the circuit. These diagrams include Figure 320 (first diagram), Figure 340 (second diagram), and Figure 360 ​​(third diagram).

[0058] Figure 320 depicts the photon arrival events of the first SPAD pixel (SPAD1) over time, where each vertical line represents a discrete photon detection event.

[0059] Figure 340 illustrates the photon arrival events of the second SPAD pixel (SPAD2) over time, showing different patterns of photon detection.

[0060] Figure 360 ​​shows the OR-tree output of signals from multiple SPAD pixels 102a-102c combined by OR gate 302. Each pulse represents photon detection from any connected SPAD pixel 102a-102c. TDC 104 measures the inter-pulse time (IPT) between consecutive pulses, as shown in Figure 360.

[0061] While this OR tree method allows sharing of TDC 104 and accumulator 304 resources across multiple SPAD pixels 102a-102c, it can have drawbacks at high event rates. Specifically, when multiple photons arrive at different SPAD pixels almost simultaneously, the OR gate may not be able to resolve them as individual events, leading to a phenomenon known as "pile-up," where photon detection events are missed or merged. This limitation becomes more pronounced as the number of SPAD pixels or the ambient light level increases.

[0062] Figure 4A This diagram illustrates a circuit 400 for measuring ambient light using multiple SPAD pixels combined by an adder. Circuit 400 includes multiple SPAD pixels 202a-202c, an adder 402, and an accumulator 404 including an adder 406 coupled to a memory 408. Although three SPAD pixels (202a-202c) are shown in the figure, this number is not limiting, and embodiments with a greater number of SPAD pixels are contemplated.

[0063] Each SPAD pixel 202a-202c includes a photodiode (PD) 108, a resistor (R) 110, a buffer / amplifier 112, and a transistor (M) 206 serving as a control gate. The transistor 206 receives an enable (EN) signal that controls when the SPAD pixel is activated. Figure 3A Unlike the OR gate method shown, adder 402 combines the outputs from multiple SPAD pixels 202a-202c, and adder 402 produces a digital value representing the number of SPAD pixels that have detected photons during each enable cycle.

[0064] The output of adder 402 is provided to accumulator 404, where adder 406 combines the current count with the accumulated value stored in memory 408 and stores the result back in memory 408. This method avoids the stacking problem associated with the OR tree method by explicitly counting the number of pixels that have detected at least one photon.

[0065] Unlike previous configurations, circuit 400 does not include a time-to-digital converter (TDC). Instead of measuring the time interval between photon detections or between an enable signal and photon detection, this method directly counts the number of SPAD pixels that detect photons during each enable cycle.

[0066] By eliminating the TDC (Total Photon Count) and focusing on counting photons across multiple SPAD pixels, circuit 400 simplifies the measurement method while potentially reducing power consumption and circuit complexity. This configuration is particularly suitable for ambient light sensing applications, where the total photon count across the SPAD pixel array provides sufficient information about light intensity without requiring precise timing measurements.

[0067] Figure 4B A series of timing diagrams illustrating the operating principle of demonstration circuit 400 are shown. These diagrams include Figure 420 (first diagram), Figure 440 (second diagram), Figure 460 (third diagram), and Figure 480 (fourth diagram).

[0068] Figure 420 depicts the photon arrival event over time, where each vertical line represents a discrete photon that strikes one of the SPAD pixels 202a-202c.

[0069] Figure 440 illustrates the control of the enable (EN) signals of SPAD pixels 202a-202c by the corresponding transistors 206 of the SPAD pixels 202a-202c. Precise control of the enable signals is necessary for performing accurate ambient light sensing measurements using this method.

[0070] Figure 460 shows the adder output generated by adder 402, which represents the number of SPAD pixels that detected photons during each enable period. The values ​​(0, 1, 2, 3) indicate how many SPAD pixels detected photons during each sampling interval.

[0071] Figure 480 shows the accumulator value stored in memory 408, which increases over time as adder 406 combines the current adder output with the previous accumulator value. The accumulator value starts at 0 and increases to 3, then 6, and finally 8 as more photon detections are counted. This accumulated value can be used to determine the ambient light level based on the number of sampling periods and their duration.

[0072] This adder-based method avoids the stacking limitations that occur at high photon rates by precisely counting the number of pixels with successful photon detection, providing superior performance compared to other methods. Figure 3A The advantages of the OR tree method shown.

[0073] Figure 5 A block diagram of a circuit 500 for measuring ambient light using a threshold-based method with a plurality of SPAD pixels, according to an embodiment of the present invention, is illustrated. The circuit 500 includes a plurality of SPAD pixels 202a-202n, an adder 402, a comparator 502, a time-to-digital converter (TDC) 104, and an accumulator 404. The accumulator 404 includes an adder 406 coupled to a memory 408, which may (or may not) be arranged as shown. The circuit 500 may include additional components not shown, such as a controller for the TDC 104 coupled to the gate terminals of transistors 206 of each SPAD pixel 202a-n.

[0074] Although the diagram shows SPAD pixels labeled 202a to 202N, this designation indicates that the system can include a large number of SPAD pixels in the array. For example, in some implementations, the number of SPAD pixels can be 100 or more.

[0075] Each SPAD pixel 202A-N includes a photodiode (PD) 108, a resistor (R) 110, a buffer / amplifier 112, and a transistor (M) 206 serving as a control gate. The transistor 206 receives an enable (EN) signal that controls when the SPAD pixels 202a-n are activated. Using an adder 402 to combine the outputs from all SPAD pixels 202a-n, the adder 402 produces a digital value representing the number of SPAD pixels that have detected photons.

[0076] Each SPAD pixel 202a-n in the array includes a dedicated recharge input controlled by an enable (EN) signal. When a photon is detected, the SPAD pixel generates a binary output (1 for detection, 0 for no detection). These binary outputs from all SPAD pixels are summed by adder 402 to produce a digital value representing the percentage of the array that has detected photons. This percentage increases monotonically over time as more photons arrive after the array is enabled, until it reaches a threshold set in comparator 502.

[0077] The output of adder 402 is provided to comparator 502, which compares the adder output with a threshold representing X percent of the SPAD array. When the adder output reaches this threshold, indicating that X percent of the SPAD pixels 202a-n have detected photons, comparator 502 generates a signal that is sent to TDC 104. TDC 104 measures the time between the enable signal and the comparator output, representing the time taken for X% of the array to detect photons.

[0078] The predetermined threshold percentage (X%) used by comparator 502 represents a parameter that can be optimized to balance measurement accuracy with measurement time. When set to a lower percentage (e.g., 10%-20% for a SPAD array), the threshold is reached more quickly, resulting in faster measurements, but potentially with reduced statistical accuracy. This configuration may be advantageous under high light conditions or when power consumption and measurement speed take precedence over accuracy. Conversely, when set to a higher percentage (e.g., 70%-90% for a SPAD array), more photons must be detected before the measurement is complete, resulting in longer measurement times but improved statistical accuracy. This configuration may be preferred in applications requiring high accuracy or under moderate light conditions.

[0079] The optimal threshold percentage can vary depending on specific application requirements and ambient light conditions. For example, in very low-light environments, a lower threshold percentage may be needed to ensure measurements are completed within a reasonable timeframe, accepting some reduction in accuracy. In controlled lighting environments, a higher threshold can be used to maximize measurement accuracy. The threshold can be programmatically adjusted by the controller 900 based on recent measurement history, allowing the system to adapt to changing environmental conditions. Therefore, this parameter provides system designers with the flexibility to optimize the performance characteristics most important to their specific implementation.

[0080] The enable (EN) signal for circuit 500 is generated by a controller (not shown) coupled to each transistor 206 of SPAD pixels 202a-202N and TDC 104. This controller is responsible for generating precisely timed enable pulses that simultaneously activate all SPAD pixels in the array and provide a reference timing signal to TDC 104. The controller can be implemented as digital circuitry that generates the enable signal at intervals suitable for ambient light sensing applications. By providing a common enable signal to all SPAD pixels and the TDC, the system establishes a synchronization start point for each measurement cycle. This allows for accurate timing of how long it takes to detect photons for X percent of the array.

[0081] The output of TDC 104 is provided to accumulator 404, where adder 406 combines the current time measurement result with the accumulated value stored in memory 408. The result is stored back in memory 408. The accumulated time value can be used to determine the ambient light level.

[0082] This method represents the offset in TDC measurement techniques. Instead of measuring the time required to detect photons in a specific percentage of the SPAD array, the system measures the time between consecutive photon detections (inter-pulse time) or the time required to detect a single photon. The statistical distribution of this measurement follows a gamma distribution, which is a generalization of the exponential distribution seen in single-photon detection timing.

[0083] The adder output in this system follows an exponentially increasing cumulative distribution function (CDF), which monotonically increases with time. This function can be expressed as: ,in Represents the event rate (i.e., the photon arrival rate) and It is time. This function describes the time at which a single SPAD will be active. The probability of detecting photons internally.

[0084] When considering the time required for multiple events (X percent of the array detecting photons), the statistical model shifts to a gamma distribution. The gamma distribution can be represented as... ,in Indicates the number of events (corresponding to X percent of the array). Given the event rate. This distribution predicts that in It measures the time preceding an event and provides the mathematical basis for extracting ambient light levels from measured time values.

[0085] Circuit 500 offers several advantages over previous methods. Advantageously, power consumption is reduced by allowing high-speed timing to be performed locally by TDC 104 outside the SPAD array. The recharge signal rate to the SPADs is also reduced, saving power in the clock network across the entire array. Furthermore, the proposed method provides more efficient photon utilization because the measurement automatically adapts to the photon rate, preventing saturation problems that can occur with fixed-window methods.

[0086] The tunable threshold percentage (i.e., X percent of the SPAD array) optimizes measurement accuracy relative to collection time. This parameter allows the system to balance collecting sufficient statistics for accurate and rapid measurement, especially under varying light conditions.

[0087] Figure 6 It shows the use of about Figure 5 The timing diagram 600 of the circuit 500 shown is an example of its operation. Timing diagram 600 describes the timing relationships between signals in the system. This diagram includes three timing signals: enable signal 602, adder output 604, and comparator output 606.

[0088] The enable (EN) signal 602 controls when the SPAD pixels are activated. Each falling edge of the enable signal (at times T0, T2, and T4) initiates a new measurement cycle by resetting and activating the SPAD array.

[0089] The adder output 604 represents the percentage of SPAD pixels that detected photons over time. The adder output starts at zero at the beginning of each enable cycle and increases monotonically as more SPAD pixels detect photons. The horizontal dashed line represents the comparator threshold, which is set to a specific percentage of the total SPAD array (e.g., 50% of the array). The adder output follows a curve of a cumulative distribution function that approximates an exponential distribution, where the rate of increase corresponds to the ambient light level.

[0090] The advantage of the self-clocked control method in circuit 700 is that it eliminates the need to scan different exposure window durations to find the optimal setting. In conventional externally-clocked systems like circuit 500, the controller must initially determine the appropriate exposure window duration based on the expected ambient light level. This typically requires a calibration phase, where the system tests multiple exposure durations—shorter windows for potentially bright conditions and longer windows for potentially dim conditions—until it finds a suitable setting that produces reliable measurements.

[0091] The self-clocked control architecture inherently eliminates this scanning process. Since the system automatically resets once the threshold percentage of the SPAD pixels has detected photons, it naturally adapts to the current light level without prior knowledge or calibration. In bright conditions, the threshold is reached quickly, resulting in short measurement cycles, while in dim conditions, the system naturally extends the integration time until enough photons are detected. This adaptive behavior occurs from the first measurement cycle without requiring initial exposure window calibration. The result is a faster overall system response to changing light conditions, reduced computational overhead in the controller, and more efficient operation across the entire range of possible ambient light levels.

[0092] When the adder output reaches the threshold X, the comparator output 606 transitions from low to high. The comparator output remains high until the next enable cycle resets the system (here, the transition corresponds to the rising edge of the enable signal 602). The time intervals (T1-T0, T3-T2, and T5-T4) between the rising edge of the enable signal and the rising edge of the comparator output represent the time measurements captured by the TDC 104.

[0093] These time measurements are negatively correlated with ambient light levels. In brighter conditions, the adder output reaches the threshold X more quickly, resulting in shorter time intervals. Conversely, in darker conditions, it takes longer for enough SPAD pixels to detect photons, leading to longer time intervals. The system can accurately determine the ambient light level by accumulating and analyzing these time measurements.

[0094] This figure illustrates how the system automatically adapts to different lighting conditions without requiring adjustments to the enable signal timing. Measurements are completed once the desired percentage of the array detects photons, thus optimizing measurement time and power consumption when varying ambient light levels.

[0095] Figure 7 A block diagram of a circuit 700 for measuring ambient light using a self-clock-controlled threshold method having a plurality of SPAD pixels, according to an embodiment of the present invention, is illustrated. The circuit 700 includes a plurality of SPAD pixels 202a-202n, an adder 402, a comparator 502, a time-to-digital converter (TDC) 104, and an accumulator 404, the accumulator 404 including an adder 406 coupled to a memory 408, which may (or may not) be arranged as shown.

[0096] Circuit 700 and Figure 5The difference between the circuits 500 lies in the feedback path from the comparator 502 output to the gate terminal of each transistor 206 in the SPAD pixels 202a-202n. This feedback connection establishes a self-clocking control system, where the pixel array does not need to be explicitly enabled with a periodic signal from an external controller. Instead, the pixel array automatically resets when the comparator output has toggled, indicating that X percent of the array has detected photons.

[0097] In this self-clocked configuration, TDC 104 measures the time between successive comparator output transitions, rather than the time between an external enable signal and the comparator output. When comparator 502 detects that X percent of the SPAD pixels have been excited, its output signal triggers TDC 104 to record the time measurement results and reset the SPAD array to begin a new exposure window.

[0098] The advantage of the self-clock control method in circuit 700 is that it eliminates the need to scan different exposure window durations to find the optimal setting. In conventional external clock control systems similar to circuit 500, the controller must initially determine the appropriate exposure window duration based on the expected ambient light level. This typically requires a calibration phase, where the system tests multiple exposure durations—short windows for potentially bright conditions and longer windows for potentially dim conditions—until it finds a suitable setting that produces reliable measurements.

[0099] Advantageously, the self-clocked architecture inherently eliminates this scanning process. Since the system automatically resets once the threshold percentage of the SPAD pixels has detected photons, it naturally adapts to the current light level without prior knowledge or calibration. In bright conditions, the threshold is reached quickly, resulting in short measurement cycles, while in dim conditions, the system naturally extends the integration time until enough photons are detected. This adaptive behavior occurs from the first measurement cycle without requiring initial exposure window calibration.

[0100] Furthermore, circuit 700 reduces power consumption and system complexity by eliminating the need for periodic enable signals from an external controller. Measurement cycle time is optimized for each lighting condition, improving efficiency in both bright environments (where measurements are completed quickly) and dim environments (where the system naturally extends integration time without wasting power on unnecessary recharge cycles).

[0101] Figure 8 It shows about Figure 7 The timing diagram 800 of the self-clock control circuit 700 is shown as an example operation. Timing diagram 800 illustrates the timing relationships between signals in the system. The diagram includes the adder output 802 and the comparator output / enable signal 804.

[0102] The adder output 802 represents the percentage of SPAD pixels that detected photons over time. The adder output starts at zero at the beginning of each measurement cycle (i.e., after each reset) and monotonically increases along a curved trajectory toward a specific percentage (X) of the total SPAD array as more SPAD pixels detect photons. The horizontal dashed line represents the comparator threshold, which is set to a specific percentage (X) of the total SPAD array (e.g., 50% of the array). The curve follows a cumulative distribution function that approximates an exponential distribution, where the rate of increase corresponds to the ambient light level. The adder output 802 rises until it intersects precisely with the threshold X, at which point the comparator is triggered.

[0103] When the adder output 802 reaches the threshold X, the comparator output / enable signal 804 transitions from low to high. This transition triggers TDC 104 to record the time measurement result and reset all SPAD pixels in the array. This reset causes the adder output to drop to zero, thus initiating a new measurement cycle. Timing diagram 800 illustrates this pattern repeating over multiple measurement cycles (T0 to T4).

[0104] The time intervals between consecutive time points (T1-T0, T2-T1, T3-T2, and T4-T3) represent the time periods measured by the TDC 104. These measurements are directly related to ambient light levels—shorter intervals indicate higher light levels, while longer intervals indicate lower light levels.

[0105] Unlike external clock control systems, Figure 8 The self-clock control operation illustrated illustrates how the circuit automatically adjusts its measurement cycle duration based on current light conditions without requiring external control signals. Each measurement cycle completes when a threshold percentage of pixels has detected a photon, thus creating a self-adjusting system.

[0106] In this embodiment, the adaptive nature of the measurement period in the self-clocked control configuration offers the advantage of preventing saturation problems that can occur in the fixed-window method. In conventional systems with a predetermined measurement window, bright light conditions can cause system saturation if too many photons arrive during the fixed window, leading to inaccurate measurements.

[0107] When photons arrive frequently, the self-clocking control structure in circuit 700 inherently prevents this problem by automatically shortening the measurement cycle. Once the threshold percentage of the SPAD pixel detects a photon, the system resets and begins a new cycle, ensuring that the measurement remains accurate across the entire range of possible lighting conditions, from very bright to very dim environments. This adaptive approach maintains the optimal signal-to-noise ratio without requiring the complex gain control mechanisms that would otherwise be necessary in a fixed-window system.

[0108] Figure 9A block diagram of a controller 900 according to an embodiment of the present disclosure is shown. The controller 900 can be used to implement the control functions of the ambient light sensing system described in the previous figures. The controller 900 includes a processor 902, a memory 904, and an interface 906, all of which are coupled via a bus 908.

[0109] In embodiments requiring external control of the SPAD array, for example in Figure 5 In the circuit 500 shown, controller 900 generates an enable (EN) signal to activate the SPAD pixels and provides a reference timing signal to the TDC. Processor 902 executes instructions stored in memory 904 to determine the appropriate timing of the enable signal based on ambient light conditions and measurement requirements. The enable signal is sent to the SPAD array and the TDC via interface 906.

[0110] The memory 904 can store calibration data, measurement parameters (such as the comparator's threshold percentage X), and algorithms for converting time measurements into ambient light values. It can also store historical measurement data to implement adaptive timing strategies that optimize power consumption based on recent light conditions.

[0111] Interface 906 provides communication between controller 900 and ambient light sensing circuitry. In addition to sending an enable signal, interface 906 can receive measurement data from a TDC or accumulator, allowing processor 902 to calculate the final ambient light level. Interface 906 also provides connectivity to a host system (e.g., a smartphone or tablet), enabling ambient light measurements to be used for display brightness adjustment or camera setting optimization.

[0112] In self-clock control implementations such as circuit 700, such as Figure 7 As shown, controller 900 may still exist, but it plays a different role. Instead of generating periodic enable signals, it can configure initial system parameters (such as comparator thresholds), process accumulated time measurements to determine ambient light levels, and transmit these results to the host device. In this configuration, controller 900 operates with reduced processing requirements, further contributing to the overall system power efficiency.

[0113] Figure 10 A flowchart is shown of a method 1000 for ambient light sensing using a SPAD-based system according to an embodiment of the present disclosure. Method 1000 can use... Figure 5 The external clock control circuit 500 shown is or Figure 7 The self-clock control circuit 700 shown is used to implement this. In various embodiments, the method may include additional or fewer steps, or the steps may be performed differently than those shown.

[0114] At step 1002, a single-photon avalanche diode (SPAD) pixel array is used to detect photons. Detection can be performed in one of two ways: either by providing an enable signal from the controller to the SPAD pixel array (as in circuit 500), or by resetting the SPAD array in response to a threshold-reaching signal from a previous measurement cycle (as in circuit 700).

[0115] At step 1004, the output from the SPAD pixel array is summed to generate a digital output representing the number of SPAD pixels that have detected photons. This digital output increases monotonically over time following an exponential cumulative distribution function until a predetermined threshold is reached.

[0116] At step 1006, the digital output is compared with a predetermined threshold corresponding to the percentage of the SPAD pixel array. The threshold represents a specific percentage (e.g., 50%) of the total number of SPAD pixels in the array that have detected photons.

[0117] At step 1008, a signal is generated in response to the digital output reaching a predetermined threshold. This signal can be used either as a measurement trigger for the TDC (in circuit 500) or as a measurement trigger and reset signal for the SPAD array (in circuit 700).

[0118] At step 1010, a time period related to the signal is measured. This measurement may be the time interval between providing an enable signal and generating a threshold arrival signal (for circuit 500), or the time interval between consecutive threshold arrival signals (for circuit 700). The statistical distribution of the measured time periods follows a gamma distribution.

[0119] In step 1012, the ambient light intensity is determined based on the measured time period. The measured time period is negatively correlated with the ambient light intensity—a shorter period indicates a higher light level, while a longer period indicates a lower light level.

[0120] Method 1000 may also include accumulating multiple measurements and calculating an average based on the accumulated measurements. This accumulation process can improve measurement accuracy by averaging the statistical variations in the individual measurements.

[0121] Method 1000 provides a flexible ambient light sensing method that can be implemented in either an external clock control or a self-clock control configuration. The self-clock control implementation offers the advantages of power efficiency and adaptive timing without requiring an external control signal.

[0122] Figure 11This diagram illustrates a device 1100 incorporating ambient light sensing technology described in previous embodiments according to an embodiment of the present invention. Device 1100 includes a controller 900, ambient light sensing (ALS) circuitry 1102, a display 1104, and a camera 1108, all coupled via a bus 1106, which may (or may not) be arranged as shown. Device 1100 may include additional components not shown, such as power management circuitry, transient and non-transient storage devices, interfaces, a camera, an image processing system, etc.

[0123] Controller 900 can be like Figure 9 The aforementioned components are implemented using a processor, memory, and interface components. Alternatively, the controller 900 can be implemented as the application processor of the device 1100, sharing computing resources with other device functions. This integration can further reduce power consumption and component count throughout the system.

[0124] ALS circuit 1102 can be implemented as circuit 500 ( Figure 5 The external clock control configuration shown) or circuit 700 ( Figure 7 (As shown in the self-clock control configuration). ALS circuit 1102 provides ambient light measurements to controller 900, which processes these measurements to determine the ambient light level in the device's environment.

[0125] Display 1104 represents the visual output component of device 1100, which can be adjusted based on ambient light measurements from ALS circuit 1102. In operation, controller 900 receives ambient light measurements from ALS circuit 1102, processes these measurements, and adjusts the brightness of display 1104 accordingly. In bright environments, the display brightness is increased for better visibility, while in dim environments, the brightness is reduced to save power and prevent eye strain.

[0126] Camera 1108 can utilize ambient light information from ALS circuit 1102 to optimize various imaging parameters. For example, controller 900 can provide ambient light measurements to camera 1108 to assist in automatic exposure settings, allowing the camera to pre-adjust exposure time, ISO setting, or aperture value before capturing an image. Additionally, ambient light information can aid in white balance correction by providing data on the color temperature of the surrounding environment, enabling more accurate color reproduction in photographs. In video recording situations, continuous ambient light measurements can help camera 1108 smoothly adapt to changing lighting conditions.

[0127] Device 1100 can be implemented in a variety of consumer electronics products, including smartphones, tablets, laptops, smartwatches, digital cameras, or other portable devices that require power efficiency, adaptive display brightness, and optimized camera performance. For example, in a smartphone implementation, ALS circuitry 1102 can be positioned near the display to accurately measure the ambient light falling on the screen, while controller 900 manages ALS functions, camera operation, display adjustments, and other device functions.

[0128] In operation, when device 1100 is powered on, ALS circuit 1102 begins to measure ambient light using the SPAD array and threshold-based timing method described in the previous embodiments. If implemented with circuit 500, controller 900 provides periodic enable signals to the SPAD array and receives time measurement results from TDC. If implemented with circuit 700, it operates autonomously with a self-clock control configuration, wherein controller 900 receives processed time measurement results.

[0129] The controller 900 uses the previously described statistical relationships to convert these time measurements into ambient light values, where shorter measurement periods indicate higher light levels. Based on these values, the controller 900 adjusts the brightness of the display 1104 and provides the ambient light information to the camera 1108 for optimized imaging.

[0130] It should be noted that although display 1104 and camera 1108 are explicitly shown as components utilizing ambient light information from ALS circuitry 1102, other components and features of device 1100 can also benefit from this information. These may include a power management system that adjusts device performance based on environmental conditions, a proximity sensor that uses ambient light data to improve detection accuracy, user interface elements that adapt to lighting conditions, or health monitoring features that track exposure patterns. The high sensitivity and wide dynamic range of SPAD-based ambient light sensing methods make them valuable for many applications within consumer electronics devices.

[0131] The first aspect relates to a system for ambient light sensing, comprising: a single-photon avalanche diode (SPAD) pixel array configured to detect photons; an adder coupled to the SPAD pixel array, the adder being configured to sum an output from the SPAD pixel array to generate a digital output representing the number of SPAD pixels that have detected photons; a comparator coupled to the adder, the comparator being configured to generate a signal in response to the digital output from the adder reaching a predetermined threshold corresponding to the percentage of the SPAD pixel array that has detected photons; a time-to-digital converter (TDC) coupled to the comparator, the TDC being configured to measure a time period between consecutive signals from the comparator; and a feedback path from the comparator to the SPAD pixel array, the feedback path being configured to reset the SPAD pixel array in response to the predetermined threshold being reached, wherein the measured time period determines the ambient light intensity.

[0132] In a first implementation of the system according to the first aspect, each SPAD pixel in the SPAD pixel array includes a photodiode configured to detect photons; a resistor coupled to the photodiode; a buffer coupled to the photodiode; and a transistor coupled to the photodiode, wherein a feedback path is coupled to the gate terminal of the transistor.

[0133] In a second implementation of the system according to the first aspect itself or any of the foregoing implementations of the first aspect, the system further includes: an accumulator coupled to the TDC, the accumulator including a second adder configured to add time measurement results from the TDC; and a memory coupled to the second adder, the memory configured to store the accumulated value of the time measurement results.

[0134] In a third implementation of the system according to the first aspect itself or any of the foregoing implementations of the first aspect, the predetermined threshold can be configured to optimize the balance between measurement accuracy and measurement time.

[0135] In a fourth implementation of the system according to the first aspect itself or any of the foregoing implementations of the first aspect, the digital output of the adder follows a cumulative distribution function of an exponential distribution that increases monotonically with time until the predetermined threshold is reached.

[0136] In a fifth implementation of the system according to the first aspect itself or any of the aforementioned implementations belonging to the first aspect, the measurement period is automatically adjusted to be shorter under bright light conditions and longer under dark light conditions, high-speed timing operation is performed locally by the TDC, and the system prevents saturation problems by adaptively adjusting the measurement period based on the photon detection rate.

[0137] In a sixth implementation of the system according to the first aspect itself or any of the foregoing implementations of the first aspect, the SPAD pixel array comprises at least one hundred SPAD pixels, and wherein the predetermined threshold corresponds to between 10% and 90% of the SPAD pixel array.

[0138] The second aspect relates to a system for ambient light sensing, comprising: a single-photon avalanche diode (SPAD) pixel array configured to detect photons; a controller configured to generate an enable signal; a plurality of transistors, each transistor having a gate terminal coupled to the controller to receive the enable signal, wherein each transistor is coupled to a corresponding SPAD pixel in the SPAD pixel array; an adder coupled to the SPAD pixel array, the adder being configured to sum an output from the SPAD pixel array to generate a digital output representing the number of SPAD pixels that have detected photons; a comparator coupled to the adder, the comparator being configured to generate a comparator signal in response to the digital output from the adder reaching a predetermined threshold of the SPAD pixel array corresponding to the percentage of photons detected; and a time-to-digital converter (TDC) coupled to the controller and the comparator, the TDC being configured to measure a time period between the enable signal and the comparator signal, wherein the measured time period determines the ambient light intensity.

[0139] In a first implementation of the system according to the second aspect, each SPAD pixel in the SPAD pixel array includes a photodiode configured to detect photons; a resistor coupled to the photodiode; and a buffer coupled to the photodiode.

[0140] In a second implementation of the system according to either the second aspect itself or any of the foregoing implementations of the second aspect, the system further includes an accumulator coupled to the TDC, the accumulator including a second adder configured to add time measurement results from the TDC; and a memory coupled to the second adder, the memory being configured to store the accumulated value of the time measurement results.

[0141] In a third implementation of the system according to either the second aspect itself or any of the foregoing implementations of the second aspect, the controller is configured to periodically generate the enable signal.

[0142] In a fourth implementation of the system according to the second aspect itself or any of the foregoing implementations of the second aspect, the predetermined threshold can be configured to optimize the balance between measurement accuracy and measurement time.

[0143] In a fifth implementation of the system according to the second aspect itself or any of the foregoing implementations of the second aspect, the digital output of the adder follows an exponential cumulative distribution function that increases monotonically with time until the predetermined threshold is reached.

[0144] In a sixth implementation of the system according to the second aspect itself or any of the foregoing implementations of the second aspect, the controller includes: a processor; a non-transitory memory coupled to the processor; and an interface coupled to the processor and the non-transitory memory, wherein the interface is configured to provide the enable signal to the plurality of transistors and the TDC.

[0145] The third aspect relates to a method for ambient light sensing, comprising: detecting photons by a single-photon avalanche diode (SPAD) pixel array; summing the output from the SPAD pixel array to generate a digital output representing the number of SPAD pixels that have detected photons; comparing the digital output with the predetermined threshold corresponding to a percentage of the SPAD pixel array; generating a signal in response to the digital output reaching the predetermined threshold; measuring a time period associated with the signal; and determining the ambient light intensity based on the measured time period.

[0146] In a first implementation of the method according to the third aspect, detecting photons by a single-photon avalanche diode (SPAD) pixel array includes: providing an enable signal from a controller to the SPAD pixel array, and wherein measuring the time period includes measuring the time interval between providing the enable signal and generating a signal in response to a predetermined threshold being reached by a digital output.

[0147] In a second implementation of the method according to any of the foregoing implementations of the third aspect itself or subordinate to the third aspect, detecting photons by a single-photon avalanche diode (SPAD) pixel array includes: resetting the SPAD pixel array in response to a signal generated in response to the digital output reaching the predetermined threshold, and wherein measuring the time period includes measuring the time interval between consecutive signals generated in response to the digital output reaching the predetermined threshold.

[0148] In a third implementation of the method according to any of the foregoing implementations of the third aspect itself or subordinate to the third aspect, the method further includes: accumulating a plurality of measurement results; and calculating an average value based on the accumulated measurement results.

[0149] In a fourth implementation of the method according to the third aspect itself or any of the foregoing implementations of the third aspect, the digital output follows a cumulative distribution function of an exponential distribution that increases monotonically with time until a predetermined threshold is reached.

[0150] In a fifth implementation of the method according to the third aspect itself or any of the foregoing implementations of the third aspect, the statistical distribution of the measured time period follows a gamma distribution that predicts the time preceding a specific number of photon detection events.

[0151] Although this specification has been described in detail, it should be understood that various changes, substitutions, and modifications can be made without departing from the spirit and scope of this disclosure as defined by the appended claims. In the various drawings, the same elements are indicated by the same reference numerals. Furthermore, the scope of this disclosure is not intended to be limited to the specific embodiments described herein, as it will be readily understood from this disclosure by those skilled in the art that existing or future-developed processes, machines, manufacturing processes, material compositions, apparatuses, methods, or steps can perform substantially the same functions or achieve substantially the same results as the corresponding embodiments described herein. Therefore, the appended claims are intended to include such processes, machines, manufacturing processes, material compositions, means, methods, or steps within their scope.

[0152] Therefore, the specification and drawings are to be considered merely as a description of this disclosure as defined by the appended claims, and are intended to cover any and all modifications, variations, combinations or equivalents falling within the scope of this disclosure.

Claims

1. A system for sensing ambient light, comprising: A single-photon avalanche diode (SPAD) pixel array is configured to detect photons; An adder, coupled to the SPAD pixel array, is configured to sum the output from the SPAD pixel array to generate a digital output representing the number of SPAD pixels that have detected photons. A comparator, coupled to the adder, is configured to generate a signal in response to the digital output from the adder reaching a predetermined threshold corresponding to the percentage of the SPAD pixel array that has detected photons. A time-to-digital converter (TDC) is coupled to the comparator, the TDC being configured to measure time intervals between consecutive signals from the comparator; as well as A feedback path from the comparator to the SPAD pixel array, the feedback path being configured to reset the SPAD pixel array in response to the reaching of a predetermined threshold, wherein the measured time period determines the ambient light intensity.

2. The system of claim 1, wherein each SPAD pixel in the SPAD pixel array comprises: A photodiode is configured to detect photons; A resistor is coupled to the photodiode; The buffer is coupled to the photodiode; as well as A transistor is coupled to the photodiode, wherein the feedback path is coupled to the gate terminal of the transistor.

3. The system of claim 1, further comprising an accumulator coupled to the TDC, the accumulator comprising: The second adder is configured to add the time measurements from the TDC; as well as A memory, coupled to the second adder, is configured to store the accumulated value of the time measurement result.

4. The system of claim 1, wherein the predetermined threshold can be configured to optimize the balance between measurement accuracy and measurement time.

5. The system of claim 1, wherein the digital output of the adder follows an exponential cumulative distribution function that increases monotonically with time until the predetermined threshold is reached.

6. The system according to claim 1, The measurement cycle is automatically adjusted to be shorter under bright light conditions and longer under dim light conditions. The high-speed timing operation is performed locally by the TDC, and The system described herein prevents saturation problems by adaptively adjusting the measurement period based on the photon detection rate.

7. The system of claim 1, wherein the SPAD pixel array comprises at least one hundred SPAD pixels, and wherein the predetermined threshold corresponds to between 10% and 90% of the SPAD pixel array.

8. A system for sensing ambient light, comprising: A single-photon avalanche diode (SPAD) pixel array is configured to detect photons; The controller is configured to generate an enable signal; Multiple transistors, each transistor having a gate terminal coupled to the controller to receive the enable signal, wherein each transistor is coupled to a corresponding SPAD pixel in the SPAD pixel array; An adder, coupled to the SPAD pixel array, is configured to sum the output from the SPAD pixel array to generate a digital output representing the number of SPAD pixels that have detected photons. A comparator, coupled to the adder, is configured to generate a comparator signal in response to the digital output from the adder reaching a predetermined threshold corresponding to the percentage of the SPAD pixel array that has detected photons. as well as A time-to-digital converter (TDC) is coupled to the controller and the comparator, the TDC being configured to measure a time interval between the enable signal and the comparator signal, wherein the measured time interval determines the ambient light intensity.

9. The system of claim 8, wherein each SPAD pixel in the SPAD pixel array comprises: A photodiode is configured to detect photons; A resistor is coupled to the photodiode; as well as A buffer is coupled to the photodiode.

10. The system of claim 8, further comprising an accumulator coupled to the TDC, the accumulator comprising: The second adder is configured to add the time measurements from the TDC; as well as A memory, coupled to the second adder, is configured to store the accumulated value of the time measurement result.

11. The system of claim 8, wherein the controller is configured to periodically generate the enable signal.

12. The system of claim 8, wherein the predetermined threshold can be configured to optimize the balance between measurement accuracy and measurement time.

13. The system of claim 8, wherein the digital output of the adder follows a cumulative distribution function of an exponential distribution that increases monotonically with time until the predetermined threshold is reached.

14. The system of claim 8, wherein the controller comprises: processor; Non-transitory memory is coupled to the processor; as well as An interface is coupled to the processor and the non-transitory memory, wherein the interface is configured to provide the enable signal to the plurality of transistors and the TDC.

15. A method for sensing ambient light, comprising: Photons are detected using a single-photon avalanche diode (SPAD) pixel array; The output from the SPAD pixel array is summed to generate a digital output representing the number of SPAD pixels that have detected photons; The digital output is compared with a predetermined threshold corresponding to the percentage of the SPAD pixel array; A signal is generated in response to the digital output reaching the predetermined threshold; Measure the time period related to the signal; as well as Ambient light intensity is determined based on the measured time period.

16. The method of claim 15, wherein detecting photons by the SPAD pixel array comprises: An enable signal is provided from the controller to the SPAD pixel array, and the measurement of the time period includes measuring the time interval between providing the enable signal and generating the signal in response to the digital output reaching the predetermined threshold.

17. The method of claim 15, wherein detecting photons by the SPAD pixel array comprises: The SPAD pixel array is reset in response to the digital output reaching the predetermined threshold, and the measurement of the time period includes measuring the time interval between consecutive signals generated in response to the digital output reaching the predetermined threshold.

18. The method of claim 15, further comprising: Accumulate multiple measurement results; as well as The average value is calculated based on the accumulated measurement results.

19. The method of claim 15, wherein the digital output follows an exponential cumulative distribution function that increases monotonically over time until the predetermined threshold is reached.

20. The method of claim 15, wherein the statistical distribution of the measured time period follows a gamma distribution that predicts the time preceding a specific number of photon detection events.