Power-on and power-off control circuit

By designing a power-on and power-off control circuit in the autonomous driving domain controller to ensure accurate power-on and power-off and external power status detection, the problem of confusing power-on and power-off timing logic in the domain controller is solved, and the reliability and hostability of the domain controller are improved. Control the data integrity of the chip.

CN221860863UActive Publication Date: 2024-10-18FREETECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420117694.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-17
Publication Date
2024-10-18
Estimated Expiration
2034-01-17

AI Technical Summary

Technical Problem

The power-on and power-off timing logic of the main control chip, main primary power supply, and secondary power supply in the autonomous driving domain controller is chaotic, causing the domain controller to crash, hang up, and data to be easily tampered with, affecting its reliability.

Method used

A power-on and power-off control circuit is designed, including a primary power supply component, a secondary power supply component, a power detection circuit, a timing control circuit and an enabling logic component. The timing control circuit delays the generation of power-on and power-off signals to ensure accurate power-on and power-off of the power supply. , and detect the status of the external power supply through the power detection circuit, and generate the corresponding enable signal to ensure the stability of the power supply.

Benefits of technology

It effectively solves the problem of crashes and data tampering caused by chaotic power-on and power-off timing logic, and improves the reliability of the domain controller and the data integrity of the main control chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221860863U_ABST
    Figure CN221860863U_ABST
Patent Text Reader

Abstract

The utility model relates to a power-on and power-off control circuit. The power-on and power-off control circuit comprises a primary power supply assembly, a secondary power supply assembly, a power supply detection circuit, a time sequence control circuit, an enabling logic assembly and a communication assembly, the communication component is used for generating power-on and power-off signals according to the power-on The time sequence control circuit is used for delaying a first preset time to generate a secondary power supply control signal and delaying a second preset time to generate a primary power supply control signal according to the power-on and power-off signal; the first-stage power supply assembly is used for powering on or powering off according to the power-on and power-off signal and the first-stage power supply control signal; the power supply detection circuit is used for detecting the state of an external power supply and generating an external power supply state signal; the enabling logic component is used for generating a secondary power supply enabling signal; the second-stage power supply assembly is used for powering on or powering off according to a second-stage power supply enable signal; according to the invention, the accuracy of the power-on and power-off sequential logic and the integrity of the data of the main control chip can be ensured, and the reliability of the domain controller is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power supply power-on, and in particular to a power-on and power-off control circuit. Background Art

[0002] With the rapid development of in-vehicle electronic technology, the automotive field has put forward higher requirements on the reliability of autonomous driving domain controllers. Among them, the accuracy of the multi-level power supply inside the autonomous driving domain controller and the power-on and power-off timing logic of the main control chip are particularly important for improving the reliability of the domain controller.

[0003] In the prior art, the main control chip, secondary power supply and primary power supply inside the autonomous driving domain controller have uncontrollable power-on and power-off timing logic, that is, the power-on and power-off timing logic is chaotic, which causes the domain controller to freeze or hang, and the data is easily tampered with, and thus the reliability of the domain controller cannot be ensured, that is, the reliability of the domain controller is low.

[0004] With regard to the problem in the prior art that the reliability of the domain controller is low due to the confusion of power-on and power-off logic, no effective solution has been proposed yet. Utility Model Content

[0005] Based on this, it is necessary to provide a power-on and power-off control circuit to address the above technical issues.

[0006] The present application provides a power-on and power-off control circuit, which includes: a primary power supply component, a secondary power supply component, a power supply detection circuit, a timing control circuit, an enabling logic component, and a communication component;

[0007] The communication component is connected to the main control chip, the timing control circuit and the first-level power supply component respectively, and is used to generate power-on and power-off signals according to the power-on and power-off instructions, and transmit the power-on and power-off signals to the timing control circuit and the first-level power supply component;

[0008] The timing control circuit is connected to the primary power supply component and the enabling logic component respectively, and is used to generate a secondary power supply control signal by delaying the first preset time and generating a primary power supply control signal by delaying the second preset time according to the upper and lower power signals; transmit the primary power supply control signal to the primary power supply component, and transmit the secondary power supply control signal to the enabling logic component;

[0009] The primary power supply component is connected to the external power supply, the secondary power supply component and the enabling logic component respectively, and is used to power on or off according to the power-on and power-off signals and the primary power supply control signal; when powering on, it supplies power to the secondary power supply component, generates a primary power supply status signal, and transmits the primary power supply status signal to the enabling logic component;

[0010] The power detection circuit is connected to the external power supply and the enabling logic component respectively, and is used to detect the state of the external power supply, generate an external power supply state signal, and transmit the external power supply state signal to the enabling logic component;

[0011] The enabling logic component is connected to the secondary power supply component, and is used to generate a secondary power supply enabling signal according to the primary power supply status signal, the external power supply status signal and the secondary power supply control signal, and transmit the secondary power supply enabling signal to the secondary power supply component;

[0012] The secondary power supply component is connected to the main control chip, and is used to power on or off according to the secondary power supply enable signal; and to supply power to the main control chip when powered on.

[0013] In one embodiment, the power detection circuit includes a voltage divider circuit, a hysteresis circuit and a first switch circuit;

[0014] The voltage divider circuit is connected to the external power supply and the hysteresis circuit respectively, and is used to transmit the divided external power supply to the hysteresis circuit;

[0015] The hysteresis circuit is connected to the first switch circuit and is used to generate a first switch control signal according to the divided external power supply;

[0016] The first switch circuit is connected to the enable logic component, and is used to generate an external power state signal according to the first switch control signal, and transmit the external power state signal to the enable logic component.

[0017] In one embodiment, the voltage divider circuit includes a first resistor and a second resistor; the hysteresis circuit includes a comparator, a third resistor, a fourth resistor, a fifth resistor and a sixth resistor; the first switch circuit includes a first switch tube and a seventh resistor;

[0018] One end of the first resistor is connected to the external power supply, and the other end of the first resistor is connected to the negative input terminal of the comparator;

[0019] One end of the second resistor is connected to a connection point between the first resistor and the negative input terminal of the comparator, and the other end of the second resistor is grounded;

[0020] The positive input terminal of the comparator is connected to the output terminal of the comparator through the third resistor;

[0021] One end of the fourth resistor is connected to the positive input terminal of the comparator, and the other end of the fourth resistor is connected to the first external DC power supply through the sixth resistor;

[0022] One end of the fifth resistor is connected to a connection point between the fourth resistor and the sixth resistor, and the other end of the fifth resistor is grounded;

[0023] A first end of the first switch tube is connected to the output end of the comparator, a second end of the first switch tube is connected to the enable logic component, and a third end of the first switch tube is grounded;

[0024] One end of the seventh resistor is connected to the second end of the first switch tube, and the other end of the seventh resistor is connected to the second external DC power supply.

[0025] In one of the embodiments, the timing control circuit includes a secondary power timing control circuit and a primary power timing control circuit;

[0026] The secondary power timing control circuit is connected to the communication component, the primary power timing control circuit and the enabling logic component respectively, and is used to generate a secondary power control signal by delaying the first preset time according to the up and down power signals, and transmit the secondary power control signal to the primary power timing control circuit and the enabling logic component respectively;

[0027] The first-level power timing control circuit is connected to the first-level power component, and is used to delay the third preset time to generate a first-level power control signal according to the second-level power control signal, and transmit the first-level power control signal to the first-level power component.

[0028] In one embodiment, the secondary power supply timing control circuit includes a first delay circuit, a second switch circuit and a third switch circuit;

[0029] The first delay circuit is used to transmit the delayed power-on and power-off signals as the second switch control signal to the second switch circuit;

[0030] The second switch circuit is used to generate a third switch control signal according to the second switch control signal, and transmit the third switch control signal to the third switch circuit;

[0031] The third switch circuit is used to generate a secondary power control signal according to the third switch control signal, and transmit the secondary power control signal to the primary power timing control circuit and the enable logic component respectively.

[0032] In one embodiment, the first delay circuit includes an eighth resistor and a first capacitor; the second switch circuit includes a second switch tube and a ninth resistor; the third switch circuit includes a third switch tube and a tenth resistor;

[0033] One end of the eighth resistor is connected to the communication component, and the other end of the eighth resistor is connected to the first end of the second switch tube;

[0034] One end of the first capacitor is connected to a connection point between the eighth resistor and the first end of the second switch tube, and the other end of the first capacitor is connected to a third end of the second switch tube;

[0035] The second end of the second switch tube is connected to the first end of the third switch tube, and the third end of the second switch tube is grounded;

[0036] One end of the ninth resistor is connected to the second end of the second switch tube, and the other end of the ninth resistor is connected to the third external DC power supply;

[0037] The second end of the third switch tube is connected to the enable logic component and the first-level power supply timing control circuit respectively, and the third end of the third switch tube is grounded;

[0038] One end of the tenth resistor is connected to the second end of the third switch tube, and the other end of the tenth resistor is connected to the fourth external DC power supply.

[0039] In one embodiment, the first-level power supply timing control circuit includes a second delay circuit, a fourth switch circuit and a fifth switch circuit.

[0040] The second delay circuit is connected to the secondary power supply timing control circuit, and is used to transmit the delayed secondary power supply control signal as the fourth switch control signal to the fourth switch circuit;

[0041] The fourth switch circuit is used to generate a fifth switch control signal according to the fourth switch control signal, and transmit the fifth switch control signal to the fifth switch circuit;

[0042] The fifth switch circuit is used to generate a primary power control signal according to the fifth switch control signal, and transmit the signal to the primary power supply component.

[0043] In one embodiment, the second delay circuit includes an eleventh resistor and a second capacitor; the fourth switch circuit includes a fourth switch tube and a twelfth resistor; the fifth switch circuit includes a fifth switch tube and a thirteenth resistor;

[0044] One end of the eleventh resistor is connected to the secondary power supply timing control circuit, and the other end of the eleventh resistor is connected to the first end of the fourth switch tube;

[0045] One end of the second capacitor is connected to a connection point between the eleventh resistor and the first end of the fourth switch tube, and the other end of the second capacitor is connected to a third end of the fourth switch tube;

[0046] The second end of the fourth switch tube is connected to the first end of the fifth switch tube through the twelfth resistor, and the third end of the fourth switch tube is grounded;

[0047] The third end of the fifth switch tube is connected to the external power supply, and the second end of the fifth switch tube is connected to the primary power supply component;

[0048] One end of the thirteenth resistor is connected to the third end of the fifth switch tube, and the other end of the thirteenth resistor is connected to a connection point between the twelfth resistor and the first end of the fifth switch tube.

[0049] In one embodiment, the power-on and power-off control circuit further includes a first diode and a second diode;

[0050] The positive electrode of the first diode is connected to the primary power supply timing control circuit, and the negative electrode of the first diode is connected to the primary power supply component;

[0051] The anode of the second diode is connected to the communication component, and the cathode of the second diode is connected to the connection point of the primary power supply component.

[0052] In one embodiment, the enabling logic component includes an AND gate circuit.

[0053] The above-mentioned power-on and power-off control circuit includes: a primary power supply component, a secondary power supply component, a power supply detection circuit, a timing control circuit, an enabling logic component and a communication component; wherein the communication component is respectively connected to the main control chip, the timing control circuit and the primary power supply component, and is used to generate power-on and power-off signals according to the power-on and power-off instructions, and transmit the power-on and power-off signals to the timing control circuit and the primary power supply component; the timing control circuit is respectively connected to the primary power supply component and the enabling logic component, and is used to generate a secondary power supply control signal by delaying a first preset time and a primary power supply control signal by delaying a second preset time according to the power-on and power-off signals; transmit the primary power supply control signal to the primary power supply component, and transmit the secondary power supply control signal to the enabling logic component; the primary power supply component is respectively connected to the external power supply, the secondary power supply component and the enabling logic component, and is used to power on or off according to the power-on and power-off signals and the primary power supply control signal; when powering on, the secondary power supply component is informed of the power supply control signal. The invention provides power supply and generates a primary power status signal, and transmits the primary power status signal to the enabling logic component; the power detection circuit is respectively connected to the external power supply and the enabling logic component, and is used to detect the status of the external power supply, generate an external power status signal, and transmit the external power status signal to the enabling logic component; the enabling logic component is connected to the secondary power supply component, and is used to generate a secondary power enable signal according to the primary power status signal, the external power status signal and the secondary power control signal, and transmit the secondary power enable signal to the secondary power supply component; the secondary power supply component is connected to the main control chip, and is used to power on or off according to the secondary power enable signal; and supply power to the main control chip when powering on; the present application can ensure the accuracy of the power-on and power-off timing logic, avoid the problem of domain controller freezing or hanging up due to the confusion of the power-on and power-off timing logic, and can ensure the integrity and availability of the main control chip data, thereby improving the reliability of the domain controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0055] Figure 1 This is an overall structural diagram of an upper and lower power control circuit in an embodiment;

[0056] Figure 2 is a circuit schematic diagram of a power detection circuit in an embodiment;

[0057] Figure 3 is a circuit schematic diagram of a timing control circuit in an embodiment;

[0058] Figure 4This is an overall structural diagram of the power-on and power-off control circuit in another embodiment;

[0059] Figure 5 This is an overall structural diagram of an upper and lower power control circuit in a specific embodiment;

[0060] Figure 6 This is a schematic diagram of a power-on process of a domain controller in a specific embodiment;

[0061] Figure 7 The figure is a schematic diagram of the power-off process of a domain controller in a specific embodiment.

[0062] Description of reference numerals:

[0063] 100, primary power supply component; 200, secondary power supply component; 300, power supply detection circuit; 400, timing control circuit; 500, enabling logic component; 600, communication component; 700, main control chip; 310, voltage divider circuit; 320, hysteresis circuit; 330, first switch circuit; 410, secondary power supply timing control circuit; 420, primary power supply timing control circuit; 411, first delay circuit; 412, second switch circuit; 413, third switch circuit; 421, second delay circuit; 422, fourth switch circuit; 423, fifth switch circuit. DETAILED DESCRIPTION

[0064] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0065] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0066] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0067] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

[0068] It can be understood that “at least one” means one or more, “plurality” means two or more, and “at least a portion of an element” means a part or all of an element.

[0069] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0070] In one embodiment, Figure 1 As shown, Figure 1 1 is an overall structural diagram of an up and down power control circuit in an embodiment; the up and down power control circuit includes: a primary power supply component 100, a secondary power supply component 200, a power supply detection circuit 300, a timing control circuit 400, an enabling logic component 500 and a communication component 600;

[0071] The communication component 600 is connected to the main control chip 700, the timing control circuit 400 and the first-level power supply component 100 respectively, and is used to generate up and down power signals according to the up and down power instructions, and transmit the up and down power signals to the timing control circuit 400 and the first-level power supply component 100;

[0072] The timing control circuit 400 is connected to the primary power supply component 100 and the enabling logic component 500 respectively, and is used to generate a secondary power control signal by delaying the first preset time and generating a primary power control signal by delaying the second preset time according to the upper and lower power signals; transmit the primary power control signal to the primary power supply component 100, and transmit the secondary power control signal to the enabling logic component 500;

[0073] The primary power supply component 100 is respectively connected to the external power supply, the secondary power supply component 200 and the enabling logic component 500, and is used to power on or off according to the power-on and power-off signals and the primary power supply control signal; when powered on, it supplies power to the secondary power supply component 200, generates a primary power supply status signal, and transmits the primary power supply status signal to the enabling logic component 500;

[0074] The power detection circuit 300 is connected to the external power supply and the enabling logic component 500, respectively, for detecting the state of the external power supply, generating an external power supply state signal, and transmitting the external power supply state signal to the enabling logic component 500;

[0075] The enabling logic component 500 is connected to the secondary power supply component 200, and is used to generate a secondary power supply enabling signal according to the primary power supply status signal, the external power supply status signal and the secondary power supply control signal, and transmit the secondary power supply enabling signal to the secondary power supply component 200;

[0076] The secondary power supply assembly 200 is connected to the main control chip 700 and is used to power on or off according to the secondary power supply enable signal; and to supply power to the main control chip 700 when powered on.

[0077] Among them, the communication component 600 can be but is not limited to a CAN transceiver, which is used to exchange information with the main control chip 700; it is also used to exchange information with the external control chip based on the CAN bus, and generate power-on and power-off signals according to the power-on and power-off instructions sent by the external control chip; wherein the power-on and power-off instructions are wake-up signals, generated by the external control chip, and transmitted to the communication component 600 through the CAN bus to realize the control of the power-on and power-off status of the domain controller; wherein the external control chip can be any chip that can control the power-on or power-off of the domain controller, and is not limited here; the power-on and power-off signals include power-on signals and power-off signals; wherein the power-on signal is a high-level signal, and the power-off signal is a low-level signal; for example, when the communication component 600 receives the power-on and power-off instructions, i.e., the wake-up signal, the communication component 600 generates a power-on signal, i.e., a high-level signal; when the communication component 600 does not receive the power-on and power-off instructions, i.e., the wake-up signal, the communication component 600 generates a power-off signal, i.e., a low-level signal.

[0078] Among them, the timing control circuit 400 is used to generate a secondary power control signal by delaying the first preset time according to the power on and off signals, and to generate a primary power control signal by delaying the second preset time, that is, to realize the power on and off timing logic control; wherein, the first preset time needs to ensure that the main control chip 700 completes the storage of memory data before powering off; the second preset time needs to ensure that the main control chip 700 completes the storage of memory data before powering off, and ensures that the secondary power supply component 200 completes powering off. The primary power control signal includes a primary power off control signal and a primary power on control signal; wherein, the primary power off control signal is a low level signal; the primary power on control signal is a high level signal; the secondary power control signal includes a secondary power off control signal and a secondary power on control signal; wherein, the secondary power off control signal is a low level signal; the secondary power on control signal is a high level signal.

[0079] The primary power supply component 100 includes at least a primary power supply chip, which is used to convert the external power supply into a primary power supply when powered on, so as to supply power to the secondary power supply component 200; wherein the external power supply can be provided by, but is not limited to, an external device, such as an external battery, which is not limited here; the primary power supply component 100 is also used to power on or off according to the up and down power signals and the primary power control signal; for example, when the up and down power signals are power-on signals, i.e., high-level signals, and / or the primary power control signal is a primary power power-on control signal, i.e., a high-level signal, the primary power supply component 100 is powered on; when the up and down power signals are When it is a power-off signal, i.e., a low-level signal, and the first-level power control signal is a first-level power-off control signal, i.e., a low-level signal, the first-level power component 100 is powered off; the first-level power component 100 is also used to generate a first-level power status signal; wherein the first-level power status signal includes a low-level signal and a high-level signal, which is used to characterize whether the first-level power component 100 is in a power-off state or a power-on state; for example, when the first-level power status signal is a low-level signal, it indicates that the first-level power component 100 is in a power-off state; when the first-level power status signal is a high-level signal, it indicates that the first-level power component 100 is in a power-on state.

[0080] Among them, the power supply detection circuit 300 is used to detect the state of the external power supply, that is, to detect whether the external power supply is in a low-voltage state, and then generate a corresponding external power supply state signal according to the state of the external power supply; wherein the external power supply state signal includes a low-level signal and a high-level signal; when the external power supply is normal, the external power supply state signal is a high-level signal; when the external power supply is in a low-voltage state, the external power supply state signal is a low-level signal; further, when the external power supply is in a low-voltage state, according to the external power supply state signal, that is, the low-level signal, the secondary power supply component 200 can be controlled to power off quickly to avoid failures such as freezing or hanging of the main control chip 700, so as to ensure the safety of the main control chip 700.

[0081] Among them, the enabling logic component 500 is used to generate a secondary power enable signal according to the primary power status signal, the external power status signal and the secondary power control signal; wherein the secondary power enable signal includes a high level signal and a low level signal, which is used to control the secondary power component 200 to power on or off; for example, when the primary power status signal is a high level signal, the external power status signal is a high level signal and the secondary power control signal is a secondary power power-on control signal, the secondary power enable signal is a high level signal, which controls the secondary power component 200 to power on; when the primary power status signal is a low level signal, or the external power status signal is a low level signal, or the secondary power control signal is a secondary power power-off control signal, the secondary power enable signal is a low level signal, which controls the secondary power component 200 to power off.

[0082] Among them, the secondary power supply component 200 includes at least a secondary power supply chip, which is used to power on or off according to the secondary power supply enable signal; it is also used to convert the primary power supply into the secondary power supply to supply power to the main control chip 700 when powering on.

[0083] Specifically, if the power detection circuit 300 detects that the external power supply is in a normal state, that is, the external power state signal is a high-level signal; when the communication component 600 receives the power-on and power-off instructions sent by the external control chip, that is, the wake-up signal, the communication component 600 generates a power-on signal, that is, a high-level signal, according to the wake-up signal, and transmits the power-on signal to the first-level power supply component 100 and the timing control circuit 400 respectively; at this time, the first-level power supply component 100 enters the power-on state, and the first-level power state signal is a high-level signal; the timing control circuit 400 generates a second-level power supply power-on control signal, that is, a high-level signal; the enable logic component 500 generates a second-level power supply enable signal, that is, a high-level signal, according to the first-level power supply state signal, that is, a high-level signal, the external power supply state signal, that is, a high-level signal, and the second-level power supply power-on control signal, that is, a high-level signal, to control the second-level power supply component 200 to enter the power-on state; further, the second-level power supply component 200 supplies power to the main control chip 700, and the main control chip 700 enters the power-on state. When the communication component 600 does not receive the power-on and power-off instructions, i.e., the wake-up signal, sent by the external control chip, the communication component 600 generates a power-off signal, i.e., a low-level signal, and transmits the power-off signal to the primary power supply component 100 and the timing control circuit 400 respectively; at this time, the timing control circuit 400 delays the first preset time, delays the power-off time of the secondary power supply component 200, ensures that the main control chip 700 completes the storage of the memory data, and then generates the secondary power supply power-off control signal, i.e., a low-level signal, and transmits the secondary power supply power-off control signal, i.e., a low-level signal. The level signal is transmitted to the enabling logic component 500, and the enabling logic component 500 generates a secondary power enable signal, i.e., a low level signal, according to the secondary power supply power-off control signal, i.e., a low level signal, to control the secondary power supply component 200 to enter a power-off state; further, after the secondary power supply component 200 is powered off, the timing control circuit 400 delays the second preset time to generate a primary power supply power-off control signal, to control the primary power supply component 100 to complete power-off; at this point, the main control chip 700, the secondary power supply component 200 and the primary power supply component 100 are powered off.

[0084] Specifically, if the power detection circuit 300 detects that the external power supply is in a low voltage state, that is, the external power state signal is a low level signal, at this time, because the external power state signal is a low level signal, regardless of whether the external control chip sends a power-on and power-off instruction, that is, a wake-up signal, to the communication component 600, the enabling logic component 500 generates a secondary power enable signal, that is, a low level signal, to control the secondary power supply component 200 to enter the power-off state, so as to avoid the risk of the main control chip 700 freezing or hanging up. It should be noted that when the external power supply is in a low voltage state and the primary power supply component 100 is in a power-on state, the primary power generated by the primary power supply component 100 is insufficient to supply power to the secondary power supply component 200, and then the secondary power supply component 200 cannot increase the normal power supply voltage for the main control chip 700, which is easy to cause the main control chip 700 to freeze or hang up, and affect the performance of the main control chip 700. Based on this, it is necessary to quickly control the secondary power supply component 200 to enter the power-off state when the external power supply is in a low voltage state, so that the main control chip 700 can be powered off normally.

[0085] In this embodiment, based on the timing control circuit 400, the accuracy of the power-on and power-off timing logic of the main control chip 700, the secondary power supply component 200 and the primary power supply component 100 can be ensured, which effectively solves the problem of data being easily tampered with due to the confusion of the power-on and power-off timing logic, and further improves the reliability of the domain controller; based on the power supply detection circuit 300, it can ensure that when the external power supply is in a low-voltage state, the main control chip 700 can avoid freezing or hanging up, thereby improving the reliability of the main control chip 700 and further improving the reliability of the domain controller.

[0086] In one embodiment, Figure 2 As shown, Figure 2 3 is a circuit schematic diagram of a power detection circuit in an embodiment; the power detection circuit 300 includes a voltage divider circuit 310, a hysteresis circuit 320 and a first switch circuit 330;

[0087] The voltage divider circuit 310 is connected to the external power supply VBAT and the hysteresis circuit 320 respectively, and is used to transmit the divided external power supply to the hysteresis circuit 320;

[0088] The hysteresis circuit 320 is connected to the first switch circuit 330 and is used to generate a first switch control signal according to the divided external power supply;

[0089] The first switch circuit 330 is connected to the enable logic component 500 , and is used to generate an external power state signal LVD_OUT according to the first switch control signal, and transmit the external power state signal LVD_OUT to the enable logic component 500 .

[0090] Preferably, the voltage divider circuit 310 includes a first resistor R3 and a second resistor R4; the hysteresis circuit 320 includes a comparator U10, a third resistor R5, a fourth resistor R12, a fifth resistor R6 and a sixth resistor R13; the first switch circuit 330 includes a first switch tube Q1 and a seventh resistor R7;

[0091] One end of the first resistor R3 is connected to the external power supply VBAT, and the other end of the first resistor R3 is connected to the negative input terminal U- of the comparator U10;

[0092] One end of the second resistor R4 is connected to a connection point of the first resistor R3 and the negative input terminal U- of the comparator U10, and the other end of the second resistor R4 is grounded;

[0093] The positive input terminal U+ of the comparator U10 is connected to the output terminal Uo of the comparator U10 through the third resistor R5;

[0094] One end of the fourth resistor R12 is connected to the positive input terminal U+ of the comparator U10, and the other end of the fourth resistor R12 is connected to the first external DC power supply VCC1 through the sixth resistor R13;

[0095] One end of the fifth resistor R6 is connected to a connection point between the fourth resistor R12 and the sixth resistor R13, and the other end of the fifth resistor R6 is grounded;

[0096] A first terminal of the first switch tube Q1 is connected to the output terminal Uo of the comparator U10, a second terminal of the first switch tube Q1 is connected to the enabling logic component 500, and a third terminal of the first switch tube Q1 is grounded;

[0097] One end of the seventh resistor R7 is connected to the second end of the first switch tube Q1 , and the other end of the seventh resistor R7 is connected to the second external DC power source VCC2 .

[0098] Wherein, the voltage divider circuit 310 is used to divide the external power supply VBAT to obtain the divided external power supply; the hysteresis circuit 320 is used to compare the divided external power supply with the reference voltage to generate a first switch control signal; wherein, the reference voltage needs to meet the electrical performance test requirements of the upper and lower power control circuits, and the specific voltage value is not limited here; the first switch control signal includes a high level signal and a low level signal; the first switch circuit 330 is used to generate an external power supply state signal LVD_OUT according to the first switch control signal; the state of the first switch circuit 330 includes an on state and an off state; for example, when the comparator U 10 is greater than the voltage U+ of the positive input terminal of the comparator U10, that is, U->U+, the first switch control signal is a low level signal; according to the first switch control signal, that is, the low level signal, the first switch circuit 330 is in a closed state, and the external power supply state signal LVD_OUT is generated as a high level signal; when the voltage U- of the negative input terminal of the comparator U10 is less than the voltage U+ of the positive input terminal of the comparator U10, that is, U-<U+, the first switch control signal is a high level signal; according to the first switch control signal, that is, the high level signal, the first switch circuit 330 is in a conductive state, and the external power supply state signal LVD_OUT is generated as a low level signal.

[0099] Among them, the first resistor R3 and the second resistor R4 are both voltage-dividing resistors; the specific resistance values ​​of the first resistor R3 and the second resistor R4 need to be set according to the actual voltage-dividing requirements, and the embodiments of the present application do not make specific limitations; the comparator U10 is a hysteresis comparator; the voltage of the negative input terminal U- of the comparator U10 is equal to the external power supply after voltage division; the voltage of the positive input terminal U+ of the comparator U10 is equal to the reference voltage; the output terminal Uo of the comparator U10 is used to generate a first switch control signal according to the voltage of the negative input terminal U- of the comparator U10 and the voltage of the positive input terminal U+ of the comparator U10; the The third resistor R5 is a feedback resistor; the fourth resistor R12 is a current limiting resistor; the fifth resistor R6 and the sixth resistor R13 are bias voltage divider resistors of the positive input terminal U+ of the comparator U10; the first switch tube Q1 is a transistor; preferably, the first switch tube Q1 is an NPN type transistor; the first end of the first switch tube Q1 is the base of the transistor; the second end of the first switch tube Q1 is the collector of the transistor; the third end of the first switch tube Q1 is the emitter of the transistor; the state of the first switch tube Q1 includes an on state and an off state; the seventh resistor R7 is a reverse output pull-up resistor.

[0100] It should be noted that the specific resistance values ​​of the third resistor R5, the fourth resistor R12, the fifth resistor R6 and the sixth resistor R13 need to be set according to the performance of the actual hysteresis circuit 320 or the comparator U10, and the embodiment of the present application does not make any specific restrictions; the specific resistance value of the seventh resistor R7 needs to be set according to the actual performance of the first switch circuit 330, and the embodiment of the present application does not make any specific restrictions; the specific voltage value of the first external DC power supply VCC1 needs to be set according to the requirements of the actual hysteresis circuit 320, and the embodiment of the present application does not make any specific restrictions; the specific voltage value of the second external DC power supply VCC2 needs to be set according to the actual performance of the first switch circuit 330, and the embodiment of the present application does not make any specific restrictions.

[0101] For example, assuming that the first resistor R3 is 10kΩ, the second resistor R4 is 20kΩ, the third resistor R5 is 90kΩ, the fourth resistor R12 is 10kΩ, the fifth resistor R6 is 1kΩ, the sixth resistor R13 is 1kΩ, and the first external DC power supply VCC1 is 3.3V; based on the voltage division principle, the divided external power supply is calculated according to formula (1); the reference voltage is calculated according to formula (2); when the voltage of the external power supply VBAT starts to rise from 0V, at this time, the voltage of the negative input terminal U- of the comparator U10 is less than the voltage of the positive input terminal U+ of the comparator U10, that is, U-<U+, also That is, the external power supply after voltage division is less than the reference voltage, the output terminal Uo of the comparator outputs the first switch control signal as a high-level signal, the first switch tube Q1 is turned on, that is, the collector and emitter of the first switch tube are turned on and grounded, and at this time, the external power supply state signal LVD_OUT is pulled low, that is, a low-level signal, indicating that the external power supply is in a low-voltage state; when the voltage of the external power supply VBAT rises to greater than 6V, the voltage of the external power supply after voltage division is greater than 2V, and at this time, the voltage of the negative input terminal U- of the comparator U10 is greater than the voltage of the positive input terminal U+ of the comparator U10, that is, U->U+, that is, the voltage of the external power supply after voltage division is greater than the reference voltage, the output terminal Uo of the comparator outputs the first switch control signal as a low-level signal, and the first switch tube Q1 is turned off, that is, the collector and the emitter of the first switch tube are disconnected. At this time, the external power supply state signal LVD_OUT is pulled high through the seventh resistor R7, that is, a high-level signal, indicating that the external power supply is in a normal state; when the voltage of the external power supply VBAT starts to drop from 12V, the voltage of the negative input terminal U- of the comparator U10 is first greater than the voltage of the positive input terminal U+ of the comparator U10, that is, U->U+, that is, the voltage of the external power supply after voltage division is first greater than the reference voltage, and the output terminal Uo of the comparator outputs The first switch control signal is a low-level signal, and then the external power supply state signal LVD_OUT is a high-level signal; until the voltage of the external power supply VBAT drops to less than 5.4V, that is, the voltage of the external power supply after voltage division is less than 1.8V, at this time, the voltage of the negative input terminal U- of the comparator U10 is less than the voltage of the positive input terminal U+ of the comparator U10, that is, U-<U+, that is, the external power supply after voltage division is less than the reference voltage, and the output terminal Uo of the comparator outputs the first switch control signal as a high-level signal, and then the external power supply state signal LVD_OUT is a low-level signal, indicating that the external power supply enters a low-voltage state.

[0102] U-=VBAT*(R4 / (R3+R4)) (1)

[0103] U+=VCC1*(R6 / (R6+R13))+Uo*(R12 / (R12+R5)) (2)

[0104] In this embodiment, based on the voltage divider circuit 310, the hysteresis circuit 320 and the first switch circuit 330, the state of the external power supply VBAT can be accurately detected, and then a corresponding external power supply state signal is generated to indicate whether the current external power supply VBAT is in a low voltage state, which lays a foundation for avoiding the main control chip 700 from freezing or hanging up, and further lays a foundation for further improving the reliability of the domain controller.

[0105] In one embodiment, Figure 3 As shown, Figure 3 It is a circuit schematic diagram of a timing control circuit in an embodiment; the timing control circuit 400 includes a secondary power timing control circuit 410 and a primary power timing control circuit 420;

[0106] The secondary power timing control circuit 410 is respectively connected to the communication component 600, the primary power timing control circuit 420 and the enabling logic component 500, and is used to generate a secondary power control signal PWR2_CS by delaying the first preset time according to the upper and lower electrical signals INH, and transmit the secondary power control signal PWR2_CS to the primary power timing control circuit 420 and the enabling logic component 500 respectively;

[0107] The primary power timing control circuit 420 is connected to the primary power component 100 , and is used to generate a primary power control signal PWR1_CS by delaying a third preset time according to the secondary power control signal PWR2_CS, and transmit the primary power control signal PWR1_CS to the primary power component 100 .

[0108] Preferably, see Figure 4 , the power-on and power-off control circuit also includes a first diode D1 and a second diode D2;

[0109] The anode of the first diode D1 is connected to the primary power supply timing control circuit 420, and the cathode of the first diode D1 is connected to the primary power supply component 100;

[0110] The anode of the second diode D2 is connected to the communication component 600 , and the cathode of the second diode D2 is connected to the connection point of the primary power supply component 100 .

[0111] The enabling logic component 500 includes an AND gate circuit U5 .

[0112] Among them, the up and down power signals INH include a power-down signal and a power-on signal; wherein the power-down signal is a low-level signal; the power-on signal is a high-level signal; the primary power control signal PWR1_CS includes a primary power power-down control signal and a primary power power-on control signal; wherein the primary power power-down control signal is a low-level signal; the primary power power-on control signal is a high-level signal; the secondary power control signal PWR2_CS includes a secondary power power-down control signal and a secondary power power-on control signal; wherein the secondary power power-down control signal is a low-level signal; the secondary power power-on control signal is a high-level signal. The third preset time needs to ensure that after the secondary power supply component 200 completes power-off, the primary power control signal PWR1_CS is generated to control the primary power supply component 100 to power off; it can be understood that the third preset time is equal to the difference between the second preset time and the first preset time.

[0113] Among them, the first diode D1 and the second diode D2 are used to enable the primary power supply component 100 to be powered on or off according to the primary power supply control signal PWR1_CS and the up and down power signal INH. For example, when the up and down power signal INH is a power-on signal, i.e., a high-level signal, and / or the primary power supply control signal PWR1_CS is a high-level signal, the primary power supply component 100 is powered on; when the up and down power signal INH is a power-off signal, i.e., a low-level signal, and the primary power supply control signal PWR1_CS is a low-level signal, the primary power supply component 100 is powered off.

[0114] Among them, the AND gate circuit U5 is used to generate a secondary power enable signal according to the primary power state signal, the external power state signal and the secondary power control signal PWR2_CS, and control the power on or off of the secondary power supply component 200. For example, when the primary power state signal, the external power state signal and the secondary power control signal PWR2_CS are all high-level signals, the generated secondary power enable signal is a high-level signal, which controls the power on of the secondary power supply component 200; when any one or more of the primary power state signal, the external power state signal and the secondary power control signal PWR2_CS are low-level signals, the generated secondary power enable signal is a low-level signal, which controls the power off of the secondary power supply component 200.

[0115] Specifically, if the power detection circuit 300 detects that the external power supply VBAT is in a normal state, that is, the external power status signal is a high-level signal; when the communication component 600 receives the power-on and power-off instructions, that is, the wake-up signal, the communication component 600 generates a power-on signal, that is, a high-level signal, according to the wake-up signal, and transmits the power-on signal to the first-level power supply component 100 and the second-level power supply timing control circuit 410 respectively; at this time, the first-level power supply component 100 enters the power-on state, and the first-level power status signal is a high-level signal; the second-level power supply timing control circuit 410 delays the first preset time to generate a second-level power supply power-on control signal, that is, a high-level signal; the enable logic component 500, that is, the AND gate circuit U5, generates a second-level power enable signal, that is, a high-level signal, according to the first-level power status signal, that is, the high-level signal, the external power status signal, that is, the high-level signal, and the second-level power supply power-on control signal, that is, the high-level signal, to control the second-level power supply component 200 to enter the power-on state. When the communication component 600 does not receive the power-on and power-off instructions, i.e., the wake-up signal, the communication component 600 generates a power-off signal, i.e., a low-level signal, and transmits the power-off signal to the primary power supply component 100 and the secondary power supply timing control circuit 410 respectively; at this time, the secondary power supply timing control circuit 410 delays the first preset time to ensure that after the main control chip 700 completes the memory data storage, it generates a secondary power supply power-off control signal, i.e., a low-level signal, and transmits the secondary power supply power-off control signal to the enabling logic component 500 and the primary power supply timing control circuit 420 respectively; the enabling logic component 500, i.e., the AND gate circuit U5, generates a secondary power supply enable signal, i.e., a low-level signal, according to the secondary power supply power-off control signal, i.e., the low-level signal, to control the secondary power supply component 200 to enter the power-off state; at the same time, the primary power supply timing control circuit 420 delays the third preset time to ensure that after the secondary power supply component 200 completes the power-off, it generates a primary power supply power-off control signal to control the primary power supply component 100 to complete the power-off.

[0116] In this embodiment, based on the secondary power supply timing control circuit 410 and the primary power supply timing control circuit 420, when the external power supply VBAT is in a normal power supply state, the accuracy of the power-on and power-off timing logic can be ensured, and the problem of data tampering caused by the confusion of the power-on and power-off timing logic can be effectively avoided, thereby further improving the reliability of the domain controller; based on the first diode D1 and the second diode D2, the primary power supply component 100 can be reliably powered on or off according to the primary power supply control signal PWR1_CS and the power-on and power-off signal INH; based on the enable logic component 500, namely the AND gate circuit U5, the primary power supply status signal, the external power supply status signal and the secondary power supply control signal PWR2_CS can be comprehensively considered to generate a corresponding secondary power supply enable signal to ensure that the secondary power supply component 200 can be reliably powered on or off.

[0117] In one embodiment, Figure 3 As shown, Figure 34 is a circuit schematic diagram of a timing control circuit in an embodiment; the secondary power timing control circuit 410 includes a first delay circuit 411, a second switch circuit 412 and a third switch circuit 413;

[0118] The first delay circuit 411 is used to transmit the delayed upper and lower power signals INH as the second switch control signal to the second switch circuit 412;

[0119] The second switch circuit 412 is used to generate a third switch control signal according to the second switch control signal, and transmit the third switch control signal to the third switch circuit 413;

[0120] The third switch circuit 413 is used to generate a secondary power control signal PWR2_CS according to the third switch control signal, and transmit the secondary power control signal PWR2_CS to the primary power timing control circuit 420 and the enable logic component 500 respectively.

[0121] Preferably, the first delay circuit 411 includes an eighth resistor R9 and a first capacitor C1; the second switch circuit 412 includes a second switch tube Q2 and a ninth resistor R10; the third switch circuit 413 includes a third switch tube Q3 and a tenth resistor R11;

[0122] One end of the eighth resistor R9 is connected to the communication component 600, and the other end of the eighth resistor R9 is connected to the first end of the second switch tube Q2;

[0123] One end of the first capacitor C1 is connected to a connection point between the eighth resistor R9 and the first end of the second switch tube Q2, and the other end of the first capacitor C1 is connected to a third end of the second switch tube Q2;

[0124] The second end of the second switch tube Q2 is connected to the first end of the third switch tube Q3, and the third end of the second switch tube Q2 is grounded;

[0125] One end of the ninth resistor R10 is connected to the second end of the second switch tube Q2, and the other end of the ninth resistor R10 is connected to the third external DC power supply VCC3;

[0126] The second end of the third switch tube Q3 is connected to the enabling logic component 500 and the first-level power supply timing control circuit 420 respectively, and the third end of the third switch tube Q3 is grounded;

[0127] One end of the tenth resistor R11 is connected to the second end of the third switch tube Q3 , and the other end of the tenth resistor R11 is connected to the fourth external DC power source VCC4 .

[0128] Among them, the first delay circuit 411 is used to generate a second switch control signal according to the first preset time, thereby controlling the on or off time of the second switch circuit 412, and finally achieving the effect of delaying the power-on or power-off of the secondary power supply component 200; the second switch control signal and the third switch control signal both include high-level signals and low-level signals; the states of the second switch circuit 412 and the third switch circuit 413 both include an on state and an off state.

[0129] Among them, the eighth resistor R9 and the first capacitor C1 constitute a first delay circuit 411, and the first preset time can be adjusted by adjusting the resistance of the eighth resistor R9 and / or the capacitance of the first capacitor C1; the first preset time is recorded as t1, t1=-R9*C1*ln0.05; wherein, the first capacitor C1 has a charging and discharging characteristic; the resistance of the eighth resistor R9 and the capacitance of the first capacitor C1 need to be set according to the time required for the main control chip 700 to actually complete the memory data storage, and the embodiment of the present application does not make specific limitations.

[0130] Among them, the second switch tube Q2 is a reverse circuit transistor, which is used to provide a reverse direction for the upper and lower electrical signals INH; preferably, the second switch tube Q2 is an NPN type transistor; the first end of the second switch tube Q2 is the base of the transistor; the second end of the second switch tube Q2 is the collector of the transistor; the third end of the second switch tube Q2 is the emitter of the transistor; the state of the second switch tube Q2 includes an on state and an off state; the ninth resistor R10 is a reverse pull-up resistor.

[0131] Among them, the third switch tube Q3 is a transistor, used to generate the secondary power control signal PWR2_CS; preferably, the third switch tube Q3 is an NPN type transistor; the first end of the third switch tube Q3 is the base of the transistor; the second end of the third switch tube Q3 is the collector of the transistor; the third end of the third switch tube Q3 is the emitter of the transistor; the state of the third switch tube Q3 includes an on state and an off state; the tenth resistor R11 is a pull-up resistor of the secondary power control signal PWR2_CS.

[0132] It should be noted that the specific resistance values ​​of the ninth resistor R10 and the tenth resistor R11, and the voltage values ​​of the third external DC power supply VCC3 and the fourth external DC power supply VCC4 need to be set according to the performance of the secondary power supply timing control circuit 410, and the embodiment of the present application does not make specific limitations.

[0133] For example, assume that the eighth resistor R9 is 51kΩ, the first capacitor C1 is 47uF, the ninth resistor R10 is 10kΩ, and the tenth resistor R11 is 10kΩ; when the up and down electrical signals INH generated by the communication component 600 are down power signals, i.e., low-level signals, the first capacitor C1 is discharged through the eighth resistor R9. When the discharged voltage of the first capacitor C1 is lower than 0.6V, the second switch control signal is a low-level signal, which controls the second switch tube Q2 to be turned off, i.e., the collector and emitter of the second switch tube Q2 are disconnected, and the collector of the second switch tube Q2 is pulled high through the ninth resistor R10. At this time, the third switch control signal is a high-level signal, which controls the third switch tube Q3 to be turned on, i.e., the collector and emitter of the third switch tube Q3 are turned on and grounded, and the secondary power supply control signal PWR2_CS is pulled low, i.e., a low-level signal, and the secondary power supply component 200 enters the down power supply. state, the first preset time of power-off delay is 7.2ms; when the up and down power signals INH generated by the communication component 600 are power-on signals, i.e., high-level signals, the first capacitor C1 is charged through the eighth resistor R9, and when the voltage charged by the first capacitor C1 is higher than 0.6V, the second switch control signal is a high-level signal, which controls the second switch tube Q2 to be turned on, i.e., the collector and emitter of the second switch tube Q2 are turned on and grounded, and the collector of the second switch tube Q2 is pulled low. At this time, the third switch control signal is a low-level signal, which controls the third switch tube Q3 to be turned off, i.e., the collector and emitter of the third switch tube Q3 are disconnected, and the collector of the third switch tube Q3 is pulled high through the tenth resistor R11, i.e., the secondary power supply control signal PWR2_CS is pulled high, which is a high-level signal, and the secondary power supply component 200 enters the power-on state, and the first preset time of power-on delay is 0.2ms.

[0134] In this embodiment, based on the first delay circuit 411, the first preset time can be accurately delayed to generate the secondary power control signal PWR2_CS, thereby ensuring the accuracy and reliability of the power-on or power-off timing of the secondary power supply component 200, laying the foundation for improving the reliability of the main control chip 700, and further improving the reliability of the domain controller.

[0135] In one embodiment, Figure 3 As shown, Figure 3 4 is a circuit schematic diagram of a timing control circuit in an embodiment; the first-level power timing control circuit 420 includes a second delay circuit 421, a fourth switch circuit 422 and a fifth switch circuit 423,

[0136] The second delay circuit 421 is connected to the secondary power timing control circuit 410, and is used to transmit the delayed secondary power control signal PWR2_CS as the fourth switch control signal to the fourth switch circuit 422;

[0137] The fourth switch circuit 422 is used to generate a fifth switch control signal according to the fourth switch control signal, and transmit the fifth switch control signal to the fifth switch circuit 423;

[0138] The fifth switch circuit 423 is used to generate a first-level power control signal PWR1_CS according to the fifth switch control signal, and transmit the signal to the first-level power supply component 100 .

[0139] Preferably, the second delay circuit 421 includes an eleventh resistor R12 and a second capacitor C2; the fourth switch circuit 422 includes a fourth switch tube Q4 and a twelfth resistor R14; the fifth switch circuit 423 includes a fifth switch tube Q5 and a thirteenth resistor R13;

[0140] One end of the eleventh resistor R12 is connected to the secondary power supply timing control circuit 410, and the other end of the eleventh resistor R12 is connected to the first end of the fourth switch tube Q4;

[0141] One end of the second capacitor C2 is connected to a connection point between the eleventh resistor R12 and the first end of the fourth switch tube Q4, and the other end of the second capacitor C2 is connected to a third end of the fourth switch tube Q4;

[0142] The second end of the fourth switch tube Q4 is connected to the first end of the fifth switch tube Q5 through the twelfth resistor R14, and the third end of the fourth switch tube Q4 is grounded;

[0143] A third end of the fifth switch tube Q5 is connected to the external power supply VBAT, and a second end of the fifth switch tube Q5 is connected to the primary power supply assembly 100;

[0144] One end of the thirteenth resistor R13 is connected to the third end of the fifth switch tube Q5 , and the other end of the thirteenth resistor R13 is connected to a connection point between the twelfth resistor R14 and the first end of the fifth switch tube Q5 .

[0145] Among them, the second delay circuit 421 is used to generate a fourth switch control signal according to the third preset time, and then control the on or off time of the fourth switch circuit 422, so as to finally achieve the effect of delaying the power on or off of the first-level power supply component 100; the fourth switch control signal and the fifth switch control signal both include high-level signals and low-level signals; the states of the fourth switch circuit 422 and the fifth switch circuit 423 both include an on state and an off state.

[0146] Among them, the eleventh resistor R12 and the second capacitor C2 constitute a second delay circuit 421, and the third preset time can be adjusted by adjusting the resistance of the eleventh resistor R12 and / or the capacitance of the second capacitor C2; the third preset time is recorded as t2, t2=-R12*C2*ln0.82; wherein, the second capacitor C2 has a charging and discharging characteristic; the resistance of the eleventh resistor R12 and the capacitance of the second capacitor C2 need to be set according to the time required for the secondary power supply component 200 to complete power-off, and the embodiment of the present application does not make specific limitations.

[0147] Among them, the fourth switch tube Q4 is a triode, used to control the state of the fifth switch tube Q5; preferably, the fourth switch tube Q4 is an NPN type triode; the first end of the fourth switch tube Q4 is the base of the triode; the second end of the fourth switch tube Q4 is the collector of the triode; the third end of the fourth switch tube Q4 is the emitter of the triode; the state of the fourth switch tube Q4 includes an on state and an off state; the twelfth resistor R14 is a voltage divider resistor for controlling the state of the fifth switch tube Q5.

[0148] Among them, the fifth switch tube Q5 is a transistor, which is used to generate a first-level power control signal PWR1_CS; preferably, the fifth switch tube Q5 is a PNP type transistor; the first end of the fifth switch tube Q5 is the base of the transistor; the second end of the fifth switch tube Q5 is the collector of the transistor; the third end of the fifth switch tube Q5 is the emitter of the transistor; the state of the fifth switch tube Q5 includes an on state and an off state; the thirteenth resistor R13 is a voltage-dividing resistor for controlling the state of the fifth switch tube Q5.

[0149] It should be noted that the specific resistance values ​​of the twelfth resistor R14 and the thirteenth resistor R13 need to be set according to the performance of the fifth switch circuit 423, and the embodiment of the present application does not make any specific limitation.

[0150] For example, assume that the eleventh resistor R12 is 76kΩ and the second capacitor C2 is 47uF; when the up and down power signals INH generated by the communication component 600 are power-off signals, i.e., low-level signals, and the secondary power control signal PWR2_CS is a low-level signal, the second capacitor C2 discharges through the eleventh resistor R12. When the voltage of the second capacitor C2 discharged is lower than 0.6V, the fourth switch control signal is a low-level signal, and the fourth switch tube Q4 is turned off, i.e., the collector and emitter of the fourth switch tube Q4 are disconnected, so that the base of the fifth switch tube Q5 is suspended. At this time, the fifth switch tube Q5 is turned off, i.e., the collector and emitter of the fifth switch tube Q5 are disconnected, and the external power supply VBAT cannot supply power to the first-level power supply component 100 through the fifth switch tube Q5, i.e., the first-level power control signal PWR1_CS is a low-level signal, and the first-level power supply component 100 enters the power-off state. The third preset time of the delay is 3.5ms; when the up and down power signals INH generated by the communication component 600 are power-on signals, i.e., high-level signals, and the secondary power control signal PWR2_CS is a high-level signal, the second capacitor C2 is charged through the eleventh resistor R12. When the voltage charged by the second capacitor C2 is higher than 0.6V, the fourth switch control signal is a high-level signal, and the fourth switch tube Q4 is turned on, i.e., the collector and emitter of the fourth switch tube Q4 are turned on and grounded, so that the base of the fifth switch tube Q5 is grounded. At this time, the fifth switch tube Q5 is turned on, i.e., the collector and emitter of the fifth switch tube Q5 are turned on, and the external power supply VBAT supplies power to the first-level power supply component 100 through the fifth switch tube Q5, i.e., the first-level power control signal PWR1_CS is a high-level signal, and the first-level power supply component 100 enters the power-on state. The third preset time of the power-on delay is 0.1ms.

[0151] In this embodiment, based on the second delay circuit 421, the third preset time can be accurately delayed to generate the first-level power control signal PWR1_CS, thereby ensuring the accuracy and reliability of the power-on or power-off timing of the first-level power supply component 100, laying a foundation for improving the reliability of the power-on or power-off timing of the second-level power supply component 200, and further improving the reliability of the domain controller.

[0152] In a specific embodiment, the main control chip 700 can be but is not limited to a SOC (System on Chip), such as a TDA4VM chip; the first switch tube Q1, the second switch tube Q2, the third switch tube Q3 and the fourth switch tube Q4 can be but are not limited to PDTC114ET transistors; the fifth switch tube Q5 can be but is not limited to a PMBTA56-QR transistor.

[0153] In a specific embodiment, see Figure 5Optionally, the main control chip 700 is a SOC chip; the communication component 600 is a CAN transceiver, which is used to generate up and down electrical signals INH; the timing control circuit 400 generates a secondary power control signal PWR2_CS and a primary power control signal PWR1_CS according to the up and down electrical signals INH, and transmits the primary power control signal PWR1_CS to the first diode D1, and transmits the secondary power control signal PWR2_CS to the enabling logic component 500; the enabling logic component 500 is an AND gate circuit U5.

[0154] Specifically, the external control chip exchanges information with the CAN transceiver through the CAN bus, sends or stops sending power-on and power-off instructions, i.e., wake-up instructions, and controls the CAN transceiver to generate corresponding power-on and power-off signals INH; further, based on the power-on and power-off signals INH, through the timing control circuit 400, first delay the first preset time to generate the secondary power control signal PWR2_CS, and then delay the third preset time to generate the primary power control signal PWR1_CS, and transmit the primary power control signal PWR1_CS to the first diode D1; transmit the secondary power control signal PWR2_CS to the enable logic component 500, i.e., the AND gate circuit U5; further, according to the primary power status signal PG, the external power status signal LVD_OUT and the secondary power control signal PWR2_CS, control the AND gate circuit U5 to generate the corresponding secondary power enable signal, and control the secondary power supply component 200 to power on or off; according to the primary power control signal PWR1_CS and the power-on and power-off signals INH, respectively control the conduction or closing of the first diode D1 and the second diode D2, and thus control the power-on or power-off of the primary power supply component 100.

[0155] Specifically, the normal power-on process of the domain controller is as follows: Figure 6 The specific power-on process is as follows:

[0156] S601: The external power supply VBAT is normal, and the CAN transceiver receives power-on and power-off commands.

[0157] S602, the power-on and power-off signal INH is a power-on signal, i.e., a high-level signal, and the primary power supply component enters a power-on state.

[0158] S603, the primary power state signal PG, the external power state signal LVD_OUT and the secondary power control signal PWR2_CS are all high level signals.

[0159] S604, the secondary power supply enable signal is a high level signal, controlling the secondary power supply component to enter a power-on state.

[0160] S605, the SOC chip enters a power-on state.

[0161] S606: The domain controller is powered on.

[0162] Specifically, the normal power-off process of the domain controller is as follows: Figure 7 The specific power-off process is as follows:

[0163] S701: The external power supply VBAT is normal, but the CAN transceiver does not receive any power-on or power-off command.

[0164] S702, the SOC chip saves memory data.

[0165] S703, the up / down electric signal INH is a down electric signal, that is, a low level signal.

[0166] S704, the timing control circuit first delays the first preset time to generate the secondary power control signal PWR2_CS, and then delays the third preset time to generate the primary power control signal PWR1_CS.

[0167] S705, the secondary power supply enable signal is a low level signal, controlling the secondary power supply component to enter a power-off state.

[0168] S706: The secondary power supply component is powered off completely.

[0169] S707, the first-level power control signal PWR1_CS is a low-level signal, controlling the first-level power supply component to enter a power-off state.

[0170] S708: The domain controller is powered off.

[0171] The above-mentioned power-on and power-off control circuit, on the one hand, can ensure the accuracy of the power-on and power-off timing logic of the main control chip 700, the secondary power supply component 200 and the primary power supply component 100 based on the timing control circuit 400, effectively solve the problem that the data is easily tampered due to the confusion of the power-on and power-off timing logic, and further improve the reliability of the domain controller; based on the power detection circuit 300, it can ensure that when the external power supply is in a low voltage state, the main control chip 700 is prevented from freezing or hanging up, thereby improving the reliability of the main control chip 700 and further improving the reliability of the domain controller. On the other hand, based on the voltage divider circuit 310, the hysteresis circuit 320 and the first switch circuit 330, the state of the external power supply can be accurately detected, and then the corresponding external power supply state signal can be generated to indicate whether the current external power supply is in a low voltage state, which lays the foundation for avoiding the main control chip 700 from freezing or hanging up. On the third aspect, based on the secondary power supply timing control circuit 410 and the primary power supply timing control circuit 420, when the external power supply is in a normal power supply state, the accuracy of the power-on and power-off timing logic can be ensured, and the problem of data tampering caused by the confusion of the power-on and power-off timing logic can be effectively avoided, and the reliability of the domain controller is further improved. On the fourth aspect, based on the first diode and the second diode, the primary power supply component 100 can be reliably powered on or off according to the primary power supply control signal PWR1_CS and the power-on and power-off signal INH; based on the enable logic component 500, the primary power supply status signal, the external power supply status signal and the secondary power supply control signal PWR2_CS can be comprehensively considered to generate the corresponding secondary power supply enable signal to ensure that the secondary power supply component 200 can be reliably powered on or off. On the fifth aspect, based on the first delay circuit 411, it is possible to accurately delay the first preset time to generate the secondary power control signal PWR2_CS, thereby ensuring the accuracy and reliability of the power-on or power-off timing of the secondary power supply component 200, laying a foundation for improving the reliability of the main control chip 700; based on the second delay circuit 421, it is possible to accurately delay the third preset time to generate the primary power control signal PWR1_CS, thereby ensuring the accuracy and reliability of the power-on or power-off timing of the primary power supply component 100, laying a foundation for improving the reliability of the power-on or power-off timing of the secondary power supply component 200.

[0172] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic description of the above terms does not necessarily refer to the same embodiment or example.

[0173] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0174] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A power-on and power-off control circuit, characterized in that: The power-on and power-off control circuit includes: a primary power supply component, a secondary power supply component, a power supply detection circuit, a timing control circuit, an enabling logic component and a communication component; The communication component is connected to the main control chip, the timing control circuit and the first-level power supply component respectively, and is used to generate power-on and power-off signals according to the power-on and power-off instructions, and transmit the power-on and power-off signals to the timing control circuit and the first-level power supply component; The timing control circuit is connected to the primary power supply component and the enabling logic component respectively, and is used to generate a secondary power supply control signal by delaying the first preset time and generating a primary power supply control signal by delaying the second preset time according to the upper and lower power signals; transmit the primary power supply control signal to the primary power supply component, and transmit the secondary power supply control signal to the enabling logic component; The primary power supply component is connected to the external power supply, the secondary power supply component and the enabling logic component respectively, and is used to power on or off according to the power-on and power-off signals and the primary power supply control signal; when powering on, it supplies power to the secondary power supply component, generates a primary power supply status signal, and transmits the primary power supply status signal to the enabling logic component; The power detection circuit is connected to the external power supply and the enabling logic component respectively, and is used to detect the state of the external power supply, generate an external power supply state signal, and transmit the external power supply state signal to the enabling logic component; The enabling logic component is connected to the secondary power supply component, and is used to generate a secondary power supply enabling signal according to the primary power supply status signal, the external power supply status signal and the secondary power supply control signal, and transmit the secondary power supply enabling signal to the secondary power supply component; The secondary power supply component is connected to the main control chip, and is used to power on or off according to the secondary power supply enable signal; and to supply power to the main control chip when powered on.

2. The power on and off control circuit according to claim 1, characterized in that: The power detection circuit includes a voltage divider circuit, a hysteresis circuit and a first switch circuit; The voltage divider circuit is connected to the external power supply and the hysteresis circuit respectively, and is used to transmit the divided external power supply to the hysteresis circuit; The hysteresis circuit is connected to the first switch circuit and is used to generate a first switch control signal according to the divided external power supply; The first switch circuit is connected to the enable logic component, and is used to generate an external power state signal according to the first switch control signal, and transmit the external power state signal to the enable logic component.

3. The power on and off control circuit according to claim 2, characterized in that: The voltage divider circuit includes a first resistor and a second resistor; the hysteresis circuit includes a comparator, a third resistor, a fourth resistor, a fifth resistor and a sixth resistor; the first switch circuit includes a first switch tube and a seventh resistor; One end of the first resistor is connected to the external power supply, and the other end of the first resistor is connected to the negative input terminal of the comparator; One end of the second resistor is connected to a connection point between the first resistor and the negative input terminal of the comparator, and the other end of the second resistor is grounded; The positive input terminal of the comparator is connected to the output terminal of the comparator through the third resistor; One end of the fourth resistor is connected to the positive input terminal of the comparator, and the other end of the fourth resistor is connected to the first external DC power supply through the sixth resistor; One end of the fifth resistor is connected to a connection point between the fourth resistor and the sixth resistor, and the other end of the fifth resistor is grounded; A first end of the first switch tube is connected to the output end of the comparator, a second end of the first switch tube is connected to the enable logic component, and a third end of the first switch tube is grounded; One end of the seventh resistor is connected to the second end of the first switch tube, and the other end of the seventh resistor is connected to the second external DC power supply.

4. The power on and off control circuit according to claim 1, characterized in that: The timing control circuit includes a secondary power timing control circuit and a primary power timing control circuit; The secondary power timing control circuit is connected to the communication component, the primary power timing control circuit and the enabling logic component respectively, and is used to generate a secondary power control signal by delaying the first preset time according to the up and down power signals, and transmit the secondary power control signal to the primary power timing control circuit and the enabling logic component respectively; The first-level power timing control circuit is connected to the first-level power component, and is used to delay the third preset time to generate a first-level power control signal according to the second-level power control signal, and transmit the first-level power control signal to the first-level power component.

5. The power on and off control circuit according to claim 4, characterized in that: The secondary power supply timing control circuit includes a first delay circuit, a second switch circuit and a third switch circuit; The first delay circuit is used to transmit the delayed power-on and power-off signals as the second switch control signal to the second switch circuit; The second switch circuit is used to generate a third switch control signal according to the second switch control signal, and transmit the third switch control signal to the third switch circuit; The third switch circuit is used to generate a secondary power control signal according to the third switch control signal, and transmit the secondary power control signal to the primary power timing control circuit and the enable logic component respectively.

6. The power on and off control circuit according to claim 5, characterized in that: The first delay circuit includes an eighth resistor and a first capacitor; the second switch circuit includes a second switch tube and a ninth resistor; the third switch circuit includes a third switch tube and a tenth resistor; One end of the eighth resistor is connected to the communication component, and the other end of the eighth resistor is connected to the first end of the second switch tube; One end of the first capacitor is connected to a connection point between the eighth resistor and the first end of the second switch tube, and the other end of the first capacitor is connected to a third end of the second switch tube; The second end of the second switch tube is connected to the first end of the third switch tube, and the third end of the second switch tube is grounded; One end of the ninth resistor is connected to the second end of the second switch tube, and the other end of the ninth resistor is connected to the third external DC power supply; The second end of the third switch tube is connected to the enable logic component and the first-level power supply timing control circuit respectively, and the third end of the third switch tube is grounded; One end of the tenth resistor is connected to the second end of the third switch tube, and the other end of the tenth resistor is connected to the fourth external DC power supply.

7. The power on and off control circuit according to claim 5, characterized in that: The first-level power supply timing control circuit includes a second delay circuit, a fourth switch circuit and a fifth switch circuit. The second delay circuit is connected to the secondary power supply timing control circuit, and is used to transmit the delayed secondary power supply control signal as the fourth switch control signal to the fourth switch circuit; The fourth switch circuit is used to generate a fifth switch control signal according to the fourth switch control signal, and transmit the fifth switch control signal to the fifth switch circuit; The fifth switch circuit is used to generate a primary power control signal according to the fifth switch control signal, and transmit the signal to the primary power supply component.

8. The power on and off control circuit according to claim 7, characterized in that: The second delay circuit includes an eleventh resistor and a second capacitor; the fourth switch circuit includes a fourth switch tube and a twelfth resistor; the fifth switch circuit includes a fifth switch tube and a thirteenth resistor; One end of the eleventh resistor is connected to the secondary power supply timing control circuit, and the other end of the eleventh resistor is connected to the first end of the fourth switch tube; One end of the second capacitor is connected to a connection point between the eleventh resistor and the first end of the fourth switch tube, and the other end of the second capacitor is connected to a third end of the fourth switch tube; The second end of the fourth switch tube is connected to the first end of the fifth switch tube through the twelfth resistor, and the third end of the fourth switch tube is grounded; The third end of the fifth switch tube is connected to the external power supply, and the second end of the fifth switch tube is connected to the primary power supply component; One end of the thirteenth resistor is connected to the third end of the fifth switch tube, and the other end of the thirteenth resistor is connected to a connection point between the twelfth resistor and the first end of the fifth switch tube.

9. The power on and off control circuit according to claim 4, characterized in that: The power-on and power-off control circuit further includes a first diode and a second diode; The positive electrode of the first diode is connected to the primary power supply timing control circuit, and the negative electrode of the first diode is connected to the primary power supply component; The anode of the second diode is connected to the communication component, and the cathode of the second diode is connected to the connection point of the primary power supply component.

10. The power on and off control circuit according to claim 4, characterized in that: The enabling logic component includes an AND gate circuit.