Error detection method and circuit
By pre-charge and voltage comparison of the output end of the control line in the LED driver chip, the problem of not being able to detect LSG errors and AOS errors in the prior art is solved, and effective error detection of the LED driver chip and normal control of the LED lamp are realized.
Patent Information
- Application Number
- CN202411562522.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-05
AI Technical Summary
The prior art cannot effectively detect LSG errors and AOS errors in the LED driver chip, resulting in the LED light being in a constant state or the switches and brightness of adjacent LED light strings affect each other.
An error detection method and circuit are provided to determine whether the output of the control line is short-circuited to ground or mutually short-circuited by pre-charge the output end of the control line before the LED power supply starts power supply, and compare the voltage at the output end with the preset reference voltage.
Timely detection of LSG errors and AOS errors in the LED driver chip is achieved to ensure the normal function and brightness control of the LED lamp.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of LED driving, and more particularly to an error detection method and circuit. Background Art
[0002] LED driver chips are a type of driver chips that provide stable working conditions and protection for LED lamps, and also control the brightness of LED lamps. Figure 1 The figure shows a typical topology of LED driver chip, where V LED The power supply voltage is provided for the external LED power supply. The LED driver chip includes multiple parallel control lines. One end of each control line is grounded, and the other end forms an output end. The output end is connected to a string of LED lights to control the LED lights. OUT0 in the figure represents the output end of the control line numbered 0. Each control line is provided with a current sink and a first switch (usually a transistor). The current sink is used to provide a stable current for the LED light string. The pulse width modulation (PWM) signal controls the switch of the transistor. PWM0 in the figure represents the PWM signal used to control the transistor on the control line numbered 0. The LED light can be dimmed by controlling the current size of the current sink or the duty cycle of the PWM signal.
[0003] If the output end of a control circuit of the LED driver chip is short-circuited to the ground, which is equivalent to the cathode of the LED light string being short-circuited to the ground (LED Short to Ground, LSG), an LSG error will occur, which will cause the LED light to be in a constant light state and no longer be controlled by the LED driver chip. If the output ends of two adjacent control circuits of the chip are short-circuited together (i.e. connected to each other), an adjacent end short circuit (Adjacent Out Short, AOS) error will occur, which will cause the switching and brightness of adjacent LED light strings to affect each other, affecting the normal function of the chip.
[0004] The prior art cannot detect LSG errors and / or AOS errors. Summary of the invention
[0005] The object of the present invention is to provide an error detection method and circuit, so as to detect errors in LED driver chips in a timely manner.
[0006] Based on the above purpose, the present invention provides an error detection method on one hand, which is applied to an LED driver chip, wherein the LED driver chip has multiple control circuits, one end of each control circuit is grounded, and the other end forms the output end of the control circuit, each control circuit is provided with a first switch and a current sink, the output end of each control circuit is used to be electrically connected to one end of an LED light string, and the other end of each LED light string is electrically connected to an LED power supply, the error detection method includes a short circuit to ground detection method, and the short circuit to ground detection method includes:
[0007] For each control line, before the LED power supply starts supplying power, pre-charging the output end of the control line;
[0008] Comparing the voltage at the output end of the control circuit with a preset first reference voltage to obtain a first comparison result;
[0009] It is determined whether the output end of the control line is short-circuited to ground according to the first comparison result.
[0010] Further, the output end of the control line is precharged, specifically including:
[0011] The output end of the control line is connected to the preset power supply.
[0012] Further, each control line corresponds to a first comparator;
[0013] Comparing the voltage at the output end of the control circuit with a preset first reference voltage to obtain a first comparison result specifically includes:
[0014] The output end of the control line is connected to the first input end of the corresponding first comparator, and the second input end of the first comparator is connected to the first reference voltage, so that the output end of the first comparator outputs the first comparison result.
[0015] Further, determining whether the output end of the control line is short-circuited to ground according to the first comparison result specifically includes:
[0016] If the first comparison result is that the voltage at the output end of the control circuit is greater than the first reference voltage, the output end of the control circuit is not short-circuited to the ground; if the first comparison result is that the voltage at the output end of the control circuit is less than the first reference voltage, the output end of the control circuit is short-circuited to the ground.
[0017] Furthermore, it also includes an adjacent terminal short circuit detection method, the adjacent terminal short circuit detection method comprising:
[0018] For any two adjacent control lines, one of the two adjacent control lines is used as a first line, and the other of the two adjacent control lines is used as a second line;
[0019] Before the LED power supply starts supplying power, pre-charging the output end of the first circuit;
[0020] opening the first switch and the current sink on the second line;
[0021] Comparing the voltage at the output end of the first circuit with a preset second reference voltage to obtain a second comparison result;
[0022] It is determined whether the output ends of the two adjacent control lines are short-circuited to each other according to the second comparison result.
[0023] Further, precharging the output end of the first line specifically includes:
[0024] The output end of the first line is connected to a preset power supply.
[0025] Further, the first circuit corresponds to a second comparator;
[0026] Comparing the voltage at the output end of the first circuit with a preset second reference voltage to obtain a second comparison result specifically includes:
[0027] The output end of the first line is connected to the first input end of the second comparator, and the second input end of the second comparator is connected to the second reference voltage, so that the output end of the second comparator outputs the second comparison result.
[0028] Further, determining whether the output ends of the two adjacent control lines are short-circuited to each other according to the second comparison result specifically includes:
[0029] If the second comparison result is that the voltage at the output end of the first circuit is greater than the second reference voltage, the output ends of the two adjacent control circuits are not short-circuited to each other; if the second comparison result is that the voltage at the output end of the first circuit is less than the second reference voltage, the output ends of the two adjacent control circuits are short-circuited to each other.
[0030] Another aspect of the present invention provides an error detection circuit, which is applied to an LED driver chip, wherein the LED driver chip has a plurality of parallel control circuits, one end of each control circuit is grounded, and the other end forms the output end of the control circuit, each control circuit is provided with a first switch and a current sink, the first switch is used to control the on and off of the corresponding control circuit, the output end of each control circuit is used to be electrically connected to one end of an LED light string, and the other end of each LED light string is electrically connected to an LED power supply, and the error detection circuit comprises:
[0031] A plurality of second switches, a plurality of first comparators and a detection module, each second switch and each first comparator corresponds to each control circuit one by one, the output end of each control circuit is connected to a preset power supply through the second switch corresponding to the control circuit, and is connected to the first input end of the first comparator corresponding to the control circuit, and the second input end of the first comparator corresponding to the control circuit is connected to a first reference voltage; the detection module is respectively connected to the output end of each first comparator, and is configured to determine whether each control circuit is short-circuited to ground according to a first comparison result output by the first comparator.
[0032] Furthermore, the second switch is a transistor, the source of the transistor is connected to the preset power supply, the drain of the transistor is connected to the output end of the control circuit, the gate of the transistor is connected to a pre-charge signal, and the pre-charge signal is used to control the on and off of the transistor.
[0033] Further, the control circuits are numbered in ascending order of natural numbers according to the arrangement sequence, and the control circuits with even numbers are regarded as even control circuits, and the control circuits with odd numbers are regarded as odd control circuits;
[0034] The error detection circuit also includes multiple second comparators, each second comparator corresponds to each even control circuit or each odd control circuit one by one, the first input end of each second comparator is connected to the output end of the corresponding control circuit, and the second input end of each second comparator is connected to a second reference voltage; the detection module is also respectively connected to the output end of each second comparator, and is configured to determine whether the output end of the control circuit connected to the second comparator is short-circuited with the output end of the adjacent control circuit based on the second comparison result output by each second comparator.
[0035] Further, the control circuits are numbered in ascending order of natural numbers according to the arrangement sequence, and the control circuits with even numbers are regarded as even control circuits, and the control circuits with odd numbers are regarded as odd control circuits;
[0036] The error detection circuit also includes a plurality of selectors, each of which corresponds to each even-numbered control circuit or each odd-numbered control circuit one by one, each selector having two input terminals, a control terminal and an output terminal, the two input terminals of each selector being connected to a first reference voltage and a second reference voltage respectively; the output terminal of each selector is connected to a second input terminal of a first comparator corresponding to the control circuit corresponding to the selector, the control terminal of each selector is connected to a reference voltage control signal, and the reference voltage control signal is used to selectively make one of the first reference voltage and the second reference voltage output from the output terminal of the selector; when the selector outputs the first reference voltage, the first comparator connected to the selector outputs a first comparison result, and when the selector outputs the second reference voltage, the first comparator connected to the selector outputs a second comparison result; the detection module is configured to determine whether each control circuit is short-circuited to ground according to the first comparison result, and to determine whether the output terminal of the control circuit connected to the first comparator outputting the second comparison result is short-circuited to the output terminal of an adjacent control circuit according to the second comparison result.
[0037] The error detection method and circuit of the embodiment of the present invention can perform short-circuit to ground detection and / or adjacent end short-circuit detection on the LED driver chip, so as to timely detect LSG errors and / or AOS errors in the LED driver chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a schematic diagram of the topological structure of a typical LED driver chip;
[0039] Figure 2 is a flow chart of a short-circuit-to-ground detection method of an error detection method according to an embodiment of the present invention;
[0040] Figure 3 is a flow chart of an adjacent terminal short circuit detection method of an error detection method according to an embodiment of the present invention;
[0041] Figure 4 is a structural schematic diagram of an error detection circuit according to an embodiment of the present invention;
[0042] Figure 5 is another structural schematic diagram of an error detection circuit according to an embodiment of the present invention;
[0043] Figure 6 FIG. 4 is another structural diagram of an error detection circuit according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The preferred embodiments of the present invention are given below in conjunction with the accompanying drawings and described in detail.
[0045] An embodiment of the present invention provides an error detection method, which is applied to an LED driver chip. The LED driver chip has a plurality of parallel control circuits, one end of each control circuit is grounded, and the other end forms the output end of the control circuit. Each control circuit is provided with a first switch and a current sink. The first switch is used to control the on and off of the corresponding control circuit, and the current sink is used to provide a stable current. The output end of each control circuit is used to be electrically connected to one end of an LED light string, and the other end of each LED light string is electrically connected to an LED power supply; Figure 2 As shown, the error detection method includes an LSG detection method, and the LSG detection method includes the following steps:
[0046] S100: For each control line, before the LED power supply starts to supply power, pre-charge the output end of the control line.
[0047] Before the LED power supply starts to supply power, the first switch and current sink on each control circuit are in the closed state. Normally, the control circuit is disconnected at this time, that is, the output end of the control circuit is not connected to the ground end. Precharging the output end of the control circuit means connecting the output end to a preset power supply (such as a chip power supply), which is used to output a preset voltage. In this way, if there is no LSG error, the output end of the control circuit will have a higher voltage close to the preset voltage; conversely, if there is an LSG error, the voltage of the output end of the control circuit is 0. Therefore, by detecting the voltage of the output end of the control circuit after precharging, it can be determined whether the output end of the control circuit is short-circuited to the ground.
[0048] In some embodiments, each control line has a corresponding second switch, and the output end of each control line is connected to the preset power supply through the corresponding second switch. When the second switch is turned on, the output end of the control line will be connected to the preset power supply, and the preset power supply will pre-charge the output end. When the second switch is turned off, the output end of the control line will be disconnected from the preset power supply. That is, the opening and closing of the second switch can control the start and end of pre-charging.
[0049] In some embodiments, the second switch is a transistor, the source and drain of the transistor are respectively connected to the output end of a preset power supply and a control circuit, and the gate of the transistor is connected to a pre-charge signal. The pre-charge signal can control the on and off of the transistor, that is, control the opening and closing of the second switch.
[0050] S200: Compare the voltage at the output end of the control circuit with a preset first reference voltage to obtain a first comparison result.
[0051] In some embodiments, each control line has a corresponding first comparator, and step S200 specifically includes:
[0052] The output end of the control line is connected to the first input end of the corresponding first comparator, and the second input end of the first comparator is connected to the first reference voltage, so that the output end of the first comparator outputs the first comparison result.
[0053] The first reference voltage may be provided by a first reference power supply. The first reference voltage is set to be greater than 0 and less than a preset voltage, preferably close to 0, for example, several hundred millivolts.
[0054] The first comparator has two input terminals, namely a non-inverting input terminal and an inverting input terminal. When the input voltage of the non-inverting input terminal is greater than the input voltage of the inverting input terminal, the output terminal of the first comparator will output a high level; and when the input voltage of the inverting input terminal is greater than the input voltage of the non-inverting input terminal, a low level is output. Therefore, by judging whether the first comparison result is a high level or a low level, and whether the first reference voltage is connected to the non-inverting input terminal or the inverting input terminal, the magnitude relationship between the voltage at the output terminal of the control circuit and the first reference voltage can be determined.
[0055] S300: Determine whether the output end of the control line is short-circuited to ground according to the first comparison result.
[0056] When the output end of the control line is not short-circuited to the ground, its voltage will be close to the preset voltage and greater than the first reference voltage. When the output end of the control line is short-circuited to the ground, its voltage will be close to the ground and less than the first reference voltage. Therefore, when the first comparison result is that the voltage at the output end of the control line is greater than the first reference voltage, it can be determined that the control line is not short-circuited to the ground, and when the first comparison result is that the voltage at the output end of the control line is less than the first reference voltage, it can be determined that the output end of the control line is short-circuited to the ground. In this way, it is possible to timely detect whether the output end of the control line is short-circuited to the ground.
[0057] In some embodiments, the error detection method further includes an adjacent end short circuit detection method, and the adjacent end short circuit detection method can detect whether any two adjacent control lines are short-circuited to each other. For ease of description, one of any two adjacent control lines is referred to as the first line, and the other is referred to as the second line. Figure 3 As shown, the adjacent end short circuit detection method includes the following steps:
[0058] S400: For any two adjacent control lines, before the LED power supply starts to supply power, pre-charge the output end of the first line.
[0059] In some embodiments, precharging the output end of the first circuit means connecting it to a preset power source. Similar to step S100, the output end of the circuit can be connected to the preset power source through a second switch, so that the opening and closing of the second switch can control the start and end of precharging.
[0060] S500: Turn on the first switch and the current sink on the second line.
[0061] After the first switch and current sink on the second line are turned on, if the output ends of the first line and the second line are short-circuited to each other, a path will be formed between the preset power supply and the ground, and the current flow direction of the path is: preset current → output end of the first line → output end of the second line → second switch and current sink on the second line → ground. At this time, the voltage value of the output end of the first line will be much smaller than the preset voltage; on the contrary, if the output ends of the first line and the second line are not short-circuited to each other, then the preset power supply and the ground will be disconnected, and the voltage value of the output end of the first line will be close to the preset voltage. Therefore, by judging the size of the output end of the first line, it can be determined whether the two adjacent control lines are short-circuited to each other.
[0062] S600: Compare the voltage at the output end of the first circuit with a preset second reference voltage to obtain a second comparison result.
[0063] In some embodiments, the first control circuit has a corresponding second comparator, and step S600 specifically includes:
[0064] The output end of the first line is connected to the first input end of the second comparator, and the second input end of the second comparator is connected to the second reference voltage, so that the output end of the second comparator outputs a second comparison result.
[0065] The working principle of the second comparator is the same as that of the first comparator, which will not be described again here.
[0066] S700: Determine whether the output ends of the two adjacent control lines are short-circuited to each other according to the second comparison result.
[0067] Specifically, if the second comparison result is that the voltage at the output end of the first circuit is greater than the second reference voltage, the output ends of the two adjacent control circuits are not short-circuited to each other; if the second comparison result is that the voltage at the output end of the second circuit is less than the second reference voltage, the output ends of the two adjacent control circuits are short-circuited to each other.
[0068] The second reference voltage can be provided by the second reference power supply, and its magnitude is related to the magnitude of the preset voltage. Specifically, after the output end of the control circuit is connected to the preset power supply, if it is not short-circuited to the ground, and is not short-circuited with the output end of the adjacent control circuit, then its voltage should be equal to the preset voltage minus the voltage drop on the transmission line. Therefore, the second reference voltage needs to be set to be less than this value. Generally speaking, the voltage drop on the transmission line is only a few hundred millivolts (i.e., the voltage drop of the second switch). The second reference voltage can be set to about 80% of the preset voltage. For example, if the preset voltage is 5V, then the second reference voltage can be 4V.
[0069] In practical applications, the short-circuit-to-ground detection method can be used to detect the output ends of all control lines. When the output ends of all control lines are not short-circuited to the ground, the adjacent control lines can be detected using the adjacent end short-circuit detection method.
[0070] The embodiment of the present invention further provides an error detection circuit, which is applied to an LED driver chip and can implement the error detection method of the above embodiment. Figure 4 As shown, the error detection circuit includes a plurality of second switches 20, a plurality of first comparators 10 and a detection module (not shown in the figure), each second switch 20 corresponds to each control circuit one by one, and each first comparator 10 also corresponds to each control circuit one by one, that is, each control circuit has a corresponding second switch 20 and a first comparator 10; the output end of each control circuit is connected to the preset power supply VDD through its corresponding second switch 20, and is connected to the first input end (for example, the non-inverting input end) of the first comparator 10, and the second input end (for example, the inverting input end) of the first comparator 10 is connected to the first reference voltage V LSG The output end of the first comparator 10 is connected to the detection module. When short-circuit to ground detection is performed, the second switch 20 can be turned on, and the output end of the control line is precharged by VDD, and then the detection module reads the first comparison result output by the first comparator 10. When it is stable, the magnitude relationship between the voltage at the output end of the control line and the first reference voltage is determined by the first comparison result, and then it is determined whether the output end of the control line is short-circuited to ground.
[0071] The second switch 20 can be a transistor, the source of the transistor is connected to the preset power supply VDD, the drain of the transistor is connected to the output end of the control circuit, and the gate of the transistor is connected to the precharge signal precharge. Precharge can control the on and off of the transistor to control the progress and end of precharge.
[0072] like Figure 5As shown, in some embodiments, the error detection circuit may further include a plurality of second comparators 30. For ease of description, the control circuits are numbered in ascending order of natural numbers (for example, the numbers are 0, 1, 2, etc.), and the control circuits numbered with even numbers may be referred to as even control circuits, and the control circuits numbered with odd numbers may be referred to as odd control circuits; each second comparator 30 corresponds to each even control circuit or each odd control circuit one by one, and the first input terminal (for example, the non-inverting input terminal) of each second comparator 30 is connected to the output terminal of the corresponding control circuit, and the second input terminal (for example, the inverting input terminal) of each second comparator 30 is connected to the second reference voltage V AOS The output end of each second comparator 30 is connected to the detection module. Taking the second comparator 30 corresponding to the even-numbered control circuit as an example, when performing adjacent end short circuit detection, the second switch 20 can be turned on to allow the preset power supply VDD to pre-charge the output end of the even-numbered control circuit, and then the first switch and current sink of the adjacent odd-numbered control circuit are turned on. Then, the detection module can read the second comparison result output by the second comparator 30. After the second comparison result is stable, it can be determined whether the voltage at the output end of the even-numbered control circuit is equal to the second reference voltage V AOS The size relationship between the even-numbered control circuit and the output end of the adjacent odd-numbered control circuit is determined to determine whether they are short-circuited to each other.
[0073] like Figure 6 As shown, in some embodiments, instead of setting the second comparator 30, a selector 40 may be set, and the selector 40 is connected to the first comparator 10, so that the first comparator 10 can simultaneously realize the functions of the first comparator 10 and the second comparator 30, thereby reducing the number of comparators and simplifying the circuit. Specifically, the error detection circuit may include a plurality of selectors 40, each of which corresponds to each even-numbered control circuit or each odd-numbered control circuit one by one, each of which has two input terminals, one output terminal and one control terminal, and the two input terminals of each selector 40 are respectively connected to the first reference voltage V LSG and the second reference voltage V AOS The output end of each selector 40 is connected to the second input end of the first comparator 10 corresponding to its corresponding control circuit, and the control end of each selector is connected to the reference voltage control signal sel, through which the first reference voltage V LSG and the second reference voltage V AOS One of the reference voltages V is output from the output terminal of the selector 40. For example, when sel is 0, the first reference voltage V is selected. LSG Output, when sel is 1, select the second reference voltage V AOS When short circuit to ground detection is performed, the selector 40 can output the first reference voltage V LSG, at this time, the first comparator 10 outputs the first comparison result, and when the adjacent terminal short circuit detection is performed, the selector 40 can output the second reference voltage V AOS At this time, the first comparator 10 outputs the second comparison result, so that the functions of two comparators can be realized by one comparator.
[0074] exist Figure 5 and Figure 6 In the figure, the even number OUT refers to the output end of the even number control circuit, and the odd number OUT refers to the output end of the odd number control circuit.
[0075] The error detection method and circuit of the embodiment of the present invention can perform short-circuit to ground detection and / or adjacent end short-circuit detection on the LED driver chip, so as to timely detect LSG errors and / or AOS errors in the LED driver chip.
[0076] The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. The above embodiment of the present invention can also be modified in various ways. That is, all simple, equivalent changes and modifications made according to the claims and the description of the present invention fall within the scope of protection of the claims of the present invention. The contents not described in detail in the present invention are all conventional technical contents.
Claims
1. An error detection method, characterized in that: Applied to an LED driver chip, the LED driver chip has a plurality of control circuits, one end of each control circuit is grounded, and the other end forms the output end of the control circuit, each control circuit is provided with a first switch and a current sink, the output end of each control circuit is used to be electrically connected to one end of an LED light string, and the other end of each LED light string is electrically connected to an LED power supply, the error detection method includes a short circuit to ground detection method, and the short circuit to ground detection method includes: For each control line, before the LED power supply starts supplying power, pre-charging the output end of the control line; Comparing the voltage at the output end of the control circuit with a preset first reference voltage to obtain a first comparison result; Determine whether the output end of the control line is short-circuited to ground according to the first comparison result; The error detection method further includes an adjacent end short circuit detection method, and the adjacent end short circuit detection method includes: For any two adjacent control lines, one of the two adjacent control lines is used as a first line, and the other of the two adjacent control lines is used as a second line; Before the LED power supply starts supplying power, pre-charging the output end of the first circuit; opening the first switch and the current sink on the second line; Comparing the voltage at the output end of the first circuit with a preset second reference voltage to obtain a second comparison result; It is determined whether the output ends of the two adjacent control lines are short-circuited to each other according to the second comparison result.
2. The error detection method according to claim 1, characterized in that: The output end of the control line is precharged, specifically including: The output end of the control line is connected to the preset power supply.
3. The error detection method according to claim 1, characterized in that: Each control line corresponds to a first comparator; Comparing the voltage at the output end of the control circuit with a preset first reference voltage to obtain a first comparison result specifically includes: The output end of the control line is connected to the first input end of the corresponding first comparator, and the second input end of the first comparator is connected to the first reference voltage, so that the output end of the first comparator outputs the first comparison result.
4. The error detection method according to claim 1, characterized in that: Determining whether the output end of the control line is short-circuited to ground according to the first comparison result specifically includes: If the first comparison result is that the voltage at the output end of the control circuit is greater than the first reference voltage, the output end of the control circuit is not short-circuited to the ground; if the first comparison result is that the voltage at the output end of the control circuit is less than the first reference voltage, the output end of the control circuit is short-circuited to the ground.
5. The error detection method according to claim 1, characterized in that: Precharging the output end of the first line specifically includes: The output end of the first line is connected to a preset power supply.
6. The error detection method according to claim 1, characterized in that: The first line corresponds to a second comparator; Comparing the voltage at the output end of the first circuit with a preset second reference voltage to obtain a second comparison result specifically includes: The output end of the first line is connected to the first input end of the second comparator, and the second input end of the second comparator is connected to the second reference voltage, so that the output end of the second comparator outputs the second comparison result.
7. The error detection method according to claim 1, characterized in that: Determining whether the output ends of the two adjacent control lines are short-circuited to each other according to the second comparison result specifically includes: If the second comparison result is that the voltage at the output end of the first circuit is greater than the second reference voltage, the output ends of the two adjacent control circuits are not short-circuited to each other; if the second comparison result is that the voltage at the output end of the first circuit is less than the second reference voltage, the output ends of the two adjacent control circuits are short-circuited to each other.
8. An error detection circuit, characterized in that: Applied to an LED driver chip, the LED driver chip has a plurality of parallel control circuits, one end of each control circuit is grounded, and the other end forms the output end of the control circuit, each control circuit is provided with a first switch and a current sink, the first switch is used to control the on and off of the corresponding control circuit, the output end of each control circuit is used to be electrically connected to one end of an LED light string, and the other end of each LED light string is electrically connected to an LED power supply, the error detection circuit comprises: A plurality of second switches, a plurality of first comparators and a detection module, each second switch and each first comparator corresponds to each control circuit one by one, the output end of each control circuit is connected to a preset power supply through the second switch corresponding to the control circuit, and is connected to the first input end of the first comparator corresponding to the control circuit, and the second input end of the first comparator corresponding to the control circuit is connected to a first reference voltage; the detection module is respectively connected to the output end of each first comparator, and is configured to determine whether each control circuit is short-circuited to ground according to a first comparison result output by the first comparator; Numbering each control circuit in ascending order of natural numbers according to the arrangement sequence, and treating the control circuits with even numbers as even control circuits, and treating the control circuits with odd numbers as odd control circuits; The error detection circuit also includes a plurality of second comparators, each second comparator corresponds to each even control circuit or each odd control circuit one-to-one, a first input terminal of each second comparator is connected to an output terminal of a corresponding control circuit, and a second input terminal of each second comparator is connected to a second reference voltage; the detection module is also respectively connected to the output terminal of each second comparator, and is configured to determine whether the output terminal of the control circuit connected to the second comparator is short-circuited with the output terminal of an adjacent control circuit according to a second comparison result output by each second comparator; or, the error detection circuit also includes a plurality of selectors, each selector corresponds to each even control circuit or each odd control circuit one-to-one, each selector has two input terminals, a control terminal and an output terminal, and the two input terminals of each selector are respectively connected to the first reference voltage and the second reference voltage. voltage; the output end of each selector is connected to the second input end of the first comparator corresponding to the control circuit corresponding to the selector, and the control end of each selector is connected to a reference voltage control signal, and the reference voltage control signal is used to selectively make one of the first reference voltage and the second reference voltage output from the output end of the selector; when the selector outputs the first reference voltage, the first comparator connected to the selector outputs a first comparison result, and when the selector outputs the second reference voltage, the first comparator connected to the selector outputs a second comparison result; the detection module is configured to determine whether each control circuit is short-circuited to the ground according to the first comparison result, and determine whether the output end of the control circuit connected to the first comparator outputting the second comparison result is short-circuited with the output end of the adjacent control circuit according to the second comparison result.
9. The error detection circuit according to claim 8, characterized in that: The second switch is a transistor, the source of the transistor is connected to the preset power supply, the drain of the transistor is connected to the output end of the control circuit, the gate of the transistor is connected to a pre-charge signal, and the pre-charge signal is used to control the on and off of the transistor.
Citation Information
Patent Citations
Short circuit detection method, short circuit detection circuit, and D-type audio amplifier
CN107064712A