A master chip power supply system and method
Patent Information
- Application Number
- CN202610991766.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-03
- Publication Date
- 2026-08-18
AI Technical Summary
由于主控芯片集成有CPU单元、存储单元等软件单元(相当于迷你电脑),上述通过插拔供电端口实现主控芯片的即开即关设置,容易导致主控芯片的软件单元在执行相关程序任务时,出现异常掉电,导致主控芯片损坏
[0038]By employing the above technical solution, this application provides a main control chip power supply system. A power supply monitoring unit monitors the power supply status of the power supply unit. When the power supply unit is detected to be in a normal power supply state, it supplies power to the main control chip normally. When the power supply unit is detected to be in a power supply pre-interruption state (e.g., when it is necessary to control the power supply unit to interrupt power supply, but the power supply interruption command has not yet been executed), a feedback signal is output to the main control chip. This allows the main control chip to shut down its own running program (achieving software shutdown) before the power supply unit interrupts power supply (i.e., when it is in the power supply pre-interruption state). After shutting down its own running program, it outputs an enable interrupt signal to the power supply monitoring unit, causing the power supply monitoring unit to interrupt power supply to the main control chip (achieving hardware shutdown). This ultimately achieves safe power-on and power-off of the main control chip. Furthermore, supplying power to the main control chip through the power supply monitoring unit can also prevent battery surge voltage from impacting the main control chip, further improving the power supply safety of the main control chip.
Smart Images

Figure CN122593595A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power supply technology, and in particular to a power supply system and method for a main control chip. Background Technology
[0002] In image acquisition equipment such as robots and monitoring systems, due to the limitations of equipment size, miniaturized main control chips are usually used to process and store the images and data of the equipment.
[0003] In existing technologies, the power supply setup for the main control chip typically employs a "battery → PD (Power Delivery) fast charging chip → main control chip" architecture. The PD fast charging chip converts the battery voltage to a voltage compatible with the main control chip's charging. In this architecture, the main control chip operates normally when its power supply port is connected to the main control chip's power input. When the PD fast charging chip's power supply port is disconnected, the main control chip powers off (i.e., powering on and off is achieved by plugging and unplugging the power supply port). Since the main control chip integrates software units such as a CPU and memory (essentially a mini-computer), this plug-and-unplug power supply setup can easily lead to abnormal power loss during program execution, potentially damaging the main control chip. Summary of the Invention
[0004] In view of the above problems, the present invention provides a power supply system and method for a main control chip to achieve the purpose of safely supplying power to the main control chip. The specific solution is as follows:
[0005] The first aspect of this application provides a main control chip power supply system, including: a power supply unit, a power supply monitoring unit, and a main control chip;
[0006] The first output terminal of the power supply unit is connected to the first input terminal of the power supply monitoring unit; the second output terminal of the power supply unit is connected to the second input terminal of the power supply monitoring unit; the first output terminal of the power supply monitoring unit is connected to the first input terminal of the main control chip; the second output terminal of the power supply monitoring unit is connected to the second input terminal of the main control chip; and the output terminal of the main control chip is connected to the third input terminal of the power supply monitoring unit.
[0007] The power supply monitoring unit is used to control the power supply unit to supply power to the main control chip when it detects that the power supply unit is in a normal power supply state; to send a feedback signal to the main control chip when it detects that the power supply unit is in a preset power supply pre-interruption state; and to interrupt the power supply from the power supply unit to the main control chip after receiving the enable interrupt signal output by the main control chip.
[0008] The main control chip is used to interrupt the program running on the main control chip after receiving the feedback signal, and after confirming that the program running on the main control chip is interrupted, send the enable interrupt signal to the power supply monitoring unit so that the power supply monitoring unit interrupts the power supply unit to the main control chip.
[0009] In one possible implementation, the power supply monitoring unit includes: a power supply monitoring unit and a power supply management unit;
[0010] The first output terminal of the power supply unit is connected to the first input terminal of the power supply management unit, and the second output terminal of the power supply unit is connected to the first input terminal of the power supply monitoring unit; the first output terminal of the power supply management unit is connected to the first input terminal of the main control chip, and the first output terminal of the power supply monitoring unit is connected to the second input terminal of the power supply management unit; the second output terminal of the power supply monitoring unit is connected to the second input terminal of the main control chip, and the output terminal of the main control chip is connected to the third input terminal of the power supply management unit.
[0011] The power supply monitoring unit is used to send an enable power supply signal to the power supply management unit when it detects that the power supply unit is in a normal power supply state, and to send the feedback signal to the main control chip when it detects that the power supply unit is in a power supply pre-interruption state.
[0012] The power supply management unit is used to supply power to the main control chip when it receives the power enable signal, and to interrupt the power supply to the main control chip when it receives the interrupt enable signal.
[0013] In one possible implementation, the power supply management unit includes: a DC power supply chip;
[0014] The first output terminal of the power supply unit is connected to the power input pin of the DC power chip; the first output terminal of the power supply monitoring unit is connected to the first enable pin of the DC power chip; the output terminal of the main control chip is connected to the second enable pin of the DC power chip; and the power output pin of the DC power chip is connected to the first input terminal of the main control chip.
[0015] The DC power supply chip is used to control the power supply unit to supply power to the main control chip when it receives the enable power supply signal, and to interrupt the power supply unit to the main control chip after receiving the enable interrupt signal.
[0016] In one possible implementation, the power supply monitoring unit includes: a first power supply monitoring unit and a second power supply monitoring unit;
[0017] The second output terminal of the power supply unit is connected to the input terminal of the first power supply monitoring unit and the input terminal of the second power supply monitoring unit; the output terminal of the first power supply monitoring unit is connected to the second input terminal of the power supply management unit; the output terminal of the second power supply monitoring unit is connected to the second input terminal of the main control chip.
[0018] The first power supply monitoring unit is used to send the power supply enable signal to the power supply management unit when it detects that the power supply unit is in a normal power supply state; the second power supply monitoring unit is used to send the feedback signal to the power supply management unit when it detects that the power supply unit is in a power supply pre-interruption state.
[0019] In one possible implementation, the first power supply monitoring unit includes: a transistor switch and a semiconductor field-effect transistor switch;
[0020] The second output terminal of the power supply unit is connected to the base of the transistor switch, the emitter of the transistor switch is grounded, and the collector of the transistor switch is connected to the gate of the semiconductor field-effect transistor switch; the source of the semiconductor field-effect transistor switch is connected to the second output terminal of the power supply unit, and the drain of the semiconductor field-effect transistor switch is connected to the second input terminal of the power supply management unit.
[0021] In one possible implementation, the second power supply monitoring unit includes: a comparator, a first resistor, and a second resistor;
[0022] One end of the first resistor is connected to the second output terminal of the power supply unit, and the other end of the first resistor and one end of the second resistor are connected together to the non-inverting signal input terminal of the comparator. The other end of the second resistor is grounded, the inverting signal input terminal of the comparator is grounded, and the output terminal of the comparator is connected to the second input terminal of the main control chip.
[0023] Furthermore, it also includes a first diode and a second diode;
[0024] The anode of the first diode is connected to the second output terminal of the power supply unit, and the cathode of the first diode is connected to the first power supply monitoring unit;
[0025] The anode of the second diode is connected to the output terminal of the main control chip, and the cathode of the second diode is connected to the third input terminal of the power supply management unit.
[0026] Furthermore, the power supply unit includes: a battery assembly and a power supply status switch;
[0027] The first output terminal of the battery assembly is connected to the first input terminal of the power supply monitoring unit, the second output terminal of the battery assembly is connected to the input terminal of the power supply status switch, and the output terminal of the power supply status switch is connected to the second input terminal of the monitoring unit.
[0028] The battery assembly is used to supply power to the power supply monitoring unit;
[0029] The power supply status switch is used to send a high-level signal to the power supply monitoring unit when closed, and to send a low-level signal to the power supply monitoring unit when open;
[0030] The power supply monitoring unit is used to determine that the power supply unit is in the normal power supply state after receiving the high-level signal, and to determine that the power supply unit is in the power supply pre-interruption state after receiving the low-level signal.
[0031] Furthermore, the main control chip includes: a binocular camera driver chip;
[0032] The first input terminal of the binocular camera driver chip is connected to the first output terminal of the power supply monitoring unit, the second input terminal of the binocular camera driver chip is connected to the second output terminal of the power supply monitoring unit, and the output terminal of the binocular camera driver chip is connected to the third input terminal of the power supply monitoring unit.
[0033] A second aspect of this application provides a power supply method for a main control chip, applied to a main control chip power supply system of the first aspect or any implementation thereof, the power supply method for the main control chip comprising:
[0034] The power supply monitoring unit monitors the power supply status of the power supply unit;
[0035] When the power supply monitoring unit detects that the power supply unit is in a normal power supply state, it supplies power to the main control chip normally.
[0036] When the power supply monitoring unit detects that the power supply unit is in a power supply pre-interruption state, it sends a feedback signal to the main control chip, so that the main control chip interrupts the program running on the main control chip and sends an enable interrupt signal to the power supply monitoring unit after confirming that the program running on the main control chip has been interrupted.
[0037] After receiving the enable / interrupt signal output by the main control chip, the power supply monitoring unit interrupts the power supply to the main control chip.
[0038] By employing the above technical solution, this application provides a main control chip power supply system. A power supply monitoring unit monitors the power supply status of the power supply unit. When the power supply unit is detected to be in a normal power supply state, it supplies power to the main control chip normally. When the power supply unit is detected to be in a power supply pre-interruption state (e.g., when it is necessary to control the power supply unit to interrupt power supply, but the power supply interruption command has not yet been executed), a feedback signal is output to the main control chip. This allows the main control chip to shut down its own running program (achieving software shutdown) before the power supply unit interrupts power supply (i.e., when it is in the power supply pre-interruption state). After shutting down its own running program, it outputs an enable interrupt signal to the power supply monitoring unit, causing the power supply monitoring unit to interrupt power supply to the main control chip (achieving hardware shutdown). This ultimately achieves safe power-on and power-off of the main control chip. Furthermore, supplying power to the main control chip through the power supply monitoring unit can also prevent battery surge voltage from impacting the main control chip, further improving the power supply safety of the main control chip. Attached Figure Description
[0039] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0040] Figure 1 A structural block diagram of a main control chip power supply system provided in this application;
[0041] Figure 2 A structural block diagram of another main control chip power supply system provided in this application;
[0042] Figure 3 A structural block diagram of another main control chip power supply system provided in this application;
[0043] Figure 4 A circuit diagram of the first power supply monitoring unit provided in this application;
[0044] Figure 5 The circuit diagram of the second power supply monitoring unit provided in this application. Detailed Implementation
[0045] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.
[0046] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.
[0047] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0048] In existing technologies, the power supply setup for the main control chip typically employs a "battery → PD (Power Delivery) fast charging chip → main control chip" architecture. The PD fast charging chip converts the battery voltage to a voltage compatible with the main control chip's charging. In this architecture, the main control chip operates normally when its power supply port is connected to the main control chip's power input; when disconnected, it powers off (i.e., powering on and off is achieved by plugging and unplugging the power supply port). Since the main control chip integrates software units such as a CPU and memory (essentially a mini-computer), this plug-and-unplug power supply setup can easily lead to abnormal power loss during program execution, damaging the main control chip. Furthermore, surge voltages can occur when the battery powers the main control chip via the PD fast charging chip, making the main control chip susceptible to surge damage and reducing its lifespan. In view of this, this application provides a power supply system and method for a main control chip.
[0049] See Figure 1 In some embodiments of this application, a main control chip power supply system includes: a power supply unit, a power supply monitoring unit, and a main control chip;
[0050] The first output terminal of the power supply unit is connected to the first input terminal of the power supply monitoring unit; the second output terminal of the power supply unit is connected to the second input terminal of the power supply monitoring unit; the first output terminal of the power supply monitoring unit is connected to the first input terminal of the main control chip; the second output terminal of the power supply monitoring unit is connected to the second input terminal of the main control chip; and the output terminal of the main control chip is connected to the third input terminal of the power supply monitoring unit.
[0051] The power supply unit is used to supply power to the power supply monitoring unit. Specifically, the power supply unit can provide power to the first input terminal of the power supply monitoring unit through the first output terminal to achieve power supply.
[0052] The power supply monitoring unit is used to control the power supply unit to supply power to the main control chip when it detects that the power supply unit is in a normal power supply state. Specifically, the power supply monitoring unit can monitor the power supply status of the power supply unit by monitoring the voltage signal of the power supply unit. When the power supply unit is detected to be in a normal power supply state, the power supply monitoring unit converts the voltage input to the power supply unit to adapt to the power supply voltage of the main control chip, and then outputs electrical energy to the main control chip to supply power to the main control chip. When the power supply unit is detected to be in a preset power supply pre-interruption state (i.e., when it is necessary to control the power supply unit to interrupt the power supply, but the power supply interruption command has not yet been executed), a feedback signal is sent to the main control chip. And after receiving the enable interrupt signal output by the main control chip, the power supply unit interrupts the power supply to the main control chip.
[0053] The main control chip is used to automatically interrupt the program running on the main control chip after receiving the feedback signal output by the power supply monitoring unit, so as to achieve the safe shutdown of its own software program. After confirming that its own running program has been interrupted (after safe shutdown), it sends an enable interrupt signal to the power supply monitoring unit so that the power supply monitoring unit can interrupt the power supply from the power supply unit to the main control chip.
[0054] Through the aforementioned power supply system configuration for the main control chip, the main control chip can achieve safe power-on and normal operation when the power supply unit is supplying power normally. When the power supply unit is in a pre-interruption state, the main control chip can promptly obtain information about this state through feedback signals from the power supply monitoring unit. This allows the chip to safely shut down the normally running software program and output an enable interrupt signal to the power supply monitoring unit. The power supply monitoring unit can then ensure the safe shutdown of the main control chip's software program before interrupting power supply to the chip, thus preventing abnormal shutdown of the software program due to power supply interruption and ensuring the safety of the main control chip's related programs. Furthermore, the voltage provided by the power supply unit in the aforementioned main control chip power supply system is managed by the power supply monitoring unit before being output to the main control chip. This effectively suppresses the impact of power supply unit surge voltage on the main control chip, further improving its safety.
[0055] Further, see Figure 2 In some embodiments of this application, the power supply monitoring unit of the main control chip power supply system includes: a power supply monitoring unit and a power supply management unit;
[0056] The first output terminal of the power supply unit is connected to the first input terminal of the power supply management unit, and the second output terminal of the power supply unit is connected to the input terminal of the power supply monitoring unit; the output terminal of the power supply management unit is connected to the first input terminal of the main control chip, and the first output terminal of the power supply monitoring unit is connected to the second input terminal of the power supply management unit; the second output terminal of the power supply monitoring unit is connected to the second input terminal of the main control chip, and the output terminal of the main control chip is connected to the third input terminal of the power supply management unit.
[0057] The power supply monitoring unit is used to output an enable power supply signal to the power supply management unit when it detects that the power supply unit is in a normal power supply state; and to output a feedback signal to the main control chip when it detects that the power supply unit is in a power supply pre-interruption state.
[0058] When the power supply unit is in a normal power supply state or in a power supply pre-interruption state, the voltage signal of the power supply unit will change accordingly. The power supply monitoring unit can determine the status of the power supply unit by monitoring the corresponding voltage signal.
[0059] The power supply management unit is used to supply power to the main control chip when it receives an enable power supply signal; and to interrupt the power supply to the main control chip when it receives an enable interrupt signal.
[0060] The power supply monitoring unit described above can accurately monitor the power supply status of the power supply unit and output an enable power supply signal to the power supply management unit or output a feedback signal to the main control chip based on the monitored status. The power supply management unit can flexibly control the power supply of the main control chip based on the enable power supply signal or the enable interrupt signal, ensuring that the main control chip can be safely powered on / off.
[0061] Furthermore, in some embodiments of this application, the power supply management unit of the main control chip power supply system includes: a DC power supply chip (i.e., a DC power chip).
[0062] The DC power chip includes a power input pin, a first enable pin, a second enable pin, and a power output pin.
[0063] The first output terminal of the power supply unit is connected to the power input pin of the DC power chip, the first output terminal of the power supply monitoring unit is connected to the first enable pin of the DC power chip, the output terminal of the main control chip is connected to the second enable pin of the DC power chip, and the power output pin of the DC power chip is connected to the first input terminal of the main control chip.
[0064] The power input pin of the DC power chip is used to receive the power input from the power supply unit, and the power output pin converts the input power voltage to the power voltage of the main control chip to power the main control chip.
[0065] The first enable pin is used to receive the enable power supply signal output by the power supply monitoring unit. After receiving the enable power supply signal, the first enable pin of the DC power chip supplies power to the main control chip through the power output pin.
[0066] The second enable pin is used to receive the enable interrupt signal output by the main control chip. After the second enable pin of the DC power supply receives the enable interrupt signal, the power output pin stops supplying power to the main control chip, so as to realize the power supply interruption control of the main control chip.
[0067] Based on the DC power chip settings, soft switching control of the main control chip can be realized, and the power supply voltage input by the power supply unit can be converted to a stable voltage that can be safely adapted to the main control chip, so as to realize the safe power supply of the main control chip, avoid the voltage surge voltage output by the power supply unit from causing voltage impact on the main control chip, and provide the power supply safety of the main control chip.
[0068] In addition, see Figure 3 In some embodiments of this application, the power supply monitoring unit of the main control chip power supply system includes: a first power supply monitoring unit and a second power supply monitoring unit;
[0069] The second output terminal of the power supply unit is connected to the input terminal of the first power supply monitoring unit and the input terminal of the second power supply monitoring unit; the output terminal of the first power supply monitoring unit is connected to the second input terminal of the power supply management unit; the output terminal of the second power supply monitoring unit is connected to the second input terminal of the main control chip.
[0070] The first power supply monitoring unit can determine the power supply status of the power supply unit by monitoring the voltage signal of the power supply unit, and outputs an enable power supply signal to the power supply management unit when it detects that the power supply unit is in a normal power supply state; the second power supply monitoring unit can determine the power supply status of the power supply unit by monitoring the voltage signal of the power supply unit, and outputs a feedback signal to the main control chip when it detects that the power supply unit is in a power supply pre-interruption state.
[0071] The first power supply monitoring unit and the second power supply monitoring unit can accurately monitor the two different power supply states of the power supply unit, thereby outputting the corresponding signals to the power supply management unit or the main control chip.
[0072] For details, see Figure 4 In some embodiments of this application, the first power supply monitoring unit includes: a transistor switch Q401 (which may be the NPN transistor switch shown in the figure) and a semiconductor field-effect transistor switch Q402 (which may be the PMOS field-effect transistor switch shown in the figure).
[0073] The second output terminal of the power supply unit is connected to the base of transistor switch Q401, the emitter of transistor switch Q401 is grounded, and the collector of transistor switch Q401 is connected to the gate of semiconductor field-effect transistor switch Q402. The source of semiconductor field-effect transistor switch Q402 is connected to the second output terminal of the power supply unit, and the drain of semiconductor field-effect transistor switch Q402 is connected to the second input terminal of the power supply management unit.
[0074] In addition, to further ensure the stable operation of the first monitoring unit, additional current-limiting resistors are provided at each port of transistor switch Q401 and semiconductor field-effect transistor switch Q402: first current-limiting resistor R401, second current-limiting resistor R402, third current-limiting resistor R403 and fourth current-limiting resistor R404. The second output terminal of the power supply unit is connected to one end of the first current-limiting resistor R401, and the other end of the first current-limiting resistor R401 is connected to the base of transistor switch Q401. One end of the second current-limiting resistor R402 and the third current-limiting resistor R403 are connected to the collector of transistor switch Q401. The other end of the second current-limiting resistor R402 is connected to the gate of semiconductor field-effect transistor switch Q402. The other end of the third current-limiting resistor R403 is connected to the second output terminal of the power supply unit. One end of the fourth current-limiting resistor R404 is connected to the drain of semiconductor field-effect transistor switch Q402, and the other end of the fourth current-limiting resistor R404 is connected to the second input terminal of the power supply management unit.
[0075] The following explains the circuit operation logic of the first power supply monitoring unit: The voltage signal output from the second output terminal of the power supply unit differs depending on its state. For example, when the power supply unit is in normal power supply mode, the second output terminal can be a high-level signal. Since the base of transistor switch Q401 is connected to the second output terminal of the power supply unit, based on the high-level conduction characteristic of transistor switch Q401, under the influence of the high-level signal, transistor switch Q401 is in the conducting state, and the gate potential of semiconductor field-effect transistor switch Q402 is pulled low. Due to the low-level conduction characteristic of the P-type field-effect transistor in the switching Q402, the semiconductor field-effect transistor switch Q402 is in the conducting state. Since the source of the semiconductor field-effect transistor switch Q402 is connected to the second output terminal of the power supply unit and the drain of the semiconductor field-effect transistor switch Q402 is connected to the second input terminal of the power supply management unit, after the semiconductor field-effect transistor switch Q402 is in the conducting state, the voltage (i.e., high-level signal) provided by the second output terminal of the power supply unit is output to the power supply management unit (which is equivalent to the first power supply monitoring unit outputting a power supply enable signal to the power supply management unit).
[0076] When the power supply unit is in a preset power supply pre-interruption state, the second output terminal of the power supply unit is a low-level signal. Since the base of transistor switch Q401 is connected to the second output terminal of the power supply unit, based on the high-level conduction characteristic of transistor switch Q401, transistor switch Q401 is in the off state under the influence of the low-level signal. Therefore, the gate potential of semiconductor field-effect transistor switch Q402 is at a high-level potential. Based on the low-level conduction characteristic of the P-type field-effect transistor of semiconductor field-effect transistor switch Q402, semiconductor field-effect transistor switch Q402 is in the off state. Therefore, the drain of semiconductor field-effect transistor switch Q402 has no level output (that is, it is equivalent to the first power supply monitoring unit not outputting a power supply enable signal to the power supply management unit).
[0077] It is understandable that the switching states of transistor switch Q401 and semiconductor field-effect transistor switch Q402 are mainly affected by the base / gate voltage. Therefore, by adding a level signal conversion unit (such as an NOT gate) to the base of transistor switch Q401 or the gate of semiconductor field-effect transistor, NPN transistor switch Q401 can be replaced with PNP transistor switch Q401; and PMOS semiconductor field-effect transistor can be replaced with NMOS transistor switch Q401. Therefore, the specific switching types of transistor switch Q401 and semiconductor field-effect transistor switch Q402 in the first power supply monitoring unit are not restricted here.
[0078] Through the circuit configuration of the first power supply monitoring unit, the first power supply monitoring unit can accurately determine the normal power supply status of the power supply unit by monitoring the voltage signal of the power supply unit, and output a power supply enable signal to the power supply management unit when the power supply unit is in a normal power supply status.
[0079] For details, see Figure 5 In some embodiments of this application, the second power supply monitoring unit of the main control chip power supply system includes: a comparator U1, a first resistor R501, and a second resistor R502;
[0080] One end of the first resistor R501 is connected to the second output terminal of the power supply unit. The other end of the first resistor R501 and one end of the second resistor R502 are connected to the non-inverting signal input terminal of comparator U1. The other end of the second resistor R502 is grounded. The inverting signal input terminal of comparator U1 is grounded. The output terminal of comparator U1 is connected to the second input terminal of the main control chip.
[0081] To further ensure the quality of the power interruption signal output by the second power supply monitoring unit, a third resistor R503, a fourth resistor R504, a fifth resistor R505, and a capacitor C501 can be additionally set in the second power supply monitoring unit. The third resistor R503 and the fifth resistor R505 are mainly used for current limiting protection of the circuit, and the fourth resistor R504 is used to prevent the signal output by comparator U1 from fluctuating frequently.
[0082] The following explains the circuit operation logic of the second power supply monitoring unit. When the power supply unit is in normal power supply mode, its second output terminal outputs a high-level signal. Therefore, the non-inverting input terminal of comparator U1 is high. Since the inverting input terminal of comparator U1 is grounded, it is defaulted to a low level. Therefore, when the second input terminal of the power supply unit is under normal power supply, the output terminal of comparator U1 outputs a high level. (A low level is used as a feedback signal; in this case, it is equivalent to the second power supply monitoring unit not sending a feedback signal to the main control chip.)
[0083] When the power supply unit is in the preset power supply pre-interruption state (such as when it is necessary to control the power supply unit to interrupt power supply, but the power supply unit interrupt power supply command has not yet been executed), the second output terminal of the power supply unit outputs a low-level signal. At this time, the non-inverting input terminal of comparator U1 is low-level. Since the inverting input terminal of comparator U1 is grounded, the inverting input terminal of comparator U1 is low-level by default. Therefore, when the power supply unit is in the preset power supply pre-interruption state, the output terminal of comparator U1 outputs a low level. This low level is output to the main control chip (the low level is used as a feedback signal, which is equivalent to the second power supply monitoring unit sending a feedback signal to the main control chip).
[0084] By adjusting the resistance values of the first resistor R501 and the second resistor R502, the voltage jump threshold of the non-inverting input terminal corresponding to the low output level of comparator U1 can be controlled, thereby enabling comparator U1 to output feedback signals to the main control chip in a timely and accurate manner based on the voltage changes of the power supply unit.
[0085] Based on the above-mentioned setting of the second power supply monitoring unit, the second power supply monitoring unit can accurately output a feedback signal to the main control chip when the power supply unit is in a power supply pre-interruption state by monitoring the voltage signal of the power supply unit, so as to ensure that the main control chip can shut down the normally operating software program in time through the feedback signal.
[0086] Furthermore, in some embodiments of this application, the main control chip power supply system further includes a first diode and a second diode;
[0087] The anode of the first diode is connected to the second output terminal of the power supply unit, and the cathode of the first diode is connected to the first power supply monitoring unit.
[0088] The anode of the second diode is connected to the output terminal of the main control chip, and the cathode of the second diode is connected to the third input terminal of the power supply management unit.
[0089] Specifically, a first diode is connected in series in the branch that outputs the enable power supply signal and a second diode is connected in series in the branch that outputs the enable interrupt signal. By setting the first and second diodes, the relevant branches can avoid potential interference from the external environment when outputting the enable power supply signal and the enable interrupt signal, thereby improving the accuracy of the output enable power supply signal and the enable interrupt signal of the relevant branches.
[0090] In some embodiments of this application, the power supply unit of the main control chip power supply system includes: a battery assembly and a power supply status switch;
[0091] The first output terminal of the battery assembly is connected to the first input terminal of the power supply monitoring unit, the second output terminal of the battery assembly is connected to the input terminal of the power supply status switch, and the output terminal of the power supply status switch is connected to the second input terminal of the monitoring unit.
[0092] The battery assembly is used to power the power supply monitoring unit;
[0093] The power supply status switch is used to send a high-level signal based on the output voltage of the battery module when closed to indicate that the power supply unit is in a normal power supply state, and to send a low-level signal when open to indicate that the power supply unit is in a power supply pre-interruption state; the power supply monitoring unit determines that the power supply unit is in a normal power supply state after receiving the high-level signal, and determines that the power supply unit is in the power supply pre-interruption state after receiving the low-level signal.
[0094] Specifically, when the power supply status switch is closed, since the input terminal of the power supply status switch is connected to the battery module, the high voltage provided by the battery module is output to the second input terminal of the monitoring unit through the closed power supply status switch. The second input terminal of the monitoring unit is equivalent to receiving a high-level signal, which can be used to characterize that the power supply unit is in a normal power supply state.
[0095] When the power supply status switch is off, there is no output level at the output terminal of the power supply status switch (equivalent to sending a low-level signal). At this time, the second input terminal of the monitoring unit is equivalent to receiving a low-level signal, which can be used to characterize that the power supply unit is in a power supply pre-interruption state.
[0096] When it is necessary to control the battery pack to supply power to the main control chip normally, the power supply status switch can be actively controlled by the controller or manually controlled by relevant personnel to be in the closed state, so as to indicate that the power supply unit is in the normal working state. When the battery pack is powered off under the premise of the main control chip being safely powered down, the power supply status switch can be actively controlled by the controller or manually controlled by relevant personnel to be in the open state, so as to indicate that the power supply unit is in the power supply pre-interruption state.
[0097] By setting up the power supply unit described above, different voltage signals can be output to characterize the state of the power supply unit by controlling the on / off state of the power supply status switch, thereby realizing safe power-on and power-off control of the main control chip based on the state of the power supply unit.
[0098] In some embodiments of this application, the main control chip of the main control chip power supply system includes: a binocular camera driver chip, the first input terminal of the binocular camera driver chip is connected to the first output terminal of the power supply monitoring unit, the second input terminal of the binocular camera driver chip is connected to the second output terminal of the power supply monitoring unit, and the output terminal of the binocular camera driver chip is connected to the third input terminal of the power supply monitoring unit. The binocular camera driver chip can be an RK3566 chip (a high-performance embedded main control chip with good performance and high requirements for power supply safety). The binocular camera driver chip (such as the RK3566 chip) can receive the power output from the power supply monitoring unit through the first input terminal for safe power-on, receive the feedback signal input from the power supply monitoring unit through the second input terminal, and use the feedback signal to shut down its own running program. It also outputs an enable interrupt signal to the power supply monitoring unit through the output pin, thereby controlling the power supply monitoring unit to interrupt the power supply and completing the safe power-down of the binocular camera driver chip.
[0099] In some embodiments of this application, a main control chip power supply method is also provided, applied to the main control chip power supply system of any of the above implementations. The main control chip power supply method includes the following steps:
[0100] S1: The power supply monitoring unit monitors the power supply status of the power supply unit;
[0101] The power supply monitoring unit can monitor the power supply status of the power supply unit by monitoring the voltage signal output by the power supply unit when it is in different power supply states.
[0102] S2: When the power supply monitoring unit detects that the power supply unit is in a normal power supply state, it supplies power to the main control chip normally.
[0103] When the voltage signal corresponding to the normal power supply state of the power supply unit is detected, it is determined that the power supply unit is in a normal power supply state, and the main control chip is powered normally.
[0104] S3: When the power supply monitoring unit detects that the power supply unit is in a power supply pre-interruption state, it sends a feedback signal to the main control chip to cause the main control chip to interrupt the program running on the main control chip. After confirming that the program running on the main control chip has been interrupted, it sends an enable interrupt signal to the power supply monitoring unit. After receiving the enable interrupt signal output by the main control chip, the power supply monitoring unit interrupts the power supply to the main control chip.
[0105] When the voltage signal corresponding to the pre-power supply state of the power supply unit is detected, it is determined that the power supply unit is in the pre-interruption state. At this time, the power supply monitoring unit outputs a feedback signal to the main control chip. After receiving the feedback signal, the main control chip interrupts the program running on the main control chip (i.e., it interrupts all programs running normally on its own). After confirming that all programs running on its own have been shut down, it sends an enable interrupt signal to the power supply monitoring unit. After receiving the enable interrupt signal, the power supply monitoring unit interrupts the power supply to the main control chip to ensure that the main control chip is safely powered down. After ensuring that the main control chip is safely powered down, the power supply unit can be powered down, thus completing the overall safe power-down of the system.
[0106] By using the above-mentioned power supply method for the main control chip, a safe power-down operation can be achieved by first shutting down the main control chip through software and then performing a hardware power-off, ensuring that the main control chip will not suffer software damage due to abnormal power outage of the power supply unit.
[0107] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0108] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0109] In the above embodiments, the implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, in the form of a computer program product.
[0110] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
Claims
1. A power supply system for a main control chip, characterized in that, include: Power supply unit, power supply monitoring unit and main control chip; The first output terminal of the power supply unit is connected to the first input terminal of the power supply monitoring unit; the second output terminal of the power supply unit is connected to the second input terminal of the power supply monitoring unit; the first output terminal of the power supply monitoring unit is connected to the first input terminal of the main control chip; the second output terminal of the power supply monitoring unit is connected to the second input terminal of the main control chip; and the output terminal of the main control chip is connected to the third input terminal of the power supply monitoring unit. The power supply monitoring unit is used to control the power supply unit to supply power to the main control chip when it detects that the power supply unit is in a normal power supply state; to send a feedback signal to the main control chip when it detects that the power supply unit is in a power supply pre-interruption state; and to interrupt the power supply from the power supply unit to the main control chip after receiving an enable interrupt signal sent by the main control chip. The main control chip is used to interrupt the program running on the main control chip after receiving the feedback signal, and after confirming that the program running on the main control chip is interrupted, send the enable interrupt signal to the power supply monitoring unit so that the power supply monitoring unit interrupts the power supply unit to the main control chip.
2. The main control chip power supply system according to claim 1, characterized in that, The power supply monitoring unit includes: a power supply monitoring unit and a power supply management unit; The first output terminal of the power supply unit is connected to the first input terminal of the power supply management unit, and the second output terminal of the power supply unit is connected to the input terminal of the power supply monitoring unit; the output terminal of the power supply management unit is connected to the first input terminal of the main control chip, and the first output terminal of the power supply monitoring unit is connected to the second input terminal of the power supply management unit; the second output terminal of the power supply monitoring unit is connected to the second input terminal of the main control chip, and the output terminal of the main control chip is connected to the third input terminal of the power supply management unit. The power supply monitoring unit is used to send an enable power supply signal to the power supply management unit when it detects that the power supply unit is in a normal power supply state, and to send the feedback signal to the main control chip when it detects that the power supply unit is in a power supply pre-interruption state. The power supply management unit is used to supply power to the main control chip when it receives the power enable signal, and to interrupt the power supply to the main control chip when it receives the interrupt enable signal.
3. The main control chip power supply system according to claim 2, characterized in that, The power supply management unit includes: a DC power supply chip; The first output terminal of the power supply unit is connected to the power input pin of the DC power chip; the first output terminal of the power supply monitoring unit is connected to the first enable pin of the DC power chip; the output terminal of the main control chip is connected to the second enable pin of the DC power chip; and the power output pin of the DC power chip is connected to the first input terminal of the main control chip. The DC power supply chip is used to control the power supply unit to supply power to the main control chip when it receives the enable power supply signal, and to interrupt the power supply unit to the main control chip after receiving the enable interrupt signal.
4. The main control chip power supply system according to claim 2, characterized in that, The power supply monitoring unit includes: a first power supply monitoring unit and a second power supply monitoring unit; The second output terminal of the power supply unit is connected to the input terminal of the first power supply monitoring unit and the input terminal of the second power supply monitoring unit; the output terminal of the first power supply monitoring unit is connected to the second input terminal of the power supply management unit; the output terminal of the second power supply monitoring unit is connected to the second input terminal of the main control chip. The first power supply monitoring unit is used to send the power supply enable signal to the power supply management unit when it detects that the power supply unit is in a normal power supply state; the second power supply monitoring unit is used to send the feedback signal to the power supply management unit when it detects that the power supply unit is in a power supply pre-interruption state.
5. The main control chip power supply system according to claim 4, characterized in that, The first power supply monitoring unit includes: a transistor switch and a semiconductor field-effect transistor switch; The second output terminal of the power supply unit is connected to the base of the transistor switch, the emitter of the transistor switch is grounded, and the collector of the transistor switch is connected to the gate of the semiconductor field-effect transistor switch; the source of the semiconductor field-effect transistor switch is connected to the second output terminal of the power supply unit, and the drain of the semiconductor field-effect transistor switch is connected to the second input terminal of the power supply management unit.
6. The main control chip power supply system according to claim 4, characterized in that, The second power supply monitoring unit includes: a comparator, a first resistor, and a second resistor; One end of the first resistor is connected to the second output terminal of the power supply unit, and the other end of the first resistor and one end of the second resistor are connected together to the non-inverting signal input terminal of the comparator. The other end of the second resistor is grounded, the inverting signal input terminal of the comparator is grounded, and the output terminal of the comparator is connected to the second input terminal of the main control chip.
7. The main control chip power supply system according to claim 4, characterized in that, It also includes a first diode and a second diode; The anode of the first diode is connected to the second output terminal of the power supply unit, and the cathode of the first diode is connected to the first power supply monitoring unit; The anode of the second diode is connected to the output terminal of the main control chip, and the cathode of the second diode is connected to the third input terminal of the power supply management unit.
8. The main control chip power supply system according to claim 1, characterized in that, The power supply unit includes: a battery assembly and a power supply status switch; The first output terminal of the battery assembly is connected to the first input terminal of the power supply monitoring unit, the second output terminal of the battery assembly is connected to the input terminal of the power supply status switch, and the output terminal of the power supply status switch is connected to the second input terminal of the monitoring unit. The battery assembly is used to supply power to the power supply monitoring unit; The power supply status switch is used to send a high-level signal to the power supply monitoring unit when closed, and to send a low-level signal to the power supply monitoring unit when open; The power supply monitoring unit is used to determine that the power supply unit is in the normal power supply state after receiving the high-level signal, and to determine that the power supply unit is in the power supply pre-interruption state after receiving the low-level signal.
9. The main control chip power supply system according to claim 1, characterized in that, The main control chip includes: a binocular camera driver chip; The first input terminal of the binocular camera driver chip is connected to the first output terminal of the power supply monitoring unit, the second input terminal of the binocular camera driver chip is connected to the second output terminal of the power supply monitoring unit, and the output terminal of the binocular camera driver chip is connected to the third input terminal of the power supply monitoring unit.
10. A power supply method for a main control chip, characterized in that, The power supply monitoring unit applied to the main control chip power supply system as described in any one of claims 1 to 8, wherein the main control chip power supply method includes: The power supply monitoring unit monitors the power supply status of the power supply unit; When the power supply monitoring unit detects that the power supply unit is in a normal power supply state, it supplies power to the main control chip normally. When the power supply monitoring unit detects that the power supply unit is in a power supply pre-interruption state, it sends a feedback signal to the main control chip, so that the main control chip interrupts the program running on the main control chip. After confirming that the program running on the main control chip is interrupted, it sends an enable interrupt signal to the power supply monitoring unit. After receiving the enable interrupt signal output by the main control chip, the power supply monitoring unit interrupts the power supply to the main control chip.