Multi-channel LED constant-current driving circuit and method based on PWM (Pulse-Width Modulation) adjustment
By introducing a reference resistor and current adjustment signal into the multi-channel LED constant current drive circuit, and using a parallel structure to achieve independent control of each channel, the problems of low brightness adjustment accuracy and poor current matching in the existing technology are solved, and high performance is achieved. Precision, wide range of brightness adjustment and fast response.
Patent Information
- Application Number
- CN202410774162.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-30
AI Technical Summary
Existing multi-channel LED constant current drive circuits have deficiencies in brightness adjustment accuracy and current matching. It is especially difficult to achieve high-precision and consistent output in large-scale LED dot matrix drives.
A multi-channel LED constant current drive circuit based on PWM regulation is used. By introducing a reference resistor and current adjustment signal, a parallel structure of the dimming unit and the output stage module, independent control and high-precision current output of each channel are achieved.
It improves the accuracy and consistency of multi-channel adjustment and brightness adjustment, and can meet the driving needs of large-scale LED dot matrix, especially ensuring fast response and high-precision output when the PWM duty cycle is low.
Smart Images

Figure CN118574266A
Abstract
Description
Technical Field
[0001] The present application relates to the field of LED control, and more specifically, to a multi-channel LED constant current driving circuit and method based on PWM regulation. Background Art
[0002] With the continuous development of LED display technology, the scale of LED dot matrix is constantly expanding, and the requirements for LED constant current drive circuit are getting higher and higher. In order to meet the driving needs of large-scale LED dot matrix, the design of high-precision multi-channel LED constant current drive circuit has become the key. At the same time, PWM (pulse width modulation) technology plays an increasingly important role in LED driving. By adjusting the duty cycle and frequency of the PWM signal, the brightness of the LED can be accurately controlled to achieve brightness adjustment under different scenes and needs.
[0003] However, there are some problems and shortcomings in the existing LED constant current drive circuit. First, the single-channel driver chip can no longer meet the driving requirements of large-scale LED dot matrixes, and the design of multi-channel LED constant current drive circuits needs to ensure that the difference between each channel when outputting the same current is as small as possible to ensure the brightness and color of the displayed picture are consistent, providing clear, uniform and high-quality image display. Secondly, the traditional constant current drive circuit outputs current through a simple current mirror structure. The method is easily affected by the jitter of the power supply voltage, load changes, channel length modulation effects, and layout parasitics, resulting in low current accuracy and current mismatch between channels. In addition, for high-precision output applications, the drive circuit must be able to respond quickly to PWM logic signals. If the constant current drive circuit responds slowly, its output current will not meet the accuracy requirements defined by PWM, especially at low PWM duty cycles.
[0004] Chinese patent application, application number CN202110213547.X, publication date July 29, 2022, discloses a constant current control circuit, a constant current drive circuit and a constant current control method. The constant current control circuit includes: a transconductance amplifier, a PWM signal generating circuit and a logic and drive circuit, the positive input end of the transconductance amplifier receives the dimming signal, and the negative input end is connected to the output equivalent current calculation circuit to receive the equivalent voltage signal, which is used to amplify the error of the dimming signal and the equivalent voltage signal to obtain a compensation signal. Among them, the constant current control circuit of the present application adjusts the transconductance of the transconductance amplifier according to the adjustment signal, so that the transconductance of the transconductance amplifier changes inversely with the duty cycle of the dimming signal, so that the loop response speed remains unchanged when the voltage of the dimming signal is very low, and the constant current drive circuit is quickly started. However, in this scheme, the constant current control circuit uses a transconductance amplifier to control multiple LED channels. The transconductance amplifier outputs a compensation signal to each channel according to the difference between the dimming signal and the equivalent voltage signal to achieve constant current regulation. However, due to the deviation of device parameters of each channel and different load conditions, it is difficult for a single transconductance amplifier to achieve precise independent control of each channel, resulting in differences in brightness between channels. Summary of the invention
[0005] 1. Technical issues to be solved
[0006] In view of the problem of low brightness adjustment accuracy in multiple channels in the prior art, the present application provides a multi-channel LED constant current drive circuit and method based on PWM regulation, which improves the multi-channel adjustment accuracy by setting PWM control and current adjustment signals.
[0007] 2. Technical solution
[0008] The purpose of this application is achieved through the following technical solutions.
[0009] One aspect of the present specification provides a multi-channel LED constant current drive circuit based on PWM regulation, including: a dimming control module and an output stage module; the dimming control module is composed of a reference resistor Rref and n dimming units in parallel; wherein n represents the number of column lines in the LED dot matrix; the dimming unit is used to generate a constant current according to an input current regulation signal and a current control signal; the output stage module is composed of n output stages in parallel; and is used to mirror the constant current output by the dimming control module to the LED dot matrix.
[0010] Furthermore, an input terminal Iref of the dimming control module is externally connected to a reference current signal, and the reference current signal is generated by an external current source module; another input terminal Gain[1:m] of the dimming control module is externally connected to a current regulation signal, and the current regulation signal is generated by an external register module; another input terminal PWM[1:n] of the dimming control module is externally connected to a current control signal, and the current control signal is generated by an external register module; the n output terminals C[1]~C[n] of the dimming control module are correspondingly connected to the n input terminals D[1]~D[n] of the output stage module; under the control of the current regulation signal and the current control signal, the dimming control module outputs a constant current Icon to the output stage module.
[0011] The reference current signal is a constant current generated by the external current source module, which is used to establish a reference voltage. In the dimming control module, the reference current signal flows through the reference resistor Rref, generating a reference voltage Vr across its two ends, which provides a reference for the operation of subsequent circuits. The size of the reference current signal determines the value of the reference voltage, which in turn affects the adjustment range and accuracy of the output current Icon.
[0012] Furthermore, the input terminals Bias1 and Bias2 of the output stage module are respectively connected to bias voltage signal 1 and bias voltage signal 2; wherein, bias voltage signal 1 and bias voltage signal 2 are generated by an external bias circuit; the output stage module comprises n output terminals CH[1]~CH[n], which are used to provide n-channel current output for brightness adjustment of the LED dot matrix, thereby adjusting the brightness of the LED dot matrix.
[0013] Among them, bias voltage signal 1 is a stable voltage generated by an external bias circuit, which is used to provide bias for certain circuits (such as current mirror) in the output stage module. By appropriately setting the value of bias voltage signal 1, the working state of the output stage can be optimized and the accuracy and stability of the current mirror can be improved. Similar to bias voltage signal 1, bias voltage signal 2 is also a stable voltage generated by an external bias circuit, which is used to provide bias for another part of the circuit in the output stage module. By adjusting the value of bias voltage signal 2, the performance of the output stage can be further optimized, such as improving the linearity of the output current, reducing temperature drift, etc.
[0014] Furthermore, the input terminal Gain[1:m] of the dimming control module includes m parallel current adjustment signal ports Gain[1]~Gain[m]; the current adjustment signal is simultaneously sent to the input terminal G[1:m] of dimming unit 1 to dimming unit n; the input terminal PWM[1:n] of the dimming control module includes n parallel current control signal ports PWM[1]~PWM[n]; the current control signal 1 to the current control signal n are sent to the corresponding input terminals P[1]~P[n] of dimming unit 1 to dimming unit n; the input terminal Iref of the dimming control module is simultaneously connected to the input terminal Vref of dimming unit [1]~dimming unit [n] and the first input terminal of the reference resistor Rref; the output terminals C[1]~C[n] of the dimming control module are correspondingly connected to the output terminals O[1]~O[n] of dimming unit [1]~dimming unit [n]; the second input terminal of the reference resistor Rref is grounded to the potential GND.
[0015] Furthermore, the dimming unit includes a first operational amplifier A1, a data selector MUX, a first NMOS tube N1, a second NMOS tube N2, a branch resistor Rf and a current regulation circuit; the input terminal G[1:m] of the dimming unit is correspondingly connected to the input terminal g[1:m] of the current regulation circuit; the input terminal Vref of the dimming unit is connected to the in-phase input terminal of the first operational amplifier A1; the input terminal P[x] of the dimming unit is simultaneously connected to the selection input terminal m of the data selector MUX and the input terminal b of the current regulation circuit, wherein P[x] represents one of the input terminals P[1]~P[n] of the dimming unit [1]~dimming unit [n]; the output terminal O[x] of the dimming unit is connected to the output terminal O[x] of the second NMOS tube N2 drain, where O[x] represents one of the output terminals O[1]~O[n] of the dimming unit [1]~dimming unit [n]; the data input terminal c of the data selector MUX is simultaneously connected to the input terminal a of the current regulating circuit and the source of the second NMOS tube N2, and the input terminal d is simultaneously connected to the source of the first NMOS tube N1 and the first input terminal of the branch resistor Rf; the inverting input terminal of the first operational amplifier A1 is connected to the output terminal of the data selector MUX, and the output terminal is simultaneously connected to the gate of the first NMOS tube N1 and the second NMOS tube N2; the input terminal c of the current regulating circuit is simultaneously connected to the second input terminal of the branch resistor Rf and the ground potential GND; the drain of the first NMOS tube N1 is connected to the power supply voltage VDD.
[0016] Furthermore, a current regulating circuit includes transmission gates TG[1]~TG[m], an NMOS switch tube Ns and constant current generating resistors R[1]~R[m]; the constant current generating resistors R[1]~R[m] use resistors with the same resistance value and the same type as the branch resistor Rf; the input terminal a of the current regulating circuit is simultaneously connected to the first input terminal of the constant current generating resistors R[1]~R[m]; the input terminal b of the current regulating circuit is simultaneously connected to the in-phase control terminal p of the transmission gates TG[1]~TG[m] and the gate of the NMOS switch tube Ns; the input terminal g of the current regulating circuit <1> ~g <m>The inverting control terminal n is correspondingly connected to the transmission gate TG[1]~TG[m]; the output terminal c of the current regulation circuit is connected to the source of the NMOS switch tube Ns; the second input terminal of the constant current generating resistor R[1]~R[m] is correspondingly connected to the input terminal i of the transmission gate TG[1]~TG[m]; the output terminal o of the transmission gate TG[1]~TG[m] is also connected to the drain of the NMOS switch tube Ns.
[0017] Furthermore, the input terminal Bias1 of the output stage module is simultaneously connected to the input terminal V2 of the output stage [1] to the output stage [n]; the input terminal Bias2 of the output stage module is simultaneously connected to the input terminal V3 of the output stage [1] to the output stage [n]; the input terminals D[1] to D[n] of the output stage module are correspondingly connected to the input terminals Vb[1] to Vb[n] of the output stage [1] to the output stage [n]; the output terminals CH[1] to CH[n] of the output stage module are correspondingly connected to the output terminals I[1] to I[n] of the output stage [1] to the output stage [n].
[0018] Further, the output stage includes a first PMOS tube P1, a second PMOS tube P2, a third PMOS tube P3, a fourth PMOS tube P4, a fifth PMOS tube P5, a sixth PMOS tube P6, a third NMOS tube N3 and a fourth NMOS tube N4; the output stage clamps the drain voltage of the third PMOS tube P3 through a feedback loop formed by the first PMOS tube P1, the third PMOS tube P3, the fourth PMOS tube P4, the fifth PMOS tube P5, the sixth PMOS tube P6, the third NMOS tube N3 and the fourth NMOS tube N4, so that the current of the mirror output of the third PMOS tube P3 does not change with the change of the power supply voltage and the load; the output The input terminal Vb[x] of the output stage is simultaneously connected to the gate of the first PMOS transistor P1, the drain of the second PMOS transistor P2 and the gate of the third PMOS transistor P3; wherein Vb[x] represents one of the input terminals Vb[1]~Vb[n] of the output stage[1]~output stage[n]; the input terminal Bias1 of the output stage is connected to the gate of the second PMOS transistor P2; the input terminal Bias2 of the output stage is simultaneously connected to the gates of the third NMOS transistor N3 and the fourth NMOS transistor N4; the output terminal I[x] of the output stage is connected to the drain of the sixth PMOS transistor P6; wherein I[x] represents one of the output terminals I[1]~I[n] of the output stage[1]~output stage[n].
[0019] Further, the source of the first PMOS tube P1 is connected to the source of the third PMOS tube P3 and the power supply voltage VDD; the drain of the first PMOS tube P1 is connected to the source of the second PMOS tube P2 and the source of the fifth PMOS tube P5; the drain of the third PMOS tube P3 is connected to the source of the sixth PMOS tube P6 and the source of the fourth PMOS tube P4; the gate of the fourth PMOS tube P4 is connected to the drain of the fourth PMOS tube P4, the gate of the fifth PMOS tube P5 and the drain of the third NMOS tube N3; the drain of the fifth PMOS tube P5 is connected to the drain of the fourth NMOS tube N4 and the gate of the sixth PMOS tube P6; the sources of the third NMOS tube N3 and the fourth NMOS tube N4 are connected to the ground potential GND.
[0020] Another aspect of the present specification also provides a multi-channel LED constant current driving method based on PWM regulation, wherein a reference current Iref generated by an external current source module flows through a reference resistor Rref of a dimming control module to generate a reference voltage Vr, Vr=Iref×Rref; when the PWM signal is at a high level, the data selector MUX of the dimming unit transmits the potential at the input terminal a of the current regulation circuit to the inverting input terminal of the first operational amplifier A1, and a feedback loop composed of the first operational amplifier A1, the second NMOS tube N2, the current regulation circuit and the data selector MUX works normally, so that the potential at the input terminal a of the current regulation circuit is equal to the reference voltage Vr; when the PWM signal is at a low level, the data selector MUX of the dimming unit transmits the potential at the first input terminal of the branch resistor Rf to the inverting input terminal of the first operational amplifier A1, and a feedback loop composed of the first operational amplifier A1, the first NMOS tube N1, the branch resistor Rf and the data selector MUX works normally. The circuit is normally operated so that the potential of the first input terminal of the branch circuit resistor Rf is equal to the reference voltage Vr; when the PWM signal is at a high level, the potential of the input terminal a of the current regulation circuit is equal to the reference voltage Vr, and the magnitude of the generated current Icon is determined by the reference voltage Vr, the constant current generating resistor R and the number q of low-level signals in the current regulation signal generated by the register, and its value is: Icon = (Iref×Rref) / (R / q); under the control of the current control signal and the current regulation signal, the currents Icon[1]~Ion[n] generated by the dimming unit [1]~dimming unit [n] are respectively mirrored and output to the LED dot matrix through the output stage [1]~output stage [n], and the currents Icon[1]~Ion[n] are only generated when the corresponding current control signals PWM[1]~PWM[n] are at a high level; when the magnitude of the current Icon is constant, the LED brightness is adjusted by changing the high-level duty cycle of the current control signal PWM.
[0021] Among them, in the digital circuit, the high level represents the logic "1" state, which is usually represented by a higher voltage value (such as 3.3V or 5V). In the PWM regulation method, when the PWM signal is at a high level, it means that the dimming unit is in a working state, and the output constant current Icon is used to light up the LED; at the same time, by changing the duty cycle of the high level of the PWM signal, the brightness of the LED can be adjusted. In the digital circuit, the low level represents the logic "0" state, which is usually represented by a low voltage value close to the ground potential (such as 0V). In the PWM regulation method, when the PWM signal is at a low level, it means that the dimming unit is in a shut-off state, the output current Icon drops to zero, and the corresponding LED is turned off. During the low level of the PWM signal, the branch resistor Rf in the dimming unit plays a role in maintaining the working state of the operational amplifier A1 to ensure that the circuit can quickly respond to changes in the PWM signal.
[0022] 3. Beneficial effects
[0023] Compared with the prior art, the advantages of this application are:
[0024] By introducing the reference resistor Rref and the current regulation circuit, the dimming unit can accurately control the size of the output current Icon according to the reference voltage Vr and the current regulation signal. When the PWM signal is at a high level, the feedback loop composed of the first operational amplifier A1, the second NMOS tube N2, the current regulation circuit and the data selector MUX can ensure that the potential at the input terminal a of the current regulation circuit is equal to the reference voltage Vr, thereby ensuring the accuracy of the output current Icon. At the same time, the feedback loop in the output stage can prevent the output current from changing with the changes in the power supply voltage and load, further improving the stability and accuracy of the constant current output.
[0025] The structure of n dimming units and output stages in parallel can easily expand the number of current output channels to meet the driving requirements of large-scale LED dot matrixes. Each dimming unit and output stage can work independently to generate corresponding constant current and realize multi-channel independent control.
[0026] By introducing PWM control and current regulation signals, the dimming unit can dynamically adjust the size of the constant current as needed. When the PWM signal is at a high level, the size of the output current Icon is determined by the reference voltage Vr, the constant current generating resistor R and the number q of low-level signals in the current regulation signal generated by the register. By changing the number of low-level signals in the current regulation signal, a wide range of output current regulation can be achieved; by changing the duty cycle of the PWM signal, the brightness of the LED can be accurately controlled. Combining the two, high-precision and wide-range brightness regulation can be achieved.
[0027] When the PWM signal is at a high level, the feedback loop composed of the first operational amplifier A1, the second NMOS tube N2, the current regulation circuit and the data selector MUX can be quickly established, so that the potential at the input terminal a of the current regulation circuit is equal to the reference voltage Vr, and the output current Icon quickly reaches a stable value. When the PWM signal is at a low level, the feedback loop composed of the first operational amplifier A1, the first NMOS tube N1, the branch resistor Rf and the data selector MUX can be quickly established, so that the potential at the first input terminal of the branch resistor Rf is equal to the reference voltage Vr, and the output current Icon quickly drops to zero. This fast response characteristic can meet the requirements of high-precision PWM control, especially at low duty cycles, ensuring the accuracy and consistency of LED brightness adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a schematic diagram of the structure of a high-precision multi-channel LED constant current drive circuit based on PWM regulation proposed in this application;
[0029] Figure 2 This is a schematic diagram of the dimming unit structure proposed in this application;
[0030] Figure 3 This is a schematic diagram of the current regulation circuit structure proposed in this application;
[0031] Figure 4 This is a schematic diagram of the output stage structure proposed in this application. DETAILED DESCRIPTION
[0032] The present application is described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0033] Example 1
[0034] like Figure 1 As shown, the embodiment of the present application provides a high-precision multi-channel LED constant current drive circuit based on PWM regulation, which is used to drive the LED dot matrix to ensure the brightness and color consistency of the LED display screen. The constant current drive circuit mainly includes a dimming control module and an output stage module.
[0035] The dimming control module is composed of a reference resistor Rref and n dimming units (dimming unit [1] to dimming unit [n]) in parallel, where n corresponds to the number of column lines in the LED matrix. The input terminal Iref of the dimming control module is externally connected to a reference current signal, which is generated by an external current source module. The input terminal Gain[1:m] of the dimming control module is externally connected to a current regulation signal, which is generated by an external register module. The input terminal PWM[1:n] of the dimming control module is externally connected to a current control signal, which is also generated by an external register module. The n output terminals C[1] to C[n] of the dimming control module are connected to the n input terminals D[1] to D[n] of the output stage module in a one-to-one correspondence. Under the control of the current control signal PWM[1:n] and the current regulation signal Gain[1:m], the dimming control module outputs an adjustable constant current Icon to supply to the output stage module.
[0036] Among them, the input terminal Gain[1:m] of the dimming control module represents m parallel current regulation signal ports Gain[1]~Gain[m], and the value of m can be configured according to the actual application scenario. The current regulation signal Gain[1:m] is sent to the input terminal G[1:m] of the dimming unit [1]~dimming unit [n] at the same time. The input terminal PWM[1:n] of the dimming control module represents n parallel current control signal ports PWM[1]~PWM[n], and the current control signals PWM[1]~PWM[n] are sent to the input terminals P[1]~P[n] of the dimming unit [1]~dimming unit [n] respectively. The input terminal Iref of the dimming control module is simultaneously connected to the input terminals Vref of all dimming units and the first input terminal of the reference resistor Rref. The output terminals C[1]~C[n] of the dimming control module are connected to the output terminals O[1]~O[n] of the dimming unit [1]~dimming unit [n] in a one-to-one correspondence. The second input terminal of the reference resistor Rref is grounded to the potential GND.
[0037] The output stage module is composed of n output stages (output stage [1] to output stage [n]) connected in parallel, where n corresponds to the number of column lines in the LED matrix. The output stage module includes n output terminals CH [1] to CH [n], which can directly provide n-channel high-precision current output for brightness adjustment of the LED matrix. The input terminals Bias1 and Bias2 of the output stage module are respectively connected to bias voltage signal 1 and bias voltage signal 2, which are generated by an external bias circuit.
[0038] The input terminal Bias1 of the output stage module is simultaneously connected to the input terminal V2 of all output stages, and the input terminal Bias2 is simultaneously connected to the input terminal V3 of all output stages. The input terminals D[1]~D[n] of the output stage module are connected one-to-one with the input terminals Vb[1]~Vb[n] of output stages[1]~output stages[n]. The output terminals CH[1]~CH[n] of the output stage module are connected one-to-one with the output terminals I[1]~I[n] of output stages[1]~output stages[n].
[0039] Through the above circuit structure, the dimming control module can output an adjustable constant current Icon according to the control of the current control signal PWM[1:n] and the current adjustment signal Gain[1:m], and supply it to the output stage module. Under the action of bias voltage signals 1 and 2, the output stage module converts the constant current Icon into a high-precision current output of n channels, which is directly used for the brightness adjustment of the LED dot matrix to ensure the brightness and color consistency of the display screen.
[0040] refer to Figure 2 FIG. 1 is a schematic diagram of the structure of the dimming unit proposed in this embodiment. The dimming unit mainly includes an operational amplifier A1, a data selector MUX, an NMOS tube N1, an NMOS tube N2, a branch resistor Rf and a current regulating circuit.
[0041] The input terminal G[1:m] of the dimming unit is connected to the input terminal g[1:m] of the current regulation circuit in a one-to-one correspondence, and is used to receive the current regulation signal Gain[1:m]. The input terminal Vref of the dimming unit is connected to the non-inverting input terminal of the operational amplifier A1, and is used to receive the reference current signal Iref. The input terminal P[x] of the dimming unit is simultaneously connected to the selection input terminal m of the data selector MUX and the input terminal b of the current regulation circuit, where P[x] represents one of the input terminals P[1]~P[n] of the dimming unit [1]~dimming unit [n], and is used to receive the corresponding current control signal PWM[x]. The output terminal O[x] of the dimming unit is connected to the drain of the NMOS tube N2, where O[x] represents one of the output terminals O[1]~O[n] of the dimming unit [1]~dimming unit [n], and is used to output the constant current Icon.
[0042] The data input terminal c of the data selector MUX is simultaneously connected to the input terminal a of the current regulating circuit and the source of the NMOS tube N2, and its data input terminal d is simultaneously connected to the source of the NMOS tube N1 and the first input terminal of the branch resistor Rf. The inverting input terminal of the operational amplifier A1 is connected to the output terminal of the data selector MUX, and its output terminal is simultaneously connected to the gates of the NMOS tubes N1 and NMOS tubes N2. The input terminal c of the current regulating circuit is simultaneously connected to the second input terminal of the branch resistor Rf and the ground potential GND. The drain of the NMOS tube N1 is connected to the power supply voltage VDD.
[0043] When the current control signal PWM[x] is at a high level, the data selector MUX transmits the signal of its data input terminal c to the inverting input terminal of the operational amplifier A1. At this time, the feedback loop composed of the operational amplifier A1, the NMOS tube N2, the current regulation circuit and the data selector MUX makes the potential of the input terminal a of the current regulation circuit equal to the reference voltage Vr, so that the output terminal O[x] outputs a constant current Icon, whose size is jointly determined by the reference voltage Vr, the current regulation signal Gain[1:m] and the current regulation circuit.
[0044] When the current control signal PWM[x] is at a low level, the data selector MUX transmits the signal of its data input terminal d to the inverting input terminal of the operational amplifier A1. At this time, the feedback loop composed of the operational amplifier A1, the NMOS tube N1, the branch resistor Rf and the data selector MUX makes the potential of the first input terminal of the branch resistor Rf equal to the reference voltage Vr, so that the current Icon output by the output terminal O[x] is reduced to zero. The dimming unit can output a constant current Icon with adjustable size according to the control of the current control signal PWM[x] and the current adjustment signal Gain[1:m] to achieve precise adjustment of the LED brightness. At the same time, the feedback loop composed of the operational amplifier A1 and the data selector MUX can ensure the rapid response and stability of the output current Icon, meeting the requirements of high-precision PWM dimming.
[0045] refer to Figure 3 As shown, it is a schematic diagram of the structure of the current regulation circuit proposed in this embodiment. The current regulation circuit mainly includes transmission gates TG[1]~TG[m], NMOS switch tube Ns and constant current generating resistors R[1]~R[m], where m can be set according to the actual application scenario. The constant current generating resistors R[1]~R[m] use resistors with the same resistance value and the same type as the branch resistor Rf to facilitate the matching of the integrated circuit layout.
[0046] The input terminal a of the current regulation circuit is simultaneously connected to the first input terminals of all constant current generating resistors R[1]~R[m]. The input terminal b of the current regulation circuit is simultaneously connected to the in-phase control terminals p of all transmission gates TG[1]~TG[m] and the gate of the NMOS switch tube Ns, for receiving the current control signal PWM[x]. The input terminal g of the current regulation circuit <1> ~g <m>The inverting control terminals n of the transmission gates TG[1] to TG[m] are respectively connected to receive the current regulation signal Gain[1:m]. The output terminal c of the current regulation circuit is connected to the source of the NMOS switch tube Ns. The second input terminals of the constant current generating resistors R[1] to R[m] are respectively connected to the input terminals i of the transmission gates TG[1] to TG[m]. The output terminals o of the transmission gates TG[1] to TG[m] are simultaneously connected to the drain of the NMOS switch tube Ns.
[0047] When the current control signal PWM[x] is at a high level, the NMOS switch tube Ns is turned on, and the transmission gates TG[1]~TG[m] are selectively turned on according to the state of the current regulation signal Gain[1:m]. For each signal Gain[j] (1≤j≤m) in the current regulation signal Gain[1:m], when it is at a low level, the corresponding transmission gate TG[j] is turned on, and the constant current generating resistor R[j] is connected in parallel between the input terminal a and the output terminal c; when it is at a high level, the corresponding transmission gate TG[j] is turned off, and the constant current generating resistor R[j] has no effect. Therefore, the total number of constant current generating resistors connected in parallel between the input terminal a and the output terminal c depends on the number of low-level signals in the current regulation signal Gain[1:m], which is recorded as q (0≤q≤m). Under the action of the feedback loop of the dimming unit, the potential at the input terminal a is equal to the reference voltage Vr, so the current flowing through each turned-on constant current generating resistor is Vr / R, and the total current Icon output by the output terminal c is q×Vr / R. By changing the number q of low-level signals in the current regulation signal Gain[1:m], a wide range of regulation of the output current Icon can be achieved.
[0048] When the current control signal PWM[x] is at a low level, the NMOS switch tube Ns is turned off, and the state of the transmission gate TG[1]~TG[m] does not affect the operation of the circuit. At this time, the current Icon output by the output terminal c is zero. The current regulation circuit can dynamically adjust the size of the output current Icon according to the control of the current control signal PWM[x] and the current regulation signal Gain[1:m]. Combined with the feedback loop of the dimming unit, high-precision and wide-range adjustment of the LED brightness can be achieved to meet the needs of different application scenarios. At the same time, by using a constant current generating resistor of the same type as the branch resistor Rf, the matching and integration of the circuit can be improved, which is convenient for circuit design and manufacturing.
[0049] refer to Figure 4 , which is a schematic diagram of the structure of the output stage proposed in this embodiment. The output stage mainly includes six PMOS tubes P1, P2, P3, P4, P5 and P6 and two NMOS tubes N3 and N4. Different from the traditional current mirror output structure, the output stage clamps the drain voltage of the PMOS tube P3 through the feedback loop composed of the PMOS tubes P1, P3, P4, P5, P6 and the NMOS tubes N3 and N4, so that the current of the mirror output of the P3 tube does not change with the change of the power supply voltage and the load.
[0050] The input terminal Vb[x] of the output stage is simultaneously connected to the gate of the PMOS tube P1, the drain of P2, and the gate of P3, where Vb[x] represents one of the input terminals Vb[1] to Vb[n] of the output stage [1] to [n], and is used to receive the constant current Icon output by the dimming unit. The input terminal Bias1 of the output stage is connected to the gate of the PMOS tube P2, and is used to receive the bias voltage signal 1. The input terminal Bias2 of the output stage is simultaneously connected to the gates of the NMOS tubes N3 and N4, and is used to receive the bias voltage signal 2. The output terminal I[x] of the output stage is connected to the drain of the PMOS tube P6, where I[x] represents one of the output terminals I[1] to I[n] of the output stage [1] to [n], and is used to output the constant current for driving the LED.
[0051] The source of the PMOS tube P1 is connected to the source of the PMOS tube P3 and the power supply voltage VDD at the same time. The drain of the PMOS tube P1 is connected to the sources of the PMOS tubes P2 and P5 at the same time. The drain of the PMOS tube P3 is connected to the sources of the PMOS tubes P6 and P4 at the same time. The gate of the PMOS tube P4 is connected to the drain of the PMOS tube P4, the gate of the PMOS tube P5 and the drain of the NMOS tube N3 at the same time. The drain of the PMOS tube P5 is connected to the drain of the NMOS tube N4 and the gate of the PMOS tube P6 at the same time. The sources of the NMOS tubes N3 and N4 are connected to the ground potential GND at the same time.
[0052] In this circuit structure, PMOS tubes P1 and P2 form a current mirror, which accurately copies the constant current Icon received by the input terminal Vb[x] to the source of PMOS tube P3. PMOS tubes P3 and P6 form another current mirror, which outputs the Icon current mirror to the output terminal I[x] for driving the LED. In order to ensure that the current output by the PMOS tube P3 is not affected by changes in the power supply voltage and load, PMOS tubes P4, P5 and NMOS tubes N3, N4 form a feedback loop to clamp the drain voltage of PMOS tube P3 at a stable value.
[0053] Specifically, NMOS tubes N3 and N4 provide a constant bias current for PMOS tubes P4 and P5 under the control of bias voltage signal 2. PMOS tubes P4 and P5 form another current mirror, mirroring the bias current to the drain of PMOS tube P3. Since the drain and gate of PMOS tube P4 are connected to form a diode connection, its drain voltage remains constant. Under the action of the feedback loop, the drain voltage of PMOS tube P3 is clamped at a value equal to the drain voltage of PMOS tube P4, so that the current of its mirror output remains stable and is not affected by changes in power supply voltage and load. The output stage can accurately mirror the constant current Icon output by the dimming unit, and ensure the stability of the output current through the feedback loop, thereby achieving precise control of the LED brightness. At the same time, since the working state of the output stage is not affected by changes in power supply voltage and load, the reliability and consistency of the LED drive circuit can be improved to meet the requirements of high-precision display applications.
[0054] Example 2
[0055] A high-precision multi-channel LED constant current driving method based on PWM regulation, the specific steps are as follows: Generation of reference voltage Vr: The external current source module generates a constant reference current Iref, which flows through the reference resistor Rref in the dimming control module, and generates a reference voltage Vr across Rref, whose value is: Vr = Iref × Rref. The reference voltage Vr is used as the non-inverting input voltage of the operational amplifier A1 in the dimming unit to provide a reference for the operation of the subsequent circuit.
[0056] PWM signal control process: The dimming unit switches the working mode according to the input PWM signal. When the PWM signal is at a high level, the data selector MUX transmits the potential of the input terminal a of the current regulation circuit to the inverting input terminal of the operational amplifier A1. At this time, the feedback loop composed of the operational amplifier A1, the NMOS tube N2, the current regulation circuit and the data selector MUX works normally, so that the potential of the input terminal a of the current regulation circuit is equal to the reference voltage Vr, so that the output terminal O[x] outputs a constant adjustable current Icon.
[0057] When the PWM signal is at a low level, the data selector MUX transmits the potential of the first input terminal of the branch resistor Rf to the inverting input terminal of the operational amplifier A1. At this time, the feedback loop composed of the operational amplifier A1, the NMOS tube N1, the branch resistor Rf and the data selector MUX works normally, so that the potential of the first input terminal of the branch resistor Rf is equal to the reference voltage Vr, so that the current Icon output by the output terminal O[x] drops to zero.
[0058] The switching of the dimming unit working mode is realized by controlling the strobe state of the data selector MUX through the PWM signal. At the same time, since the operational amplifier A1 is always in a normal working state during the high and low level period of the PWM signal, it can ensure that the output current Icon can quickly respond to the change of the PWM signal, thereby improving the dimming accuracy and response speed.
[0059] Generation of constant adjustable current Icon: When the PWM signal is at a high level, the potential at the input terminal a of the current regulation circuit is equal to the reference voltage Vr. The current regulation circuit dynamically adjusts the number of constant current generating resistors connected in parallel between the output terminal c and the input terminal a according to the input current regulation signal Gain[1:m], thereby changing the size of the output current Icon.
[0060] Specifically, for each bit Gain[j] (1≤j≤m) in the current regulation signal Gain[1:m], when it is at a low level, the corresponding constant current generating resistor R[j] is connected in parallel between the input terminal a and the output terminal c; when it is at a high level, the corresponding constant current generating resistor R[j] does not work. Therefore, the total number q of constant current generating resistors connected in parallel between the input terminal a and the output terminal c depends on the number of low level bits in the current regulation signal Gain[1:m], and 0≤q≤m.
[0061] Under the action of the feedback loop of the dimming unit, the potential at the input terminal a of the current regulation circuit is equal to the reference voltage Vr. Therefore, the current flowing through each turned-on constant current generating resistor is Vr / R, and the total current Icon outputted from the output terminal c is: Icon=q×Vr / R=(Iref×Rref) / (R / q). By changing the number q of low-level bits in the current regulation signal Gain[1:m], the output current Icon can be adjusted over a wide range and with high precision.
[0062] High-precision multi-channel current output: Under the control of the current control signal PWM[1:n] and the current regulation signal Gain[1:m], the n dimming units work independently to generate n constant adjustable currents Icon[1] to Icon[n]. These currents are mirrored through the corresponding output stages [1] to [n] to drive the n LED channels in the LED matrix.
[0063] The output stage adopts a current mirror structure with a feedback loop to accurately copy the constant current Icon output by the dimming unit to the output end. At the same time, the drain voltage of the PMOS tube P3 is clamped at a constant value through the feedback loop, so that the output current is not affected by changes in the power supply voltage and load, further improving the accuracy and stability of the current output.
[0064] For each output current Icon[x] (1≤x≤n), it is only generated when the corresponding current control signal PWM[x] is at a high level. When PWM[x] is at a low level, Icon[x] drops to zero. Therefore, by changing the duty cycle of PWM[1:n], high-precision adjustment of the LED brightness can be achieved. At the same time, by changing the number of low-level bits in Gain[1:m], the amplitude of Icon[1:n] can be adjusted within a large range to meet different brightness requirements.
[0065] In summary, the high-precision multi-channel LED constant current driving method based on PWM regulation proposed in this application realizes high-precision, large-range, multi-channel independent adjustment of LED brightness through the establishment of reference voltage, PWM signal control, constant current adjustable circuit and coordination of multi-channel output stage, and can be widely used in high-quality display driving and other fields. At the same time, due to the adoption of the full current mode working mode, the problem of limited bandwidth of the op amp in the traditional voltage dimming mode is avoided, and the dimming response speed and stability are improved. Moreover, all dimming units and output stages can be implemented in integrated circuits, which have the advantages of simple structure, small area, low power consumption, etc., and are easy to apply on a large scale.
[0066] The invention of the present application and its implementation methods are described schematically above. The description is not restrictive. Without departing from the spirit or basic features of the present application, the present application can be implemented in other specific forms. What is shown in the accompanying drawings is only one of the implementation methods of the invention of the present application. The actual structure is not limited to this. Any figure mark in the claims should not limit the claims involved. Therefore, if ordinary technicians in this field are inspired by it, without departing from the purpose of the present invention, they can design structural methods and embodiments similar to the technical solution without creativity, which should all fall within the scope of protection of this patent. In addition, the word "including" does not exclude other elements or steps, and the word "one" before the element does not exclude the inclusion of "multiple" elements. The multiple elements stated in the product claim can also be implemented by one element through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.< / m> < / m>
Claims
1. A multi-channel LED constant current drive circuit based on PWM regulation, include: Dimming control module and output stage module; The dimming control module is composed of a reference resistor Rref and n dimming units connected in parallel; wherein n represents the number of column lines in the LED matrix; the dimming unit is used to generate a constant current according to an input current adjustment signal and a current control signal; The output stage module is composed of n output stages connected in parallel and is used to mirror-output the constant current output by the dimming control module to the LED dot matrix.
2. The multi-channel LED constant current driving circuit based on PWM regulation according to claim 1, Features: An input terminal Iref of the dimming control module is externally connected to a reference current signal, and the reference current signal is generated by an external current source module; Another input terminal Gain[1:m] of the dimming control module is externally connected to a current regulation signal, and the current regulation signal is generated by an external register module; Another input terminal PWM[1:n] of the dimming control module is externally connected to a current control signal, and the current control signal is generated by an external register module; The n output terminals C[1] to C[n] of the dimming control module are correspondingly connected to the n input terminals D[1] to D[n] of the output stage module; The dimming control module outputs a constant current Icon to the output stage module under the control of the current adjustment signal and the current control signal.
3. The multi-channel LED constant current driving circuit based on PWM regulation according to claim 1, Features: The input terminals Bias1 and Bias2 of the output stage module are externally connected to bias voltage signal 1 and bias voltage signal 2 respectively; wherein the bias voltage signal 1 and bias voltage signal 2 are generated by an external bias circuit; The output stage module includes n output terminals CH[1] to CH[n], which are used to provide n-channel current output for brightness adjustment of the LED dot matrix, thereby adjusting the brightness of the LED dot matrix.
4. The multi-channel LED constant current driving circuit based on PWM regulation according to claim 2, Features: The input terminal Gain[1:m] of the dimming control module includes m parallel current adjustment signal ports Gain[1] to Gain[m]; Sending the current regulation signal to the input terminals G[1:m] of dimming unit 1 to dimming unit n simultaneously; The input terminal PWM[1:n] of the dimming control module includes n parallel current control signal ports PWM[1] to PWM[n]; Sending current control signals 1 to current control signals n to input terminals P[1] to P[n] of corresponding dimming units 1 to n; The input terminal Iref of the dimming control module is connected to the input terminal Vref of the dimming unit [1] to the dimming unit [n] and the first input terminal of the reference resistor Rref; The output terminals C[1] to C[n] of the dimming control module are connected to the output terminals O[1] to O[n] of the dimming units [1] to [n] respectively; A second input terminal of the reference resistor Rref is connected to the ground potential GND.
5. The multi-channel LED constant current driving circuit based on PWM regulation according to claim 4, Features: The dimming unit includes a first operational amplifier A1, a data selector MUX, a first NMOS tube N1, a second NMOS tube N2, a branch resistor Rf and a current regulating circuit; The input terminal G[1:m] of the dimming unit is correspondingly connected to the input terminal g[1:m] of the current regulating circuit; The input terminal Vref of the dimming unit is connected to the non-inverting input terminal of the first operational amplifier A1; The input terminal P[x] of the dimming unit is connected to the selection input terminal m of the data selector MUX and the input terminal b of the current regulation circuit at the same time, wherein P[x] represents one of the input terminals P[1] to P[n] of the dimming unit [1] to the dimming unit [n]; The output terminal O[x] of the dimming unit is connected to the drain of the second NMOS transistor N2, wherein O[x] represents one of the output terminals O[1] to O[n] of the dimming units [1] to [n]; The data input terminal c of the data selector MUX is simultaneously connected to the input terminal a of the current regulating circuit and the source of the second NMOS transistor N2, and the input terminal d is simultaneously connected to the source of the first NMOS transistor N1 and the first input terminal of the branch resistor Rf; The inverting input terminal of the first operational amplifier A1 is connected to the output terminal of the data selector MUX, and the output terminal is simultaneously connected to the gates of the first NMOS transistor N1 and the second NMOS transistor N2; The input terminal c of the current regulating circuit is connected to the second input terminal of the branch resistor Rf and the ground potential GND at the same time; A drain of the first NMOS transistor N1 is connected to a power supply voltage VDD.
6. The multi-channel LED constant current driving circuit based on PWM regulation according to claim 5, Features: A current regulating circuit, comprising transmission gates TG[1] to TG[m], an NMOS switch tube Ns, and constant current generating resistors R[1] to R[m]; The constant current generating resistors R[1] to R[m] use resistors with the same resistance value and the same type as the branch resistor Rf; The input terminal a of the current regulating circuit is simultaneously connected to the first input terminals of the constant current generating resistors R[1] to R[m]; The input terminal b of the current regulation circuit is simultaneously connected to the in-phase control terminal p of the transmission gates TG[1] to TG[m] and the gate of the NMOS switch tube Ns; The input terminal of the current regulation circuit is g <1> tog <m> Correspondingly connecting the inverting control terminal n of the transmission gate TG[1] to TG[m];< / m> The output terminal c of the current regulating circuit is connected to the source of the NMOS switch tube Ns; The second input terminals of the constant current generating resistors R[1] to R[m] are correspondingly connected to the input terminals i of the transmission gates TG[1] to TG[m]; The output ends o of the transmission gates TG[1] to TG[m] are simultaneously connected to the drain of the NMOS switch tube Ns.
7. The multi-channel LED constant current driving circuit based on PWM regulation according to claim 3, Features: The input terminal Bias1 of the output stage module simultaneously connects the input terminal V2 of output stage [1] to output stage [n]; The input terminal Bias2 of the output stage module simultaneously connects the input terminal V3 of the output stage [1] to the output stage [n]; The input terminals D[1] to D[n] of the output stage module are connected to the input terminals Vb[1] to Vb[n] of the output stage[1] to the output stage[n] respectively; The output terminals CH[1] to CH[n] of the output stage module are connected to the output terminals I[1] to I[n] of the output stage[1] to the output stage[n] correspondingly.
8. The multi-channel LED constant current driving circuit based on PWM regulation according to claim 7, Features: The output stage includes a first PMOS tube P1, a second PMOS tube P2, a third PMOS tube P3, a fourth PMOS tube P4, a fifth PMOS tube P5, a sixth PMOS tube P6, a third NMOS tube N3 and a fourth NMOS tube N4; The output stage clamps the drain voltage of the third PMOS tube P3 through a feedback loop composed of the first PMOS tube P1, the third PMOS tube P3, the fourth PMOS tube P4, the fifth PMOS tube P5, the sixth PMOS tube P6, the third NMOS tube N3 and the fourth NMOS tube N4, so that the current of the mirror output of the third PMOS tube P3 does not change with the change of the power supply voltage and the load; The input terminal Vb[x] of the output stage is simultaneously connected to the gate of the first PMOS transistor P1, the drain of the second PMOS transistor P2, and the gate of the third PMOS transistor P3; wherein Vb[x] represents one of the input terminals Vb[1] to Vb[n] of the output stage [1] to the output stage [n]; The input terminal Bias1 of the output stage is connected to the gate of the second PMOS tube P2; The input terminal Bias2 of the output stage is connected to the gates of the third NMOS transistor N3 and the fourth NMOS transistor N4 at the same time; The output terminal I[x] of the output stage is connected to the drain of the sixth PMOS transistor P6; wherein I[x] represents one of the output terminals I[1] to I[n] of the output stage [1] to the output stage [n].
9. The multi-channel LED constant current driving circuit based on PWM regulation according to claim 8, Features: The source of the first PMOS transistor P1 is connected to the source of the third PMOS transistor P3 and the power supply voltage VDD; The drain of the first PMOS tube P1 is connected to the source of the second PMOS tube P2 and the source of the fifth PMOS tube P5; The drain of the third PMOS tube P3 is connected to the source of the sixth PMOS tube P6 and the source of the fourth PMOS tube P4; The gate of the fourth PMOS transistor P4 is connected to the drain of the fourth PMOS transistor P4, the gate of the fifth PMOS transistor P5 and the drain of the third NMOS transistor N3; The drain of the fifth PMOS transistor P5 is connected to the drain of the fourth NMOS transistor N4 and the gate of the sixth PMOS transistor P6; Sources of the third NMOS transistor N3 and the fourth NMOS transistor N4 are connected to the ground potential GND.
10. A multi-channel LED constant current driving method based on PWM regulation, include: The reference current Iref generated by the external current source module flows through the reference resistor Rref of the dimming control module to generate a reference voltage Vr, Vr = Iref × Rref; When the PWM signal is at a high level, the data selector MUX of the dimming unit transmits the potential at the input terminal a of the current regulating circuit to the inverting input terminal of the first operational amplifier A1, and the feedback loop composed of the first operational amplifier A1, the second NMOS tube N2, the current regulating circuit and the data selector MUX works normally, so that the potential at the input terminal a of the current regulating circuit is equal to the reference voltage Vr; When the PWM signal is at a low level, the data selector MUX of the dimming unit transmits the potential of the first input end of the branch resistor Rf to the inverting input end of the first operational amplifier A1, and the feedback loop composed of the first operational amplifier A1, the first NMOS tube N1, the branch resistor Rf and the data selector MUX works normally, so that the potential of the first input end of the resistor Rf of the branch circuit is equal to the reference voltage Vr; When the PWM signal is at a high level, the potential at the input terminal a of the current regulation circuit is equal to the reference voltage Vr. The magnitude of the generated current Icon is determined by the reference voltage Vr, the constant current generating resistor R and the number q of low-level signals in the current regulation signal generated by the register, and its value is: Icon = (Iref × Rref) / (R / q); Under the control of the current control signal and the current adjustment signal, the currents Icon[1] to Icon[n] generated by the dimming units [1] to the dimming units [n] are mirrored and output to the LED dot matrix through the output stages [1] to the output stages [n], respectively. The currents Icon[1] to Icon[n] are generated only when the corresponding current control signals PWM[1] to PWM[n] are at a high level. When the magnitude of the current Icon is constant, the LED brightness is adjusted by changing the high level duty cycle of the current control signal PWM.
