[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112698981B - Protection circuit and method for preventing single chip microcomputer reset signal from losing efficacy - Google Patents

Protection circuit and method for preventing single chip microcomputer reset signal from losing efficacy Download PDF

Info

Publication number
CN112698981B
CN112698981B CN202110021506.0A CN202110021506A CN112698981B CN 112698981 B CN112698981 B CN 112698981B CN 202110021506 A CN202110021506 A CN 202110021506A CN 112698981 B CN112698981 B CN 112698981B
Authority
CN
China
Prior art keywords
power supply
singlechip
sbc
main
monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110021506.0A
Other languages
Chinese (zh)
Other versions
CN112698981A (en
Inventor
赵迪
肖利华
李祥
童斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Deep Blue Automotive Technology Co ltd
Original Assignee
Chongqing Changan New Energy Automobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan New Energy Automobile Technology Co Ltd filed Critical Chongqing Changan New Energy Automobile Technology Co Ltd
Priority to CN202110021506.0A priority Critical patent/CN112698981B/en
Publication of CN112698981A publication Critical patent/CN112698981A/en
Application granted granted Critical
Publication of CN112698981B publication Critical patent/CN112698981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Power Sources (AREA)
  • Microcomputers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a protection circuit and a method for preventing a reset signal of a single chip microcomputer from losing, which relate to the technical field of vehicle domain controllers and comprise a main single chip microcomputer, a vehicle power supply, an LDO power supply, an SBC power supply and a monitoring single chip microcomputer, wherein the SBC power supply is electrically connected with the vehicle power supply to charge the main single chip microcomputer, and the SBC power supply is in SPI communication with the main single chip microcomputer and is used for controlling a reset pin on the main single chip microcomputer; the LDO power supply is electrically connected with the vehicle power supply, charges for the monitoring singlechip, and the main singlechip carries out SPI communication with the monitoring singlechip, and the monitoring singlechip is electrically connected with the SBC power supply for wake-up the SBC power supply in deep dormancy. The problem that the SBC power supply cannot reset the singlechip when the reset pin of the singlechip is invalid is solved, and the safety performance of the vehicle controller is improved.

Description

Protection circuit and method for preventing single chip microcomputer reset signal from losing efficacy
Technical Field
The invention relates to the technical field of vehicle domain controllers of new energy vehicle control systems, in particular to a protection circuit and a protection method for preventing a reset signal of a singlechip from being invalid.
Background
With the improvement of the safety performance of automobiles, if a controller in the automobile is in a dead halt state, drivers can be influenced to control the automobile, and safety risks exist. Therefore, the controller must have a self-resetting function to ensure that the vehicle can continue to work after a short period of out-of-control so as to ensure the final safety of personnel in the vehicle.
The current power supply in the vehicle controller is gradually changed into an SBC power supply (system base chip power supply), a DCDC power supply and an LDO power supply from a previous simple DCDC power supply (switch stabilized voltage power supply) and an LDO power supply (low dropout linear stabilized voltage power supply), the SBC power supply is more powerful than the previous DCDC power supply or LDO power supply in safety performance, the SBC power supply can be communicated with an MCU (single chip microcomputer) to judge whether the single chip microcomputer has faults or not, and when the single chip microcomputer has faults and crashes, the SBC power supply RESETs the single chip microcomputer through a RESET pin. However, when the RESET pin of the singlechip is in failure, the SBC power supply cannot RESET the singlechip, the controller is always halted, and the danger to vehicles and personnel on the vehicles is increased.
Therefore, it is necessary to develop a protection circuit and method for preventing the single chip microcomputer reset signal from failing.
Disclosure of Invention
Therefore, the invention aims to provide a protection circuit for preventing the reset signal of the singlechip from being invalid, which is used for solving the problem that an SBC power supply cannot reset the singlechip when the reset pin of the singlechip in a vehicle controller is invalid.
In a first aspect, the invention provides a protection circuit for preventing a reset signal of a singlechip from being invalid, which comprises an LDO power supply, a monitoring singlechip, an SBC power supply and a main singlechip;
the LDO power supply is electrically connected with the monitoring singlechip and supplies power for the monitoring singlechip;
the monitoring singlechip is electrically connected with the SBC power supply and is used for waking up the SBC power supply when the SBC power supply is in deep dormancy;
the SBC power supply is electrically connected with the main singlechip and is used for supplying power to the main singlechip, carrying out SPI communication with the main singlechip and controlling a reset pin of the main singlechip;
the main singlechip is electrically connected with the monitoring singlechip, and the main singlechip is in SPI communication with the monitoring singlechip.
Further, the LDO power supply and the SBC power supply are respectively and electrically connected with a vehicle power supply, and the vehicle power supply is respectively powered by the LDO power supply and the SBC power supply.
In a second aspect, the present invention also provides a protection method for preventing the failure of the reset signal of the singlechip, which includes the following steps:
step S1, when a RESET pin of a main singlechip is invalid, an SBC power supply cannot communicate with the main singlechip through an SPI interface;
step S2, after setting the duration of communication failure between the SBC power supply and the main singlechip as a first preset time T1, the SBC power supply 10 enters a deep sleep stage;
step S3, setting the duration of the communication failure between the monitoring singlechip and the main singlechip as a second preset time T2, and when the second preset time T2 is greater than the first preset time T1, powering off and powering off the main singlechip, and waking up the SBC power supply by the monitoring singlechip;
and S4, after the SBC power supply is awakened, the SBC power supply supplies power to the main singlechip again, and the main singlechip restarts normal operation.
The invention has the following beneficial effects:
the protection circuit and the method for preventing the single chip microcomputer reset signal from losing are mainly applied to a vehicle controller with high safety, and the technical problem that the SBC power supply cannot reset the single chip microcomputer when the single chip microcomputer reset pin is lost is solved by the invention, so that the safety performance of the vehicle controller is improved, and the safety of personnel on the vehicle is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a protection circuit for preventing a reset signal of a singlechip from being invalid;
FIG. 2 is a flow chart of a protection method for preventing the failure of a reset signal of a singlechip;
in the figure:
10-SBC power supply, 11-main singlechip, 12-monitoring singlechip, 13-LDO power supply, 14-vehicle power supply.
Detailed Description
As shown in fig. 1, a protection circuit for preventing the failure of a reset signal of a single-chip microcomputer comprises a vehicle power supply 14, an LDO power supply 13, a main single-chip microcomputer 11, a monitoring single-chip microcomputer 12 and an SBC power supply 10, wherein,
the SBC power supply 10 is electrically connected with a battery with a vehicle power supply of 12V, and converts the voltage of the vehicle power supply 14 into the rated voltage required by the main singlechip 11 so as to charge the main singlechip 11. The LDO power supply 13 is electrically connected with a 12V storage battery of the vehicle power supply 14, and converts the voltage of the vehicle power supply into the rated voltage required by the monitoring singlechip 12 so as to charge the monitoring singlechip 12. The SBC power supply 10 is also communicated with the main singlechip 11 through a first SPI interface on the main singlechip and is used for controlling a reset pin on the main singlechip 11. The master singlechip 11 communicates with the monitoring singlechip 12 through a second SPI interface on the master singlechip. And the monitoring singlechip 12 is electrically connected with the SBC power supply 10, and the monitoring singlechip 12 is used for waking up the SBC power supply 10 when the SBC power supply 10 is in deep dormancy.
As shown in fig. 2, a protection method for preventing the failure of a reset signal of a single-chip microcomputer comprises the following steps:
step S1, when the RESET pin of the main singlechip is invalid, the SBC power supply cannot communicate with the main singlechip through the SPI interface.
In step S2, after setting the duration of time for which the SBC power supply and the main singlechip still maintain communication failure as the first preset time T1, the SBC power supply 10 enters the deep sleep stage.
And S3, setting the duration of the communication failure between the monitoring singlechip and the main singlechip as a second preset time T2, and when the second preset time T2 is greater than the first preset time T1, powering off and powering off the main singlechip, and waking up the SBC power supply by the monitoring singlechip.
And S4, after the SBC power supply is awakened, the SBC power supply 10 supplies power to the main singlechip again, and the main singlechip restarts normal operation.
When the RESET pin of the main singlechip is normal: after the main singlechip 11 is halted, the SBC power supply 10 cannot communicate with the main singlechip 11 through the SPI, at the moment, the SBC power supply 10 outputs a RESET signal to the main singlechip 11 to RESET the main singlechip 11, and after the RESET is successful, the main singlechip 11 and the SBC power supply 10 continue to normally communicate through the SPI.
When the RESET pin of the main singlechip is abnormal: because the RESET pin of the main singlechip 11 is invalid, after the main singlechip 11 is halted, the SBC power supply 10 cannot communicate with the main singlechip 11 through the SPI, and the SBC power supply 10 outputs a RESET signal to the main singlechip 11 and cannot RESET the main singlechip 11; after the SBC power supply 10 fails to communicate with the main singlechip 11 for a certain time T1, the SBC power supply 10 enters a deep sleep stage,
when the SBC power supply 10 is in deep sleep, the power supply of the main singlechip 11 is turned off. After the master singlechip 11 is halted, SPI communication between the monitoring singlechip 12 and the master singlechip 11 also fails, and the communication failure time T2 between the monitoring singlechip 12 and the master singlechip 11 also occurs. When T2 is less than or equal to T1, the monitoring singlechip 12 cannot wake up the SBC power supply 10, and when T2 is more than T1, the SBC power supply 10 is deeply dormant, the main singlechip 11 is powered off at the moment, and the monitoring singlechip 12 wakes up the SBC power supply 10. When the SBC power supply 10 is awakened, the SBC power supply 10 supplies power to the main singlechip 11 again, which is equivalent to restarting the main singlechip 11; the main singlechip 11 is restarted and then works normally.
The protection circuit and the method for preventing the single-chip microcomputer reset signal from being invalid are mainly applied to a vehicle controller with high safety, and solve the problem that an SBC power supply cannot reset a main single-chip microcomputer when the reset pin of the main single-chip microcomputer is invalid due to the fact that the single-chip microcomputer in the controller is easy to crash and the reset pin with a certain risk is invalid.

Claims (3)

1. A protection circuit for preventing a reset signal of a singlechip from losing efficacy is characterized in that: comprises an LDO power supply (13), a monitoring singlechip (12), an SBC power supply (10) and a main singlechip (11);
the LDO power supply (13) is electrically connected with the monitoring singlechip (12), and the LDO power supply (13) supplies power for the monitoring singlechip (12);
the monitoring singlechip (12) is electrically connected with the SBC power supply (10), and the monitoring singlechip (12) is used for waking up the SBC power supply (10) when the SBC power supply (10) is in deep dormancy;
the SBC power supply (10) is electrically connected with the main singlechip (11), and the SBC power supply (10) is used for supplying power to the main singlechip (11), carrying out SPI communication with the main singlechip (11) and controlling a reset pin of the main singlechip (11);
the main singlechip (11) is electrically connected with the monitoring singlechip (12), and the main singlechip (11) is in SPI communication with the monitoring singlechip (12).
2. The protection circuit for preventing a single-chip microcomputer reset signal from being invalid according to claim 1, wherein: the LDO power supply (13) and the SBC power supply (10) are respectively and electrically connected with the vehicle power supply (14), and the vehicle power supply (14) respectively supplies power for the LDO power supply (13) and the SBC power supply (10).
3. The protection method for preventing the single-chip microcomputer reset signal from losing efficacy is characterized by comprising the following steps:
step S1, when a RESET pin of a main singlechip is invalid, an SBC power supply cannot communicate with the main singlechip through an SPI interface;
step S2, after setting the duration of time for which the SBC power supply and the main singlechip still keep communication failure as a first preset time T1, the SBC power supply 10 enters a deep sleep stage;
step S3, setting the duration of the communication failure between the monitoring singlechip and the main singlechip as a second preset time T2, and if the second preset time T2 is greater than the first preset time T1, powering off and powering off the main singlechip, and waking up the SBC power supply by the monitoring singlechip;
and S4, after the SBC power supply is awakened, the SBC power supply supplies power to the main singlechip again, and the main singlechip restarts normal operation.
CN202110021506.0A 2021-01-08 2021-01-08 Protection circuit and method for preventing single chip microcomputer reset signal from losing efficacy Active CN112698981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110021506.0A CN112698981B (en) 2021-01-08 2021-01-08 Protection circuit and method for preventing single chip microcomputer reset signal from losing efficacy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110021506.0A CN112698981B (en) 2021-01-08 2021-01-08 Protection circuit and method for preventing single chip microcomputer reset signal from losing efficacy

Publications (2)

Publication Number Publication Date
CN112698981A CN112698981A (en) 2021-04-23
CN112698981B true CN112698981B (en) 2023-05-23

Family

ID=75513336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110021506.0A Active CN112698981B (en) 2021-01-08 2021-01-08 Protection circuit and method for preventing single chip microcomputer reset signal from losing efficacy

Country Status (1)

Country Link
CN (1) CN112698981B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113415249B (en) * 2021-07-29 2022-05-03 重庆长安新能源汽车科技有限公司 Domain controller turn-off path circuit and vehicle

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205827525U (en) * 2016-04-29 2016-12-21 浙江启扬智能科技有限公司 A kind of charging pile Charging Detail Record unit mainboard
CN205920369U (en) * 2016-08-24 2017-02-01 东风汽车公司 Long electrified carbone controller power
WO2017148385A1 (en) * 2016-03-02 2017-09-08 深圳市银盾科技开发有限公司 Smart automobile battery

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000267767A (en) * 1999-03-19 2000-09-29 Fujitsu General Ltd On-line system
CN104635690B (en) * 2014-12-30 2017-12-19 北京新能源汽车股份有限公司 Vehicle control unit of pure electric vehicle integrating gateway function
CN109669797A (en) * 2018-12-25 2019-04-23 苏州绿控传动科技股份有限公司 A kind of hardware circuit of power supply chip monitoring singlechip state
CN212219965U (en) * 2020-03-30 2020-12-25 威睿电动汽车技术(宁波)有限公司 New energy automobile and quick-charging awakening system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017148385A1 (en) * 2016-03-02 2017-09-08 深圳市银盾科技开发有限公司 Smart automobile battery
CN205827525U (en) * 2016-04-29 2016-12-21 浙江启扬智能科技有限公司 A kind of charging pile Charging Detail Record unit mainboard
CN205920369U (en) * 2016-08-24 2017-02-01 东风汽车公司 Long electrified carbone controller power

Also Published As

Publication number Publication date
CN112698981A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN101618720B (en) Control method of whole car controller of hybrid electric car
CN112109646B (en) System and method for realizing low-power-consumption vehicle-mounted communication management
CN112092626B (en) Remote monitoring protection method and system for low-voltage storage battery of electric vehicle
CN106926730B (en) Charging control method and device, remote data acquisition unit and automobile
CN104859565A (en) Power management circuit, method and system
CN109353221B (en) Safety monitoring system and monitoring method for electric vehicle key controller
CN113612283B (en) Automatic power supplementing method for storage battery of pure electric vehicle
CN113064403A (en) Controller state monitoring method based on OSEK network management
CN105313719B (en) A kind of entire car controller and its wakeup process monitoring method
CN113771624A (en) Intelligent electricity supplementing method for new energy automobile
CN113320436A (en) Novel intelligent power supplementing method for electric passenger car
CN112698981B (en) Protection circuit and method for preventing single chip microcomputer reset signal from losing efficacy
CN114583804A (en) Intelligent power supplementing method and system for 12V storage battery of pure electric vehicle
CN113859153B (en) Power management method of vehicle-mounted controller, vehicle-mounted controller and vehicle
CN108656976B (en) Battery management system
CN110289648B (en) Method and system for controlling storage battery of unmanned rail transit vehicle
CN209962152U (en) Automobile 24V electric control system redundant voltage reduction circuit according with function safety
CN115626071A (en) Intelligent power-on control method and system for pure electric vehicle
CN114516282A (en) Power supplementing method and system for storage battery of electric vehicle
CN113771783A (en) Control system and method for reducing vehicle quiescent current
CN219789904U (en) Multisource wake-up circuit and electric automobile
CN115179875B (en) Reliable control method for automobile door, electric controller and carrier
CN219257322U (en) Electronic parking braking system
CN113085551B (en) Power management system for whole vehicle system and motor controller
CN216184930U (en) 48V battery management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 401133 room 208, 2 house, 39 Yonghe Road, Yu Zui Town, Jiangbei District, Chongqing

Patentee after: Deep Blue Automotive Technology Co.,Ltd.

Address before: 401133 room 208, 2 house, 39 Yonghe Road, Yu Zui Town, Jiangbei District, Chongqing

Patentee before: CHONGQING CHANGAN NEW ENERGY AUTOMOBILE TECHNOLOGY Co.,Ltd.