LED driving current generation method and device
By combining the technical solution of PDM drive and constant current drive, the problem of large power supply noise caused by PWM drive is solved, a more efficient LED drive is achieved, power supply interference is reduced, and system stability and efficiency are improved.
Patent Information
- Application Number
- CN202410941705.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-09-27
AI Technical Summary
Among the existing LED driving methods, PWM driving causes high power supply noise, interferes with the stability of the power supply system, and affects the overall stability and efficiency of the system.
Adopting a technical solution that combines PDM drive and constant current drive, the original current is distributed to the constant current drive path and the PDM drive path, and the drive current is generated based on the output of the two. Through superposition or dynamic averaging, the power supply interference is reduced and the system is improved. stability and efficiency.
It effectively reduces the interference to the power system, improves the overall stability and efficiency of the system, reduces noise interference, and enhances the stability of the power system.
Smart Images

Figure CN118714697A
Abstract
Description
Technical Field
[0001] The present application relates to the field of LEDs, and in particular to a method for generating an LED driving current. Background Art
[0002] Patent publication number CN111601430A discloses a LED drive control method. This method combines constant current source drive with PWM drive, which can effectively ensure the display effect of the LED compared to using only PWM drive input current to drive the LED.
[0003] However, this method will generate greater noise to the power supply, resulting in greater interference to the power supply system, which is not conducive to the overall stability of the system. Summary of the invention
[0004] To solve the above problems, the present application provides a method for generating an LED driving current, comprising: Get the original current; Distribute the original current to a constant current drive path and a PDM drive path; A driving current is generated according to outputs of the constant current driving path and the PDM driving path.
[0005] This application adopts a technical solution that combines PDM drive and constant current drive. Compared with the PWM-based drive method, PDM drive has the characteristics of variable frequency, and its maximum frequency can reach thousands of times that of fixed frequency PWM. This high-frequency signal is more easily absorbed and filtered by the capacitor on the power supply, thereby effectively reducing the interference to the power supply system. In addition, when the PDM drive controls the different brightness of the LED lamp, the frequency changes greatly, which further reduces the interference of the power supply and improves the overall stability and efficiency of the system.
[0006] In a possible implementation, generating a driving current according to the current output by the constant current driving path and the PDM driving path includes: Superimposing the outputs of the constant current driving path and the PDM driving path to obtain a driving current; The resolution of the driving current is N bits, the output of the constant current driving path corresponds to the high K bits of the driving current resolution, and the output of the PDM driving path corresponds to the low NK bits of the driving current resolution.
[0007] In a possible implementation, distributing the original current to the constant current drive path and the PDM drive path includes: Dividing the constant current drive path into K paths, wherein the outputs of the K paths correspond to high K bits of the drive current resolution respectively; The original current is distributed to the K channels and the PDM driving channel.
[0008] In a possible implementation, the outputs of the constant current drive path and the PDM drive path are superimposed to obtain the drive current, including: According to the positions of the K paths corresponding to the resolutions, corresponding weight values are set for the K paths; The total output of the constant current driving path is obtained according to the outputs of the K paths and the weight values, and the total output of the constant current driving path and the output of the PDM driving path are superimposed to obtain the driving current.
[0009] In a possible implementation, setting corresponding weight values for the K paths according to the positions of the K paths corresponding to the resolutions includes: In order from low to high resolution, the weight values corresponding to the K paths are set to 2 i -1 , where i is an integer, and the value of i ranges from 1 to K.
[0010] In a possible implementation, obtaining the total output of the constant current drive path according to the outputs and weight values of each path, and superimposing the total output of the constant current drive path and the output of the PDM drive path to obtain the drive current includes: The driving current is obtained according to the following formula: {I}_{o}=\sum ^{K}_{i=1} {{2}^{i-1}}EN[i]{I}_{d}+\frac {{{I}_{d}T}_{p}} {T} in, is the driving current, is the weight value, EN[i] is the enable signal of each constant current source driven path after division, is the original current, For the cycle, is the total time of each pulse in the cycle.
[0011] In a possible implementation, distributing the original current to the constant current drive path and the PDM drive path includes: Split the PDM drive path into two K - 1 channel, wherein the high K bit in the driving current resolution adopts constant current driving; Distribute the original current to the 2K -1 channel and the PDM driving circuit; Regarding the 2 K -1 channel and PDM driven channel for dynamic averaging.
[0012] In a possible implementation, the 2 K -1 channel and the PDM drive channel are dynamically averaged to obtain the drive current, including: Regarding the 2 K -1 channel and the driving modes of the channel driven by PDM are switched in sequence.
[0013] The present application also provides an LED driving current generating device, comprising: An acquisition circuit for acquiring the original current; The driving circuit is used to distribute the original current to the constant current driving path and the PDM driving path; and generate a driving current according to the outputs of the constant current driving path and the PDM driving path.
[0014] In a possible implementation, the driving circuit includes: A current distribution unit, used for distributing the original current to various paths; and A control unit, used for controlling and generating a driving current based on the plurality of paths; The shunt unit includes at least one first shunt transistor and a second shunt transistor, the gates of the first shunt transistor and the second shunt transistor are both connected to the acquisition circuit, and the sources of the first shunt transistor and the second shunt transistor are both grounded; The control unit includes a digital control unit, at least one first control transistor and a second control transistor, the gates of the first control transistor and the second control transistor are both connected to the digital control unit, the gates of each of the first shunt transistors are respectively connected to the source of the corresponding first control transistor, the gate of the second shunt transistor is connected to the source of the second control transistor, and the drains of the first control transistor and the second control transistor are connected to drive current.
[0015] It can be understood that the beneficial effects of the second solution mentioned above can be found in the relevant description of the first solution mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] in: Figure 1 is a schematic block diagram of a method for generating an LED driving circuit provided in an embodiment of the present application; Figure 2 is a schematic diagram of PWM and PDM signals provided by the present application; Figure 3 This is a waveform diagram of a PDM and constant current drive according to an embodiment of the present application; Figure 4 It is a waveform diagram of dynamic averaging of PDM and constant current drive provided in an embodiment of the present application; Figure 5 A structural block diagram of an LED driving circuit generating device provided in an embodiment of the present application; Figure 6 A circuit diagram of an LED driving circuit generating device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] Related technology introduction: PWM is Pulse Width Modulation (PWM), which is a method of controlling the output average voltage or power by adjusting the width of the pulse signal, and controlling the output by changing the duty cycle of the pulse signal.
[0020] PDM is Pulse-Density Modulation (PDM). Each sampling point of the PDM signal is represented by a binary value (0 or 1). The density of the pulse represents the amplitude information of the signal. A high-density pulse represents a higher signal amplitude, and a low-density pulse represents a lower signal amplitude. Over a period of time, the ratio (density) of the pulses is proportional to the amplitude of the original analog signal.
[0021] As mentioned in the background technology, the prior art discloses combining constant current source drive and PWM drive, which can increase the minimum pulse width of PWM to adapt to different resolutions and refresh rates. However, this method will generate greater noise to the power supply, resulting in greater interference to the power supply system, which is not conducive to the overall stability of the system.
[0022] Based on this, the present application provides a method for generating an LED driving current, which can solve the problem of large interference to the power supply.
[0023] The following is a detailed introduction to this application: Figure 2 As shown, the present application provides a method for generating an LED driving current, comprising: S101, obtaining original current; S102, distributing the original current to the constant current drive path and the PDM drive path; S103 , generating a driving current according to outputs of the constant current driving path and the PDM driving path.
[0024] Among them, the PDM driving path can generate a PDM signal through sigma-delta modulation After a long period of research and practice, the inventor found that the reason why the PWM driving method causes greater interference to the power supply is that the frequency of the PWM signal is fixed, such as Figure 2 As shown, no matter how the brightness and color of the LED change, its PWM frequency remains unchanged, and the PWM frequencies of different LED lamps are not much different. The frequency resonance between them will cause their interference to superimpose on the power supply, and the low-frequency interference caused by the difference frequency effect will make the interference more serious.
[0025] Therefore, in the embodiment of the present application, the original current is distributed to the constant current drive path and the PDM drive path, and the drive current of the LED is generated according to the output of the constant current drive path and the PDM drive path. Compared with the method of combining PWM drive and constant current drive, the frequency of the method based on PDM drive is variable, which will bring two advantages. On the one hand, at a duty cycle of 50%, the PDM drive reaches the highest frequency, which is thousands of times the fixed frequency of PWM. High-frequency noise is more easily attenuated and filtered by the capacitor on the power supply, thereby reducing interference with the power supply system. On the other hand, when the LED lamp displays different brightness using the PDM drive method, its frequency will vary greatly, which can also reduce interference with the power supply system.
[0026] In some embodiments, the step of “generating a driving current according to the output of the constant current driving path and the PDM driving path” includes: (11) Generate a drive current according to the output of the constant current drive path and the PDM drive path; The resolution of the drive current is N bits, the output of the constant current drive path corresponds to the high K bits of the drive current resolution, the output of the PDM drive path corresponds to the low NK bits of the drive current resolution, and K <N。
[0027] In the embodiment of the present application, the output of the constant current drive path corresponds to the high K bits of the drive current resolution, and the output of the PDM drive path corresponds to the low NK bits of the drive current resolution. The drive current is obtained by superimposing the currents output by the constant current drive path and the PDM drive path. For example, if the resolution of the drive current is 8 bits, the output of the constant current drive path corresponds to the high 3 bits of the drive current resolution, and the output of the PDM drive path corresponds to the low 5 bits of the drive current resolution. Finally, the output of the constant current drive path and the output of the PDM drive path are superimposed to obtain the drive current.
[0028] The embodiment of the present application uses a constant current drive path to control the high K bit of the drive current, and the output of the PDM drive path corresponds to the low NK bit of the drive current resolution. Compared with the combination of PWM and constant current drive, it not only ensures the appropriate minimum pulse width, can more flexibly adjust the refresh rate or resolution, but also effectively reduces the impact on the power supply system.
[0029] In some embodiments, distributing the original current to the constant current drive path and the PDM drive path includes: (21) Dividing the constant current drive path into K paths, wherein the outputs of the K paths correspond to the high K bits of the drive current resolution respectively; (22) Distribute the original current to K channels and the PDM driving channel.
[0030] In an embodiment of the present application, the constant current drive path is divided into K paths, and the outputs of the K paths correspond to the high K bits of the drive current resolution, and the divided K paths are still constant current drive paths. For example, if the resolution of the drive current is 8 bits, and the output of the constant current drive path corresponds to the high 2 bits of the drive current resolution, the constant current drive path is divided into 2 paths. For the convenience of description, the divided paths are named as the first constant current drive path and the second constant current drive path in sequence below. The output of the first constant current drive path corresponds to the second highest bit of the resolution, and the output of the second constant current drive path corresponds to the highest bit of the resolution.
[0031] In the embodiment of the present application, the constant current driving path is divided into K paths, and the outputs of the K paths correspond to the high K bits of the driving current resolution respectively, so that the driving current can be controlled more accurately.
[0032] In some embodiments, the current output by the constant current driving path and the current output by the PDM driving path are superimposed to obtain the driving current, including: (31) According to the positions of the K paths corresponding to the resolutions, corresponding weight values are set for the K paths; (32) According to the outputs and weight values of each divided path, the total output of the constant current drive path is obtained, and the total output of the constant current drive path and the output of the PDM drive path are superimposed to obtain the drive current.
[0033] In the embodiment of the present application, corresponding weight values are set for the K channels according to a certain bit of the driving current resolution corresponding to the K channels.
[0034] For example, still taking the resolution of the driving current as 8 bits, the output of the constant current driving path corresponds to the high 2 bits of the driving current resolution, the first constant current driving path corresponds to the second highest bit of the resolution, and the weight value corresponding to the second highest bit of the resolution is set for the first constant current driving path, and the second constant current driving path corresponds to the highest bit of the resolution, and the weight value corresponding to the highest bit of the resolution is set for the second constant current driving path. Then, according to the outputs of the first constant current driving path and the second constant current driving path and the corresponding weight values, the total output of the constant current driving path is obtained, and finally the output of the constant current driving path and the output of the PDM driving path are superimposed to obtain the driving current.
[0035] In the embodiment of the present application, the K channels after the constant current drive channel is divided correspond to the high K bits of the drive current resolution respectively. According to the position corresponding to each channel in the K channels, the weight value is set, and the total output of the constant current drive channel is obtained according to the output of each channel after division and the weight value. Finally, the output of the constant current drive channel and the output of the PDM drive channel are superimposed to obtain the drive current, which can more accurately adjust the drive current. In some embodiments, the step of “setting corresponding weight values for the K channels according to the positions of the K channels corresponding to the resolutions” includes: (41) In order from low to high resolution, set the weight values corresponding to the K paths to 2 i-1 , where i is an integer, and the value of i ranges from 1 to K.
[0036] Specifically, in the order of resolution from low to high, the value of i is from 1 to K, and the weight values of the K paths are 1, 2, 4, ... 2. i-1 . Assuming K=3, the weight values are 1, 2, and 4, which correspond to the third highest bit, the second highest bit, and the highest bit of the resolution. Finally, the output of the constant current drive path can be obtained according to the output of each path and the weight value, and the output of the constant current drive path and the output of the PDM drive path are superimposed to obtain the drive current.
[0037] In some embodiments, the step of "obtaining the total output of the constant current drive path according to the outputs and weight values of each path, and superimposing the total output of the constant current drive path and the output of the PDM drive path to obtain the drive current" includes: (51) The driving current is obtained according to the following formula: {I}_{o}=\sum ^{K}_{i=1} {{2}^{i-1}}EN[i]{I}_{d}+\frac {{{I}_{d}T}_{p}} {T} in, is the driving current, is the weight value, EN[i] is the enable signal of each constant current source driven path after division, is the original current, For the cycle, is the total time of each pulse in the cycle, K is the number of constant current drive channels, It is the duration of a single PDM pulse.
[0038] For example, let's take the resolution of the drive current as 8 bits, the upper 2 bits use constant current drive, and the lower 6 bits use PDM drive. At this time, K=2, and the constant current drive path is divided into the first constant current drive path and the second constant current drive path, which correspond to the second highest bit and the highest bit of the drive current resolution respectively. Figure 3 , Figure 3 The waveforms of each path are shown, where the horizontal axis is time and the vertical axis is current. From top to bottom, the first waveform is the first constant current drive path, the second waveform is the second constant current drive path, the third waveform is the PDM drive path, and the fourth waveform is the drive current. Figure 3 The enable signal EN[1] of the first constant current drive path is 1, the weight value is 1, and the enable signal EN[2] of the second constant current drive path is 0, the weight value is 2, then the output of the first constant current drive path can be obtained as , the output of the second constant current drive path is , the outputs of the above two paths are superimposed to obtain the total output of the constant current drive path: , and finally the total output and the output of the PDM drive path ( ) are superimposed to obtain the driving current, that is, Figure 3 This is shown in the bottom waveform.
[0039] In some embodiments, the step of “distributing the original current to the constant current drive path and the PDM drive path” includes: (61) Split the constant current drive path into 2 K - 1 access road; (62) Distribute the original current to 2 K -1 channel and PDM drive circuit; (63) 2 K -1 channel and PDM driven channel for dynamic averaging.
[0040] In the embodiment of the present application, dynamic averaging can be performed between multiple paths to balance the current difference caused by the process mismatch between the paths, so that the current is more even, further ensuring the driving display effect of the LED.
[0041] In some embodiments, K -1 channel and PDM drive channel for dynamic averaging, including: (71) to 2 K -1 channel and the driving mode of the channel driven by PDM are switched in sequence.
[0042] Dynamic averaging can be understood as allowing each channel to perform different driving methods in turn within a certain period, so that different driving current forms appear in each channel in turn. Figure 4 For example, assuming the resolution is 8 bits, the upper 2 bits use constant current drive, and the lower 6 bits use PDM drive. First, split the constant current drive path into 2 K -1 channel, that is, 3 channels, namely channel 1, channel 2 and channel 3, plus a PDM drive channel, a total of 4 channels. Each channel corresponds to a waveform diagram, the horizontal axis represents time, and the vertical axis represents current value.
[0043] Taking period T as an example, the driving mode of the new channel 1 is described in detail: in the first quarter of period T, the driving current is in PDM form; in the second quarter, the driving current is a high constant current; in the third quarter, the driving current is still a high constant current; in the fourth quarter, the driving current is a low constant current, and its value is always 0. The driving mode of channels 2, 3, and 4 is similar to that of channel 1, so as to ensure that the current value of each channel is the same and achieve current averaging. Finally, the outputs of the four channels are superimposed to obtain the final driving current.
[0044] The present application also provides an LED driving current generating device, comprising: An acquisition circuit 110, used for acquiring the original current; The driving circuit 120 is used to distribute the original current to the constant current driving path and the PDM driving path; and generate the driving current according to the outputs of the constant current driving path and the PDM driving path.
[0045] In some embodiments, the driving circuit 120 includes: A current distribution unit for distributing the original current to various paths; and A control unit, for generating a driving current based on a plurality of paths; The shunt unit includes at least one first shunt transistor and a second shunt transistor, the gates of the first shunt transistor and the second shunt transistor are both connected to the acquisition circuit, and the sources of the first shunt transistor and the second shunt transistor are both grounded; The control unit includes a digital control unit, at least one first control transistor and a second control transistor, the gates of the first control transistor and the second control transistor are both connected to the digital control unit, the gates of each first shunt transistor are respectively connected to the source of the corresponding first control transistor, the gate of the second shunt transistor is connected to the source of the second control transistor, and the drains of the first control transistor and the second control transistor are connected to drive current.
[0046] Specifically, Figure 6 As shown, Id is the original current, Io is the driving current, NM1 corresponds to the acquisition circuit, the gate and drain of NM1 are connected to provide a mirror bias for the shunt unit, and the shunt unit includes a shunt transistor NM3, a shunt transistor NM5 and a shunt transistor NM7, wherein the drain of NM1 is connected to the original current, the gate of NM1 is connected to the drains of NM2, NM4 and NM6 respectively, and the source of NM1 and the sources of NM3, NM5 and NM7 are grounded. The control unit 1 includes a digital control unit, a control transistor NM2, a control transistor NM4 and a control transistor MN6, and the gates of the control transistors NM2, NM4 and MN6 are connected to the digital control unit. The gate of shunt transistor NM3 is connected to the source of control transistor NM2, the gate of shunt transistor NM5 is connected to the source of control transistor NM4, the gate of shunt transistor NM7 is connected to the source of control transistor NM6, and the drains of NM3, NM5 and NM7 are connected to output drive current.
[0047] It is understandable that the beneficial effects of the above-mentioned LED driving current generating device can be found in the relevant description of the above-mentioned method, and will not be repeated here.
[0048] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0049] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for generating LED driving current, It is characterized in that include: Get the original current; Distributing the original current to a constant current drive path and a PDM drive path; A driving current is generated according to outputs of the constant current driving path and the PDM driving path.
2. A method for generating an LED driving current as claimed in claim 1, It is characterized in that Generating a driving current according to the outputs of the constant current driving path and the PDM driving path, including: Superimposing the outputs of the constant current driving path and the PDM driving path to obtain a driving current; The resolution of the driving current is N bits, the output of the constant current driving path corresponds to the high K bits of the driving current resolution, the output of the PDM driving path corresponds to the low NK bits of the driving current resolution, and K <N。 3. A method for generating an LED driving current as claimed in claim 2, It is characterized in that Distributing the original current to a constant current drive path and a PDM drive path, including: Dividing the constant current drive path into K paths, wherein the outputs of the K paths correspond to high K bits of the drive current resolution respectively; The original current is distributed to the K channels and the PDM driving channel.
4. A method for generating an LED driving current as claimed in claim 3, It is characterized in that The outputs of the constant current driving path and the PDM driving path are superimposed to obtain a driving current, including: According to the positions of the K paths corresponding to the resolutions, corresponding weight values are set for the K paths; The total output of the constant current driving path is obtained according to the outputs of the K paths and the weight values, and the total output of the constant current driving path and the output of the PDM driving path are superimposed to obtain the driving current.
5. A method for generating an LED driving current as claimed in claim 4, It is characterized in that According to the positions of the K paths corresponding to the resolutions, corresponding weight values are set for the K paths, including: In order from low to high resolution, the weight values corresponding to the K paths are set to 2 i-1 , where i is an integer, and the value of i ranges from 1 to K.
6. A method for generating an LED driving current as claimed in claim 5, It is characterized in that The method of obtaining the total output of the constant current drive path according to the outputs and weight values of each path, and superimposing the total output of the constant current drive path and the output of the PDM drive path to obtain the drive current includes: The driving current is obtained according to the following formula: {I}_{o}=\sum ^{K}_{i=1} {{2}^{i-1}}EN[i]{I}_{d}+\frac {{{I}_{d}T}_{p}} {T} in, is the driving current, is the weight value, EN[i] is the enable signal of each constant current source driven path after division, is the original current, For the cycle, is the total time of each pulse in the cycle.
7. The LED driving current generating method according to claim 1, It is characterized in that The original current is distributed to a constant current drive path and a PDM drive path, including: The constant current drive path is split into two K - 1 access road; Distribute the original current to the 2 K -1 channel and the PDM driving circuit; Regarding the 2 K -1 channel and PDM driven channel for dynamic averaging.
8. The LED driving current generating method according to claim 7, It is characterized in that Regarding the 2 K -1 channel and PDM drive channel for dynamic averaging, including: Regarding the 2 K -1 channel and the driving mode of the PDM driving channel are switched in sequence.
9. A device for generating a LED driving current, It is characterized in that include: An acquisition circuit for acquiring the original current; A driving circuit, used for distributing the original current to a constant current driving path and a PDM driving path; A driving current is generated according to the outputs of the constant current driving path and the PDM driving path.
10. The LED driving current generating device according to claim 9, It is characterized in that The driving circuit comprises: A current distribution unit, used for distributing the original current to various paths; and A control unit, used for controlling the generation of a driving current based on the plurality of paths; The shunt unit includes at least one first shunt transistor and a second shunt transistor, the gates of the first shunt transistor and the second shunt transistor are both connected to the acquisition circuit, and the sources of the first shunt transistor and the second shunt transistor are both grounded; The control unit includes a digital control unit, at least one first control transistor and a second control transistor, the gates of the first control transistor and the second control transistor are both connected to the digital control unit, the gates of each of the first shunt transistors are respectively connected to the source of the corresponding first control transistor, the gate of the second shunt transistor is connected to the source of the second control transistor, and the drains of the first control transistor and the second control transistor are connected to drive current.
