Over-current protection circuit, chip and electronic equipment
By introducing a combination of sampling time and delay module logic modules determined by driving signals and thresholds in the overcurrent protection circuit, the error triggering problem when the MOS tube is in the linear region is solved, and more stable current acquisition and higher circuit response are achieved speed.
Patent Information
- Application Number
- CN202410981369.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-01
AI Technical Summary
The existing overcurrent protection circuits are difficult to avoid mistriggering, especially when determining that the MOS tube is at the beginning and end of the linear region, resulting in the circuit being accidentally cut off.
An overcurrent protection circuit including a first processing module, a sampling module, a second processing module and a judgment module is designed to determine the sampling time through the driving signal and the threshold value to ensure that the sampling signal is collected during the current in a stable stage and avoid false triggering. This circuit uses delay modules and logic modules to replace high-voltage level conversion circuits to simplify logic, save area, improve response speed, and avoid shutdown leakage risks.
It effectively avoids the false triggering of the overcurrent protection circuit, ensures the linear collection of sampling current, improves the stability and response speed of the circuit, and reduces the risk of false cut-off.
Smart Images

Figure CN118889323A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit technology, and in particular to an overcurrent protection circuit, chip and electronic device. Background Art
[0002] In order to ensure the normal operation of the circuit and avoid the danger caused by a short circuit in the circuit, an overcurrent protection circuit can be set in the protected circuit. When the sampled current in the protected circuit exceeds a preset current, the overcurrent protection (OC) circuit cuts off the loop of the protected circuit, thereby protecting the protected circuit.
[0003] In order to avoid the overcurrent protection circuit from being falsely triggered, the sampled current of the protected circuit can be collected when the current of the protected circuit is in a stable state. When it is determined that the sampled current exceeds the preset current, an overcurrent protection signal is output to the overcurrent protection circuit, thereby cutting off the loop of the protected circuit through the overcurrent protection circuit. When collecting the sampled current of the protected circuit, for example, for a protected circuit having a metal-oxide-semiconductor field-effect transistor (MOS), sampling can be performed when the current of the MOS tube is in a stable stage, such as when the MOS tube is in a linear region. However, since it is difficult to determine the start and end times of the MOS tube being in the linear region, there is still a situation where the overcurrent protection circuit is falsely triggered. Summary of the invention
[0004] In order to prevent the overcurrent protection circuit from being falsely triggered, an embodiment of the present application provides an overcurrent protection circuit, a chip, and an electronic device.
[0005] In a first aspect, an embodiment of the present application provides an overcurrent protection circuit, characterized in that, applied to a protected circuit, the overcurrent protection circuit includes a first processing module, a sampling module, a second processing module and a judgment module, the first processing module includes a driving unit, a first processing unit, and a second processing unit, wherein the input end of the driving unit is connected to the output end of a pulse width modulation circuit of the protected circuit, and the driving unit is used to generate and output a driving signal according to a first modulation signal output by the pulse width modulation circuit of the protected circuit; the input end of the first processing unit is connected to the output end of the driving unit, and the first processing unit is used to output a sampling signal of a first state when it is determined that the voltage of the driving signal is greater than a first threshold value; the input end of the second processing unit is connected to the output end of the first processing unit and The output end of the driving unit, the second processing unit is used to generate a selection signal according to the first modulation signal, the driving signal and the sampling signal; the input end of the sampling module is connected to the output end of the first processing unit, the output end of the sampling module is connected to the input end of the second processing module, the sampling module is used to collect the protected circuit according to the sampling signal of the first state, and output multiple sampling currents to the second processing module; the input end of the second processing module is connected to the output end of the second processing unit, the second processing module is used to convert the multiple sampling currents into multiple sampling voltages, and determine the target sampling voltage from the multiple sampling voltages according to the selection signal; the input end of the judgment module is connected to the output end of the second processing module, and is used to control the protected circuit to shut down when the target sampling voltage is greater than the reference voltage.
[0006] The present application determines the sampling time for collecting the sampled current based on the voltage of the driving signal and the first threshold value, so that the delay time between the sampling signal and the driving signal changes with the change of the voltage of the power supply of the circuit, and ensures that the rising edge of the sampling signal can definitely jump over the rising edge of the driving signal, that is, it is collected when the current of the protected circuit is in a stable stage, avoiding the situation where the overcurrent protection circuit is falsely triggered.
[0007] In a possible implementation, the first processing unit is further configured to output a sampling signal of a second state when it is determined that the voltage of the driving signal is less than a second threshold; and the sampling module is configured to stop sampling the protected circuit according to the sampling signal of the second state.
[0008] In the embodiment of the present application, the first state may be a high level (digital "1"), and the second state may be a low level (digital "0").
[0009] In a possible implementation, the first threshold and the second threshold are determined according to a power supply voltage of the protected circuit.
[0010] In some embodiments, the first threshold may be 80%*PVDD and the second threshold may be 90%*PVDD.
[0011] In one possible implementation, the second processing unit includes a delay module and a logic module, the selection signal includes a first selection signal and a second selection signal, the input end of the delay module is connected to the output end of the first processing unit and the output end of the driving unit, the delay module is used to generate a first delay signal based on the sampling signal and the first delay time, and to generate a second delay signal based on the second modulation signal and the second delay time, and the second modulation signal is determined based on the first modulation signal; the input end of the logic module is connected to the input end of the driving unit and the output end of the delay module, the output end of the logic module is connected to the input end of the second processing module, the logic module is used to generate a first selection signal based on the first delay signal and the reverse signal of the first modulation signal, and to generate a second selection signal based on the second delay signal and the first modulation signal.
[0012] It can be understood that the first selection signal can be the CON_OC_OCL signal in the embodiment of the present application, the second selection signal can be the CON_OC_OCH signal in the embodiment of the present application, the first modulation signal can include a PWM_G signal, the first delay signal can be an OCL_DEALY signal, and the second delay signal can be an OCH_DEALY signal.
[0013] In one possible implementation, the delay module includes a first delay submodule and a second delay submodule, the first delay submodule includes a first resistor and a first capacitor, and the first delay time is determined based on the first resistor and the first capacitor; the second delay submodule includes a second resistor, a second capacitor and a third processing unit, the first resistor and the first capacitor are connected in series, and the second resistor, the second capacitor and the third processing unit are connected in series; the second delay time is determined according to the second resistor, the second capacitor and the third processing unit, and the first delay time is less than the second delay time.
[0014] It can be understood that the first resistor can be the resistor R11 in the embodiment of the present application, the first capacitor can be the capacitor C11 in the embodiment of the present application, the first delay time can be 10ns, the second resistor can be the resistor R12 in the embodiment of the present application, the second capacitor can be the capacitor C12 in the embodiment of the present application, the third processing unit can be a Schmitt trigger connected to the second delay sub-module in the embodiment of the present application, and the second delay time can be 90ns.
[0015] In one possible implementation, the logic module is used to determine the rising edge of the first selection signal according to the rising edge of the first delayed signal, and to determine the falling edge of the first selection signal according to the falling edge of the reverse signal of the first modulated signal; the logic module is used to determine the rising edge of the second selection signal according to the rising edge of the second delayed signal, and to determine the falling edge of the second selection signal according to the falling edge of the first modulated signal.
[0016] In this way, the CON_OC_OCH signal is generated by combining the PWM signal in the low-voltage domain and the OCH_DELAY signal, instead of directly using the drive output signal of the output stage power tube drive circuit. There is no need for a high-voltage to low-voltage level conversion circuit, which simplifies the logic, saves area, improves the circuit response speed, and avoids the risk of shutdown leakage caused by initial state problems.
[0017] In a possible implementation, the logic module is used to generate an initialization signal based on the first selection signal and the second selection signal; and the second processing module is used to clear the multiple sampling voltages according to the initialization signal.
[0018] In one possible implementation, if the logic module determines that the first selection signal is in the second state and the second selection signal is in the second state, then the initialization signal is determined to be in the first state; if the logic module determines that the first selection signal is in the first state, or the second selection signal is in the first state, then the initialization signal is determined to be in the second state; the second processing module is used to clear multiple sampling voltages according to the initialization signal of the first state.
[0019] In a possible implementation, the logic module includes an inverter, a first logic AND gate, a second logic AND gate, a logic NOR gate and a logic OR gate, wherein the input end of the inverter is connected to the first input end of the second logic AND gate, the output end of the inverter is connected to the first input end of the first logic AND gate, the output end of the first logic AND gate is connected to the first input end of the logic NOR gate; the output end of the second logic AND gate is connected to the second input end of the logic NOR gate, and the output end of the logic NOR gate is connected to the first input end of the logic OR gate.
[0020] In one possible implementation, the second processing module is used to release the sampled voltage of the power tube in the first voltage domain in the protected circuit according to the first selection signal, and is used to release the sampled voltage of the power tube in the second voltage domain in the protected circuit according to the second selection signal, and the maximum voltage value of the first voltage domain is less than the minimum voltage value of the second voltage domain.
[0021] It can be understood that the first voltage domain can be a low voltage domain, the second voltage domain can be a high voltage domain, the power tubes in the first voltage domain can be MOS tubes M2 and MOS tubes M4 in the embodiment of the present application, and the power tubes in the second voltage domain can be MOS tubes M1 and MOS tubes M3 in the embodiment of the present application.
[0022] In a possible implementation, the first processing unit and the third processing unit include at least one of a Schmitt trigger, a voltage comparator, and a hysteresis comparator.
[0023] In a second aspect, an embodiment of the present application provides a chip, which is formed with any overcurrent protection circuit provided by the above-mentioned first aspect and various possible implementations of the above-mentioned first aspect.
[0024] In a third aspect, an embodiment of the present application provides an electronic device, comprising the second aspect and any chip provided by various possible implementations of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1a According to an embodiment of the present application, a schematic diagram of an overcurrent protection circuit applied to a protected circuit is shown;
[0026] Figure 1b According to an embodiment of the present application, a circuit schematic diagram of an overcurrent protection circuit applied to a class D amplifier is shown;
[0027] Figure 2 According to an embodiment of the present application, a signal timing diagram of a driving signal and a sampling signal is shown;
[0028] Figure 3a According to an embodiment of the present application, a schematic diagram of module connection of an overcurrent protection circuit is shown;
[0029] Figure 3b According to an embodiment of the present application, a schematic diagram of an overcurrent protection circuit is shown;
[0030] Figure 4 According to an embodiment of the present application, a flow chart of a control method is shown;
[0031] Figure 5 According to an embodiment of the present application, a structural schematic diagram of a delay module is shown;
[0032] Figure 6 According to an embodiment of the present application, a signal timing diagram of a first sampling process of an overcurrent protection circuit is shown;
[0033] Figure 7 According to an embodiment of the present application, a structural schematic diagram of a logic module is shown;
[0034] Figure 8 According to an embodiment of the present application, a signal timing diagram of a second sampling process of an overcurrent protection circuit is shown;
[0035] Fig. 9 According to an embodiment of the present application, a signal timing diagram of a third sampling process of an overcurrent protection circuit is shown;
[0036] Fig.10 According to an embodiment of the present application, a schematic structural diagram of an electronic device 1300 is shown. DETAILED DESCRIPTION
[0037] The following first explains the technical terms involved in this application.
[0038] Process, voltage, temperature (PVT): The delay time of the circuit is affected by PVT. P refers to the drift of the manufacturing parameters of the circuit caused by the manufacturing process during the manufacturing process. The higher the voltage and the lower the temperature, the shorter the delay time of the circuit; the lower the voltage and the higher the temperature, the longer the delay time of the circuit.
[0039] Pulse-width modulation (PWM) is an analog control method that modulates the bias of the transistor base or MOS tube gate according to the change of load, thereby changing the conduction time of the transistor or MOS tube, and then controlling the output of the switching power supply.
[0040] Gate driver: also known as gate driver, it drives the gate of MOS tube by controlling the power signal generated by integrated circuit.
[0041] Bootstrap circuit: also called boost circuit, used to increase the voltage of the circuit. The bootstrap circuit can use electronic components such as bootstrap boost diodes and bootstrap boost capacitors to superimpose the capacitor discharge voltage and the power supply voltage, thereby increasing the voltage of the circuit.
[0042] Linear region: refers to the area where the conductive performance remains basically unchanged after the MOS tube is turned on, also known as the cut-off region.
[0043] Rising edge: refers to the moment when the digital level changes from low level (digital "0") to high level (digital "1").
[0044] Falling edge: refers to the moment when the digital level changes from high level (digital "1") to low level (digital "0").
[0045] Schmitt trigger: can be used for waveform transformation, pulse shaping, and pulse amplitude detection. Schmitt trigger has different threshold voltages; among them, the input voltage that changes the circuit state when the input signal rises from a low level to a high level is called the positive threshold voltage, and the input voltage that changes the circuit state when the input signal drops from a high level to a low level is called the negative threshold voltage. The difference between the positive threshold voltage and the negative threshold voltage is called the hysteresis voltage.
[0046] RC delay: Signal delay caused by the charging and discharging process of capacitors (C) controlled by resistors (R) in integrated circuits. Among them, RC delay has a shorter delay time.
[0047] Dead time: refers to the protection period set to prevent the upper and lower tubes of the H-bridge or half-H-bridge from being turned on at the same time during PWM output. During the dead time period, the upper and lower tubes of the H-bridge or half-H-bridge will not output.
[0048] The illustrative embodiments of the present application include, but are not limited to, an overcurrent protection circuit, a chip, and an electronic device.
[0049] It can be understood that the technical solution of the present application is applicable to electronic devices with power tubes, for example, including but not limited to mobile phones, smart watches, televisions, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present invention do not impose any restrictions on the specific types of electronic devices.
[0050] The overcurrent protection circuit provided in the embodiment of the present application can be applied to a protected circuit including a switch tube, for example, any one of a DC-to-DC converter (DC-DC converter), a class D amplifier, etc. Figure 1a The protected circuit in Figure 1b Taking the class D amplifier shown in FIG. 1 as an example, the operation method of the overcurrent protection circuit is introduced.
[0051] Understandably, Figure 1a The input terminal of the overcurrent protection circuit shown is connected Figure 1b The source of MOS tube M1 and the drain of MOS tube M2, Figure 1a The output of the overcurrent protection circuit shown is connected to the input of the speaker. Figure 1a The circuit diagram shown can sample the current of the power tube (MOS tube M1 and MOS tube M2) in the circuit during the period when the power tube is turned on to obtain the sampled current (IOC signal). Then, the IOC signal is converted into a voltage signal (OC_PM signal) through the current-to-voltage circuit. The comparator obtains and compares the OC_PM signal and the reference voltage (VREF_OC signal). When it is determined that the voltage of the OC_PM signal is higher than the voltage of the VREF_OC signal, it is determined that the current of the MOS tube is higher than the preset current threshold. For example, the voltage of the OC_PM signal is 10V, the voltage of the VREF_OC signal is 8V, and it is determined that the voltage of the OC_PM signal is higher than the voltage of the VREF_OC signal, that is, the current of the IOC signal is higher than the preset current threshold, and the overcurrent protection logic circuit outputs an overcurrent protection logic signal to close the circuit loop, thereby protecting the amplifier and preventing the power tube in the circuit from burning due to a large current flowing through it for a long time.
[0052] The voltage of the VREF_OC signal may be determined based on a preset current threshold. In some embodiments, the rated current of the circuit may be obtained, and then a corresponding VREF_OC signal may be generated according to the rated current through a current sensor or a current transformer. It is understood that the higher the current of the IOC signal, the higher the voltage of the OC_PM signal.
[0053] In some embodiments, in order to avoid false triggering of the overcurrent protection circuit, edge shielding technology can be used to shield the rising and falling edges of the HS_GT signal and the LS_GT signal, so that sampling is performed only in the current stable region of the MOS tube, thereby avoiding false triggering of the overcurrent protection circuit.
[0054] for Figure 1b As shown in the circuit diagram, the driving signal HS_GT signal of the MOS tube M1 and the driving signal LS_GT signal of the MOS tube M2 can be input into the logic delay unit (not shown in the figure) of the overcurrent protection circuit, and the HS_GT signal and the LS_GT signal are subjected to composite logic and delay processing by the logic delay unit to obtain the sampling signal OC_SN_HS signal of the MOS tube M1 and the sampling signal OC_SN_LS signal of the MOS tube M2, wherein the waveforms of the OC_SN_LS signal and the OC_SN_HS signal are as shown in FIG. Figure 2 As shown, that is, the rising edge of the OC_SN_LS signal arrives after the rising edge of the LS_GT signal, the rising edge of the OC_SN_HS signal arrives after the rising edge of the HS_GT signal, the falling edge of the OC_SN_LS signal arrives before the falling edge of the LS_GT signal, and the falling edge of the OC_SN_HS signal arrives before the falling edge of the HS_GT signal, thereby achieving the purpose of edge shielding, so that the overcurrent protection circuit collects signals when the MOS tube M1 and the MOS tube M2 are in the linear region.
[0055] However, the delay time of the logic delay unit for delaying the HS_GT signal and the LS_GT signal is determined based on the RC delay, that is, in the process of generating the OC_SN_LS signal and the OC_SN_HS signal, the delay time is constant. Figure 2 As shown, the HS_GT signal enters the linear region at time t1, is in the full swing state at time t2-t3, and exits the linear region at time t4; the OC_SN_HS signal is at a high level from time t2 to time t3, that is, the delay time = t2-t1 = t4-t3.
[0056] However, the voltage in the circuit is not constant. When the power supply voltage PVCC of the power tube increases, the delay time should be reduced, and when PVCC decreases, the delay time should be increased. That is, the logic delay unit cannot guarantee that the OC_SN_LS signal and the OC_SN_HS signal can definitely skip the rising and falling edges of the HS_GT signal and the LS_GT signal. For example, when PVCC increases, the delay time is not shortened, resulting in the OC_SN_LS signal and the OC_SN_HS signal not avoiding the rising and falling edges of the HS_GT signal and the LS_GT signal. That is, it cannot be guaranteed that the sampled current is collected in the linear region, and the overcurrent protection circuit is still falsely triggered.
[0057] In summary, due to the uncontrollable delay time of the logic delay unit, it is currently impossible to avoid the rising and falling edges of the HS_GT signal and the LS_GT signal, and it cannot be guaranteed that the sampled current is collected in the linear region, and the overcurrent protection circuit is still falsely triggered.
[0058] To solve the above problems, the present application provides an overcurrent protection circuit. Figure 3a As shown, the overcurrent protection circuit 10 includes: a first processing module 101, a sampling module 102, a second processing module 103, and a judgment module 104. The functions of each module are introduced below.
[0059] The first processing module 101 includes a first processing unit 1011 , a driving unit 1012 , and a second processing unit 1013 .
[0060] The input end of the driving unit 1012 is connected to the output end of the pulse width modulation circuit of the protected circuit. The driving unit 1012 is used to obtain the first modulation signal (PWM modulation wave) output by the pulse width modulation circuit of the protected circuit, and process the first modulation signal to generate and output a driving signal, wherein the driving signal includes a HS_GT signal and a LS_GT signal.
[0061] The input end of the first processing unit 1011 is connected to the output end of the driving unit 1012, and the first processing unit 1011 is used to obtain the HS_GT signal and the LS_GT signal sent by the driving unit 1012. When it is determined that the voltage of the driving signal is greater than the first threshold, a sampling signal of the first state is output. The sampling signal includes an OC_SN_HS signal and an OC_SN_LS signal.
[0062] For example, when it is determined that the voltage of the HS_GT signal is greater than the first threshold corresponding to the HS_GT signal, the OC_SN_HS signal of the first state is sent to the sampling module 102, so that the sampling module 102 collects the MOS tube in the boost module 105 driven by the HS_GT signal; when it is determined that the voltage of the LS_GT signal is greater than the first threshold corresponding to the LS_GT signal, the OC_SN_LS signal of the first state is sent to the sampling module 102, so that the sampling module 102 collects the MOS tube in the boost module 105 driven by the LS_GT signal. The first state can be a high level (digital "1").
[0063] An input end of the second processing unit 1013 is connected to an output end of the first processing unit 1011 and an output end of the driving unit 1012 . The second processing unit 1013 is used to generate a selection signal according to the first modulation signal, the driving signal and the sampling signal.
[0064] The input end of the sampling module 102 is connected to the output end of the first processing unit 1011 . The sampling module 102 is used to collect the protected circuit according to the sampling signals (OC_SN_HS signal and OC_SN_LS signal) in the first state and output a plurality of sampling currents.
[0065] The input end of the second processing module 103 is connected to the output end of the second processing unit 1013. The second processing module 103 is used to convert the multiple sampling currents collected by the sampling module 102 into multiple sampling voltages, and determine the target sampling voltage from the multiple sampling voltages according to the selection signal output by the second processing unit 1013.
[0066] The input end of the judgment module 104 is connected to the output end of the second processing module 103, and is used to compare the target sampling voltage with the reference voltage for overcurrent protection, and when it is determined that the target sampling voltage is greater than the reference voltage, control the boost module 105 to disconnect.
[0067] The input end of the boost module 105 is connected to the input end of the driving unit 1012 , the output end of the boost module 105 is connected to the input end of the sampling module 102 , and the boost module 105 is used to adjust the initial voltage to a higher adjustment voltage.
[0068] It can be understood that the boost module 105 belongs to the protected circuit, for example, Figure 3b As shown, the boost module 105 may include an output stage power tube in a class D amplifier. When the boost module 105 is disconnected, the protected circuit is turned off.
[0069] In the embodiment of the present application, the first processing unit 1011 determines the sampling time of collecting the sampling current based on the voltage of the driving signal and the first threshold value, so that the delay time between the sampling signal (OC_SN_HS signal and OC_SN_LS signal) and the driving signal (HS_GT signal and LS_GT signal) changes with the change of the voltage of the power supply of the circuit. For example, when the power supply voltage PVCC of the power tube increases, the delay time decreases, and when PVCC decreases, the delay time increases, thereby ensuring that the starting time of the rising edge of the sampling signal is later than the starting time of the rising edge of the driving signal, and the starting time of the falling edge of the sampling signal is earlier than the starting time of the falling edge of the driving signal, thereby avoiding the situation where the overcurrent protection circuit is falsely triggered.
[0070] In the embodiment of the present application, the first processing unit 1011 is further configured to output a sampling signal of a second state when it is determined that the voltage of the driving signal is less than a second threshold value, wherein the second state may be a low level (digital "0").
[0071] The sampling module 102 may also be configured to stop sampling the protected circuit according to the sampling signals (OC_SN_HS signal and OC_SN_LS signal) in the second state.
[0072] In the embodiment of the present application, the sampling signal switches between the first state and the second state. Each time the state is switched, the first processing unit 1011 sends the sampling signal. Therefore, the time when the first processing unit 1011 sends the sampling signal is determined based on the driving signal, the first threshold and the second threshold, and the first threshold and the second threshold are determined based on the power supply voltage of the protected circuit, so that the time for sending the sampling signal to switch between the first state and the second state changes with the change of the power supply voltage.
[0073] like Figure 3a As shown, the overcurrent protection circuit 10 further includes a reference voltage generating module 106 and an output signal processing module 107 .
[0074] The output end of the reference voltage generating module 106 is connected to the input end of the judging module 104. The reference voltage generating module 106 is used to generate a reference voltage VREF_OC signal and send the reference voltage VREF_OC signal to the judging module 104. Thus, the judging module 104 can perform overcurrent protection comparison based on the reference voltage and the target sampling voltage.
[0075] The input end of the output signal processing module 107 is connected to the output end of the judgment module 104. When the judgment module 104 determines that the target sampling voltage is greater than the reference voltage, the overcurrent protection signal is output to the output signal processing module 107. When the output signal processing module 107 receives the overcurrent protection signal, it controls the disconnection of the boost module 105. For example, when the overcurrent protection signal is 1, the MOS tube in the boost module 105 is controlled to be disconnected; when the overcurrent protection signal is 0, the MOS tube in the boost module 105 is controlled to be closed.
[0076] In the embodiment of the present application, the second processing module 103 is used to control the type of the output voltage signal. The second processing module 103 is used to release the sampled voltage of the power tube in the low voltage domain of the protected circuit according to the CON_OC_OCL signal, and release the sampled voltage of the power tube in the high voltage domain of the protected circuit according to the CON_OC_OCH signal, and the maximum voltage value of the low voltage domain is less than the minimum voltage value of the high voltage domain.
[0077] In the embodiment of the present application, the first processing unit 1011 may include a Schmitt trigger. In some embodiments, the first processing unit 1011 may also be replaced by other threshold switch circuits, such as a hysteresis comparator, a CMOS inverter, a voltage comparator, and the like.
[0078] Combine the following Figure 3b , taking the boost module 105 in the protected circuit including the MOS tube M1 and the MOS tube M2 as an example, the overcurrent protection circuit provided by the present application is introduced.
[0079] like Figure 3b As shown, the first processing unit 1011 includes a Schmitt trigger, the driving unit 1012 includes an output stage driver, and the second processing unit 1013 includes a delay module and a logic module; the sampling module 102 includes a MOS tube M3 and a MOS tube M4; the second processing module 103 includes an IV HS conversion circuit, an IV LS conversion circuit, a switch S1 and a switch S2; the judgment module 104 includes an inductor L1, a capacitor C1 and a comparator.
[0080] The input end of the output stage driver is connected to the output end of the pulse width modulation circuit of the protected circuit, the output end of the output stage driver is connected to the gate of the MOS tube M1, the gate of the MOS tube M2, the input end of the Schmitt trigger, the input end of the delay module and the logic module, the output end of the Schmitt trigger is connected to the gate of the MOS tube M3, the gate of the MOS tube M4 and the input end of the delay module and the logic module, the drain of the MOS tube M1 is connected to PVCC, the source of the MOS tube M1 and the source of the MOS tube M2 are connected to the source of the MOS tube M3 and the drain of the MOS tube M4, and the source of the MOS tube M2 is grounded. The drain of the MOS tube M3 and the source of the MOS tube M4 are connected to the input end of the second processing module 103, the output end of the second processing module 103 is connected to the output end of the delay module and the logic module and the negative input end of the comparator, the reference voltage generation module 106 is connected to the first end of the inductor L1 in the judgment module 104, the second end of the inductor L1 is connected to the first end of the capacitor C1 and the positive input end of the comparator, and the second end of the capacitor C1 is grounded. The output terminal of the comparator is connected to the input terminal of the output control logic in the output signal processing module 107 .
[0081] The following is based on Figure 3b The circuit diagram shown in FIG. 1 introduces the working principle of the overcurrent protection circuit provided by the present application. It can be understood that the overcurrent protection circuit can be set in an electronic device to perform overcurrent protection on the protected circuit of the electronic device. Figure 4 As shown, including:
[0082] 401 : The first processing module 101 sends a driving signal to the boost module 105 .
[0083] In the embodiment of the present application, the output stage driver in the first processing module 101 sends a driving signal to the MOS tube M1 and the MOS tube M2 in the boost module 105; wherein the driving signal is used to control the on and off of the MOS tube M1 and the MOS tube M2 in the boost module, and the driving signal includes a HS_GT signal and a LS_GT signal.
[0084] The following is an introduction to the generation method of the HS_GT signal and the LS_GT signal.
[0085] In the embodiments of the present application, Figure 3b As shown, the output stage driver receives the PWM modulation wave (first modulation signal) output by the loop, processes the first modulation signal (PWM_G signal), and obtains the HS_GT signal, the LS_GT signal, and the second modulation signal (PWM_HS signal). The output stage driver outputs the HS_GT signal to the gate of the MOS tube M1 to drive the MOS tube M1 to turn on; and outputs the LS_GT signal to the gate of the MOS tube M2 to drive the MOS tube M2 to turn on.
[0086] 402 : When the first processing module 101 determines that the voltage of the driving signal is greater than the first threshold, the first processing module 101 sends a sampling signal in a first state to the sampling module 102 .
[0087] In an embodiment of the present application, the output stage driver in the first processing module 101 can also send the HS_GT signal and the LS_GT signal to the Schmitt trigger in the first processing module 101, so that the Schmitt trigger generates a sampling signal according to the voltage of the HS_GT signal and the LS_GT signal, and the sampling signal includes the OC_SN_HS signal and the OC_SN_LS signal.
[0088] In the embodiment of the present application, when the Schmitt trigger determines that the voltage of the driving signal is greater than the first threshold, the sampling signal is switched from the second state to the first state, and the sampling signal of the first state is sent to the sampling module 102; when the voltage of the driving signal is determined to be less than the second threshold, the sampling signal is switched from the first state to the second state, and the sampling signal of the second state is sent to the sampling module 102. It can be understood that the sampling signal of the first state is used to drive the sampling module to collect the sampling current of the boost module, and the sampling signal of the second state is used to control the sampling module to stop collecting the sampling current of the boost module. The first state can be a high level (digital "1"), and the second state can be a low level (digital "0").
[0089] Among them, Figure 3b As shown, the sampling module 102 includes a MOS transistor M3 and a MOS transistor M4. When the Schmitt trigger determines that the voltage of the HS_GT signal is greater than the first threshold, the Schmitt trigger sends a first-state OC_SN_HS signal to the MOS transistor M3 to turn on the MOS transistor M3, thereby collecting the sampling current of the MOS transistor M1; when the voltage of the LS_GT signal is determined to be greater than the first threshold, the Schmitt trigger sends a first-state OC_SN_LS signal to the MOS transistor M4 to turn on the MOS transistor M4, thereby collecting the sampling current of the MOS transistor M2; when the voltage of the HS_GT signal is determined to be less than the second threshold, the Schmitt trigger sends a second-state OC_SN_HS signal to turn off the MOS transistor M3, thereby stopping the collection of the sampling current of the MOS transistor M1; when the voltage of the LS_GT signal is determined to be less than the second threshold, the Schmitt trigger sends a second-state OC_SN_LS signal to turn off the MOS transistor M4, thereby stopping the collection of the sampling current of the MOS transistor M2.
[0090] That is, when the MOS tube M1 and the MOS tube M2 are in the linear region, the Schmitt trigger outputs a collection signal for collecting current, that is, after reaching the peak moment of the rising edge of the HS_GT signal and before the starting moment of the falling edge of the HS_GT signal, the OC_SN_HS signal is output, and after reaching the peak moment of the rising edge of the LS_GT signal and before the peak moment of the falling edge of the LS_GT signal, the OC_SN_LS signal is output. This ensures that the current signal is collected when the MOS tube is in the linear region, avoiding false triggering of the overcurrent protection circuit.
[0091] In the embodiment of the present application, during the time period when the voltage of the driving signal is greater than the first threshold and not less than the second threshold, the driving signal has turned on the MOS tube, and the MOS tube is in the linear region, and the collected sampling current is stable.
[0092] In an embodiment of the present application, the trigger thresholds (first threshold and second threshold) of the Schmitt trigger can be set in advance. For example, the first threshold and the second threshold are determined according to the power supply voltage of the electronic device, so that when the voltage of the drive signal is greater than the first threshold, the voltage of the drive signal reaches near the full-swing voltage of the rising edge; when the voltage of the drive signal is less than the second threshold, the voltage of the drive signal reaches near the full-swing voltage of the falling edge.
[0093] In some embodiments, the first threshold and the second threshold can also be determined according to the power supply voltage of the electronic device and the full swing voltage of the driving signal. For example, for the MOS tube M1, the driving signal of the MOS tube M1 is the HS_GT signal, and the sampling signal used to collect the MOS tube M1 is the OC_SN_HS signal. Since the HS_GT signal belongs to the high voltage domain, the first threshold of the HS_GT signal can be 80%*PVDD, and the second threshold can be 90%*PVDD. For the MOS tube M2, the driving signal of the MOS tube M2 is the LS_GT signal, and the sampling signal used to collect the MOS tube M2 is the OC_SN_LS signal. Since the LS_GT signal belongs to the low voltage domain, the first threshold of the LS_GT signal can be 70%*PVDD, and the second threshold can be 80%*PVDD.
[0094] In some embodiments, the first threshold and the second threshold are equal; in other embodiments, the first threshold and the second threshold are not equal. It can be understood that the first threshold and the second threshold can be set according to actual conditions and are not specifically limited here.
[0095] The present application determines the sampling time for collecting the sampling current based on the voltage of the driving signal and the first threshold determined based on the power supply voltage of the electronic device, so that the delay time between the sampling signal and the driving signal changes with the change of the voltage of the power supply of the circuit, ensuring that the rising edge of the sampling signal can definitely jump over the rising edge of the driving signal, that is, the sampling current is collected in the linear region of the power tube of the boost module, avoiding the false triggering of the overcurrent protection circuit.
[0096] 403: The second processing module 103 converts the sampled current into a sampled voltage.
[0097] In the embodiments of the present application, Figure 3b As shown, the current (PCN signal) obtained by sampling the MOS tube M1 via the MOS tube M3 can be converted into a second voltage through the IV HS conversion circuit in the second processing module 103, and the current (NCN signal) obtained by sampling the MOS tube M2 via the MOS tube M4 can be converted into a first voltage through the IV LS conversion circuit in the second processing module 103.
[0098] In the embodiment of the present application, the second processing module 103 may determine the target sampling voltage from a plurality of sampling voltages according to the selection signal output by the second processing unit 1013 .
[0099] Specifically, when the second processing module 103 receives the first selection signal (CON_OC_OCL signal) of the first state sent by the second processing unit 1013, the switch S2 is turned on to output the first voltage as the sampling voltage. At this time, the target sampling voltage is the first voltage. When the second processing module 103 receives the second selection signal (CON_OC_OCH signal) of the first state sent by the second processing unit 1013, the switch S1 is turned on to output the second voltage as the sampling voltage. At this time, the target sampling voltage is the first voltage. The generation method of the CON_OC_OCL signal and the CON_OC_OCH signal is described below.
[0100] In this way, the rising edge of the first selection signal arrives after the rising edge of the driving signal of the MOS tube M2, and the falling edge of the first selection signal arrives after the falling edge of the driving signal of the MOS tube M2; the rising edge of the second selection signal arrives after the rising edge of the driving signal of the MOS tube M1, and the falling edge of the second selection signal arrives after the falling edge of the driving signal of the MOS tube M1, thereby achieving the purpose of edge shielding, further ensuring that the voltage comparison is performed when the power tube of the boost module is in the linear region, avoiding the situation where the overcurrent protection circuit is falsely triggered.
[0101] In order to avoid interference between the voltage signal corresponding to the NCN signal and the voltage signal corresponding to the PCN signal, resulting in a deviation in the voltage signal, in the embodiment of the present application, the second processing unit 1013 can generate an initialization signal OC_ENN signal according to the CON_OC_OCL signal and the CON_OC_OCH signal, and send the OC_ENN signal to the second processing module 103, so that the second processing module 103 can clear the voltage signal converted by the second processing module 103 according to the OC_ENN signal. The process of the second processing unit 1013 generating the initialization signal OC_ENN signal according to the CON_OC_OCL signal and the CON_OC_OCH signal is described below.
[0102] In an embodiment of the present application, during the time period when neither the CON_OC_OCH signal nor the CON_OC_OCL signal performs overcurrent protection comparison, the OC_PM signal is cleared to ensure that there is no time accumulation effect due to residual charge, thereby avoiding the overcurrent protection circuit from being falsely triggered.
[0103] 404: When the determination module 104 determines that the sampled voltage is greater than the reference voltage, the determination module 104 outputs an overcurrent protection signal to control the boost module 105 to disconnect.
[0104] For example, when the judgment module 104 determines that the voltage of the voltage signal obtained by converting the PCN signal is greater than the reference voltage, the judgment module 104 outputs an overcurrent protection signal to control the MOS tube M1 and / or MOS tube M2 in the boost module 105 to be disconnected; when the judgment module 104 determines that the voltage of the voltage signal obtained by converting the NCN signal is greater than the reference voltage, the judgment module 104 outputs an overcurrent protection signal to control the MOS tube M1 and / or MOS tube M2 in the boost module 105 to be disconnected; when the judgment module 104 determines that the voltage of the voltage signal obtained by converting the PCN signal or the NCN signal is less than or equal to the reference voltage, the sampling current of the MOS tube M1 and the MOS tube M2 is continuously collected.
[0105] In summary, in the overcurrent protection circuit provided in the embodiment of the present application, it can be ensured that the starting time of the rising edge of the sampling signal is later than the starting time of the rising edge of the driving signal, and the starting time of the falling edge of the sampling signal is earlier than the starting time of the falling edge of the driving signal, thereby avoiding the situation where the overcurrent protection circuit is falsely triggered.
[0106] Continue reading Figure 3b , it is understandable, Figure 3bThe circuit shown has two sampling signals, the PCN signal and the NCN signal, that is, the current-to-voltage circuit has two input signals, but the current-to-voltage circuit only outputs one OC_PM signal. Therefore, after the current-to-voltage circuit obtains the PCN signal and the NCN signal and converts the PCN signal and the NCN signal into corresponding voltage signals, it is necessary to further release the voltage signal corresponding to the PCN signal or the NCN signal based on the CON_OC_OCH signal and the CON_OC_OCL signal, and use the released voltage signal as the voltage signal of the OC_PM signal. For example, when the CON_OC_OCH signal is 1, the switch S1 of the current-to-voltage circuit is turned on, and the voltage signal corresponding to the PCN signal is released, that is, the voltage signal corresponding to the PCN signal is used as the OC_PM signal; when the CON_OC_OCL signal is 1, the switch S2 of the current-to-voltage circuit is turned on, and the voltage signal corresponding to the NCN signal is released, that is, the voltage signal corresponding to the NCN signal is used as the OC_PM signal.
[0107] The following is an introduction to the method of generating the CON_OC_OCH signal and the CON_OC_OCL signal.
[0108] It can be understood that the voltages of the MOS tube M1 and the MOS tube M3 are both in the high voltage domain (such as 12V-19V), so the voltages of the HS_GT signal and the OC_SN_HS signal used to drive the MOS tube M1 and the MOS tube M3 to turn on and off are both in the high voltage domain (such as 12V-19V), while the voltages of other signals in the circuit are all in the low voltage domain (such as 3V-5V). Therefore, the OC_SN_HS signal cannot be directly output to the switch S1 of the current-to-voltage circuit. In some embodiments, the OC_SN_HS signal in the high voltage domain can be converted into the CON_OC_OCH signal in the low voltage domain through a level shift circuit. Among them, the level shift circuit can convert the signal in the high voltage domain into a signal in any other voltage domain.
[0109] It is understandable that due to the withstand voltage characteristics of high-voltage devices, the layout area of the level conversion circuit used for high-voltage conversion is relatively large. In addition, the level conversion circuit also has speed issues. For example, for high-speed megahertz-level input signals, the level conversion circuit responds slowly under certain PVT conditions, which may cause the output signal to fail to flip normally, resulting in errors in the timing of the circuit. At the same time, when introducing the level conversion circuit, it is also necessary to consider the initial state of the level conversion circuit, which introduces the risk of shutdown leakage.
[0110] In order to solve the above problem, in the overcurrent protection circuit provided in the embodiment of the present application, Figure 3b As shown, a delay module and a logic module are used to replace the level conversion circuit.
[0111] like Figure 3b As shown, the second processing unit 1013 includes a delay module and a logic module. The input end of the delay module is connected to the output end of the first processing unit 1011 and the output end of the driving unit 1012, the input end of the logic module is connected to the input end of the delay module and the output end of the driving unit 1012, and the output end of the logic module is connected to the input end of the second processing module 103.
[0112] In an embodiment of the present application, the PWM_G signal output by the loop can also be sent to a delay module and a logic module.
[0113] The delay module is used to generate a first delay signal (OCL_DEALY signal) based on the OC_SN_LS signal and the first delay time, and to generate a second delay signal (OCH_DEALY signal) based on the PWM_HS signal and the second delay time.
[0114] The logic module is used to generate a second selection signal (CON_OC_OCH signal) based on the HS_GT signal, OC_SN_HS signal, OCH_DELAY signal, PWM_G signal, and PWM_HS signal; and to generate a first selection signal (CON_OC_OCL signal) based on the LS_GT signal, OC_SN_LS signal, OCL_DELAY, and PWM_G signal.
[0115] Among them, the voltages of the HS_GT signal and the OC_SN_HS signal belong to the high voltage domain, and the voltages of the LS_GT signal and the PWM_HS signal belong to the low voltage domain.
[0116] This application uses a delay module with simple processing logic and a relatively small number of logic modules. By first processing the HS_GT signal and the LS_GT signal through a Schmitt trigger and then delaying it, the edge shielding function is realized, saving the circuit layout area. In addition, this application does not need to set up a high-voltage to low-voltage level conversion circuit, and can realize the conversion of high-voltage domain signals to low-voltage domain signals through delay and logic modules, saving a lot of layout area, and making the edge shielding function unnecessary to consider the initial state of the signal, avoiding the risk of shutdown leakage current from the root, so that even at higher signal frequencies, there will be no logical errors caused by insufficient response speed of the level conversion circuit.
[0117] The following first introduces the method for generating the CON_OC_OCL signal.
[0118] In the embodiment of the present application, after the delay module and the logic module obtain the OC_SN_LS signal, firstly, Figure 5The first delay submodule (RC dealy) in the delay module shown in FIG. 1 obtains the OCL_DEALY signal based on the OC_SN_LS signal and the first delay time. Specifically, the OC_SN_LS signal can be delayed by the first delay time by the first delay submodule to obtain the following: Figure 6 The OCL_DEALY signal shown. The first delay submodule includes a resistor R11 and a capacitor C11, and the first delay time is determined based on the resistor R11 and the capacitor C11, for example, the first delay time = -RC*ln((EV) / E); wherein, "-" is a minus sign, the unit of R is ohm, the unit of C is F, E is the input voltage, V is the voltage to be reached between the capacitors, and ln is the natural logarithm.
[0119] For example: the voltage between R (150K) and C (1000UF) is 12V, and the time when the voltage at the two poles of capacitor C reaches 3V = -(150*1000)*(1000 / 1000000)*ln((12-3) / 12) = 43 (seconds).
[0120] In some embodiments, the first end of the resistor R11 is connected to the first end of the capacitor C11, and the second end of the capacitor C11 is grounded. It can be understood that after the CON_OC_OCL signal flows through the resistor R11, it is delayed by the first delay time to obtain the OCL_DEALY signal.
[0121] In an embodiment of the present application, the first delay time may be 10 ns. In other embodiments, the first delay time may be set according to the circuit.
[0122] pass Figure 6 As shown in the timing diagram, the rising edge and falling edge of the OCL_DEALY signal are both later than the rising edge and falling edge of LS_GT.
[0123] Secondly, through Figure 7 The logic module shown processes the OCL_DEALY signal and the inverse signal PWM_GN of the PWM_G signal to obtain the CON_OC_OCL signal. Figure 7 As shown, the input end of the inverter N1 in the logic module is connected to the first input end of the logic AND gate A2 (or the second logic AND gate), the output end of the inverter N1 is connected to the first input end of the logic AND gate A1 (or the first logic AND gate), the output end of the logic AND gate A1 is connected to the first input end of the logic NOR gate A3, the second input end of the logic NOR gate A3 is connected to the output end of the logic AND gate A2, and the output end of the logic OR gate A3 is connected to the first input end of the logic OR gate A4.
[0124] Specifically, in the embodiment of the present application, after the logic module obtains the OCL_DEALY signal and the PWM_G signal, the PWM_G signal is input to the input end of the inverter N1, and the following is obtained: Figure 6 The PWM_GN signal and the OCL_DEALY signal are input to the input end of the logic AND gate A1, so that when the PWM_GN signal and the OCL_DEALY signal are both high, the CON_OC_OCL signal is high; when the PWM_GN signal or the OCL_DEALY signal is low, the CON_OC_OCL signal is low, and finally the following is obtained: Figure 6 The CON_OC_OCL signal is shown.
[0125] That is, in the embodiment of the present application, corresponding to the situation where the voltage of the power tube is in the low voltage domain, such as the MOS tube M2, the logic module can obtain the rising edge of the OCL_DEALY signal (the second moment when the first selection signal switches from the first state to the second state) based on the rising edge of the OC_SN_OCL signal (the first moment when the sampling signal switches from the second state to the first state) and the first delay time generated by the first delay submodule. According to the falling edge of the PWM_GN signal (the third moment when the reverse signal of the input end signal of the first processing module switches from the first state to the second state), the falling edge of the OCL_DEALY signal (the third moment when the first selection signal switches from the first state to the second state) is obtained.
[0126] The logic module determines the rising edge of the CON_OC_OCL signal according to the rising edge of the OCL_DELAY signal, and determines the falling edge of the CON_OC_OCL signal according to the falling edge of the PWM_GN signal, that is, Figure 6 As shown, the rising edge of the CON_OC_OCL signal is determined by the rising edge of the OCL_DELAY signal, and the falling edge of the CON_OC_OCL signal is determined by the falling edge of the PWM_GN signal.
[0127] like Figure 6 As shown, the rising edge of the OCL_DELAY signal is later than the first delay time of the rising edge of the OC_SN_LS signal and the LS_GT signal, therefore, the present application uses the rising edge of the OCL_DELAY signal as the rising edge of the CON_OC_OCL signal. The falling edge of the PWM_GN signal is earlier than the falling edge of the OC_SN_LS signal and the LS_GT signal, therefore, the present application uses the falling edge of the PWM_GN signal as the falling edge of the CON_OC_OCL signal, thereby ensuring that the CON_OC_OCL signal is high only in the high level interval of the LS_GT signal, that is, the overcurrent protection comparison of the MOS tube M4 is only performed in the linear region of the MOS tube M4, ensuring the stability of the edge shielding.
[0128] That is, in the present application, when the CON_OC_OCL signal is at a high level, the LS_GT signal is in a full swing state, so that when the CON_OC_OCL signal closes the switch S2 of the current-to-voltage circuit, the MOS tube M1 must be in a linear region, so that the current of the MOS tube M1 must be collected in the stable current stage of the MOS tube M1, thereby avoiding false triggering of the overcurrent protection circuit.
[0129] The following is an introduction to the method of generating the CON_OC_OCH signal.
[0130] It can be understood that the voltage domains of the overcurrent protection circuit (current-voltage conversion module, reference voltage generation module and output control logic) are all low-voltage domains, so the CON_OC_OCH signal and CON_OC_OCL signal output by the delay module and the logic module should be in the low-voltage domain, while the voltages of the HS_GT signal and the OC_SN_HS signal are both in the high-voltage domain. Therefore, in the process of generating the CON_OC_OCH signal, it is necessary to generate a CON_OC_OCH signal in the low-voltage domain without converting the OC_SN_HS signal from high voltage to low voltage through a level conversion circuit.
[0131] In the embodiment of the present application, after the delay module obtains the PWM_HS signal, it obtains the OCH_DEALY signal based on the PWM_HS signal and the second delay time.
[0132] Specifically, first, Figure 5 The second delay submodule (RC dealy) in the delay module shown in the figure delays the PWM_HS signal by a first delay time, and then delays the PWM_HS signal by a third delay time through a third processing unit connected to the second delay submodule (the third processing unit includes a Schmitt trigger as an example in the figure), so as to obtain Figure 8 The OCH_DEALY signal shown is sent to the logic module. Wherein, the second delay time = the first delay time + the third delay time, and the second delay submodule is connected in series with the third processing unit.
[0133] The second delay submodule includes a resistor R12 and a capacitor C12, and the third delay time is greater than the first delay time.
[0134] In some embodiments, the first end of the resistor R12 is connected to the first end of the capacitor C12, and the second end of the capacitor C12 is grounded. It can be understood that after the CON_OC_OCH signal flows through the resistor R12, it is delayed by the first delay time, and after flowing through the third processing unit, it is delayed by the third delay time to obtain the OCH_DEALY signal.
[0135] It can be understood that the Schmitt trigger has the advantage of a smaller layout area than the level conversion circuit, and the third processing unit adopts the Schmitt trigger to save circuit space. In some embodiments, the Schmitt trigger of the third processing unit can also be replaced by other threshold switch circuits, for example, at least one of a hysteresis comparator, a CMOS inverter, a voltage comparator, etc.
[0136] It can be understood that since the PWM_HS signal is a high-voltage signal, the required delay time is relatively long, for example, 90ns, while the delay time composed of the resistor and capacitor in the second delay submodule is relatively short. If the second delay time is achieved only by the second delay submodule, the area of the second delay submodule needs to be greatly increased, that is, the area of the delay module is greatly increased. In order to avoid greatly increasing the area of the delay module, the present application connects a Schmitt trigger to the output end of the second delay submodule, so that the rising edge and falling edge of the signal after the RC delay are read by the Schmitt trigger, and the threshold of the Schmitt trigger is adjusted so that for the same rising edge delay, the size of the capacitor required for the second delay submodule can be reduced, the layout space is saved, and the area of the delay module is avoided to be greatly increased; and the use of the Schmitt trigger to generate a delay can achieve the purpose of independently controlling the rising edge and falling edge delay of the OCH_DELAY signal, and only the VIH and VIL thresholds of Schmitt need to be adjusted. Secondly, using Schmitt to generate delay can make the delay consistent with the group delay change of the output stage power tube driving circuit under different voltage, temperature, and process angle (PVT) conditions, making the edge shielding function more stable under PVT.
[0137] Secondly, after the logic AND gate A2 in the logic module obtains the PWM_G signal and the OCH_DEALY signal, the PWM_G signal and the OCH_DEALY signal are input into the input end of the logic OR gate A2, so that when the PWM_G signal and the OCH_DEALY signal are both high, the CON_OC_OCH signal is high; when the PWM_G signal or the OCH_DEALY signal is low, the CON_OC_OCH signal is low, and finally the following is obtained: Figure 8 The CON_OC_OCH signal is shown.
[0138] That is, in the embodiment of the present application, corresponding to the situation where the voltage of the power tube is in the high voltage domain, such as the MOS tube M1, the logic module can obtain the rising edge of the OCH_DEALY signal (the fourth moment when the first selection signal switches from the first state to the second state) according to the rising edge of the OC_SN_OCH signal (the first moment when the sampling signal switches from the second state to the first state) and based on the second delay time generated by the second delay submodule. According to the falling edge of the PWM_G signal (the fifth moment when the input end signal of the first processing module switches from the first state to the second state), the falling edge of the OCH_DEALY signal (the fifth moment when the first selection signal switches from the first state to the second state) is obtained.
[0139] The logic module determines the rising edge of the CON_OC_OCH signal according to the rising edge of the OCH_DELAY signal, and determines the falling edge of the CON_OC_OCH signal according to the falling edge of the PWM_G signal. Figure 8 As shown, the rising edge of the CON_OC_OCH signal is determined by the rising edge of the OCH_DELAY signal, and the falling edge of the CON_OC_OCH signal is determined by the falling edge of the PWM_G signal.
[0140] like Figure 8 As shown, the rising edge of the OCH_DELAY signal is later than the rising edge of the OC_SN_HS signal and the HS_GT signal, so the present application uses the rising edge of the OCH_DELAY signal as the rising edge of the CON_OC_OCH signal. The falling edge of the PWM_G signal is earlier than the falling edge of the OC_SN_HS signal and the HS_GT signal, so the present application uses the falling edge of the PWM_G signal as the falling edge of the CON_OC_OCH signal.
[0141] In an embodiment of the present application, the CON_OC_OCH signal is generated by combining the PWM signal and the OCH_DELAY signal in the low-voltage domain, rather than directly using the drive output signal of the output stage power tube drive circuit. There is no need for a high-voltage to low-voltage level conversion circuit, which simplifies the logic, saves area, improves the circuit response speed, and avoids the risk of shutdown leakage caused by initial state problems.
[0142] It can be understood that when the CON_OC_OCH signal is at a high level, the HS_GT signal is in a full swing state, so that when the CON_OC_OCH signal closes the switch S2 of the current-to-voltage circuit, the MOS tube M2 must be in a linear region, so that the current of the MOS tube M2 must be collected during the MOS tube M2 current stabilization phase, thereby avoiding false triggering of the overcurrent protection circuit. In addition, the OCH_DELAY signal and the PWM_G signal are both in the low voltage domain, so that the CON_OC_OCH signal in the low voltage domain can be obtained without a level conversion circuit.
[0143] The following introduces a method for generating the initialization signal OC_ENN signal according to the CON_OC_OCL signal and the CON_OC_OCH signal through the delay module and the logic module.
[0144] After the input end of the logic NOR gate A3 in the logic module obtains the CON_OC_OCL signal and the CON_OC_OCH signal, an "OR" process is performed and input into the input end of the logic OR gate A4. The logic OR gate A4 obtains the output signal of the logic NOR gate A3 and the ENN signal, and performs an "OR" process to obtain the following: Fig. 9 The OC_ENN signal shown in FIG. 1 is a low level signal (digital “0”).
[0145] In the embodiment of the present application, the CON_OC_OCL signal and the CON_OC_OCH signal are processed by the logic NOR gate A3 and the logic OR gate A4, so that if the CON_OC_OCL signal is in the second state and the CON_OC_OCH signal is in the second state, the OC_ENN signal is in the first state; if the CON_OC_OCL signal is in the first state, or the CON_OC_OCH signal is in the first state, the initialization signal is in the second state. Among them, the second processing module 103 can clear the current and voltage according to the OC_ENN signal in the first state; the first state can be a high level (digital "1"), and the second state can be a low level (digital "0").
[0146] like Fig. 9 As shown, the CON_OC_OCH signal and the CON_OC_OCL signal are a pair of non-overlapping clock signals, that is, the CON_OC_OCH signal and the CON_OC_OCL signal are alternately performed, and the OC_ENN signal is obtained by performing an "OR" operation on the two. Fig. 9 As shown, when the CON_OC_OCH signal or the CON_OC_OCL signal is 1, the OC_ENN signal is 0; when the CON_OC_OCH signal and the CON_OC_OCL signal are both 0, the OC_ENN signal is 1.
[0147] In an embodiment of the present application, during a time period when neither the CON_OC_OCH signal nor the CON_OC_OCL signal performs overcurrent protection comparison, the OC_PM signal is cleared to ensure that there is no time accumulation effect due to residual charge, thereby preventing the overcurrent protection circuit from being falsely triggered.
[0148] An embodiment of the present application provides a chip, which includes the above-mentioned overcurrent protection circuit.
[0149] An embodiment of the present application also provides an electronic device, comprising the above chip.
[0150] According to an embodiment of the present application, Fig.10 FIG. 1 shows a block diagram of an electronic device 1300 based on a system on chip (SOC). Fig.10 In the FIG, similar components have the same reference numerals. In addition, the dashed boxes are optional features of more advanced SOCs. Fig.10 In the embodiment, the electronic device 1300 includes: an interconnect unit 1350, which is coupled to the processor 1315; a system agent unit 1370; a bus controller unit 1380; an integrated memory controller unit 1340; a group or one or more coprocessors 1320, which may include integrated graphics logic, image processors, audio processors, and video processors; a static random-access memory (SRAM) unit 1330; and a direct memory access (DMA) unit 1360. In one embodiment, the coprocessor 1320 includes a special-purpose processor, such as, for example, a network or communication processor, a compression engine, or an embedded processor.
[0151] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to floppy disks, optical disks, optical disks, read-only memories (compact disc-read only memories, CD-ROMs), magneto-optical disks, read-only memories (read only memory, ROM), random access memories (random access memory, RAM), erasable programmable read-only memories (erasable programmable read-only memories, EPROM), electrically erasable programmable read-only memories (electrically erasable programmable read-only memories, EEPROM), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
[0152] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0153] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0154] It should be noted that in the examples and description of this patent, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprises one" does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0155] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.
Claims
1. An overcurrent protection circuit, characterized in that: Applied to the protected circuit, the overcurrent protection circuit includes a first processing module, a sampling module, a second processing module and a judgment module, the first processing module includes a driving unit, a first processing unit, and a second processing unit, wherein: The input end of the driving unit is connected to the output end of the pulse width modulation circuit of the protected circuit, and the driving unit is used to generate and output a driving signal according to a first modulation signal output by the pulse width modulation circuit of the protected circuit; The input end of the first processing unit is connected to the output end of the driving unit, and the first processing unit is used to output a sampling signal of a first state when it is determined that the voltage of the driving signal is greater than a first threshold; The input end of the second processing unit is connected to the output end of the first processing unit and the output end of the driving unit, and the second processing unit is used to generate a selection signal according to the first modulation signal, the driving signal and the sampling signal; The input end of the sampling module is connected to the output end of the first processing unit, the output end of the sampling module is connected to the input end of the second processing module, and the sampling module is used to collect the protected circuit according to the sampling signal of the first state, and output a plurality of sampling currents to the second processing module; The input end of the second processing module is connected to the output end of the second processing unit, and the second processing module is used to convert the multiple sampling currents into multiple sampling voltages, and determine a target sampling voltage from the multiple sampling voltages according to the selection signal; The input end of the judgment module is connected to the output end of the second processing module, and is used to control the protected circuit to be turned off when the target sampling voltage is greater than the reference voltage.
2. The overcurrent protection circuit according to claim 1, characterized in that: include: The first processing unit is further configured to output a sampling signal of a second state when it is determined that the voltage of the driving signal is less than a second threshold; The sampling module is used to stop sampling the protected circuit according to the sampling signal of the second state.
3. The overcurrent protection circuit according to claim 2, characterized in that: The first threshold and the second threshold are determined according to a power supply voltage of the protected circuit.
4. The overcurrent protection circuit according to claim 1, characterized in that: The second processing unit includes a delay module and a logic module, the selection signal includes a first selection signal and a second selection signal, The input end of the delay module is connected to the output end of the first processing unit and the output end of the driving unit, and the delay module is used to generate a first delay signal based on the sampling signal and the first delay time, and to generate a second delay signal based on the second modulation signal and the second delay time, wherein the second modulation signal is determined based on the first modulation signal; The input end of the logic module is connected to the input end of the driving unit and the output end of the delay module, the output end of the logic module is connected to the input end of the second processing module, and the logic module is used to generate the first selection signal based on the first delayed signal and the reverse signal of the first modulation signal, and generate the second selection signal based on the second delayed signal and the first modulation signal.
5. The overcurrent protection circuit according to claim 4, characterized in that: The delay module includes a first delay submodule and a second delay submodule. The first delay submodule includes a first resistor and a first capacitor, and the first delay time is determined based on the first resistor and the first capacitor; The second delay submodule includes a second resistor, a second capacitor and a third processing unit. The second delay time is determined according to the second resistor, the second capacitor and the third processing unit. The first delay time is less than the second delay time.
6. The overcurrent protection circuit according to claim 4, characterized in that: include: The logic module is used to determine the rising edge of the first selection signal according to the rising edge of the first delayed signal, and determine the falling edge of the first selection signal according to the falling edge of the reverse signal of the first modulated signal; The logic module is used to determine the rising edge of the second selection signal according to the rising edge of the second delayed signal, and to determine the falling edge of the second selection signal according to the falling edge of the first modulated signal.
7. The overcurrent protection circuit according to claim 4, characterized in that: include: The logic module is used to generate an initialization signal based on the first selection signal and the second selection signal; The second processing module is used for clearing the plurality of sampled voltages according to the initialization signal.
8. The overcurrent protection circuit according to claim 7, characterized in that: include: If the logic module determines that the first selection signal is in the second state and the second selection signal is in the second state, then determines that the initialization signal is in the first state; If the logic module determines that the first selection signal is in the first state, or the second selection signal is in the first state, then determines that the initialization signal is in the second state; The second processing module is used for clearing the plurality of sampled voltages according to the initialization signal of the first state.
9. The overcurrent protection circuit according to any one of claims 6 to 8, wherein the logic module comprises an inverter, a first logic AND gate, a second logic AND gate, a logic NOR gate and a logic OR gate, in, The input end of the inverter is connected to the first input end of the second logic AND gate, the output end of the inverter is connected to the first input end of the first logic AND gate, and the output end of the first logic AND gate is connected to the first input end of the logic NOR gate; The output end of the second logic AND gate is connected to the second input end of the logic NOR gate, and the output end of the logic NOR gate is connected to the first input end of the logic OR gate.
10. The overcurrent protection circuit according to any one of claims 4 to 8, characterized in that: The second processing module is used to release the sampling voltage of the power tube in the first voltage domain in the protected circuit according to the first selection signal, and is used to release the sampling voltage of the power tube in the second voltage domain in the protected circuit according to the second selection signal, and the maximum voltage value of the first voltage domain is less than the minimum voltage value of the second voltage domain.
11. The overcurrent protection circuit according to claim 1 or 5, characterized in that: The first processing unit and the third processing unit include at least one of a Schmitt trigger, a voltage comparator, and a hysteresis comparator.
12. A chip, characterized in that: The chip has an overcurrent protection circuit as claimed in any one of claims 1 to 11 formed therein.
13. An electronic device, characterized in that: Comprising the chip as claimed in claim 12.
