CN114071826B - LED dimming circuit, chip, wearable device and dimming method - Google Patents

LED dimming circuit, chip, wearable device and dimming method Download PDF

Info

Publication number
CN114071826B
CN114071826B CN202111438377.1A CN202111438377A CN114071826B CN 114071826 B CN114071826 B CN 114071826B CN 202111438377 A CN202111438377 A CN 202111438377A CN 114071826 B CN114071826 B CN 114071826B
Authority
CN
China
Prior art keywords
dimming
threshold
digital code
code value
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111438377.1A
Other languages
Chinese (zh)
Other versions
CN114071826A (en
Inventor
何晨光
庞盼
刘欢
周百柯
秦晨钟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chipsea Technologies Shenzhen Co Ltd
Original Assignee
Chipsea Technologies Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chipsea Technologies Shenzhen Co Ltd filed Critical Chipsea Technologies Shenzhen Co Ltd
Priority to CN202111438377.1A priority Critical patent/CN114071826B/en
Publication of CN114071826A publication Critical patent/CN114071826A/en
Application granted granted Critical
Publication of CN114071826B publication Critical patent/CN114071826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • A61B5/02416Detecting, measuring or recording pulse rate or heart rate using photoplethysmograph signals, e.g. generated by infrared radiation
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/145Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
    • A61B5/1455Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue using optical sensors, e.g. spectral photometrical oximeters
    • A61B5/14551Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue using optical sensors, e.g. spectral photometrical oximeters for measuring blood gases
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6802Sensor mounted on worn items
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Pathology (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Cardiology (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Optics & Photonics (AREA)
  • Physiology (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides an LED dimming circuit, a chip, wearable equipment and a dimming method, which are used for solving the technical problem of low LED dimming efficiency in the prior art. The LED dimming circuit, the chip, the wearable device and the dimming method receive the first light digital code value, compare the first light digital code value with a preset target threshold range, determine whether a dimming control signal of an LED driving circuit needs to be adjusted and dimming information when the dimming control signal needs to be adjusted according to a comparison result, adjust the current dimming control signal according to the dimming information, and send the adjusted dimming control signal to the LED driving circuit; by the method, the light signal intensity of the light emitted by the LED and the light signal intensity of the environment light are controlled in the detection range corresponding to the target threshold range, so that the self-adaptive adjustment of the dimming control signal is realized, and the dimming efficiency of the LED is improved.

Description

LED dimming circuit, chip, wearable device and dimming method
[ Field of technology ]
The invention relates to the technical field of electronic equipment, in particular to an LED dimming circuit, a chip, wearable equipment and a dimming method.
Background
At present, the main mode of the wearable device for measuring the heart rate and the blood oxygen saturation is to extract heart rate characteristics and blood oxygen saturation characteristics from PPG (PhotoPlethysmoGraphy, photoplethysmogram) signals, and then further calculate the heart rate and the blood oxygen saturation according to the extracted heart rate characteristics and blood oxygen saturation characteristics. The main principle of measuring heart rate and blood oxygen saturation by PPG signals is that monochromatic LED (Light-emitting diode) Light is directed to skin, and LED reflected Light reflected back through skin tissue is received by a photosensitive sensor and converted into an electrical signal, then converted into a digital signal by an analog-to-digital converter, and then further calculated according to the digital signal.
Most of the prior art uses a mode of driving an LED to generate LED light by using a fixed-size emission current, and the LED reflected light signal reflected by the LED light through skin tissues may exceed the detectable range of a receiving circuit, so that the LED reflected light signal cannot be detected.
Disclosure of Invention
The invention aims to provide an LED dimming circuit, chip wearable equipment and a dimming method, which are used for solving the technical problem of low LED dimming efficiency in the prior art.
The technical scheme of the invention is as follows: the LED dimming circuit comprises a processing judging module and a dimming control module;
The processing judging module is used for receiving a first optical digital code value in a dimming state, comparing the first optical digital code value with a preset target threshold range to obtain a first comparison result, and outputting dimming information according to the first comparison result, wherein the first optical digital code value is a digital signal obtained by receiving and performing analog-to-digital conversion on an optical signal emitted by an LED and an ambient light signal;
The dimming control module is used for receiving the dimming information output by the processing judging module and acquiring a current dimming control signal;
And adjusting the current dimming control signal according to the dimming information, updating the current dimming control signal according to the adjusted dimming control signal, and outputting the updated current dimming control signal to an LED driving circuit.
The other technical scheme of the invention is as follows: a chip is provided, which includes the LED dimming circuit described above.
The other technical scheme of the invention is as follows: a wearable device is provided, the wearable device comprising the LED dimming circuit described above.
The other technical scheme of the invention is as follows: provided is an LED dimming method, including:
In a dimming state, comparing the acquired first optical digital code value with a preset target threshold range to obtain a first comparison result, wherein the first optical digital code value is a digital signal obtained by receiving and analog-digital converting an optical signal emitted by an LED and an ambient light signal;
acquiring dimming information according to the first comparison result, and adjusting a current dimming control signal according to the dimming information;
and updating the current dimming control signal according to the adjusted dimming control signal, and outputting the updated current dimming control signal to the LED driving circuit.
The LED dimming circuit, the chip, the wearable device and the dimming method receive the first light digital code value, compare the first light digital code value with a preset target threshold range, determine whether a dimming control signal of an LED driving circuit needs to be adjusted and dimming information when the dimming control signal needs to be adjusted according to a comparison result, adjust the current dimming control signal according to the dimming information, and send the adjusted dimming control signal to the LED driving circuit; by the method, the light signal intensity of the light emitted by the LED and the light signal intensity of the environment light are controlled in the detection range corresponding to the target threshold range, so that the self-adaptive adjustment of the dimming control signal is realized, and the dimming efficiency of the LED is improved.
Drawings
FIG. 1 is a schematic diagram of an application environment of an LED dimming circuit according to an embodiment of the present invention;
Fig. 2 is a schematic structural diagram of an LED dimming circuit according to a first embodiment of the present invention;
fig. 3 is a schematic diagram of an LED dimming circuit according to a first embodiment of the present invention;
fig. 4 is a schematic diagram of another LED dimming circuit according to the first embodiment of the present invention;
fig. 5 is a flowchart of an LED dimming method according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of an LED dimming device according to a third embodiment of the present invention;
fig. 7 is a flowchart of an LED dimming method according to a fourth embodiment of the present invention;
fig. 8 is a flowchart of an LED dimming method according to a fifth embodiment of the present invention;
Fig. 9 is a flowchart of an LED dimming method according to a sixth embodiment of the present invention;
fig. 10 is a schematic structural diagram of a chip according to a seventh embodiment of the present invention;
Fig. 11 is a schematic structural diagram of a wearable device according to an eighth embodiment of the present invention;
fig. 12 is a schematic structural diagram of a wearable device according to a ninth embodiment of the present invention;
fig. 13 is a schematic structural view of a wearable device according to a tenth embodiment of the present invention;
Fig. 14 is a schematic structural view of a storage medium according to an eleventh embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The LED dimming circuit 100 provided by the present invention may be applied to a wearable device 200 as shown in fig. 1, wherein the wearable device 200 includes a transmitting circuit 21 and a receiving circuit 22, and the transmitting circuit 21 includes an LED and an LED driving circuit 211 for driving the LED to emit light according to a preset dimming control signal; the LED light is directed to the skin, and is reflected by skin tissue to form LED reflected light; the receiving circuit 22 includes a photodiode 221, a transimpedance amplifier 222, a programmable gain amplifier 223, a filter circuit 224, an analog-to-digital converter 225 and an LED dimming circuit 100 which are sequentially connected, wherein the optical signal received by the photodiode 221 is a superimposed optical signal of an optical signal emitted by an LED and an ambient optical signal, the optical signal emitted by the LED is an optical signal formed by reflecting light emitted by the LED in the transmitting circuit 21 through skin tissue, the photodiode 221 receives the superimposed optical signal of the optical signal emitted by the LED and the ambient optical signal and converts the superimposed optical signal into a current signal, the transimpedance amplifier 222 receives the current signal and converts the current signal into a voltage signal, the programmable gain amplifier 223 performs gain amplification on the voltage signal, the filter circuit 224 filters the voltage signal, the voltage signal is input to the analog-to-digital converter 225 and converted into a digital signal, the analog-to-digital converter 225 converts the generated first digital code value is sent to the LED dimming circuit 100 of the present invention, the LED dimming circuit 100 processes the modulated light and outputs a dimming control signal to the LED driving circuit 211, and the transmitting current of the LED driving circuit 211 is adaptively adjusted. Alternatively, the wearable device 200 may be a smart bracelet, a smart watch, a TWS (True Wireless Stereo, true wireless smart) headset, or the like.
The analog-to-digital converter 225 samples the voltage signal during the process of converting the voltage signal into a digital signal, where the voltage signal is converted by the analog-to-digital converter 225 into a binary first optical digital code value, and thus the first optical digital code value corresponds to a voltage value.
In an alternative embodiment, the dimming control signal may be a current control bit, the current control bit representing a driving current for adjusting the energy of the LED pulse, the larger the current control bit, the larger the driving current; the smaller the current control bit, the smaller the drive current.
Referring to fig. 2, the LED dimming circuit 100 includes a processing determining module 11 and a dimming control module 10, and the LED dimming circuit 100 includes a dimming state.
The processing and judging module 11 receives a first optical digital code value input by the analog-to-digital converter 225, where the first optical digital code value is a digital signal obtained by receiving and analog-to-digital converting an optical signal emitted by the LED and an ambient light signal.
The processing determining module 11 is configured to receive the first optical digital code value in the dimming state, compare the first optical digital code value with a preset target threshold range to obtain a first comparison result, and output dimming information according to the first comparison result. The dimming information may include an adjustment direction, and the adjustment direction may include an increase or a decrease, specifically, whether the dimming control signal of the LED driving circuit needs to be adjusted and the adjustment direction when the adjustment is needed may be determined according to the first comparison result, and when the determination result is yes, the dimming information carrying the adjustment direction is output to the dimming control module 10. When the determination result is no, the process determination module 11 does not output the dimming information.
In this embodiment, two end values of the target threshold range are a target threshold lower limit and a target threshold upper limit, that is, the target threshold range is a target threshold lower limit to a target threshold upper limit, and when a first optical digital code value corresponding to superposition of an optical signal emitted by an LED and an ambient light signal is located in the target threshold range, the optical signal emitted by the corresponding LED is located in an absolute safety interval in a detection range of the receiving circuit.
When the first optical digital code value is compared with a preset target threshold range, the first optical digital code value can be compared with a target threshold lower limit and a target threshold upper limit respectively.
The dimming control module 20 is configured to receive the dimming information output by the processing determination module 11, and obtain a current dimming control signal; the current dimming control signal is adjusted according to the dimming information, updated according to the adjusted dimming control signal, and output to the LED driving circuit 211.
In an alternative embodiment, the processing determining module 11 is configured to determine that the dimming information is reduced if the first comparison result is that the first optical digital code value is greater than the preset target upper limit threshold; and if the first comparison result is that the first optical digital code value is smaller than the preset target lower limit threshold value, determining that the dimming information is increased. Accordingly, the dimming control module 20 is configured to adjust the dimming control signal to decrease the intensity of the light signal emitted by the LED when the dimming information is decreased; when the dimming information is increasing, the dimming control signal is adjusted to increase the intensity of the light signal emitted by the LED.
In this embodiment, the intensity of the light signal obtained by superimposing the light emitted by the LED and the ambient light is controlled within the detection range corresponding to the target threshold range, so that the adaptive adjustment of the dimming control signal is realized, and the dimming efficiency of the LED is improved.
In an alternative embodiment, the LED dimming circuit 100 further includes a non-dimming state, and the processing determining module 11 is further configured to switch the dimming state to the non-dimming state when the first comparison result indicates that the first digital code value is within the target threshold range, or the number of times the dimming control signal is adjusted is greater than or equal to a preset second number of times threshold.
Further, the non-dimming state includes a threshold adjustment state and a non-threshold adjustment state, and the processing determination module 11 is further configured to: if the first comparison result is that the first optical digital code value is within the target threshold range, switching the dimming state to a non-threshold adjustment state; and if the number of times of adjusting the dimming control signal is greater than or equal to a preset second time threshold value, switching the dimming state into a threshold value adjusting state.
The first digital code value is located within the target threshold range, which indicates that the dimming target is achieved, and the dimming control signal does not need to be continuously adjusted, so that the energy consumption of the device can be reduced by switching the dimming state.
The method comprises the steps of counting the adjustment times of the dimming control signal, and when the adjustment times of the dimming control signal are larger than or equal to a preset second time threshold value, the first optical digital code value cannot be located within a target threshold range, so that the problem cannot be solved by adjusting the dimming control signal, and the dimming is not continued.
Still further, the processing judgment module 11 is further configured to: if the first comparison result is that the first optical digital code value is larger than the preset target upper limit threshold value or the first optical digital code value is smaller than the preset target lower limit threshold value, the times of adjusting the dimming control signal are accumulated by 1.
When the first optical digital code value is greater than a preset target upper limit threshold or less than a preset target lower limit threshold, it indicates that the first optical digital code value is not within the target threshold range, and the adjustment of the dimming control signal is required, so that the number of times of adjusting the dimming control signal is required to be accumulated.
In an alternative embodiment, referring to fig. 3, the dimming control module 10 further includes a signal forwarding dimming module 12 connected to the processing determination module 11, and a dimming operation module 13 connected to the signal forwarding dimming module 12.
The signal forwarding dimming module 12 is configured to store a dimming control signal and output the stored dimming control signal to the LED driving circuit, so that the LED driving circuit generates a corresponding driving current according to the received dimming control signal. In the dimming state, the signal forwarding dimming module 12 is configured to receive dimming information and output the dimming information and a current dimming control signal to the dimming operation module 13.
The dimming operation module 13 receives the dimming information and the current dimming control signal input by the signal forwarding dimming module 12, adjusts the current dimming control signal according to the adjustment direction in the input dimming information, and outputs the adjusted dimming control signal to the signal forwarding dimming module 12; after receiving the adjusted dimming control signal, the signal forwarding dimming module 12 updates the current dimming control signal according to the adjusted dimming control signal, and outputs the current dimming control signal to the LED driving circuit. That is, in the next pulse period, the LED driving circuit generates a driving current according to the adjusted dimming control signal to adjust the brightness of the LED light.
In this embodiment, in the dimming state, the processing determining module 11, the signal forwarding dimming module 12 and the dimming operation module 13 cooperate with each other to perform cyclic iterative adjustment on the dimming control signal until a first digital code value formed by the light signal formed by the light emitted by the LED corresponding to the dimming control signal and the light signal superimposed by the ambient light is within a target threshold range, the dimming is stopped, and the driving current is generated by the constant dimming control signal to drive the LED to emit light, where at this time, the LED dimming circuit 100 is in a non-threshold adjustment state, which may also be referred to as a normal operation state.
In the above embodiment, the dimming control module 10 is further divided into the signal forwarding dimming module 12 and the dimming operation module 13, where the signal forwarding dimming module 12 is used for receiving and transmitting various signals, and the dimming operation module 13 is used for calculating, so that the integration of the circuit is more facilitated.
Further, as shown in fig. 4, a first counter 14 may be set to count the adjustment times of the dimming control signal, the first counter 14 is connected to the processing and judging module 11, and the processing and judging module 11 performs count control, specifically, the processing and judging module 11 is further configured to switch the dimming state to the non-threshold adjustment state, and then return the count of the first counter 14 to zero; after the dimming state is switched to the threshold adjustment state, the count of the first counter 14 is reset to zero.
In this embodiment, the second-time threshold may be set according to the bit width of the driving current, for example, when the bit width of the driving current is 8 bits, the second-time threshold may be set to 8 times.
Further, the calculation of the dimming control signal will be described in detail below by taking the dimming control signal as an example of the current control bit. The step of adjusting the current control bit by the dimming operation module 13 specifically includes: if the adjustment direction is increased, taking half of the difference between the upper limit of the current bit and the current control bit as an increased value, updating the lower limit of the current bit according to the current control bit, and taking the sum of the current control bit and the increased value as an adjusted current control bit; and if the adjustment direction is reduced, taking half of the difference between the current control bit and the current bit lower limit as a reduced value, updating the current bit upper limit according to the current control bit, and taking the difference between the current control bit and the reduced value as an adjusted current control bit.
Wherein the initial values of the upper current bit limit and the lower current bit limit are determined according to the number of bits of the analog-to-digital converter 225, for example, the value of the 8-bit analog-to-digital converter 225 is from 0 to 255; the value of the 16-bit analog-to-digital converter 225 is from 0 to 65535. Thus, at 8 bits, the initial values of the upper current bit limit and the lower current bit limit are 255 and 0, respectively, and preferably, the initial values of the upper current bit limit and the lower current bit limit may be 200 and 0, respectively. In the current control bit adjustment process, circulating according to the steps until a first light digital code value formed by overlapping light emitted by the LED and ambient light falls into an adjusted target threshold range, and resetting the upper limit of the current bit and the lower limit of the current bit to initial values; or when the dimming times reach the second times threshold, the dimming state is switched to a threshold adjustment state, and the upper current bit limit and the lower current bit limit are reset to initial values.
The threshold adjustment state of the LED dimming circuit is described below:
In an actual use environment, the ambient light is more complex, for example, in the open air, the ambient light is sunlight; in a room, the ambient light is lamplight; the light collected by the receiving circuit is actually the superposition light of the ambient light and the light emitted by the LED, and if the ambient light is too strong, the light emitted by the LED can be greatly disturbed. In this embodiment, if the number of times of performing the cyclic iterative adjustment on the dimming control signal exceeds the preset second number of times threshold, the first digital code value corresponding to the superimposed light of the light emitted by the LED and the ambient light cannot be located within the target threshold range, which indicates that the use environment is changed, the ambient light becomes strong, and the target threshold range needs to be adjusted, and the LED dimming circuit 100 needs to be switched to the threshold adjustment state.
In an alternative embodiment, the dimming control module 10 may be configured to stop outputting the current dimming control signal to the LED driving circuit in the threshold adjustment state, that is, the LED does not emit light in the threshold adjustment state, and the receiving circuit collects ambient light.
The LED dimming circuit 100 of the present embodiment further includes a target threshold operation module 15, and the processing determination module 11 and the target threshold operation module 15 cooperate to implement target threshold adjustment.
The processing judging module 11 is further configured to receive a second optical digital code value in a threshold adjustment state, compare the second optical digital code value with a preset target threshold range to obtain a second comparison result, and output threshold adjustment information according to the second comparison result, where the second optical digital code value is a digital signal obtained by receiving and performing analog-to-digital conversion on an ambient light signal; the target threshold operation module 15 is configured to receive the threshold adjustment information input by the processing determination module, adjust a current target threshold range according to the threshold adjustment information, and output the adjusted target threshold range to the processing determination module; the processing judgment module 11 is further configured to update the current target threshold range according to the adjusted target threshold range.
Specifically, the threshold adjustment information may include a second optical digital code value, in the threshold adjustment state, the processing determining module 11 determines whether the target threshold range needs to be adjusted according to the second comparison result, and outputs the threshold adjustment information carrying the second optical digital code value when the determination result is yes.
In this embodiment, when the second optical digital code value is greater than or equal to the target lower threshold, it is explained that the influence of the ambient light on the light emitted by the LED is large, and the target threshold range needs to be adjusted.
Further, the processing judgment module 11 is further configured to: in the threshold adjustment state, if the second comparison result is that the second optical digital code value is larger than or equal to the target lower limit threshold value, outputting threshold adjustment information; if the second comparison result is that the second optical digital code value is smaller than the target lower limit threshold value, the threshold value adjusting information is not output, and the threshold value adjusting state is switched to the dimming state. That is, if the second comparison result is that the second optical digital code value is smaller than the adjusted target lower limit threshold value after the adjustment, it is determined that the adjustment of the target threshold value range is not required, and the threshold value adjustment state is switched to the dimming state.
The processing judging module 11 is matched with the target threshold computing module 15 to perform cyclic iterative adjustment on the target threshold range until the second light digital code value is smaller than the target lower limit threshold, at this time, the dimming state is switched again, and iterative adjustment is performed on the dimming control signal until the first light digital code value of the superposition of the light emitted by the LED and the ambient light falls into the adjusted target threshold range. Of course, it will be appreciated by those skilled in the art that the target lower threshold may be increased simultaneously with the target upper threshold.
In this embodiment, the target threshold range is adjusted to adapt to the change of the ambient light, so that the flexibility of adjusting the dimming control signal is improved, and the dimming efficiency is further improved.
Further, the step of the target threshold operation module 15 for performing the increase adjustment on the target lower limit threshold specifically includes: taking half of the difference between the upper limit of the threshold value bit and the second optical digital code value as an accumulated value; updating the threshold bit lower limit according to the second optical digital code value; and taking the sum of the target lower limit threshold value and the accumulated value as an adjusted target lower limit threshold value.
Wherein the initial values of the upper threshold bit limit and the lower threshold bit limit are determined according to the number of bits of the analog-to-digital converter 225, for example, the value of the 8-bit analog-to-digital converter 225 is from 0 to 255; the value of the 16-bit analog-to-digital converter 225 is from 0 to 65535. Thus, at 8 bits, the initial values of the upper threshold bit limit and the lower threshold bit limit are 255 and 0, respectively. And in the threshold range adjustment process, cycling is performed according to the steps until the second optical digital code value is smaller than the target lower limit threshold value, and then the upper limit of the threshold value bit and the lower limit of the threshold value bit are reset to initial values.
The non-threshold adjustment state of the LED dimmer circuit is described below:
In an alternative embodiment, in the non-threshold adjustment state, the dimming control signal is constant, and the processing determining module 11 is configured to: in a non-threshold adjustment state, receiving a first optical digital code value, comparing the first optical digital code value with a preset overflow threshold range, and judging whether the first optical digital code value is out of the overflow threshold range, wherein the first optical digital code value is a digital signal obtained by receiving and analog-digital converting an optical signal emitted by an LED and an ambient light signal; and if the times that the first optical digital code value is out of the overflow threshold range is larger than or equal to a preset first time number threshold value, switching the non-threshold value adjusting state into the dimming state.
Specifically, the overflow threshold range includes an overflow upper threshold and an overflow lower threshold; the processing judgment module 11 is further configured to: in a non-threshold adjustment state, if the first optical digital code value is larger than the overflow upper threshold or the first optical digital code value is smaller than the overflow lower threshold, accumulating the times of the first optical digital code value outside the overflow threshold range by 1; if the number of times that the first optical digital code value is out of the overflow threshold range is greater than or equal to a preset first time threshold value, switching the non-threshold value adjusting state to a dimming state, and zeroing the number of times that the first optical digital code value is out of the overflow threshold range; the target threshold range comprises a target lower limit threshold and a target upper limit threshold, and the overflow upper limit threshold, the target lower limit threshold and the overflow lower limit threshold are sequentially reduced.
Further, the second counter 16 may be configured to count the number of times the first optical digital code value is out of the overflow threshold range, the second counter 16 is connected to the processing and judging module 11, and the processing and judging module 11 performs count control, specifically, if the first optical digital code value is greater than the overflow upper limit threshold or the first optical digital code value is less than the overflow lower limit threshold, the count of the number of times the second counter 16 exceeds the overflow threshold is accumulated by 1; if the number of times of exceeding the overflow threshold is greater than or equal to the preset first time threshold, the non-threshold adjustment state is switched to the dimming state, and the count of the second counter 16 is reset to zero.
The overflow threshold range is determined according to the detection range of the receiving circuit, the interval of the overflow threshold range is larger than the interval of the target threshold range, the situation that the superposition of the light emitted by the LED and the ambient light is not in the detection range of the receiving circuit possibly occurs when the first light digital code value is out of the overflow threshold range, and when the times of the first light digital code value out of the overflow threshold range reaches the preset first time digital threshold, the occurrence probability that the superposition of the light emitted by the LED and the ambient light is not in the detection range of the receiving circuit is further increased, and the dimming state needs to be switched to for dimming. Alternatively, the overflow threshold range may be adjusted between a maximum of 18bit signed numbers, i.e. may be set between-262142 ~ 262143.
In this embodiment, the fast entering into the dimming state is facilitated by setting the overflow threshold range and switching to the dimming state when the number of times in the overflow threshold range reaches the first preset threshold.
Optionally, in the dimming circuit 100 of the present embodiment, the overflow threshold range and the target threshold range may both correspond to the number of bits of the analog-to-digital converter and whether there is an output symbol, for example, the analog-to-digital converter is 18 bits and the output is signed, and then the overflow threshold range is adjusted between 18 bits signed numbers, that is, may be set between-262142 ~ 262143, and the target threshold range is set between the overflow threshold ranges; for another example, the analog-to-digital converter is 8 bits and the output is unsigned, then the overflow threshold range is adjusted between 8bit unsigned numbers, i.e., can be set between 0 and 255, and the target threshold range is set between the overflow threshold ranges.
In an alternative embodiment, to increase the flexibility of dimming, the voltage signals of the superposition of the light emitted by the LEDs of different phases and the ambient light may be sampled separately. The LED light signal is a periodic pulse signal, different collection moments can be set in one pulse period, each collection moment corresponds to a phase, which can also be called a conversion phase, in this embodiment, there are N collection moments in one pulse period, N is a natural number greater than or equal to 1, so there are N phases in one pulse period, each phase can be configured with different driving currents, that is, each phase can be configured with different dimming control signals, each phase can be used as an independent node for dimming, and the generated adjusted dimming control signals are effective in the corresponding phase of the next pulse period. For example, the pulse period of the LED, or PRF (pulse repetition frequency ) is generally adjustable, and the inventive circuit may be adapted to a PRF of between a minimum of 1Hz and 1000 Hz. The processing judging module 11 comprises a plurality of processing judging units, wherein each processing judging unit receives a first optical digital code value of one phase and outputs dimming information of the corresponding phase; the dimming control module 10 includes a plurality of dimming control units, each of which receives dimming information of one phase, obtains a current dimming control signal of a corresponding phase, and outputs an adjusted dimming control signal of the corresponding phase according to the dimming information of the corresponding phase and the dimming control signal.
Specifically, the analog-to-digital converter 225 is configured to convert the voltage amplitudes of the input voltage signal at different phases into first optical digital code values of different phases, the analog-to-digital converter 225 outputs a time sequence data formed by a plurality of first optical digital code values, for example, N first optical digital code values of different phases are shared, the output time sequence data is the first optical digital code value t1, the first optical digital code values t2, … …, the first optical digital code value tN, and accordingly, the dimming nodes are provided with N, the dimming control module 10 includes a signal forwarding dimming module 12 and a dimming operation module 13, and the processing judgment module 11, the signal forwarding dimming module 12 and the dimming operation module 13 are respectively provided with N corresponding units, as shown in fig. 4, each working cycle of the LED dimming circuit 100 includes a plurality of phases, the processing judgment module 11 includes a plurality of processing judgment units 111, each processing judgment unit 111 receives the first optical digital code value of one phase, and outputs the dimming information of the corresponding phase; the signal forwarding dimming module 12 includes a plurality of signal forwarding dimming units 121, each signal forwarding dimming unit 121 receives dimming information of one phase and outputs dimming information of a corresponding phase and a current dimming control signal of the corresponding phase; the dimming operation module 13 includes a plurality of dimming operation units 131, and each dimming operation unit 131 receives dimming information of one phase and a current dimming control signal and outputs an adjusted dimming control signal of a corresponding phase to a corresponding signal forwarding dimming unit 121. The functions and execution flows of the processing determination unit 111, the signal transfer dimming unit 121, and the dimming operation unit 131 are specifically described in the above embodiments with respect to the processing determination module 11, the signal transfer dimming module 12, and the dimming operation module 13.
Further, referring to fig. 4, the processing determining module 11 further includes a first register 112 for storing a target threshold range, and the signal forwarding dimming module 12 further includes a second register 122 for storing a current control bit.
The dimming circuit 100 further includes a register configuration module 17 connected to the processing determination module 11 and the signal forwarding dimming module 12, and configured to obtain a target threshold range and a dimming control signal when receiving a trigger signal generated by a user triggering a power key or a dimming switch; configuring the first register 112 according to a target threshold range; the second register 122 is configured according to the dimming control signal. Specifically, when the user turns on or turns on the dimmer switch, the initial target threshold range and the dimming control signal are configured, and the target threshold range and the dimming control signal acquired by the register configuration module 17 may be a preset initial target threshold range and a preset dimming control signal, or may be a target threshold range and a dimming control signal that are recorded last time.
The dimming circuit 100 further includes an asynchronous signal processing module 18 disposed between the processing determination module 11 and the signal forwarding dimming module 12, for synchronizing a phase of the dimming information output by the processing determination unit 111 with a phase of the signal forwarding dimming module 12.
Fig. 5 is a flowchart of an LED dimming method according to a second embodiment of the present invention. It should be noted that, if there are substantially the same results, the method of the present invention is not limited to the flow sequence shown in fig. 5. The LED dimming method of the present embodiment may be implemented by the LED dimming circuit 100 of the first embodiment, or may be implemented by a software program, and details related to the first embodiment in this embodiment are specifically referred to above, which are not described in detail herein. As shown in fig. 5, the LED dimming method mainly includes the following steps:
s110, in the dimming state, comparing the acquired first optical digital code value with a preset target threshold range to obtain a first comparison result.
The first optical digital code value is a digital signal obtained by receiving and analog-to-digital converting an optical signal emitted by the LED and an ambient light signal.
S120, dimming information is obtained according to the first comparison result.
The target threshold range comprises a target lower limit threshold and a target upper limit threshold. Optionally, in this step, if the first comparison result is that the first optical digital code value is greater than the preset target upper limit threshold, determining that the dimming information is reduced; and if the first comparison result is that the first optical digital code value is smaller than the preset target lower limit threshold value, determining that the dimming information is increased. Further, if the first comparison result is that the first optical digital code value is greater than or equal to the target lower limit threshold value and less than or equal to the target upper limit threshold value, the dimming information is not output.
And S130, adjusting the current dimming control signal according to the dimming information.
Optionally, in this step, when the dimming information is decreasing, adjusting the dimming control signal to decrease the intensity of the light signal emitted by the LED; when the dimming information is increasing, the dimming control signal is adjusted to increase the intensity of the light signal emitted by the LED.
And S140, updating the current dimming control signal according to the adjusted dimming control signal, and outputting the updated current dimming control signal to the LED driving circuit.
In this embodiment, the intensity of the light signal obtained by superimposing the light emitted by the LED and the ambient light is controlled within the detection range corresponding to the target threshold range, so that the adaptive adjustment of the dimming control signal is realized, and the dimming efficiency of the LED is improved.
Fig. 6 is a flowchart of an LED dimming method according to a third embodiment of the present invention. The present embodiment further includes, on the basis of the second embodiment, after step S110:
and S210, switching the dimming state into a non-dimming state when the first comparison result is that the first optical digital code value is within the target threshold range or the number of times of adjusting the dimming control signal is larger than or equal to a preset second number of times threshold.
Wherein the non-dimming state comprises a threshold adjustment state and a non-threshold adjustment state. Optionally, step S210 specifically includes:
s211, switching the dimming state to a non-threshold adjustment state if the first comparison result is that the first optical digital code value is within the target threshold range;
s212, if the number of times of adjusting the dimming control signal is greater than or equal to a preset second time threshold, switching the dimming state to a threshold adjustment state.
Fig. 7 is a flowchart of an LED dimming method according to a fourth embodiment of the present invention. The present embodiment further includes, on the basis of the third embodiment, after step S212:
And S310, receiving a second optical digital code value in a threshold adjustment state, and comparing the second optical digital code value with a preset target threshold range to obtain a second comparison result.
The second optical digital code value is a digital signal obtained after receiving and analog-to-digital converting the ambient light signal.
And S320, outputting threshold adjustment information according to the second comparison result, and adjusting the current target threshold range according to the threshold adjustment information.
The target threshold range comprises a target lower limit threshold and a target upper limit threshold. Optionally, in the process of outputting the threshold adjustment information according to the second comparison result, if the second comparison result is that the second optical digital code value is greater than or equal to the target lower limit threshold, outputting the threshold adjustment information; if the second comparison result is that the second optical digital code value is smaller than the target lower limit threshold value, the threshold value adjusting information is not output, and the threshold value adjusting state is switched to the dimming state.
And S330, updating the current target threshold range according to the adjusted target threshold range.
In this embodiment, by adjusting the target threshold range, the change of the ambient light can be adapted, so that the flexibility of adjusting the dimming control signal is improved, and the dimming efficiency is further improved.
Fig. 8 is a flowchart of an LED dimming method according to a fifth embodiment of the present invention. The present embodiment further includes, after step S211, on the basis of the third embodiment:
s410, in a non-threshold adjustment state, the first optical digital code value is received, the first optical digital code value is compared with a preset overflow threshold range, and whether the first optical digital code value is out of the overflow threshold range is judged.
S420, if the number of times that the first optical digital code value is out of the overflow threshold range is greater than or equal to a preset first time threshold, switching the non-threshold adjustment state to the dimming state.
In this embodiment, the fast entering into the dimming state is facilitated by setting the overflow threshold range and switching to the dimming state when the number of times in the overflow threshold range reaches the first preset threshold.
Fig. 9 is a flowchart of an LED dimming method according to a sixth embodiment of the present invention. It should be noted that, if there are substantially the same results, the method of the present invention is not limited to the flow sequence shown in fig. 9. The LED dimming method of the present embodiment is implemented by the LED dimming circuit 100 of the first embodiment, or may be implemented by a software program, and details related to the first embodiment in this embodiment are specifically referred to above, which are not described in detail herein. In this embodiment, the dimming control signal is a current control bit, as shown in fig. 9, and the LED dimming method mainly includes the following steps:
S101, in a dimming state, comparing the acquired first optical digital code value with a preset target threshold range to obtain a first comparison result.
The first optical digital code value is a digital signal obtained by receiving and analog-to-digital converting an optical signal emitted by the LED and an ambient light signal.
S102, determining whether current control bits of the LED driving circuit need to be adjusted and an adjustment direction when adjustment is needed according to a first comparison result.
The step S102 specifically includes: s1021, if the first comparison result is that the first optical digital code value is larger than the preset target upper limit threshold, determining that the current control bit needs to be adjusted and the adjustment direction is reduced, and accumulating the count of the dimming times by 1. S1022, if the first comparison result is that the first optical digital code value is smaller than the preset target lower limit threshold, determining that the current control bit needs to be adjusted and the adjustment direction is increased, and accumulating the count of the dimming times by 1. S1023, if the first comparison result is that the first optical digital code value is smaller than or equal to the target upper limit threshold value and larger than or equal to the target lower limit threshold value, determining that the current control bit does not need to be adjusted, switching the dimming state into the normal working state, and resetting the count of the dimming times to zero. And S1024, if the dimming times are greater than a preset second time threshold, switching the dimming state to a threshold adjustment state, and resetting the count of the dimming times to zero.
And S103, if the determination result is yes, adjusting the current control bit according to the adjustment direction, and sending the adjusted current control bit to the LED driving circuit.
The adjusting procedure of the current control bit in step S103 may include: s1031, if the adjustment direction is increased, taking half of the difference between the upper limit of the current bit and the current control bit as an increased value, updating the lower limit of the current bit according to the current control bit, and taking the sum of the current control bit and the increased value as the adjusted current control bit; s1032, if the adjustment direction is decreased, half of the difference between the current control bit and the current bit lower limit is set as the decrease value, the current bit upper limit is updated according to the current control bit, and the difference between the current control bit and the decrease value is set as the adjusted current control bit.
In an alternative embodiment, after step S1024, further comprising:
S201, in the threshold adjustment state, the output of the current control bit to the LED driving circuit is stopped.
S202, comparing the input second optical digital code value with a preset target threshold range to obtain a second comparison result.
The second optical digital code value is a digital signal obtained after receiving and analog-to-digital converting the ambient light signal.
S203, determining whether the target threshold range needs to be adjusted according to the second comparison result.
The step S203 specifically includes: s2031, comparing the input second optical digital code value with a preset target threshold range in a threshold adjustment state to obtain a second comparison result; s2032, if the second comparison result is that the second optical digital code value is greater than or equal to the target lower limit threshold value, determining that the target threshold value range needs to be adjusted; s2033, if the second comparison result is that the second optical digital code value is smaller than the target lower limit threshold, determining that the target threshold range does not need to be adjusted, and switching the threshold adjustment state to the dimming state, at this time, returning to step S101.
And S204, if the determination result is yes, increasing and adjusting the target lower threshold value of the current target threshold value range according to the second optical digital code value, and updating the current target threshold value range according to the adjusted target threshold value range.
The tuning procedure of the target threshold range in step S204 specifically includes: s2041, taking half of the difference between the upper limit of the threshold value bit and the second optical digital code value as an accumulated value; s2042, updating the lower limit of the threshold bit according to the second optical digital code value; and S2043, taking the sum of the target lower limit threshold and the accumulated value as an adjusted target lower limit threshold. Of course, the target upper limit threshold may be adjusted at the same time, and in step S2043, the sum of the target upper limit threshold and the accumulated value may be used as the adjusted target upper limit threshold.
S205, if the determination result is no, the threshold adjustment state is switched to the dimming state. At this time, the process returns to step S101.
In an alternative embodiment, after step S1023, further comprising:
s301, under a non-threshold adjustment state, comparing the input first optical digital code value with a preset overflow threshold range to obtain a third comparison result, wherein the overflow threshold range comprises an overflow upper threshold value and an overflow lower threshold value.
S302, if the first optical digital code value is larger than the overflow upper limit threshold value or the first optical digital code value is smaller than the overflow lower limit threshold value, the count of the times exceeding the overflow threshold value by the second counter is accumulated by 1.
S303, if the number of times exceeding the overflow threshold is greater than or equal to a preset first time threshold, switching the non-threshold adjustment state to the dimming state, and resetting the count of the second counter to zero.
The method further comprises the following steps before the step S101:
S401, receiving a trigger signal generated by a user triggering a power key or a dimming switch, and acquiring a current target threshold range and an initial current control bit;
S402, acquiring and storing an ambient light code value;
S403, switching to a dimming state, and sending an initial current control bit to the LED driving circuit. At this time, the process advances to step S101.
Specifically, when the power supply of the wearable device is turned on or the dimmer switch is turned on, S401 to S403 are first executed to perform initial configuration; then entering a dimming state, executing steps S101-S103 to perform dimming so as to acquire the most suitable current control bit in the current environment, entering a non-threshold adjustment state if dimming is successful, executing steps S301-S303 to perform normal detection, returning to step S101 when detection abnormality occurs in the non-threshold adjustment state, and re-entering the dimming state; if the dimming fails, the method enters a threshold adjustment state, and steps S201 to S205 are executed to adjust the target threshold range, and after the threshold range adjustment is completed, the method returns to step S101 to enter the dimming state again. In operation, the wearable device switches between a dimming state, a non-threshold adjustment state, and a threshold adjustment state.
Fig. 10 is a schematic structural view of an LED dimming device according to a seventh embodiment of the present invention. The LED dimming device is in one-to-one correspondence with the LED dimming method in the second embodiment. As shown in fig. 10, the LED dimming device 50 includes: the device comprises a comparison module 51, a judgment module 52, an adjustment module 53 and an updating module 54, wherein the comparison module 51 is used for comparing an acquired first optical digital code value with a preset target threshold range in a dimming state to obtain a first comparison result, and the first optical digital code value is a digital signal obtained by receiving and performing analog-digital conversion on an optical signal emitted by an LED and an ambient light signal; a judging module 52, configured to obtain dimming information according to the first comparison result; the adjusting module 53 is configured to adjust the current dimming control signal according to the dimming information; the updating module 54 is configured to update the current dimming control signal according to the adjusted dimming control signal, and output the updated current dimming control signal to the LED driving circuit.
Fig. 11 is a schematic structural diagram of a chip according to an eighth embodiment of the present invention. As shown in fig. 11, the chiplet 61 includes an LED dimmer circuit 100.
Fig. 12 is a schematic structural view of a wearable device of a ninth embodiment of the present invention. As shown in fig. 12, the wearable device 62 includes an LED dimmer circuit 100.
Fig. 13 is a schematic structural view of a wearable device according to a tenth embodiment of the present invention. As shown in fig. 13, the wearable device 70 includes a processor 71 and a memory 72 coupled to the processor 71.
The memory 72 stores program instructions for implementing the LED dimming method of any of the above embodiments.
The processor 71 is configured to execute program instructions stored in the memory 72 for LED dimming.
The processor 71 may also be referred to as a CPU (Central Processing Unit ). The processor 71 may be an integrated circuit chip with signal processing capabilities. Processor 71 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 14, fig. 14 is a schematic structural diagram of a storage medium 80 according to an eleventh embodiment of the present invention. The storage medium 80 according to the embodiment of the present invention stores the program instructions 81 capable of implementing all the methods described above, and the storage medium may be non-volatile or volatile. The program instructions 81 may be stored in the storage medium as a software product, and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes, or a terminal device such as a computer, a server, a mobile phone, a tablet, or the like.
While the invention has been described with respect to the above embodiments, it should be noted that modifications can be made by those skilled in the art without departing from the inventive concept, and these are all within the scope of the invention.

Claims (16)

1. The LED dimming circuit is characterized by comprising a processing judging module and a dimming control module;
The processing judging module is used for receiving a first optical digital code value in a dimming state, comparing the first optical digital code value with a preset target threshold range to obtain a first comparison result, and outputting dimming information according to the first comparison result, wherein the first optical digital code value is a digital signal obtained by receiving and performing analog-to-digital conversion on an optical signal emitted by an LED and an ambient light signal;
The dimming control module is used for receiving the dimming information output by the processing judging module and acquiring a current dimming control signal;
Adjusting the current dimming control signal according to the dimming information, updating the current dimming control signal according to the adjusted dimming control signal, and outputting the updated current dimming control signal to an LED driving circuit;
the processing judging module is further configured to switch the dimming state to a non-dimming state when the first comparison result indicates that the first optical digital code value is within the target threshold range, or the number of times of adjusting the dimming control signal is greater than or equal to a preset second number of times threshold;
Wherein the non-dimming state comprises a non-threshold adjustment state; the processing judging module is further used for receiving a first optical digital code value in a non-threshold adjustment state, comparing the first optical digital code value with a preset overflow threshold range, and judging whether the first optical digital code value is out of the overflow threshold range or not; and if the times of the first optical digital code value outside the overflow threshold range is larger than or equal to a preset first time number threshold value, switching the non-threshold value adjusting state into the dimming state.
2. The LED dimmer circuit of claim 1, wherein the non-dimming state comprises a threshold adjustment state and a non-threshold adjustment state, the process determination module further configured to: if the first comparison result is that the first optical digital code value is within the target threshold range, switching the dimming state to a non-threshold adjustment state; and if the number of times of adjusting the dimming control signal is greater than or equal to a preset second time threshold value, switching the dimming state into a threshold value adjusting state.
3. The LED dimming circuit of claim 1 or 2, wherein the non-dimming state comprises a threshold adjustment state;
The processing judging module is further configured to receive a second optical digital code value in a threshold adjustment state, compare the second optical digital code value with a preset target threshold range to obtain a second comparison result, and output threshold adjustment information according to the second comparison result, where the second optical digital code value is a digital signal obtained by receiving and performing analog-to-digital conversion on an ambient light signal;
The LED dimming circuit further comprises a target threshold operation module, a processing judgment module and a control module, wherein the target threshold operation module is used for receiving threshold adjustment information input by the processing judgment module, adjusting the current target threshold range according to the threshold adjustment information and outputting the adjusted target threshold range to the processing judgment module;
the processing judging module is also used for updating the current target threshold range according to the adjusted target threshold range.
4. The LED dimmer circuit of claim 3, wherein the target threshold range comprises a target lower threshold and a target upper threshold;
The processing judgment module is also used for: in a threshold adjustment state, if the second comparison result is that the second optical digital code value is greater than or equal to the target lower limit threshold value, outputting the threshold adjustment information; and if the second comparison result is that the second optical digital code value is smaller than the target lower limit threshold value, the threshold value adjustment information is not output, and the threshold value adjustment state is switched to the dimming state.
5. The LED dimmer circuit of claim 1, wherein the overflow threshold range comprises an overflow upper threshold and an overflow lower threshold;
the processing judging module is further configured to accumulate the number of times that the first optical digital code value is out of the overflow threshold range by 1 if the first optical digital code value is greater than the overflow upper threshold or the first optical digital code value is less than the overflow lower threshold in a non-threshold adjustment state; if the times of the first optical digital code value outside the overflow threshold range is larger than or equal to a preset first time number threshold, switching a non-threshold adjustment state to a dimming state, and zeroing the times of the first optical digital code value outside the overflow threshold range;
The target threshold range comprises a target lower limit threshold and a target upper limit threshold, and the overflow upper limit threshold, the target lower limit threshold and the overflow lower limit threshold are sequentially reduced.
6. The LED dimmer circuit of claim 1, wherein the target threshold range comprises a target lower threshold and a target upper threshold; the processing judgment module is also used for: and if the first comparison result is that the first optical digital code value is larger than a preset target upper limit threshold value or the first optical digital code value is smaller than a preset target lower limit threshold value, accumulating the times of adjusting the dimming control signal by 1.
7. The LED dimmer circuit of claim 1, wherein the process determination module is further configured to: if the first comparison result shows that the first optical digital code value is larger than a preset target upper limit threshold value, determining that the dimming information is reduced; if the first comparison result shows that the first optical digital code value is smaller than a preset target lower limit threshold value, determining that the dimming information is increased; correspondingly, the dimming control module is further configured to: when the dimming information is reduced, adjusting the dimming control signal to reduce the intensity of the light signal emitted by the LED; when the dimming information is increasing, the dimming control signal is adjusted to increase the intensity of the light signal emitted by the LED.
8. The LED dimmer circuit of claim 1 or 2, wherein each duty cycle of the LED dimmer circuit comprises a plurality of phases, the processing and judging module comprises a plurality of processing and judging units, each processing and judging unit receives a first digital code value of one phase and outputs dimming information of a corresponding phase; the dimming control module comprises a plurality of dimming control units, each dimming control unit receives dimming information of one phase, acquires the current dimming control signal of the corresponding phase, and outputs an adjusted dimming control signal of the corresponding phase according to the dimming information of the corresponding phase and the dimming control signal.
9. The LED dimmer circuit of claim 8, wherein the process determination module further comprises a first register for storing the target threshold range, and the dimming control module further comprises a second register for storing the dimming control signal;
The dimming circuit further comprises a register configuration module connected with the processing judging module and the dimming control module, and the register configuration module is used for configuring the first register according to a pre-stored initial target threshold range; configuring the second register according to a pre-stored initial dimming control signal;
The dimming circuit further comprises an asynchronous signal processing module arranged between the processing judging module and the dimming control module and used for synchronizing the phase of the dimming information output by the processing judging unit with the phase of the dimming control module.
10. A chip comprising the LED dimmer circuit of any one of claims 1-9.
11. A wearable device, characterized in that it comprises the LED dimming circuit of any one of claims 1 to 9.
12. A method of dimming an LED, comprising:
In a dimming state, comparing the acquired first optical digital code value with a preset target threshold range to obtain a first comparison result, wherein the first optical digital code value is a digital signal obtained by receiving and analog-digital converting an optical signal emitted by an LED and an ambient light signal;
Acquiring dimming information according to the first comparison result;
adjusting the current dimming control signal according to the dimming information;
Updating the current dimming control signal according to the adjusted dimming control signal, and outputting the updated current dimming control signal to an LED driving circuit;
When the first comparison result is that the first light digital code value is within the target threshold range or the number of times of adjusting the dimming control signal is larger than or equal to a preset second number of times threshold, switching the dimming state into a non-dimming state, wherein the non-dimming state comprises a non-threshold adjusting state;
In a non-threshold adjustment state, receiving a first optical digital code value, comparing the first optical digital code value with a preset overflow threshold range, and judging whether the first optical digital code value is out of the overflow threshold range or not; and if the times of the first optical digital code value outside the overflow threshold range is larger than or equal to a preset first time number threshold value, switching the non-threshold value adjusting state into the dimming state.
13. The LED dimming method of claim 12, wherein the non-dimming state comprises a threshold adjustment state and a non-threshold adjustment state; and when the first comparison result indicates that the first optical digital code value is within the target threshold range, or the number of times of adjusting the dimming control signal is greater than or equal to a preset second number of times threshold, switching the dimming state to a non-dimming state, including:
if the first comparison result is that the first optical digital code value is within the target threshold range, switching the dimming state to a non-threshold adjustment state;
And if the number of times of adjusting the dimming control signal is greater than or equal to a preset second time threshold value, switching the dimming state into a threshold value adjusting state.
14. The LED dimming method of claim 12 or 13, wherein the target threshold range includes a target lower threshold and a target upper threshold;
the obtaining the dimming information according to the first comparison result includes:
If the first comparison result shows that the first optical digital code value is larger than a preset target upper limit threshold value, determining that the dimming information is reduced;
if the first comparison result shows that the first optical digital code value is smaller than a preset target lower limit threshold value, determining that the dimming information is increased;
correspondingly, the adjusting the current dimming control signal according to the dimming information comprises the following steps:
when the dimming information is reduced, adjusting the dimming control signal to reduce the intensity of the light signal emitted by the LED;
When the dimming information is increasing, the dimming control signal is adjusted to increase the intensity of the light signal emitted by the LED.
15. The LED dimming method of claim 13, further comprising, after the switching the dimming state to the threshold adjustment state:
in a threshold adjustment state, receiving a second optical digital code value, and comparing the second optical digital code value with a preset target threshold range to obtain a second comparison result, wherein the second optical digital code value is a digital signal obtained after receiving and analog-digital converting an ambient light signal;
Outputting threshold adjustment information according to the second comparison result, and adjusting the current target threshold range according to the threshold adjustment information;
and updating the current target threshold range according to the adjusted target threshold range.
16. The LED dimming method of claim 15, wherein the target threshold range comprises a target lower threshold and a target upper threshold;
The outputting the threshold adjustment information according to the second comparison result includes:
Outputting the threshold adjustment information if the second comparison result is that the second optical digital code value is greater than or equal to the target lower limit threshold;
and if the second comparison result is that the second optical digital code value is smaller than the target lower limit threshold value, the threshold value adjustment information is not output, and the threshold value adjustment state is switched to the dimming state.
CN202111438377.1A 2021-11-29 2021-11-29 LED dimming circuit, chip, wearable device and dimming method Active CN114071826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111438377.1A CN114071826B (en) 2021-11-29 2021-11-29 LED dimming circuit, chip, wearable device and dimming method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111438377.1A CN114071826B (en) 2021-11-29 2021-11-29 LED dimming circuit, chip, wearable device and dimming method

Publications (2)

Publication Number Publication Date
CN114071826A CN114071826A (en) 2022-02-18
CN114071826B true CN114071826B (en) 2024-04-30

Family

ID=80277235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111438377.1A Active CN114071826B (en) 2021-11-29 2021-11-29 LED dimming circuit, chip, wearable device and dimming method

Country Status (1)

Country Link
CN (1) CN114071826B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101506A (en) * 2014-04-16 2015-11-25 东莞巨扬电器有限公司 Lamp with passive human body infrared sensing device and adjusting method thereof
CN106137165A (en) * 2015-05-15 2016-11-23 瑞萨电子株式会社 Sphygmometer
CN106561068A (en) * 2015-10-02 2017-04-12 德克萨斯仪器股份有限公司 Transmitter Architecture For Photoplethysmography Systems
CN106580339A (en) * 2016-12-23 2017-04-26 中国科学院深圳先进技术研究院 Blood oxygen pulse acquisition system and blood oxygen pulse acquisition front integrated circuit
US10188330B1 (en) * 2014-02-05 2019-01-29 Covidien Lp Methods and systems for determining a light drive parameter limit in a physiological monitor
CN109863703A (en) * 2019-01-24 2019-06-07 深圳市汇顶科技股份有限公司 Signal Regulation method, apparatus, chip, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10188330B1 (en) * 2014-02-05 2019-01-29 Covidien Lp Methods and systems for determining a light drive parameter limit in a physiological monitor
CN105101506A (en) * 2014-04-16 2015-11-25 东莞巨扬电器有限公司 Lamp with passive human body infrared sensing device and adjusting method thereof
CN106137165A (en) * 2015-05-15 2016-11-23 瑞萨电子株式会社 Sphygmometer
CN106561068A (en) * 2015-10-02 2017-04-12 德克萨斯仪器股份有限公司 Transmitter Architecture For Photoplethysmography Systems
CN106580339A (en) * 2016-12-23 2017-04-26 中国科学院深圳先进技术研究院 Blood oxygen pulse acquisition system and blood oxygen pulse acquisition front integrated circuit
CN109863703A (en) * 2019-01-24 2019-06-07 深圳市汇顶科技股份有限公司 Signal Regulation method, apparatus, chip, equipment and storage medium

Also Published As

Publication number Publication date
CN114071826A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
US9960904B2 (en) Correlation determination early termination
KR101737280B1 (en) Energy-efficient system for distant measurement of analogue signals
US7286021B2 (en) Low power random bit generator and random number generator
US20200100690A1 (en) Physiological detection device
US20210000357A1 (en) Current cancellation circuit, heart rate detection device and wearable device
WO2014170181A1 (en) Host communication circuit, client communication circuit, communication system and communication method
US9013340B1 (en) Protection circuit for analog-to-digital converter, digital power supply, digital signal processing method, processing module, and circuit protection method
CN114071826B (en) LED dimming circuit, chip, wearable device and dimming method
JP2010178043A (en) Receiving circuit
US20110064161A1 (en) Frequency selective transmission apparatus
WO2020082323A1 (en) Fingerprint detection coding apparatus, fingerprint detection system and electronic device
Giorgi Lightweight Lossless Compression for $ N $-Dimensional Data in Multi-Sensor Systems
CN113054984B (en) Pressure-sensitive detection circuit, chip, system and pressure-sensitive detection method
CN113358141B (en) Photoelectric sensor and signal processing method
KR102464685B1 (en) Method and apparatus for optical signal communication
KR20100111628A (en) Method of block-coded group modulation, and transmitter using the same
KR100978653B1 (en) Low power communication system
WO2022153257A1 (en) Cyclic adc with voting and adaptive averaging
US20230007758A1 (en) Operation-control node for controlling lighting devices
Silva et al. Flexible A/D converter architecture targeting sparse signals
CN217305839U (en) Quantum true random number SOC chip and equipment
Mazloum et al. Sub-V T design of a wake-up receiver back-end in 65 nm CMOS
TWI734459B (en) Proximity sensor operating method and proximity sensor applying the method
US9119144B2 (en) Method and apparatus for generation of balanced weight preamble sequences
CN115376263B (en) Smoke sensor and smoke detection equipment based on high-precision comparator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant