Time-delay reset system and vehicle control device
Technical field
This disclosure relates to electronic technology field, more particularly to a kind of time-delay reset system and vehicle control device.
Background technology
As electronic technology is applied to technical field of vehicle more and more widely, vehicle safety, energy-saving and environmental protection are improved
Etc. performance, while also changing the traditional structure of vehicle, and progressively extend the function of vehicle, electronic technology is not
Disconnected development also gradually steps up the intelligence degree of vehicle control system.
In the prior art, when the house dog in vehicle control device, (i.e. Watch Dog, house dog are a kind of are used for periodically
Detection chip inner case, the circuit of Restart Signal is sent to chip once mistake occurs, can be regarded as a kind of monitoring
Chip) detect microcontroller (Microcontroller Unit, abbreviation:MCU it is directly multiple when power supply circuit) occurs abnormal
8-digit microcontroller.But for microcontroller, when exception occurs in power supply, the reset operation of house dog triggering belongs to hard
Part resets, and all data in system all cannot be preserved normally, and the diagnostic data of power supply cannot equally be preserved, not only
Loss of data is caused, also results in the diagnostic function failure of system.
Utility model content
The purpose of this utility model is to provide a kind of time-delay reset system and vehicle control device, for solving in the prior art
There is abnormal the problem of can not preserving data in system.
According to the first aspect of the disclosure, there is provided a kind of time-delay reset system, the system comprises:Power Entry Module,
Low pressure modular converter, watchdog module, time-delay reset module, standby power supply module and microcontroller;
The voltage conversion that the low pressure modular converter is used to provide the Power Entry Module is the microcontroller
Operating voltage, and the operating voltage is supplied to the microcontroller;
The watchdog module is used for the state for monitoring the microcontroller and the low pressure modular converter, when the micro-control
When device processed or the low pressure modular converter occur abnormal, reset request is sent to the time-delay reset module;
The time-delay reset module maintains system data for triggering the microcontroller after the reset request is received,
And reset signal is sent to the microcontroller after default decay time, for resetting the microcontroller;
The standby power supply module is used for when the low pressure modular converter occurs abnormal, to the microcontroller and described
Time-delay reset module for power supply.
Optionally, the watchdog module is used for:When detecting that it is pre- that feeding-dog signal that the microcontroller is sent is not met
If during rule, it is abnormal to determine that the microcontroller occurs, reset request is sent to the time-delay reset module;Alternatively, when detection
When the voltage exported to the low pressure modular converter occurs over-pressed or under-voltage, it is abnormal to determine that the low pressure modular converter occurs, to
The time-delay reset module sends reset request.
Optionally, the time-delay reset module is used for, and after the reset signal is received, starts the time-delay reset module
In timing module start timing, and trigger the microcontroller and start the lower electric current journey of exception;
The microcontroller is used for, and system data diagnosis generation diagnosis number is carried out after electric current journey under starting the exception
According to, and preserve the system data for including the diagnostic data;
The time-delay reset module is additionally operable to, when the timing time of the timing module reaches the default delay time
The reset signal is produced, and the reset signal is sent to the microcontroller;
The microcontroller is additionally operable to, and after the reset signal is received, reset operation is carried out to the microcontroller.
Optionally, the system also includes:
Energy supply control module, for when the low pressure modular converter occurs abnormal, control the standby power supply module to
The microcontroller and the time-delay reset module for power supply.
Optionally, the input terminal of the Power Entry Module is connected with storage battery, the output terminal of the Power Entry Module
Be connected with the input terminal of the low pressure modular converter, the output terminal of the low pressure modular converter and the standby power supply module it is defeated
Outlet connects the first input end and the second input terminal of the energy supply control module, the output terminal of the energy supply control module respectively
Connect the power end of the time-delay reset module and the power end of the microcontroller.
Optionally, the signal output part of the time-delay reset module connects the reset terminal of the microcontroller, described to guard the gate
First signal input part of dog module connects the feeding-dog signal output terminal of the microcontroller, the second letter of the watchdog module
Number input terminal connects the signal output part of the low pressure modular converter, prolongs described in the signal output part connection of the watchdog module
When reseting module signal input part;
Wherein, the first signal input part of the watchdog module is used for the feeding-dog signal output terminal from the microcontroller
Feeding-dog signal is received, the secondary signal input terminal of the watchdog module is used for the state for monitoring the low pressure modular converter, institute
The signal output part for stating watchdog module is used to send the reset request, institute to the signal input part of the time-delay reset module
The signal output part for stating time-delay reset module is used to send the reset signal to the reset terminal of the microcontroller.
Optionally, the first signal input part of the watchdog module and the feeding-dog signal output terminal of the microcontroller are equal
For serial peripheral equipment interface SPI;
The institute that first signal input part of the watchdog module is received from the feeding-dog signal output terminal of the microcontroller
It is SPI signal to state feeding-dog signal.
Optionally, the standby power supply module is button cell.
According to the second aspect of the disclosure, there is provided a kind of vehicle control device, it is characterised in that including:Described in first aspect
Time-delay reset system.
Through the above technical solutions, the time-delay reset system provided and vehicle control device of the disclosure, pass through house dog
The state of module monitors microcontroller and low pressure modular converter, when microcontroller or abnormal low pressure modular converter appearance, Xiang Yan
When reseting module send reset request, time-delay reset module triggers microcontroller after reset request is received and maintains system data,
And reset signal is sent to microcontroller after default decay time, for resetting microcontroller, standby power supply module is in low pressure
When modular converter occurs abnormal, to microcontroller and time-delay reset module for power supply.Therefore, the technical side provided of the disclosure
Case so that in system exception situation, the reset for the microprocessor that is delayed utilizes spare so as to the preservation of its progress system data
Power module ensures that the power supply of the microprocessor during system data preserves is normal, can not be protected when overcoming the system failure
The problem of diagnostic function of deposit system data and system fails, it can be ensured that system data is not easy to lose, and ensures that system is examined
Disconnected function is effective, so as to improve the safety in operation of system and reliability.
Other feature and advantage of the disclosure will be described in detail in subsequent specific embodiment part.
Brief description of the drawings
Attached drawing is for providing further understanding of the disclosure, and a part for constitution instruction, with following tool
Body embodiment is used to explain the disclosure together, but does not form the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is the schematic diagram of the reset system with house dog in the prior art;
Fig. 2 is a kind of structure chart of the time-delay reset system provided according to a kind of embodiment of the disclosure;
Fig. 3 is the structure chart of another time-delay reset system provided according to a kind of embodiment of the disclosure.
Embodiment
The embodiment of the disclosure is described in detail below in conjunction with attached drawing.It should be appreciated that this place is retouched
The embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
Before embodiment of the disclosure is introduced, the reality of existing watchdog module and the disclosure is introduced first
Application scenarios.In microcomputer system, Micro-processor MCV is generally comprised, since the work of MCU may usually be subject to
Interference from external electromagnetic field, causes the race of program to fly (because programming problem enters according to the operation of author's meaning
Endless loop or without meaning disorderly operation), and it is absorbed in endless loop so that the normal operation of the program in system is interrupted, from
And can not be worked on by the MCU whole systems controlled, whole system is absorbed in dead state, and unpredictable consequence occurs.
So for the consideration monitored in real time to MCU operating statuses, just generate a kind of dedicated for monitoring MCU journeys
" house dog " chip of sort run state, is known as Watch Dog, i.e.,.General house dog can be a timer circuit, have
One input terminal, is also named and feeds dog end, periodically drawn by a certain output pin of programme-control MCU toward this input of house dog
High level (or low level) signal is sent on foot, is commonly called as " feeding dog ", therefore the signal is properly termed as feeding-dog signal, this program control
Sentence processed is dispersedly placed among MCU other control statements, and in addition house dog also has an output pin to be connected to MCU's
Reset terminal, when MCU does not enter endless loop state since interference causes to be absorbed in a certain program segment after program fleet, MCU is usual
Normally " dog can not be fed ", therefore house dog can be found that the exception of MCU, so as to send reset signal to MCU, triggers its generation
The operation of reset.
Wherein, on above-mentioned " feeding dog process ", the counter of house dog is started while system brings into operation, is seen
Door dog begins to count automatically, when MCU is worked normally, exports a signal at regular intervals and feeds dog end to above-mentioned,
So as to be zeroed out to the count internal of house dog, if MCU exceedes the defined time and does not feed dog (usually in program fleet
When), then house dog counter will because no feeding-dog signal inputs and counter overflow so as to causing house dog to be interrupted,
It is exactly that the timing of house dog exceedes, reset signal will be triggered to MCU so that MCU resets, and prevents the crash of MCU.So as to prevent
Endless loop occurs for program, in other words program fleet.
Reset system of the prior art with house dog is as shown in Figure 1, wherein, include power supply in reset system
Module, low pressure conversion circuit, watchdog circuit and MCU, when power supply module after the power is turned on, given by low pressure conversion circuit
MCU powers, and watchdog circuit monitors whether low pressure conversion circuit has exception while monitoring MCU and whether having and feed dog on time, when
When there is MCU without dog or abnormal low pressure conversion circuit appearance is fed on time, watchdog circuit sends the reset for being used for resetting MCU
Signal, realizes automatically reseting for MCU.In the technical solution shown in Fig. 1, since the reset operation of watchdog circuit triggering belongs to
Hardware reset, all data in system all cannot be preserved normally, and the diagnostic data of power supply cannot equally be preserved, no
But loss of data is caused, also results in the diagnostic function failure of system.Therefore to solve the above-mentioned problems, present disclose provides one kind
Time-delay reset system.
Fig. 2 is a kind of structure chart of the time-delay reset system provided according to a kind of embodiment of the disclosure.Such as Fig. 2 institutes
Show, which includes:It is Power Entry Module 10, low pressure modular converter 20, watchdog module 30, time-delay reset module 40, standby
With power module 50 and microcontroller 60, wherein:
Low pressure modular converter 20, the voltage conversion for Power Entry Module 10 to be provided are electric for the work of microcontroller 60
Pressure, and operating voltage is supplied to microcontroller 60.
Illustratively, which can carry out reverse connecting protection to the power supply (storage battery) of whole system,
Surging prevention, and it is carried out at the same time filtering process.Wherein the power supply can use KL30 storage batteries, which belongs to normal
Electricity condition, therefore the Power Entry Module 10 is constantly in working status, reverse connecting protection can use general-purpose diode to carry out, prevent
Surge protection passes through transient diode (English full name:Transient Voltage Suppressor, abbreviation TVS) realize, and
Increase the realization of the elements such as capacitance to operate the filtering process of circuit.The operating voltage of the chip of general microcontroller 60 is 3.3V
Or 5V, therefore the input voltage of KL30 need to be converted to the operating voltage for meeting chip power supply demand by low pressure conversion circuit 20,
The operating voltage is also used as the reference voltage of analog acquisition in control system, and is closed for time opening module, timing
Module and external sensor are powered.Due to the core devices microcontroller that low pressure modular converter 20 is whole system 200
60 namely MCU power, therefore security requirement is higher.
Generally, the realization of low pressure modular converter 20, can use voltage-releasing voltage stabilizer circuit and system base chip real
It is existing.The function of voltage-releasing voltage stabilizer circuit be in the case of input power, that is, battery-voltage fluctuation, or when storage battery electricity
When pressure is in overvoltage condition, ensure that rear class voltage conversion circuit there can be stable input, while can be with compatible 12V/24V systems
System.The way of realization of common voltage-releasing voltage stabilizer circuit in many ways, such as can also choose collection by discrete device
Into chip.
Exemplary, TPS54340B chips are a 42V, and 3.5A voltage-releasing voltage stabilizers, have been internally integrated high-end metal-oxide
Thing semiconductor field effect transistor, abbreviation metal-oxide half field effect transistor (English full name:Metal-Oxide-Semiconductor
Field-Effect Transistor, referred to as:MOSFET).According to ISO7637 standards, this device is resistant to up to 45V's
Throw load pulse.Controlled in Current Mode and Based provides simple external compensation and the selection of flexible component.One low ripple pulse is jumped
Source current when jump pattern will be non-loaded is decreased to 146 μ A.When the enabled pin of the chip is pulled to low level, shut-off electricity
Ource electric current is reduced to 1 μ A.Output voltage start slope be controlled by chip internal with provide a controlled startup and
Eliminate the current over pulse in start-up course.
Alternatively, TPS54340B chips can also be used, the input voltage range of the chip is 4.5V~42V, brownout threshold
It is set as 4.3V in inside, the brownout threshold can be improved with the external electric resistance partial pressure of enabled pin.The output voltage of the chip
Scope is 0.8~41V, maximum output current 3.5A, can also compatibility 12V/24V systems.
Watchdog module 30, for monitoring the state of microcontroller 60 and low pressure modular converter 20, when microcontroller 60 or
When low pressure modular converter 20 occurs abnormal, reset request is sent to time-delay reset module 40.
Wherein, watchdog module 30 is specifically used for:When detect microcontroller 60 send feeding-dog signal do not meet it is default
When regular, determine that exception occurs in microcontroller 60, reset request is sent to time-delay reset module 40;Low pressure is detected alternatively, working as
When the voltage that modular converter 20 exports occurs over-pressed or under-voltage, determine that exception occurs in low pressure modular converter 20, to time-delay reset mould
Block 40 sends reset request.Wherein, which can for example include:Watchdog module 30 is feeding dog apart from upper once receive
When not receiving feeding-dog signal in the stipulated time after signal, determine that exception occurs in microcontroller 60;Alternatively, can will be apart from upper
Once receive and do not receive feeding-dog signal in the first stipulated time after feeding-dog signal and regard an anomalous event as, when accumulation occur it is different
When the number of ordinary affair part reaches preset times threshold value, determine that microcontroller 60 exception, or watchdog module 30 occurs in distance
Last time receives when not receiving feeding-dog signal in the first stipulated time after feeding-dog signal, determines that exception occurs in microcontroller 60,
Wherein the second stipulated time can be much larger than for the first stipulated time.
Illustratively, the function of watchdog module 30 and low pressure modular converter 20 can be realized by a system base chip,
Such as the FS6500 chips for selecting En Zhi Pus company can be utilized, which can be that MCU powers, and pass through DC/DC
Switching regulator, linear voltage regulator and super low-power consumption energy saver mode optimize energy consumption.The chip also has following characteristic:Function is pacified
Overall height level measure, available for the SPI (English for controlling and diagnosing MCU:Serial Peripheral Interface, Chinese:String
Row Peripheral Interface), while it is integrated with CAN (Chinese:Controller local area network, English:Controller Area Network) connect
Mouth and a series of security function, such as a fail safe situation machine and an advanced watchdog module (advanced watchdog module
Compared to traditional watchdog module, in addition to timing monitoring MCU whether normal " feeding dog ", can also monitor on same chip
Low pressure modular converter), in addition it should be noted that realizing watchdog module 30 and low pressure at the same time using system base chip
During the function of modular converter 20, the communication between watchdog module 30 and low pressure modular converter 20 belongs to chip internal and communicates, nothing
Need peripheral communication interface and circuit again.
Time-delay reset module 40, maintains system data for triggering microcontroller 60 after reset request is received, and pre-
If reset signal is sent to microcontroller 60 after decay time, for resetting microcontroller 60.
Wherein, time-delay reset module 40 is specifically used for:After the reset signal is received, in start-up study reseting module 40
Timing module starts timing, and triggers microcontroller 60 and start abnormal lower electric current journey.
The major function of the time-delay reset module 40 is to be realized to carry out MCU in the preset time according to the setting of MCU
Time-delay reset, by triggering the timing module in the time-delay reset module 40, starts clocking capability, and MCU is made while starting
Abnormal lower electric current journey is proceeded by, that is, advanced row data preserve lower electricity afterwards.The timing module in order to ensure stablize and can
By property, independent current source can be used to power, such as after electricity under system, be powered using stand-by power supply 50 to it.
Illustratively, time-delay reset module 40 can select integrated chip to realize, can also use digital circuit.Such as
The PCF2123 chips of En Zhi Pus company can be used to realize the function of the time-delay reset module 40.By Serial Peripheral Interface (SPI) with
The maximum data rate of 6.25Mbit/s carries out serial data transmission.Function of the chip with alarm and timer at the same time,
Possess interrupt capabilities, pulse triggering signal can be generated in interrupt pin, while according to user demand can freely program and determine
When device and alarm setting;The clock work voltage of the chip is 1.1V to 5.5V.
Microcontroller 60, for carrying out system data diagnosis generation diagnostic data after electric current journey under starting exception, and
Preserve the system data for including diagnostic data.
Illustratively, the time-delay reset module 40, is additionally operable to when the timing time of timing module reaches default delay time
Reset signal is produced, and reset signal is sent to microcontroller 60.
Microcontroller 60, is additionally operable to after reset signal is received, and reset operation is carried out to microcontroller 60.
Wherein, core of the microcontroller 60 as whole system, is powered by low pressure modular converter 20, after the power-up by logical
With the enable pin of incoming/outgoing foot control low pressure modular converter 20, loss of data caused by each wake-up signal loss is prevented.
For example, the MPC5748G chips of En Zhi Pus company can be selected as microcontroller.
Standby power supply module 50, for when low pressure modular converter 20 occurs abnormal, to microcontroller 60 and time-delay reset
Module 40 is powered.
Illustratively, which can be button cell.Small due to button cell, stability is high,
Therefore when low pressure conversion circuit occurs abnormal, the normal power supply to system, microcontroller 60 and time-delay reset mould can not be realized
Block 40 is then switched to be powered by standby power supply module 50, that is, button cell.This is that is, work as low pressure conversion circuit
During 20 normal work, in order to save the power consumption of button cell, prolong the service life, microcontroller 60 and time-delay reset circuit 40 are all
It is powered by low pressure conversion circuit 20.
In conclusion the time-delay reset system provided of the disclosure passes through time-delay reset module so that in system exception
During situation, the reset for the MCU that is delayed is ensured in system data so as to the preservation of its progress system data using standby power supply module
MCU power supplys are normal during preservation, can not be maintained system data when overcoming the system failure and the diagnostic function of system
The problem of failure, it can be ensured that system data is not easy to lose, and ensures that system diagnostics function is effective, so as to improve system
Safety in operation and reliability.
Illustratively, Fig. 3 is the structure chart of another time-delay reset system provided according to a kind of embodiment of the disclosure,
As shown in figure 3, the system 200 further includes:
Energy supply control module 70, for when low pressure modular converter 20 occurs abnormal, control standby power supply module 50 is to micro-
Controller 60 and time-delay reset module 40 are powered.
The input terminal of the Power Entry Module 10 is connected with storage battery, and output terminal and the low pressure of Power Entry Module 10 are changed
The input terminal connection of module 20, the output terminal of low pressure modular converter 20 and the output terminal of standby power supply module 50 connect power supply respectively
The first input end of control module 70 and the second input terminal, the output terminal connection time-delay reset module 40 of energy supply control module 70
The power end of power end and microcontroller 60.
That is, energy supply control module 70 is with low pressure modular converter 20 and standby power supply module 50 by being respectively connected with,
So as to fulfill the power supply according to different system mode switching microcontroller 60 and time-delay reset module 40.Such as the power supply
Control module 70 can be realized by OR-gate, to ensure either in abnormal conditions still under normal circumstances, microcontroller
Device 60 and time-delay reset module 40 can be by normal power supplies.
In addition, the reset terminal of the signal output part connection microcontroller 60 of time-delay reset module 40, watchdog module 30
First signal input part connects the feeding-dog signal output terminal of microcontroller 60, the secondary signal input terminal connection of watchdog module 30
The signal output part of low pressure modular converter 20, the signal of the signal output part connection time-delay reset module 40 of watchdog module 30 are defeated
Enter end.
Wherein, the first signal input part of watchdog module 30 is used to receive from the feeding-dog signal output terminal of microcontroller 60
Feeding-dog signal, the secondary signal input terminal of watchdog module 30 are used for the state for monitoring low pressure modular converter 20, watchdog module
Signal output part be used for time-delay reset module 40 signal input part send reset request, the signal of time-delay reset module 40
Output terminal is used to send reset signal to the reset terminal of microcontroller 60.Exemplary, the signal output part of the reseting module 40 can
To be interrupt pin, which is used for the reset terminal that microcontroller 60 is sent to using reset signal as a high level,
When the reset terminal of microcontroller 60 receives the high level, then confirm to reset microcontroller 60.
First signal input part of watchdog module 30 and the feeding-dog signal output terminal of microcontroller 60 are serial peripheral
Interface SPI.
First signal input part of watchdog module 30 feeds dog letter from what the feeding-dog signal output terminal of microcontroller 60 received
Number it is SPI signal.
, wherein it is desired to explanation, time-delay reset module 40 can also be communicated by SPI with microprocessor 60 (to be schemed
Not shown in), the time-delay reset module 40 is configured for microprocessor 60, for example, being configured to its timing module.
SPI is a kind of synchronous serial Peripheral Interface, it can make MCU communicate in a serial fashion with various ancillary equipment
To exchange information.Can be under the shift pulse of MCU, data step-by-step transmission is high-order preceding, and low level carries out full duplex and leads to rear
Letter, its data transmission bauds is faster than other buses on the whole, and speed can reach several Mbps.
MCU is communicated with the chip of low pressure modular converter 20 by SPI, so as to configure each of the low pressure modular converter 20
Kind operating mode.MCU is communicated with the timing module of reset delay module 40 by SPI, configures the reset delay module 40
Clock information so that the clock of the time-delay reset module 40 and the clock of MCU are consistent, and are opened in reset delay module 40
Qi Hou, MCU are then started simultaneously at into abnormal lower electric current journey, and the data of Power Entry Module 10 are diagnosed first, and carries out
The lower electricity of the MCU is carried out after the preservation of the diagnostic data and the other data of system again.There is abnormal need so as to fulfill in system
When being resetted to microprocessor 60, microprocessor 60 does not fail the diagnostic function of power supply.
In addition, except through realizing the power supply under system different conditions using above-mentioned energy supply control module 70
Switching outside, can also directly be completed by writing power supply option program in MCU, such as the logic of the program is:In system just
Often in the case of operation (low pressure modular converter 20 does not occur exception), acquiescence does not enable standby power supply module 50, is turned by low pressure
Mold changing block 20 is powered MCU and time-delay reset module 40;And only when the low pressure modular converter 20 breaks down, pass through
MCU carries out standby power supply module 50 enabled operation, and the power supply circuit of MCU and time-delay reset module 40 are switched to stand-by power supply
Module 50, and the enabled of standby power supply module 40 is closed after the preservation operation that MCU completes to system data, then by MCU, then
MCU is electrically operated under performing.
In conclusion the time-delay reset system provided of the disclosure passes through time-delay reset module so that in system exception
During situation, the reset for the MCU that is delayed is ensured in system data so as to the preservation of its progress system data using standby power supply module
MCU power supplys are normal during preservation, can not be maintained system data when overcoming the system failure and the diagnostic function of system
The problem of failure, it can be ensured that system data is not easy to lose, and ensures that system diagnostics function is effective, so as to improve system
Safety in operation and reliability.
The disclosure also provides a kind of vehicle control device, which includes:Any delays of Fig. 1 to Fig. 3 are answered
Position system.
The preferred embodiment of the disclosure is described in detail above in association with attached drawing, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure
Monotropic type, these simple variants belong to the protection domain of the disclosure.
It is further to note that each particular technique feature described in above-mentioned embodiment, in not lance
In the case of shield, it can be combined by any suitable means.In order to avoid unnecessary repetition, the disclosure to it is various can
The combination of energy no longer separately illustrates.
In addition, it can also be combined between a variety of embodiments of the disclosure, as long as it is without prejudice to originally
Disclosed thought, it should equally be considered as disclosure disclosure of that.