A kind of reset circuit and electronic equipment
Technical field
The utility model relates to the electronic device circuitry field, relates in particular to a kind of reset circuit and electronic equipment.
Background technology
In integrated circuit, the core of motherboard design is exactly CPU (central processing unit, Central Processing Unit).Hardware view guarantees that the prerequisite of the reliable and stable work of CPU is exactly: reliable power supply, reliable clock, reliable reset.Insecure resetting possibly make CPU can't stablize startup.Existing reset circuit mainly contains two kinds:
A kind of is to utilize switching devices such as electric capacity charge effects and triode to build the delay circuit that simply powers on to realize resetting of CPU.The delay circuit cost is very low though power on, and is very unreliable, and delay duration is influenced by selected electric capacity precision, and is also very sensitive to environment for use.
Another kind is with the special use chip that resets, like MAX809.The chip that resets can provide the reset signal of reliable and stable, but under the situation of continuous high-speed switch machine, the problem that machine can't start may occur.The principle of work of chip of resetting is a certain road supply voltage that detects on the mainboard, and is common like 5V, 3.3V.When the voltage that detects is lower than preset threshold voltage, when being reduced to 2.97V, can send the reset signal of certain time length like 3.3V.Under the situation of rapid Continuous switching on and shutting down, be distributed with a large amount of electric capacity on the mainboard, close the moment of swap switch, each road voltage can't disappear at once on the mainboard, but each has one period discharge time, and what of voltage swing and the electric capacity that connects are time length depend on.Usually CPU core voltage (like 1.2V) discharge is fast, and I/O voltage 3.3V discharge wants slow.When core voltage (1.2V) discharge was reduced to the minimum value (1.1V) that CPU requires, CPU had quit work, and if this moment 3.3V be not reduced to below the 2.97V, power on once more, CPU will can't not start because of resetting.
The utility model content
The utility model embodiment technical matters to be solved is, a kind of reset circuit and electronic equipment are provided, and realizes the reliable reset of central processor CPU.
To achieve these goals; The utility model embodiment provides a kind of reset circuit, comprises central processor CPU module, micro-control unit MCU (full name is Micro Controller Unit) module, and the power module that said CPU module, MCU module are supplied power; Wherein, Said MCU module links to each other with said CPU module, and said MCU module is used to monitor the electric power thus supplied of the said CPU module of said electric power source pair of module and the running status of said CPU module, under the normal situation of the said CPU module for power supply of said electric power source pair of module; When said CPU module starts or during operation exception, for said CPU module provides reset signal.
Further, said MCU module comprises: supply voltage detecting unit, communication unit, reset unit and the indicating member that reports an error;
Said supply voltage detecting unit is used to detect the electric power thus supplied of the said CPU module of said electric power source pair of module;
Said communication unit is used for carrying out communication with said CPU module, detects the running status of said CPU module;
Said reset unit is used to said CPU module reset signal is provided;
The said indicating member that reports an error; When being used under the abnormal situation of the said CPU module for power supply of said electric power source pair of module starting said CPU module; Perhaps it is supplied power when undesired at said CPU module operation exception and said electric power source pair of module; Send warning signal, cut off the power supply of the said CPU module of said electric power source pair of module simultaneously.
Further, said communication unit is twin wire universal serial bus I2C (full name is Inter-Integrated Circuit) or universal asynchronous reception/dispensing device UART (full name is Universal Asynchronous Receiver/Transmitter).
Further, the said indicating member that reports an error utilizes LED light or drives charactron and shows said caution signal, reminds the user to carry out associative operation.
Accordingly, the utility model embodiment also provides a kind of electronic equipment that comprises said reset circuit.
Reset circuit that the utility model embodiment provides and electronic equipment; Has following technique effect: the result who the running environment and the running status of CPU module is monitored according to the MCU module; Said MCU module has improved the stability and the fiduciary level of CPU module work for the CPU module provides reset signal.
Description of drawings
In order to be illustrated more clearly in the utility model embodiment or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiment of the utility model, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
The example structure synoptic diagram of the reset circuit that Fig. 1 provides for the utility model.
Embodiment
To combine the accompanying drawing among the utility model embodiment below, the technical scheme among the utility model embodiment is carried out clear, intactly description, obviously, described embodiment only is the utility model part embodiment, rather than whole embodiment.Based on the embodiment in the utility model, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the utility model protection.
Referring to Fig. 1; The reset circuit example structure synoptic diagram that provides for the utility model; As shown in Figure 1, this reset circuit comprises central processor CPU module 11, micro-control unit MCU module 12, and the power module 13 that said CPU module 11, MCU module 12 are supplied power.Wherein, Said MCU module 12 links to each other with said CPU module 11; Said MCU module 12 is used to monitor the electric power thus supplied of 13 pairs of said CPU modules 11 of said power module and the running status of said CPU module 11; Under the normal situation of said CPU modules 11 power supplies of 13 pairs of said power modules, when said CPU module 11 starts or during operation exception, for said CPU module 11 provides reset signal.
Further, said MCU module 12 comprises: supply voltage detecting unit 121, communication unit 122, reset unit 123 and the indicating member 124 that reports an error.
Said supply voltage detecting unit 121 is used to detect the electric power thus supplied of the said CPU module of said electric power source pair of module.
Concrete, the power supply of 13 pairs of said CPU modules 11 of said power module comprises each the road power supply to the CPU module, comprises CPU core voltage (like 1.2V), I/O interface voltage power supply etc.
Said communication unit 122 is used for carrying out communication with said CPU module, detects the running status of said CPU module.
Concrete; Said communication unit is twin wire universal serial bus I2C (full name is Inter-Integrated Circuit) or universal asynchronous reception/dispensing device UART (full name is Universal Asynchronous Receiver/Transmitter), links to each other with the running status indication pin of said CPU module.Said CPU module is when normal operation, and every separated special time outwards sends a pulse signal through running status indication pin, and said communication unit 122 receives said pulse signal, just explains that the running status of said CPU module is normal; Said CPU module is in misoperation, and when being absorbed in the endless loop state, said communication unit 122 just can not receive said pulse signal, explains that the running status of said CPU module is unusual.
Said reset unit 123 is used to said CPU module reset signal is provided.
Concrete, said reset unit 123 can provide the delay time signal that adapts to all kinds of cpu reset time requirements.
The said indicating member 124 that reports an error; When being used under the abnormal situation of the said CPU module for power supply of said electric power source pair of module starting said CPU module; Perhaps it is supplied power when undesired at said CPU module operation exception and said electric power source pair of module; Send warning signal, cut off the power supply of the said CPU module of said electric power source pair of module simultaneously.
Concrete, the said indicating member that reports an error utilizes LED light or drives charactron and shows said caution signal, reminds the user to carry out associative operation.
The reset circuit course of work of the utility model mainly contains following two aspects:
The first, during startup, said power module normally powers on, and the MCU module starts, and whether normal, normally then send reset signal and give the CPU module if detecting each road supply voltage that said power module provides, and said CPU module normally starts; As each the road supply voltage that detects said power module and provide is lower than or when surpassing the normal voltage value range, then drive the said indicating member that reports an error and send warning signal, and reminds the user, cuts off the power supply to the CPU module simultaneously.
The second, after the normal startup of CPU module, the MCU module is through the said CPU module of said communication unit timer access; Obtain the running status of CPU module; When finding operation exception, as when the situation of endless loop occurring, detect each road power supply electric power thus supplied that said power module provides; Normal like electric power thus supplied, then send reset signal again; Unusual like electric power thus supplied, then drive the said indicating member that reports an error and send warning signal, remind the user, cut off power supply simultaneously to the CPU module.
The reset circuit that the utility model embodiment provides has following technique effect:
According to the result that the MCU module is monitored the running environment and the running status of CPU module, said MCU module has improved the stability and the fiduciary level of CPU module work for the CPU module provides reset signal.
Above disclosedly be merely the utility model preferred embodiment, can not limit the interest field of the utility model certainly with this, the equivalent variations of therefore being done according to the utility model claim still belongs to the scope that the utility model is contained.