CN111901938B - LED driving signal processing method and circuit, LED driving device and lamp - Google Patents

LED driving signal processing method and circuit, LED driving device and lamp Download PDF

Info

Publication number
CN111901938B
CN111901938B CN202010899414.8A CN202010899414A CN111901938B CN 111901938 B CN111901938 B CN 111901938B CN 202010899414 A CN202010899414 A CN 202010899414A CN 111901938 B CN111901938 B CN 111901938B
Authority
CN
China
Prior art keywords
signal
quantization
bit number
pwm
count value
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
CN202010899414.8A
Other languages
Chinese (zh)
Other versions
CN111901938A (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.)
Shenzhen Sunmoon Microelectronics Co Ltd
Original Assignee
Shenzhen Sunmoon Microelectronics 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 Shenzhen Sunmoon Microelectronics Co Ltd filed Critical Shenzhen Sunmoon Microelectronics Co Ltd
Priority to CN202010899414.8A priority Critical patent/CN111901938B/en
Publication of CN111901938A publication Critical patent/CN111901938A/en
Application granted granted Critical
Publication of CN111901938B publication Critical patent/CN111901938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/30Driver circuits
    • H05B45/345Current stabilisation; Maintaining constant current
    • 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
    • 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
    • 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
    • H05B45/32Pulse-control circuits
    • H05B45/325Pulse-width modulation [PWM]
    • 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

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides an LED driving signal processing method, an LED driving signal processing circuit, an LED driving device and a lamp, wherein the LED driving signal processing method modulates a PWM control signal and a system internal clock signal, counts rising edges of the PWM control signal and the system internal clock signal, converts the obtained count value of the PWM control signal into corresponding quantization levels when the number of the rising edges of the system internal clock signal reaches a preset number, and performs digital-to-analog conversion into an analog voltage signal, so that a constant current driving module is driven to output a current signal with a corresponding size to an LED lamp, analog dimming is realized, the LED lamp is normally driven, no stroboflash occurs, and the lighting effect is improved.

Description

LED driving signal processing method and circuit, LED driving device and lamp
Technical Field
The invention belongs to the technical field of LED dimming, and particularly relates to an LED driving signal processing method and circuit, an LED driving device and a lamp.
Background
Along with popularization of LED illumination, an intelligent illumination power supply or a lamp developed based on a traditional LED illumination driving power supply gradually enters into living application of people, a control signal of an intelligent control module on the intelligent illumination power supply in the current market generally controls an LED constant current control chip in a pulse width modulation form (hereinafter, described as PWM for short), a conventional LED linear constant current control chip changes the output current of the received PWM control signal along with the PWM signal, and when the high level of the PWM is started, the linear constant current outputs current; when the low level of PWM is opened, linear constant current voltage does not have current output, and the electric current on the LED lamp is not the analog output, and output current's variation frequency and PWM control signal are unanimous, and there is the stroboscopic in the LED lamp, and human eyes looks at this kind of LED light source for a long time, can cause and use eyestrain.
Disclosure of Invention
The invention aims to provide an LED driving signal processing method, and aims to solve the problem of stroboflash in the traditional PWM dimming.
A first aspect of an embodiment of the present invention provides an LED driving signal processing method, including:
modulating a system internal clock signal and a PWM control signal into a PWM modulation signal;
counting rising edges of the system internal clock signal and rising edges of the PWM modulation signal respectively;
when the count value of the rising edges of the clock signals in the system reaches a preset number, acquiring the count value of the rising edges of the PWM modulation signals;
converting the count value of the rising edge of the PWM modulation signal into a first quantization level under a first quantization digit;
and converting the first quantization stage number into an analog voltage signal and outputting the analog voltage signal to a constant current driving unit, so that the constant current driving unit outputs a current signal corresponding to the analog voltage signal to an LED lamp to drive the LED lamp.
In one embodiment, the frequency of the system internal clock signal is greater than the PWM control signal.
In one embodiment, the duty cycle of the PWM modulation signal is synchronized with the duty cycle of the PWM control signal, and the rising edge of the PWM modulation signal is synchronized with the rising edge of the system internal clock signal.
In one embodiment, the converting the count value of the rising edge of the PWM modulated signal to a first quantization level number at a first quantization bit number includes:
moving the count value of the rising edge of the PWM modulation signal to a preset direction by a third quantization digit to obtain a first quantization grade of the count value of the rising edge of the PWM modulation signal under the first quantization digit; the third quantization bit number is equal to a difference between a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs and the first quantization bit number, the preset direction is right when the first quantization bit number is smaller than the second quantization bit number, and the preset direction is left when the first quantization bit number is larger than the second quantization bit number.
In one embodiment, the converting the count value of the rising edge of the PWM modulated signal into a first quantization level number at a first quantization bit number includes:
dividing the count value of the rising edge of the PWM modulation signal by the total quantization level of a third quantization bit number to obtain a first quantization level of the count value of the rising edge of the PWM modulation signal under the first quantization bit number; wherein the third quantization bit number is equal to a difference between the first quantization bit number and a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs.
A second aspect of an embodiment of the present invention provides an LED driving signal processing circuit, including:
the PWM signal modulation unit is used for modulating a system internal clock signal and a PWM control signal into a PWM modulation signal;
the PWM signal sampling unit is used for counting the rising edges of the system internal clock signal and the PWM modulation signal respectively; when the count value of the rising edges of the clock signals in the system reaches a preset number, acquiring the count value of the rising edges of the PWM modulation signals;
the PWM duty ratio conversion unit is used for converting the count value of the rising edge of the PWM modulation signal into a first quantization level under a first quantization bit number;
and the digital-to-analog conversion unit is used for converting the first quantization level into an analog voltage signal and outputting the analog voltage signal to the constant current driving unit so that the constant current driving unit outputs a current signal corresponding to the analog voltage signal to the LED lamp to drive the LED lamp.
In one embodiment, the frequency of the system internal clock signal is greater than the PWM control signal;
the duty ratio of the PWM modulation signal is synchronous with the duty ratio of the PWM control signal, and the rising edge of the PWM modulation signal is synchronous with the rising edge of the system internal clock signal.
In one embodiment, the PWM duty conversion unit is specifically configured to include:
moving the count value of the rising edge of the PWM modulation signal to a preset direction by a third quantization digit to obtain a first quantization level number of the count value of the rising edge of the PWM modulation signal under the first quantization digit; wherein the third quantization bit number is equal to a difference between a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs and the first quantization bit number, the preset direction is right when the first quantization bit number is smaller than the second quantization bit number, and the preset direction is left when the first quantization bit number is larger than the second quantization bit number;
or dividing the count value of the rising edge of the PWM modulation signal by the total quantization level of a third quantization bit number to obtain a first quantization level of the count value of the rising edge of the PWM modulation signal under the first quantization bit number; wherein the third quantization bit number is equal to a difference between the first quantization bit number and a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs.
A third aspect of the embodiments of the present invention provides an LED driving apparatus, including the LED driving signal processing circuit as described above; and
and the constant current driving unit is used for outputting a current signal corresponding to the analog voltage signal to the LED lamp and driving the LED lamp.
A fourth aspect of the embodiments of the present invention provides a lamp, which includes an LED lamp and the LED driving apparatus described above.
According to the embodiment of the invention, the PWM control signal to be converted and the system internal clock signal are modulated, the rising edges of the PWM modulation signal and the system internal clock signal are counted, when the number of the rising edges of the system internal clock signal reaches the preset number, the obtained count value of the PWM modulation signal is converted into the corresponding quantization level, and the quantization level is converted into the analog voltage signal through digital-analog conversion, so that the constant current driving module unit is driven to output the current signal with the corresponding magnitude to the LED lamp, the analog dimming is realized, the LED lamp is normally driven, no stroboflash occurs, and the lighting effect is improved.
Drawings
Fig. 1 is a first flowchart of a method for processing an LED driving signal according to an embodiment of the present invention;
fig. 2 is a schematic waveform diagram of a method for processing an LED driving signal according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a second method for processing an LED driving signal according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a method for processing an LED driving signal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an LED driving signal processing circuit according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an LED driving apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The first aspect of the embodiment of the invention provides an LED driving signal processing method.
As shown in fig. 1, fig. 1 is a schematic flowchart of a first flow chart of a method for processing an LED driving signal according to an embodiment of the present invention, where in the embodiment, the method for processing an LED driving signal includes:
s10, modulating a system internal clock signal and a PWM control signal into a PWM modulation signal;
s20, counting the rising edge of the clock signal inside the system and the rising edge of the PWM modulation signal respectively;
s30, when the count value of the rising edges of the clock signals in the system reaches a preset number, obtaining the count value of the rising edges of the PWM modulation signals;
s40, converting the count value of the rising edge of the PWM modulation signal into a first quantization level under a first quantization digit;
and S50, converting the first quantization step number into an analog voltage signal and outputting the analog voltage signal to a constant current driving unit 200, so that the constant current driving unit 200 outputs a current signal corresponding to the analog voltage signal to an LED lamp 2 to drive the LED lamp 2.
In this embodiment, a received PWM control signal and a system internal clock signal are modulated, as shown in fig. 2, a signal a is a system internal clock signal, a signal B is a to-be-processed PWM control signal, and the two signals are modulated to obtain a signal C, that is, a PWM modulation signal, so that the PWM control signal is quantized, and a frequency and a rising edge of the PWM modulation signal are specifically determined according to the obtained system internal clock signal and the obtained PWM control signal.
Further, in order to obtain an analog voltage signal proportional to the duty ratio of the corresponding PWM control signal, so that the constant current driving unit 200 outputs a current signal with a corresponding magnitude, the PWM modulation signal and the system internal clock signal are counted up, when the count value of the rising edge of the system internal clock signal reaches a preset number, the number of the rising edge of the current PWM modulation signal is determined, the duty ratio of the current PWM control signal is determined by using a sampling node, the number of the rising edge of the PWM modulation signal represents the magnitude of the duty ratio of the PWM control signal, it is assumed that the sampling node is 65535, that is, the system internal clock signal is repeatedly counted up to 65535, in the process that the system internal clock signal is counted up to 65535, the PWM modulation signal also keeps synchronously counting the number of the rising edge, and when the system internal clock signal is counted up to 65535, the count value of the rising edge of the current PWM modulation signal is read.
Meanwhile, according to the quantization levels corresponding to the quantization levels before and after digital-to-analog conversion, the count value of the rising edge of the PWM modulation signal is subjected to digital conversion to be converted into corresponding analog quantity output, for example, the quantization level of the obtained number of the rising edge of the PWM modulation signal is 16 bits, and the quantization level after digital-to-analog conversion is 8 bits, so that the digital conversion from 16 bits to 8 bits is required to be performed to output an analog voltage signal meeting the requirement of the subsequent digital-to-analog conversion, and simultaneously, the digital-to-analog conversion is performed to convert the converted first quantization level into the analog voltage signal with the corresponding size and output the analog voltage signal to the constant current driving unit 200, and the constant current driving unit 200 outputs the current signal with the corresponding size to the LED lamp 2 according to the corresponding voltage-current mapping table, thereby realizing analog dimming, solving the problem of stroboscopic of the LED lamp 2, and improving the illumination effect.
Meanwhile, after the current count is processed, data is cleared, and next rising edge sampling and quantitative conversion are performed, so that continuous analog dimming is realized.
The quantization bits refer to the number of bits of the digital-to-analog converter, such as 8 bits, 16 bits, 24 bits, etc., and the quantization levels refer to specific levels under corresponding number of bits, for example, the total number of the 8-bit digital-to-analog converter is 2 8= 256 stages.
Correspondingly, the number of quantization bits of the system internal clock signal may be 16 bits, 18 bits, 20 bits, etc., and the frequency of the system internal clock signal may be 1M, 2M, 4M, etc., without limitation to the specific number of quantization bits and frequency.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The frequency of the system internal clock signal and the frequency of the PWM control signal to be processed may be set as required, and in order to achieve that the duty ratio of the obtained PWM modulation signal is kept synchronous with the PWM control signal, in one embodiment, the frequency of the system internal clock signal is greater than the frequency of the PWM control signal.
According to the embodiment of the invention, the PWM control signal to be converted and the system internal clock signal are modulated, the rising edges of the PWM modulation signal and the system internal clock signal are counted, when the number of the rising edges of the system internal clock signal reaches the preset number, the obtained count value of the PWM modulation signal is converted into the corresponding quantization level, and the quantization level is converted into the analog voltage signal through digital-analog conversion, so that the constant current driving module is driven to output the current signal with the corresponding magnitude to the LED lamp 2, the analog dimming is realized, the LED lamp 2 is normally driven, no stroboscopic phenomenon occurs, and the lighting effect is improved.
As shown in fig. 3, in an embodiment, the converting the count value of the rising edge of the PWM modulated signal into a first quantization level number at a first quantization bit number includes:
s41, moving the count value of the rising edge of the PWM modulation signal to a preset direction by a third quantization digit to obtain a first quantization level number of the count value of the rising edge of the PWM modulation signal under the first quantization digit; the third quantization bit number is equal to a difference between a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs and the first quantization bit number, the preset direction is right when the first quantization bit number is smaller than the second quantization bit number, and the preset direction is left when the first quantization bit number is larger than the second quantization bit number.
In this embodiment, quantization conversion is performed by a shifting manner, for example, when the count value of the rising edge of the obtained PWM modulation signal is 16 bits, that is, the second quantization bit is 16 bits, the quantization bit number required after conversion is 8 bits, that is, the first quantization bit number is 8 bits, and therefore, 8 bits need to be shifted to the right, that is, the third quantization bit number, and similarly, when the count value of the rising edge of the obtained PWM modulation signal is 8 bits, that is, the second quantization bit number is 8 bits, the quantization bit number required after conversion is 16 bits, that is, the first quantization bit number is 16 bits, and therefore, 8 bits need to be shifted to the left, that is, the third quantization bit number, and the shift direction and the shift bit number are specifically set according to the conversion requirement, and are not specifically limited herein.
In another embodiment, as shown in fig. 4, the converting the count value of the rising edge of the PWM modulated signal into the first quantization level at the first quantization bit number includes:
s42, dividing the count value of the rising edge of the PWM modulation signal by the total quantization level of a third quantization digit to obtain a first quantization level of the count value of the rising edge of the PWM modulation signal under the first quantization digit; wherein the third quantization bit number is equal to a difference between the first quantization bit number and a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs.
In this embodiment, the determination of the quantization levels is performed by dividing the number of levels, for example, when the count value of the rising edge of the obtained PWM modulation signal is 16 bits, that is, the second quantization level is 16 bits, and the number of quantization levels required after the conversion is 8 bits, that is, the first quantization level is 8 bits, therefore, the number of quantization levels required for the conversion is 8 bits, and the corresponding quantization levels are 256 levels, in order to obtain the corresponding first quantization level, the count value of the rising edge of the PWM modulation signal needs to be divided by the total quantization level of the third quantization level.
As shown in fig. 5, a second aspect of the embodiment of the present invention provides an LED driving signal processing circuit 100, where the LED driving signal processing circuit 100 includes:
a PWM signal modulation unit 10 for modulating a system internal clock signal and a PWM control signal into a PWM modulation signal;
a PWM signal sampling unit 20 for counting rising edges of the system internal clock signal and the PWM modulation signal, respectively; when the count value of the rising edges of the clock signals in the system reaches a preset number, acquiring the count value of the rising edges of the PWM modulation signals;
a PWM duty conversion unit 30 for converting a count value of a rising edge of the PWM modulated signal into a first quantization level number at a first quantization bit number;
the digital-to-analog conversion unit 40 is configured to convert the first quantization step into an analog voltage signal and output the analog voltage signal to the constant current driving unit 200, so that the constant current driving unit 200 outputs a current signal corresponding to the analog voltage signal to the LED lamp 2 to drive the LED lamp 2.
In this embodiment, the PWM signal modulation unit 10, the PWM signal sampling unit 20, the PWM duty ratio conversion unit 30, and the digital-to-analog conversion unit 40 are sequentially connected, and the PWM signal modulation unit 10 modulates the received PWM control signal with the system internal clock signal, as shown in fig. 2, the signal a is the system internal clock signal provided by the internal clock, the signal B is the externally input PWM control signal, and the signals are modulated to obtain the signal C, that is, the PWM modulation signal, so as to quantize the PWM control signal, and the frequency and the rising edge of the PWM modulation signal are specifically determined according to the obtained system internal clock signal and the obtained PWM control signal.
Further, in order to obtain an analog voltage signal proportional to the duty ratio of the corresponding PWM control signal, so that the constant current driving unit 200 outputs a current signal with a corresponding magnitude, the PWM signal sampling unit 20 counts the rising edges of the PWM modulation signal and the system internal clock signal, when the count value of the rising edges of the system internal clock signal reaches a preset number, the number of the rising edges of the current PWM modulation signal is determined, the duty ratio of the current PWM control signal is determined by using a sampling node, the number of the rising edges of the PWM modulation signal represents the magnitude of the duty ratio of the PWM control signal, it is assumed that the sampling node is set to 65535, that is, the system internal clock signal is repeatedly counted to 65535, in the process that the system internal clock signal is counted to 65535, the PWM modulation signal also keeps synchronously counting the number of the rising edges, and when the system internal clock signal is counted to 65535, the count value of the rising edges of the current PWM modulation signal is read.
Meanwhile, according to the quantization levels corresponding to the quantization levels before and after digital-to-analog conversion, the PWM duty conversion unit 30 performs digital conversion on the count value of the rising edge of the PWM modulation signal to convert the count value into a corresponding analog output, for example, the quantization level of the obtained number of the rising edge of the PWM modulation signal is 16 bits, and the quantization level after the digital-to-analog conversion is 8 bits, so that the digital conversion from 16 bits to 8 bits is required to output an analog voltage signal meeting the requirement of the subsequent digital-to-analog conversion, and then the digital-to-analog conversion unit 40 performs digital-to-analog conversion to convert the converted first quantization level into an analog voltage signal of a corresponding size and output the analog voltage signal to the constant current driving unit 200, and the constant current driving unit 200 outputs a current signal of a corresponding size to the LED lamp 2 according to a corresponding voltage-current mapping table, thereby implementing analog dimming, solving the problem of stroboscopic light of the LED lamp 2, and improving the illumination effect.
Meanwhile, after the current count is processed, data is cleared, and next rising edge sampling and quantitative conversion are performed, so that continuous analog dimming is realized.
The quantization bit number refers to the number of bits of the digital-to-analog converter, such as 8 bits, 16 bits, 24 bits, etc., and the quantization level number refers to a specific level number under the corresponding number of bits, for example, the 8-bit digital-to-analog converter has a total of 2 8= 256 stages.
Correspondingly, the number of quantization bits of the system internal clock signal may be 16 bits, 18 bits, 20 bits, etc., and the frequency of the system internal clock signal may be 1M, 2M, 4M, etc., without limitation to the specific number of quantization bits and frequency.
The frequency of the system internal clock signal and the frequency of the PWM control signal to be processed may be set as required, and in order to achieve that the duty ratio of the obtained PWM modulation signal is kept synchronous with the PWM control signal, in an embodiment, the frequency of the system internal clock signal is greater than the frequency of the PWM control signal.
Wherein, the PWM signal modulation unit 10 can adopt a modem to obtain other signal modulation circuits, the PWM sampling unit can adopt a pulse timer or other rising edge timing modules, the PWM duty ratio conversion unit 30 can be a divider, a digit converter, etc., the digital-to-analog conversion unit 40 can be a DAC module, a DAC chip, etc.,
the specific structures of the PWM signal modulation unit 10, the PWM signal sampling unit 20, the PWM duty ratio conversion unit 30, and the digital-to-analog conversion unit 40 may be specifically set according to the functional requirements, and are not limited herein.
In one embodiment, the PWM duty conversion unit is specifically configured to include:
moving the count value of the rising edge of the PWM modulation signal to a preset direction by a third quantization digit to obtain a first quantization level number of the count value of the rising edge of the PWM modulation signal under the first quantization digit; wherein the third quantization bit number is equal to a difference between a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs and the first quantization bit number, the preset direction is right when the first quantization bit number is smaller than the second quantization bit number, and the preset direction is left when the first quantization bit number is larger than the second quantization bit number;
or dividing the count value of the rising edge of the PWM modulation signal by the total quantization level of a third quantization bit number to obtain a first quantization level of the count value of the rising edge of the PWM modulation signal under the first quantization bit number; wherein the third quantization bit number is equal to a difference between the first quantization bit number and a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs.
In this embodiment, the PWM duty converting unit 30 performs quantization level determination by a shifting manner, for example, when the count value of the rising edge of the obtained PWM modulation signal is 16 bits, that is, the second quantization bit is 16 bits, the quantization bit number required after conversion is 8 bits, that is, the first quantization bit number is 8 bits, and therefore, 8 bits, that is, the third quantization bit number needs to be shifted to the right, and similarly, when the count value of the rising edge of the obtained PWM modulation signal is 8 bits, that is, the second quantization bit number is 8 bits, the quantization bit number required after conversion is 16 bits, that is, the first quantization bit number is 16 bits, and therefore, 8 bits, that is, the third quantization bit number needs to be shifted to the left, and the shift direction and the shift bit number are specifically set according to the conversion requirement, and are not specifically limited herein.
Or, the quantization levels are determined by dividing the number of levels, for example, when the count value of the rising edge of the obtained PWM modulation signal is 16 bits, that is, the second quantization number is 16 bits, and the number of quantization bits required after conversion is 8 bits, that is, the first quantization number is 8 bits, therefore, the number of quantization levels required for the conversion is 8 bits, and the corresponding quantization levels are 256 levels, in order to obtain the corresponding first quantization levels, the count value of the rising edge of the PWM modulation signal is divided by the total number of quantization levels of the third quantization number.
As shown in fig. 6, a third aspect of the embodiment of the present invention provides an LED driving device 1, where the LED driving device 1 includes a constant current driving unit 200 and an LED driving signal processing circuit 100, and a specific structure of the LED driving signal processing circuit 100 refers to the foregoing embodiments, and since the LED driving device 1 adopts all technical solutions of the foregoing embodiments, at least all beneficial effects brought by the technical solutions of the foregoing embodiments are achieved, and details are not repeated here.
The constant current driving unit 200 is configured to output a current signal corresponding to the analog voltage signal to the LED lamp 2, and drive the LED lamp 2.
In this embodiment, the LED driving signal processing circuit 100 obtains the analog voltage signal representing the duty ratio of the PWM control signal after modulating, sampling, performing digital conversion and performing analog-to-digital conversion on the PWM control signal to be converted, and outputs the analog voltage signal to the LED lamp 2 to drive the constant current driving module unit to output the current signal with the corresponding magnitude, so as to realize analog dimming, and the LED lamp 2 is normally driven without stroboflash, thereby improving the lighting effect.
The invention further provides a lamp, which comprises an LED driving device 1, the specific structure of the LED driving device 1 refers to the above embodiments, and since the lamp adopts all the technical solutions of all the above embodiments, the lamp at least has all the beneficial effects brought by the technical solutions of the above embodiments, and details are not repeated herein.
In this embodiment, the LED lamp 2 has the LED driving device 1 with digital-to-analog conversion function, and can realize analog dimming, thereby solving the problem of stroboscopic light of the LED lamp 2 and improving the illumination effect.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. An LED driving signal processing method, comprising:
modulating a system internal clock signal and a PWM control signal into a PWM modulation signal, wherein the duty ratio of the PWM modulation signal is synchronous with the duty ratio of the PWM control signal, and the rising edge of the PWM modulation signal is synchronous with the rising edge of the system internal clock signal;
counting rising edges of the system internal clock signal and rising edges of the PWM modulation signal respectively;
when the count value of the rising edges of the clock signals in the system reaches a preset number, acquiring the count value of the rising edges of the PWM modulation signals;
converting the count value of the rising edge of the PWM modulation signal into a first quantization level under a first quantization digit;
and converting the first quantization stage number into an analog voltage signal and outputting the analog voltage signal to a constant current driving unit, so that the constant current driving unit outputs a current signal corresponding to the analog voltage signal to an LED lamp to drive the LED lamp.
2. The LED driving signal processing method according to claim 1, wherein a frequency of the system internal clock signal is greater than the PWM control signal.
3. The LED driving signal processing method according to claim 1 or 2, wherein the converting the count value of the rising edge of the PWM modulated signal into a first quantization level number at a first quantization bit number includes:
moving the count value of the rising edge of the PWM modulation signal to a preset direction by a third quantization digit to obtain a first quantization level number of the count value of the rising edge of the PWM modulation signal under the first quantization digit; the third quantization bit number is equal to a difference between a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs and the first quantization bit number, the preset direction is right when the first quantization bit number is smaller than the second quantization bit number, and the preset direction is left when the first quantization bit number is larger than the second quantization bit number.
4. The LED driving signal processing method according to claim 1 or 2, wherein the converting the count value of the rising edge of the PWM modulated signal into a first quantization level number at a first quantization bit number includes:
dividing the count value of the rising edge of the PWM modulation signal by the total quantization level of a third quantization bit number to obtain a first quantization level of the count value of the rising edge of the PWM modulation signal under the first quantization bit number; wherein the third quantization bit number is equal to a difference between the first quantization bit number and a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs.
5. An LED drive signal processing circuit, comprising:
the PWM signal modulation unit is used for modulating a system internal clock signal and a PWM control signal into a PWM modulation signal, and the frequency of the system internal clock signal is greater than the PWM control signal;
the duty ratio of the PWM modulation signal is synchronous with the duty ratio of the PWM control signal, and the rising edge of the PWM modulation signal is synchronous with the rising edge of the system internal clock signal;
the PWM signal sampling unit is used for counting the rising edges of the system internal clock signals and the rising edges of the PWM modulation signals respectively; when the count value of the rising edges of the clock signals in the system reaches a preset number, acquiring the count value of the rising edges of the PWM modulation signals;
the PWM duty ratio conversion unit is used for converting the count value of the rising edge of the PWM modulation signal into a first quantization level under a first quantization digit;
and the digital-to-analog conversion unit is used for converting the first quantization level into an analog voltage signal and outputting the analog voltage signal to the constant current driving unit so that the constant current driving unit outputs a current signal corresponding to the analog voltage signal to the LED lamp and drives the LED lamp.
6. The LED driving signal processing circuit according to claim 5, wherein the PWM duty cycle conversion unit is specifically configured to:
moving the count value of the rising edge of the PWM modulation signal to a preset direction by a third quantization digit to obtain a first quantization level number of the count value of the rising edge of the PWM modulation signal under the first quantization digit; wherein the third quantization bit number is equal to a difference between a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs and the first quantization bit number, the preset direction is right when the first quantization bit number is smaller than the second quantization bit number, and the preset direction is left when the first quantization bit number is larger than the second quantization bit number;
or dividing the count value of the rising edge of the PWM modulation signal by the total quantization level of a third quantization bit number to obtain a first quantization level of the count value of the rising edge of the PWM modulation signal under the first quantization bit number; wherein the third quantization bit number is equal to a difference between the first quantization bit number and a second quantization bit number to which a count value of a rising edge of the PWM modulation signal belongs.
7. An LED driving device comprising the LED driving signal processing circuit according to any one of claims 5 to 6; and
and the constant current driving unit is used for outputting a current signal corresponding to the analog voltage signal to the LED lamp and driving the LED lamp.
8. A luminaire comprising an LED lamp and the LED driving apparatus according to claim 7.
CN202010899414.8A 2020-08-31 2020-08-31 LED driving signal processing method and circuit, LED driving device and lamp Active CN111901938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010899414.8A CN111901938B (en) 2020-08-31 2020-08-31 LED driving signal processing method and circuit, LED driving device and lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010899414.8A CN111901938B (en) 2020-08-31 2020-08-31 LED driving signal processing method and circuit, LED driving device and lamp

Publications (2)

Publication Number Publication Date
CN111901938A CN111901938A (en) 2020-11-06
CN111901938B true CN111901938B (en) 2022-12-02

Family

ID=73224837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010899414.8A Active CN111901938B (en) 2020-08-31 2020-08-31 LED driving signal processing method and circuit, LED driving device and lamp

Country Status (1)

Country Link
CN (1) CN111901938B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115915537A (en) * 2021-08-09 2023-04-04 华润微集成电路(无锡)有限公司 PWM signal conversion circuit and method and LED dimming system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102568391A (en) * 2010-11-10 2012-07-11 美格纳半导体有限公司 PWM signal generating circuit and LED driver circuit using the same
CN104822197A (en) * 2015-04-20 2015-08-05 南京矽力杰半导体技术有限公司 Analog dimming control method, control circuit and LED drive circuit using the analog dimming control method and control circuit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149076A (en) * 2019-05-07 2019-08-20 哈尔滨理工大学 Electric vehicle motor driving control system and drive control method based on FPGA
CN111598727A (en) * 2020-07-23 2020-08-28 国网江西省电力有限公司电力科学研究院 Method for improving metering clock synchronization of intelligent substation based on code phase counting method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102568391A (en) * 2010-11-10 2012-07-11 美格纳半导体有限公司 PWM signal generating circuit and LED driver circuit using the same
CN104822197A (en) * 2015-04-20 2015-08-05 南京矽力杰半导体技术有限公司 Analog dimming control method, control circuit and LED drive circuit using the analog dimming control method and control circuit

Also Published As

Publication number Publication date
CN111901938A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN101902861B (en) LED driving method and LED driving circuit
CN111901938B (en) LED driving signal processing method and circuit, LED driving device and lamp
CN105049118A (en) Visible light communication method based on double-modulation technology and visible light communication system thereof
CN109548244A (en) Dimming interface control circuit and method, LED drive system, chip and method
US9380668B2 (en) PDM modulation of LED current
CN110191540A (en) Light-dimming method, dimming device and the computer-readable medium of LED
CN101022687A (en) Device and method for adjusting luminous diode brightness
US8207686B2 (en) LED controller and method using variable drive currents
CN213818279U (en) Digital filter and LED dimming driving system
KR101046081B1 (en) LED lighting device
CN209659673U (en) Dimming interface control circuit, LED drive system and chip
CN107567144A (en) Toning controller, toning control chip and light modulation toning LED drive control circuits
CN110809346B (en) Light adjusting method, light adjusting device and terminal equipment
CN108882461A (en) A kind of adjusting control circuit and system
CN202998609U (en) Led constant current dimming power supply
CN112822817B (en) Drive control circuit structure for realizing dimming function
US20100277214A1 (en) Device and method for signal generation
CN216391471U (en) Circuit for adjusting duty ratio of signal and LED lamp
CN114630469B (en) Digital filter, LED dimming driving system and method
CN102957318A (en) Light emitting module with light emitting diodes and voltage conversion device of light emitting module
CN107820346A (en) A kind of biometrics multichannel Linear Control module, system and method
US7919932B2 (en) Apparatus and method for controlling lighting brightness through digital conversion
CN101888228B (en) Signal generator and signal generating method thereof
TWI432090B (en) Led backlight module and a dimming pwm controller therein
Henao-Rios et al. Real time implementation of a hybrid differential Manchester-PWM encoding for constant data rate under variable brightness in VLC systems

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