CN105652760B - The power protection system and method for single-chip microcontroller - Google Patents

The power protection system and method for single-chip microcontroller Download PDF

Info

Publication number
CN105652760B
CN105652760B CN201610195445.9A CN201610195445A CN105652760B CN 105652760 B CN105652760 B CN 105652760B CN 201610195445 A CN201610195445 A CN 201610195445A CN 105652760 B CN105652760 B CN 105652760B
Authority
CN
China
Prior art keywords
voltage
chip microcontroller
chip
monitoring circuit
electrically connected
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
CN201610195445.9A
Other languages
Chinese (zh)
Other versions
CN105652760A (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.)
BEIJING DRAGON RESOURCES TECHNOLOGY Co Ltd
Original Assignee
BEIJING DRAGON RESOURCES 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 BEIJING DRAGON RESOURCES TECHNOLOGY Co Ltd filed Critical BEIJING DRAGON RESOURCES TECHNOLOGY Co Ltd
Publication of CN105652760A publication Critical patent/CN105652760A/en
Application granted granted Critical
Publication of CN105652760B publication Critical patent/CN105652760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21154Over current protection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Power Sources (AREA)
  • Microcomputers (AREA)

Abstract

The invention discloses a kind of power protection system of single-chip microcontroller and methods.Wherein, which includes: control chip, single-chip microcontroller and external equipment, wherein control chip is electrically connected with single-chip microcontroller and external equipment respectively, for external input voltage to be converted to the first voltage of corresponding single-chip microcontroller and the second voltage of corresponding external equipment;Single-chip microcontroller is electrically connected, for receiving the first voltage after controlling chip transformation with control chip;External equipment is electrically connected, for receiving the second voltage after controlling chip transformation with control chip.The present invention is solved since the relevant technologies voltage monitoring circuit and watchdog circuit needs are individually designed, it is high to lead to design cost, and the technical problem that the area for occupying printing board PCB is big.

Description

The power protection system and method for single-chip microcontroller
Technical field
The present invention relates to electrical applications technical fields, power protection system and side in particular to a kind of single-chip microcontroller Method.
Background technique
With the extensive utilization of singlechip technology, according to the 61508th article of agreement of International Electrotechnical Commission The regulation of (InternationalElectrotechnical Commission, abbreviation IEC61508), in functional safety product In, it is necessary to supply voltage and program operation to single-chip minimum system are monitored and are just able to satisfy security requirement.Related skill The core power voltage of most of single-chip microcontroller is 1.2V or 1.8V in art, and I/O mouthfuls of supply voltages are 3.3V, and external power voltage is 5V, it is therefore desirable to which providing more specification safety power supplies for single-chip minimum system can just meet the requirements.Solution generally used now Voltage conversion circuit, voltage monitoring circuit and window watchdog circuit three independent functional unit circuits are divided into come in fact It is existing, when voltage monitoring circuit monitors electric voltage exception or house dog is overflowed, triggering is resetted into single-chip microcontroller.Specifically include following two Kind technical solution, it is as depicted in figs. 1 and 2 respectively.
Fig. 1 is the structural schematic diagram of the working principle of the first related art scheme: using 3 independent voltage conversion electricity The step voltage conversion of 24V to 5V, 5V to 3.3V, 3.3V to 1.2V are realized in road respectively.3 independent voltage monitoring circuits point Not Jian Kong 5V, 3.3V and 1.2V under-voltage and overvoltage condition, reset single-chip microcontroller when monitored voltage occurs abnormal.Independent window Mouth watch dog monitoring single-chip microcontroller intermediate range sort run, when single-chip microcontroller is not in designated time internal trigger house dog, house dog is overflowed multiple Position single-chip microcontroller.
Fig. 2 is the structural schematic diagram of the working principle of second of related art scheme: using a piece of integrated voltage conversion Device realizes that 24V to 5V, the conversion of 3.3V and 1.2V voltage, 3 independent voltage monitoring circuits monitor 5V, 3.3V and 1.2V respectively Under-voltage and overvoltage condition resets single-chip microcontroller when monitored voltage occurs abnormal.In independent window watch dog monitoring single-chip microcontroller Program operation, when single-chip microcontroller is not in designated time internal trigger house dog, house dog, which is overflowed, resets single-chip microcontroller.
For it is above-mentioned due to the relevant technologies voltage monitoring circuit and see doorway circuit need it is individually designed, lead to design cost Height, and the problem that the area that occupies printing board PCB is big, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of power protection system of single-chip microcontroller and methods, at least to solve due to related skill Art voltage monitoring circuit and watchdog circuit needs are individually designed, it is high to lead to design cost, and occupy printing board PCB The big technical problem of area.
According to an aspect of an embodiment of the present invention, a kind of power protection system of single-chip microcontroller is provided, comprising: control core Piece, single-chip microcontroller and external equipment, wherein control chip is electrically connected with single-chip microcontroller and external equipment respectively, is used for external input Voltage is converted to the first voltage of corresponding single-chip microcontroller and the second voltage of corresponding external equipment;Single-chip microcontroller is electrically connected with control chip It connects, for receiving the first voltage after controlling chip transformation;External equipment is electrically connected with control chip, for receiving control core Second voltage after piece transformation.
According to another aspect of an embodiment of the present invention, a kind of power protection method of single-chip microcontroller is additionally provided, comprising: will connect The external input voltage received is converted to the first voltage of corresponding single-chip microcontroller and the second voltage of corresponding external equipment;Detection first Whether voltage and second voltage match with preset standard, and preset standard is for detecting whether input voltage is single-chip microcontroller and external sets Standby operating voltage;When detecting that first voltage and second voltage and preset standard mismatch, is sent to single-chip microcontroller and reset letter Number, reset signal is resetted for control single chip computer.
In embodiments of the present invention, by the way of control integrated chip voltage monitoring and watchdog circuit, pass through control Chip is electrically connected with single-chip microcontroller and external equipment respectively, for external input voltage to be converted to the first electricity of corresponding single-chip microcontroller The second voltage of pressure and corresponding external equipment;Single-chip microcontroller be electrically connected, for receiving the after controlling chip transformation with control chip One voltage;External equipment is electrically connected with control chip, for receiving the second voltage after controlling chip transformation, has reached reduction The purpose of design cost saves pcb board design area to realize, and saves the technical effect of production design cost, and then solve It has determined since the relevant technologies voltage monitoring circuit and watchdog circuit needs are individually designed, it is high to have led to design cost, and occupy The big technical problem of the area of printing board PCB.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the structural schematic diagram of the working principle of the first related art scheme;
Fig. 2 is the structural schematic diagram of the working principle of second of related art scheme;
Fig. 3 is the structural schematic diagram of the power protection system of single-chip microcontroller according to an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the power protection system of single-chip microcontroller according to an embodiment of the present invention;
Fig. 5 is the flow diagram of the power protection method of single-chip microcontroller according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of system embodiment of the power protection system of single-chip microcontroller is provided, Fig. 3 is basis The structural schematic diagram of the power protection system of the single-chip microcontroller of the embodiment of the present invention, as shown in figure 3, the system includes: control chip 32, single-chip microcontroller 34 and external equipment 36, wherein
Chip 32 is controlled, is electrically connected respectively with single-chip microcontroller 34 and external equipment 36, for being converted to external input voltage The second voltage of the first voltage of corresponding single-chip microcontroller 34 and corresponding external equipment 36;
Single-chip microcontroller 34 is electrically connected, for receiving the first voltage after controlling 32 transformation of chip with control chip 32;
External equipment 36 is electrically connected, for receiving the second voltage after controlling 32 transformation of chip with control chip 32.
From the foregoing, it will be observed that the power protection system of single-chip microcontroller provided by the embodiments of the present application can be applied to single-chip microcontroller minimum Supply voltage and the program operation of system are monitored, and are different from the relevant technologies, such as Fig. 1 and the relevant technologies shown in Fig. 2, this Apply for that the power protection system for the single-chip microcontroller that embodiment provides can carry out transformation to external input voltage by control chip 32 And the voltage after transformation can be monitored, so that the first voltage that control chip 32 exports can satisfy single-chip microcontroller 34 With the operating voltage (that is, first voltage and second voltage that the embodiment of the present application is mentioned) of external equipment 36, so as to avoid phase In the technology of pass due to the relevant technologies voltage monitoring circuit and watchdog circuit need it is individually designed, caused design cost it is high and The big problem of the plate face layout area occupied of printed circuit pcb board, and then saved design cost and each device institute on pcb board The area accounted for.
In the power protection system of single-chip microcontroller provided by the embodiments of the present application, using control integrated chip voltage monitoring and see The mode of door dog circuit is electrically connected with single-chip microcontroller and external equipment, by controlling chip for turning external input voltage respectively It is changed to the first voltage of corresponding single-chip microcontroller and the second voltage of corresponding external equipment;Single-chip microcontroller is electrically connected with control chip, is used for First voltage after receiving control chip transformation;External equipment is electrically connected with control chip, after receiving control chip transformation Second voltage, achieved the purpose that reduce design cost, thus realize save pcb board design area, save production design The technical effect of cost, and then solve since the relevant technologies voltage monitoring circuit and watchdog circuit needs are individually designed, it leads It is high to cause design cost, and the technical problem that the area for occupying printing board PCB is big.
Fig. 4 is a kind of structural schematic diagram of the power protection system of single-chip microcontroller according to an embodiment of the present invention, such as Fig. 4 institute Show, the power protection system of single-chip microcontroller provided by the embodiments of the present application is specific as follows:
Optionally, control chip 32 includes: voltage conversion circuit 321 and voltage monitoring circuit 322, wherein
Voltage conversion circuit 321 is electrically connected with the power end of single-chip microcontroller 34 and external equipment 36 respectively, and being used for will be external defeated Enter voltage and is converted to the first voltage of corresponding single-chip microcontroller 34 and the second voltage of corresponding external equipment 36;
Voltage monitoring circuit 322 is electrically connected with voltage conversion circuit 321, for detecting the output of voltage conversion circuit 321 Whether first voltage and second voltage reach preset standard, and whether preset standard is single-chip microcontroller 34 and outer for detecting input voltage Connect the operating voltage of equipment 36.
Specifically, in control chip 32 provided by the embodiments of the present application, the input terminal of voltage conversion circuit 321 with it is external defeated Enter power electric connection, the output end of voltage conversion circuit 321 is electrically connected with external equipment 36 and single-chip microcontroller 34 respectively, such as Fig. 4 institute Showing, the input terminal of voltage conversion circuit 321 is after the voltage input for receiving 24V, by transformation, external equipment in the voltage of output 36 input voltage is 5V, and the input voltage of single-chip microcontroller 34 is 3.3V and 1.2V, that is, the voltage conversion circuit in control chip 32 321 according to external equipments 36 and single-chip microcontroller 34 voltage input demand, by external input power output external input voltage into Row transformation obtains the output voltage (first voltage i.e. provided by the embodiments of the present application and that meet external equipment 36 and single-chip microcontroller 34 Two voltages);
To ensure that first voltage and the second voltage of the output of voltage conversion circuit 321 are single-chip microcontroller 34 and external equipment 36 Operating voltage is (that is, the first voltage and provided by the embodiments of the present application exported by preset standard to voltage conversion circuit 321 Two voltages are detected), voltage monitoring circuit 322, which passes through, in control chip 32 provided by the embodiments of the present application converts electricity with voltage Road 321 is electrically connected, and is detected to the voltage of the voltage conversion circuit 321 output, to ensure what voltage conversion circuit 321 exported Voltage is due to excessively high caused damage single-chip microcontroller 34 and external equipment 36, or, after finding 321 transformation of voltage conversion circuit in time The voltage of output cannot drive external equipment 36 and single-chip microcontroller 34 as caused by brownout.Voltage monitoring circuit 322 ensures Voltage conversion circuit 321 in control chip 32 whether can reach after carrying out transformation to external input voltage meet it is external The demand of equipment 36 and single-chip microcontroller 34, and guarantee is provided to whether external equipment 36 and single-chip microcontroller 34 can be used safely.
Here since the core power voltage of most of single-chip microcontroller is 1.2V or 1.8V, I/O mouthfuls of supply voltages are 3.3V, outside If supply voltage is 5V, it is therefore desirable to which providing more specification safety power supplies for single-chip minimum system can just meet the requirements, the application Embodiment provide control chip 32 in voltage conversion circuit 321 output voltage in first voltage export respectively 3.3V with 1.2V, second voltage export 5V, that is, the input voltage of the I/O mouth of single-chip microcontroller 34 is 3.3V (that is, end VCC1 shown in Fig. 4), singly The core power voltage of piece machine 34 is 1.2V (that is, end VCC2 shown in Fig. 4), and the input voltage of external equipment 36 is 5V.It needs Illustrating, the power protection system of single-chip microcontroller provided by the embodiments of the present application is only illustrated by taking above-mentioned output voltage as an example, It is subject to the power protection system for realizing single-chip microcontroller provided by the embodiments of the present application, specifically without limitation.
Further, optionally, voltage conversion circuit 321 includes: current/direct-current conversion device 3211 and voltage-stablizer group 3212, In,
Current/direct-current conversion device 3211, is electrically connected with external power supply, for being converted to the external input voltage of external power supply Tertiary voltage;
Voltage-stablizer group 3212 is electrically connected with current/direct-current conversion device 3211, for tertiary voltage to be converted to corresponding first electricity Pressure and second voltage.
Specifically, as shown in figure 4, voltage conversion circuit 321 passes through direct current transducer in voltage conversion circuit 321 Ac/dc voltage is converted to DC voltage by 3211, wherein external input voltage 24V passes through direct current transducer 3211DC/DC Medium voltage V1 (that is, tertiary voltage provided by the present application) is converted to, V1 is using voltage-stablizer group 3212 (i.e. shown in Fig. 4 LDO1~LDO3) 5V, 3.3V and 1.2V are exported respectively.General voltage-stablizer group 3212 requires minimum voltage difference between input and output For 0.5V, and V1 voltage value Ruo Taigao will cause the conversion circuit fever of the composition of voltage-stablizer group 3212, then will damage by pressure stabilizing The conversion circuit that device group 3212 forms, so control chip 32 provided by the embodiments of the present application is multifunctional unit chip TPS65381, the V1 voltage of the TPS65381 chip are 6V, have both been able to satisfy the conversion circuit of the composition of rear end voltage-stablizer group 3212 Demand, and many heats will not be generated at work.In turn, voltage-stablizer group 3212 turns V1 respectively after obtaining tertiary voltage V1 It is changed to first voltage and second voltage, as shown in figure 4, V1 is converted to 5V, 3.3V and 1.2V.
Further, voltage-stablizer group 3212 includes: multiple voltage-stablizers 32121, and voltage-stablizer is low pressure difference linear voltage regulator, Wherein, the first voltage-stablizer is electrically connected with external equipment 36, for exporting the second voltage of corresponding external equipment 36;Second pressure stabilizing Device and third voltage-stablizer, are electrically connected with single-chip microcontroller 34, for exporting the first voltage of corresponding single-chip microcontroller 34.
Specifically, as shown in figure 4, voltage-stablizer group 3212 provided by the embodiments of the present application is low pressure difference linear voltage regulator (Low Dropout regulator, abbreviation LDO), after receiving tertiary voltage V1, which is converted into first voltage and the second electricity Pressure, wherein in voltage-stablizer group 3212, the first voltage-stablizer is electrically connected with external equipment 36, the second voltage-stablizer and third voltage-stablizer and Single-chip microcontroller 34 is electrically connected, from the foregoing, it will be observed that the VCC1 in Fig. 4 connects the second voltage-stablizer, VCC2 connects third voltage-stablizer, and the second voltage-stablizer is defeated 3.3V voltage out, third voltage-stablizer export 1.2V voltage.
Optionally, voltage monitoring circuit 322 are electrically connected with current/direct-current conversion device 3211 and voltage-stablizer group 3212 respectively, are used Whether reach preset standard in detection tertiary voltage, first voltage and second voltage.
Specifically, as shown in figure 4, voltage monitoring circuit 322 respectively with the current/direct-current conversion device in voltage conversion circuit 321 3211 and voltage-stablizer group 3212 be electrically connected, for detect current/direct-current conversion device 3211 output tertiary voltage, voltage-stablizer group 3212 Whether the first voltage and second voltage of output meet preset standard.
Optionally, chip 32 is controlled further include: program monitors circuit 323, wherein
Program monitors circuit 323, is electrically connected with single-chip microcontroller 34, and the program for monitoring singlechip 34 is run.
In addition, as shown in figure 4, being controlled in the power protection system of single-chip microcontroller provided by the embodiments of the present application in chip 32 also It include: program monitoring circuit 323, the program monitoring circuit 323 in the embodiment of the present application can be independent for band shown in Fig. 4 here The window watchdog circuit of Shi Ji judges whether there is the signal for receiving the transmission of single-chip microcontroller 34 by preset timer, if When timer expiry does not receive the signal of the transmission of single-chip microcontroller 34 also, program monitoring circuit 323 in the embodiment of the present application (that is, In Fig. 4 with it is independent when base window watchdog circuit) will triggering reset single-chip microcontroller 34 reset signal.Wherein, chip is controlled 32 receive the configuration information and trigger signal that single-chip microcontroller 34 is sent, and do not send triggering letter at preset timed intervals when monitoring single-chip microcontroller 34 Number when, program monitor circuit 323 to single-chip microcontroller 34 send reset signal, reset the single-chip microcontroller 34.
Further, program monitoring circuit 323 includes: configuration module and functional module, wherein
Configuration module is electrically connected with single-chip microcontroller 34, for receiving the configuration information of the transmission of single-chip microcontroller 34;
Functional module is electrically connected with single-chip microcontroller 34, for receiving the trigger signal of single-chip microcontroller 34 and sending to single-chip microcontroller 34 Reset signal.
Specifically, the functional module in program monitoring circuit 323 is electrically connected with single-chip microcontroller 34, for receiving in preset time The trigger signal that interior single-chip microcontroller 34 is sent, while in the case where not receiving trigger signal within a preset time, to single-chip microcontroller 34 send reset signal, so that single-chip microcontroller 34 resets.
Optionally, single-chip microcontroller 34 includes: first voltage input terminal 341, second voltage input terminal 342 and Serial Peripheral Interface (SPI) 343, wherein
First voltage input terminal 341 and second voltage input terminal 342, are electrically connected, for receiving with voltage conversion circuit 321 The first voltage that voltage conversion circuit 321 exports, wherein the voltage that first voltage input terminal 341 receives is greater than second voltage The voltage that input terminal 342 receives;
Serial Peripheral Interface (SPI) 343 is electrically connected, for configuring respectively with voltage monitoring circuit 322 and program monitoring circuit 323 Voltage monitoring circuit 322 and program monitor circuit 323.
Specifically, as shown in figure 4, including first voltage input terminal 341 (VCC1 shown in Fig. 4), second in single-chip microcontroller 34 Voltage input end 342 (VCC2 shown in Fig. 4) and Serial Peripheral Interface (SPI) 343 (SPI shown in Fig. 4), first voltage inputs here End 341 and second voltage input terminal 342 are electrically connected with the voltage conversion circuit 321 in control chip 32, are turned for receiving voltage Change the first voltage of the output of circuit 321, wherein first voltage input terminal 341 is the port data input and output I/O, second voltage Input terminal 342 is core power voltage input end, as shown in figure 4, the voltage of first voltage input terminal 341 is 3.3V, the second electricity Pressure input terminal 342 is 1.2V.
Serial Peripheral Interface (SPI) (Serial Peripheral Interface, abbreviation SPI) 343 respectively with control chip 32 In voltage monitoring circuit 322 and program monitoring circuit 323 be electrically connected, single-chip microcontroller 34 by Serial Peripheral Interface (SPI) 343 configuration control Voltage monitoring circuit 322 and program in coremaking piece 32 monitor circuit 323, and discharge the Serial Peripheral Interface (SPI) after configuration is complete 343。
Optionally, single-chip microcontroller 34 further include: reseting interface 344 and signal output interface 345, wherein
Reseting interface 344 is electrically connected, for receiving voltage respectively with voltage monitoring circuit 322 and program monitoring circuit 323 Monitor the reset signal that circuit 322 or program monitoring circuit 323 are sent;
Signal output interface 345 is electrically connected, the trigger signal for transmission with program monitoring circuit 323.
Specifically, as shown in figure 4, the reseting interface 344 in single-chip microcontroller 34 is shown in Fig. 4 in the embodiment of the present application The port RST, signal output interface 345 are the port WDI shown in Fig. 4.Wherein, reseting interface 344 respectively with control chip 32 In voltage monitoring circuit 322 and program monitoring circuit 323 be electrically connected, for voltage monitoring circuit 322 detect first electricity Pressure and second voltage over-voltage or it is under-voltage in the case where the reset signal that exports, or, program monitoring circuit 323 is within a preset time not Trigger signal is received, reset signal is sent, corresponds to 34 side of single-chip microcontroller here, signal output interface 345 is within a preset time The port of trigger signal is sent to control chip.
To sum up, the power protection system of single-chip microcontroller provided by the embodiments of the present application is when in use, specific as follows:
Firstly, the voltage conversion circuit 321 for TPS65381 (that is, control chip 32 provided by the embodiments of the present application) provides The 24V power supply of redundancy.
Second, independent 24V power supply is provided to control the VSAF of chip 32.
Third after single-chip microcontroller 34 completes initialization, reads the register in TPS65381 chip, confirmation electricity by SPI Whether pressure monitoring function can be used, and voltage monitoring function is enabled if unavailable.That is, the serial peripheral of corresponding above-mentioned single-chip microcontroller 34 Interface 343 is electrically connected with the voltage monitoring circuit 322 of control chip 32.
4th, single-chip microcontroller configures the house dog in TPS65381 chip by SPI, and in the process of running, single-chip microcontroller 34 is logical WDI is crossed in designated time internal trigger house dog.That is, corresponding above-mentioned Serial Peripheral Interface (SPI) 343 and signal output interface 345.
5th, single-chip microcontroller is completed to discharge SPI mouthfuls after TPS65381 chip initiation by SPI.That is, release is above-mentioned serial Peripheral Interface 343.
From the foregoing, it will be observed that single-chip microcontroller provided by the embodiments of the present application power protection system provide use collecting voltage conversion, Voltage monitoring and it is independent when base window watchdog function solve in the TPS65381 chip of one in the relevant technologies voltage monitorings electricity Road and watchdog circuit needs are individually designed, and it is high to lead to design cost, and the technology that the area for occupying printing board PCB is big Problem.
In addition, compared with prior art, the power protection system of single-chip microcontroller provided by the embodiments of the present application has following excellent Point: (1) part category is single, facilitates supplier management;(2) individually designed voltage monitoring circuit and watchdog circuit are not needed; (3) it is small to occupy pcb board area.
Embodiment 2
According to embodiments of the present invention, the embodiment of the method for a kind of power protection method of single-chip microcontroller is provided, Fig. 5 is basis The flow diagram of the power protection method of the single-chip microcontroller of the embodiment of the present invention, as shown in figure 5, this method comprises:
The external input voltage received is converted to the first voltage of corresponding single-chip microcontroller and corresponds to external set by step S502 Standby second voltage;
Step S504, detects first voltage and whether second voltage matches with preset standard, and preset standard is defeated for detecting Enter voltage whether be single-chip microcontroller and external equipment operating voltage;
Step S506 is sent multiple when detecting that first voltage and second voltage and preset standard are mismatched to single-chip microcontroller Position signal, reset signal are resetted for control single chip computer.
In conjunction with step S502 to step S506, Fig. 3 in corresponding embodiment 1, step S502 to step S506 are implementing this When applying for the power protection method for the single-chip microcontroller that embodiment provides, by receiving external input voltage, by the external input voltage Be converted to the first voltage of 3 single-chip microcontroller 34 of corresponding diagram and the second voltage of external equipment 36;And then control chip 32 detects in Fig. 3 Whether the first voltage and second voltage reach preset standard, if not up to preset standard, send to single-chip microcontroller 34 and reset letter Number, to ensure the safe operation of single-chip microcontroller 34.
In the power protection method of single-chip microcontroller provided by the embodiments of the present application, by the way that the external input voltage received is turned It is changed to the first voltage of corresponding single-chip microcontroller and the second voltage of corresponding external equipment;Detect first voltage and second voltage whether with Preset standard matching, preset standard be used for detect input voltage whether be single-chip microcontroller and external equipment operating voltage;Work as detection When mismatching to first voltage and second voltage and preset standard, reset signal is sent to single-chip microcontroller, reset signal is for controlling Monolithic processor resetting, has achieved the purpose that reduce design cost, saves pcb board design area to realize, and saves production design The technical effect of cost, and then solve since the relevant technologies voltage monitoring circuit and watchdog circuit needs are individually designed, it leads It is high to cause design cost, and the technical problem that the area for occupying printing board PCB is big.
Optionally, the case where chip includes: voltage conversion circuit, voltage monitoring circuit and program monitoring circuit is being controlled Under, sending reset signal to single-chip microcontroller in step S506 includes:
Whether Step1 reaches in the first voltage and second voltage of voltage monitoring circuit detection voltage conversion circuit conversion Preset standard;
Step2 determines the when voltage monitoring circuit detects that first voltage and/or second voltage are less than preset standard One voltage and/or second voltage are under-voltage condition, send the first reset signal to single-chip microcontroller, wherein the first reset signal is used for The voltage status of instructed voltage is under-voltage condition;
Step3 determines the when voltage monitoring circuit detects that first voltage and/or second voltage are greater than preset standard One voltage and/or second voltage are overvoltage condition, send the second reset signal to single-chip microcontroller, wherein the second reset signal is used for The voltage status of instructed voltage is overvoltage condition.
In conjunction with Step1 to Step3, Fig. 4 in corresponding embodiment 1, if the voltage monitoring circuit 322 in control chip 32 is examined Measure first voltage and/or when voltage is not up to preset standard (that is, over-voltage and under-voltage state), send the first reset signal or Second reset signal.
Optionally, the power protection method of single-chip microcontroller provided by the embodiments of the present application further include:
Whether overtime step S508 detects preset reset timer;
Step S510 receives the trigger signal that single-chip microcontroller is sent in the case where testing result is no;
Step S512 sends reset signal to single-chip microcontroller in the case where testing result, which is, is.
In conjunction with step S508 to step S512, Fig. 4 in corresponding embodiment 1 is controlled and is deposited between chip 32 and single-chip microcontroller 34 In preset timer, that is, control chip 32 in program monitoring circuit 323 (that is, with it is independent when base window house dog) in inspection Survey whether preset reset timer is overtime, if not receiving the trigger signal of the transmission of single-chip microcontroller 34 within a preset time, controls Program in coremaking piece 32 monitors circuit 323 and sends reset signal to single-chip microcontroller 34;If receiving single-chip microcontroller within a preset time 34 trigger signals sent, then receive the trigger signal.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-OnlyMemory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of power protection system of single-chip microcontroller, which is characterized in that applied to single-chip minimum system supply voltage and Program operation is monitored, comprising: control chip, single-chip microcontroller and external equipment, wherein
The control chip, is electrically connected with the single-chip microcontroller and the external equipment respectively, for converting external input voltage For the first voltage of the correspondence single-chip microcontroller and the second voltage of the corresponding external equipment;
The single-chip microcontroller is electrically connected with the control chip, for receive it is described control chip transformation after the first voltage;
The external equipment is electrically connected with the control chip, for receive it is described control chip transformation after it is described second electricity Pressure;
Wherein, the control chip includes: that voltage conversion circuit, voltage monitoring circuit and program monitoring circuit, the voltage turn Circuit is changed, is electrically connected respectively with the power end of the single-chip microcontroller and the external equipment, for being converted to external input voltage The second voltage of the first voltage of the corresponding single-chip microcontroller and the corresponding external equipment;The voltage monitoring circuit, with The voltage conversion circuit electrical connection, for detecting the first voltage and second electricity that the voltage conversion circuit exports Whether pressure reaches preset standard, and whether the preset standard is the single-chip microcontroller and described external for detecting the input voltage The operating voltage of equipment;Described program monitors circuit, and with the monolithic mechatronics, the program for monitoring the single-chip microcontroller is transported Row;
The control chip includes: TPS65381 chip.
2. the power protection system of single-chip microcontroller according to claim 1, which is characterized in that the voltage conversion circuit packet It includes: current/direct-current conversion device and voltage-stablizer group, wherein
The current/direct-current conversion device, is electrically connected with external power supply, for being converted to the external input voltage of the external power supply Tertiary voltage;
The voltage-stablizer group, is electrically connected with the current/direct-current conversion device, for the tertiary voltage to be converted to corresponding described the One voltage and the second voltage.
3. the power protection system of single-chip microcontroller according to claim 2, which is characterized in that the voltage-stablizer group includes: more A voltage-stablizer, and the voltage-stablizer is low pressure difference linear voltage regulator, wherein the first voltage-stablizer is electrically connected with the external equipment, For exporting the second voltage of the corresponding external equipment;Second voltage-stablizer and third voltage-stablizer, it is electromechanical with the monolithic Connection, for exporting the first voltage of the corresponding single-chip microcontroller.
4. the power protection system of single-chip microcontroller according to claim 2, which is characterized in that the voltage monitoring circuit, point Be not electrically connected with the current/direct-current conversion device and the voltage-stablizer group, for detect the tertiary voltage, the first voltage and Whether the second voltage reaches the preset standard.
5. the power protection system of single-chip microcontroller according to claim 1, which is characterized in that described program monitors circuit packet It includes: configuration module and functional module, wherein
The configuration module, with the monolithic mechatronics, the configuration information sent for receiving the single-chip microcontroller;
The functional module, and monolithic mechatronics, for receiving the trigger signal of the single-chip microcontroller and to the monolithic Machine sends reset signal.
6. the power protection system of single-chip microcontroller according to claim 1, which is characterized in that the single-chip microcontroller includes: first Voltage input end, second voltage input terminal and Serial Peripheral Interface (SPI), wherein
The first voltage input terminal and the second voltage input terminal, are electrically connected, for receiving with the voltage conversion circuit The first voltage of the voltage conversion circuit output, wherein the voltage that the first voltage input terminal receives is greater than institute State the voltage that second voltage input terminal receives;
The Serial Peripheral Interface (SPI) is electrically connected, for configuring respectively with the voltage monitoring circuit and described program monitoring circuit The voltage monitoring circuit and described program monitor circuit.
7. the power protection system of single-chip microcontroller according to claim 1, which is characterized in that the single-chip microcontroller further include: multiple Position interface and signal output interface, wherein
The reseting interface is electrically connected with the voltage monitoring circuit and described program monitoring circuit respectively, described for receiving The reset signal that voltage monitoring circuit or described program monitoring circuit are sent;
The signal output interface is electrically connected, the trigger signal for transmission with described program monitoring circuit.
8. a kind of power protection method of single-chip microcontroller, which is characterized in that applied to list described in any one of claims 1 to 7 The power protection system of piece machine, comprising:
The external input voltage received is converted into the first voltage of the corresponding single-chip microcontroller and corresponds to the external equipment Second voltage;
It detects the first voltage and whether the second voltage matches with preset standard, the preset standard is described for detecting Input voltage whether be the single-chip microcontroller and the external equipment operating voltage;
When detecting that the first voltage and the second voltage and the preset standard mismatch, Xiang Suoshu single-chip microcontroller is sent Reset signal, the reset signal is for controlling the monolithic processor resetting.
9. according to the method described in claim 8, it is characterized in that, including: voltage conversion circuit, voltage in the control chip It is described to include: to single-chip microcontroller transmission reset signal in the case where monitoring circuit and program monitoring circuit
The first voltage of the voltage conversion circuit conversion is detected in the voltage monitoring circuit and the second voltage is It is no to reach the preset standard;
When the voltage monitoring circuit detects the first voltage and/or the second voltage is less than the preset standard, Determining the first voltage and/or the second voltage is under-voltage condition, Xiang Suoshu single-chip microcontroller sends the first reset signal, In, the voltage status that first reset signal is used to indicate the voltage is the under-voltage condition;
When the voltage monitoring circuit detects the first voltage and/or the second voltage is greater than the preset standard, Determining the first voltage and/or the second voltage is overvoltage condition, Xiang Suoshu single-chip microcontroller sends the second reset signal, In, the voltage status that second reset signal is used to indicate the voltage is the overvoltage condition.
10. according to the method described in claim 8, it is characterized in that, the method also includes:
Whether overtime detect preset reset timer;
In the case where testing result is no, the trigger signal that the single-chip microcontroller is sent is received;
In the case where testing result, which is, is, Xiang Suoshu single-chip microcontroller sends reset signal.
CN201610195445.9A 2016-03-08 2016-03-30 The power protection system and method for single-chip microcontroller Active CN105652760B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2016101313977 2016-03-08
CN201610131397 2016-03-08

Publications (2)

Publication Number Publication Date
CN105652760A CN105652760A (en) 2016-06-08
CN105652760B true CN105652760B (en) 2019-07-23

Family

ID=56496622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610195445.9A Active CN105652760B (en) 2016-03-08 2016-03-30 The power protection system and method for single-chip microcontroller

Country Status (1)

Country Link
CN (1) CN105652760B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108736453A (en) * 2017-11-23 2018-11-02 研祥智能科技股份有限公司 A kind of overload protection arrangement and method based on backboard

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201145894Y (en) * 2007-10-26 2008-11-05 比亚迪股份有限公司 Observation circuit for single-chip
CN202771364U (en) * 2012-09-07 2013-03-06 济南腾越电子有限公司 Computer power source intelligent management system based on advanced technology extended (ATX) power source
CN202888790U (en) * 2012-09-11 2013-04-17 西安阿普顿电力技术有限公司 Resettable over/under-voltage protector based on one-chip microcomputer
CN104158403A (en) * 2014-08-06 2014-11-19 西京学院 Single chip microcomputer-controlled switching power supply and control method thereof
CN204391674U (en) * 2015-01-30 2015-06-10 国家电网公司 A kind of communication chip real-time voltage monitoring device
CN204808196U (en) * 2015-05-21 2015-11-25 北京亚科鸿禹电子有限公司 FPGA prototype verification system's power monitoring device
CN105262192A (en) * 2015-11-19 2016-01-20 天津工业大学 Vehicle-mounted direct current system capable of stabilizing power supply and charging batteries
CN205721194U (en) * 2016-03-08 2016-11-23 北京龙鼎源科技股份有限公司 The power protection system of single-chip microcomputer

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI365572B (en) * 2008-12-31 2012-06-01 Remote controllable power outlet apparatus with grouping capability and grouping remote control method
CN102270960A (en) * 2011-07-27 2011-12-07 重庆金美通信有限责任公司 Singlechip-based DC brushed motor controller
CN202634617U (en) * 2012-02-26 2012-12-26 上海爱谱华顿电子工业有限公司 Full-function-type intelligent video monitoring test device based on PIC-series single-chip microprocessor
TR201410120A2 (en) * 2014-08-28 2016-03-21 Aselsan Elektronik Sanayi Ve Ticaret Anonim Sirketi High efficiency battery charging method and device with solar panel using maximum power monitoring technique.

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201145894Y (en) * 2007-10-26 2008-11-05 比亚迪股份有限公司 Observation circuit for single-chip
CN202771364U (en) * 2012-09-07 2013-03-06 济南腾越电子有限公司 Computer power source intelligent management system based on advanced technology extended (ATX) power source
CN202888790U (en) * 2012-09-11 2013-04-17 西安阿普顿电力技术有限公司 Resettable over/under-voltage protector based on one-chip microcomputer
CN104158403A (en) * 2014-08-06 2014-11-19 西京学院 Single chip microcomputer-controlled switching power supply and control method thereof
CN204391674U (en) * 2015-01-30 2015-06-10 国家电网公司 A kind of communication chip real-time voltage monitoring device
CN204808196U (en) * 2015-05-21 2015-11-25 北京亚科鸿禹电子有限公司 FPGA prototype verification system's power monitoring device
CN105262192A (en) * 2015-11-19 2016-01-20 天津工业大学 Vehicle-mounted direct current system capable of stabilizing power supply and charging batteries
CN205721194U (en) * 2016-03-08 2016-11-23 北京龙鼎源科技股份有限公司 The power protection system of single-chip microcomputer

Also Published As

Publication number Publication date
CN105652760A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
US20110179291A1 (en) Power adaptor detection system
US6850048B2 (en) Power supply controller
US20150236522A1 (en) Usb charging system with variable charging voltage, charger and smart terminal
EP3247071A1 (en) Maintain power signature controller at power interface of poe or podl system
CN101677190B (en) Component having multiple output voltages and electronic device using same
CN108123519A (en) Power supply transfer equipment and its control method, device and electric power system
CN209690871U (en) A kind of off-peak electrification system and device
CN105607719B (en) Sequential control circuit
US9812861B2 (en) Power adapter and method of adapting power for electronic devices
CN107453427B (en) CAN signal wake-up circuit
CN104143854A (en) Direct-current uninterruptible power system and abnormal voltage detection method thereof
CN102263423B (en) Universal serial bus charging system and charging method thereof
CN106793314A (en) Lamp light control system based on POE and infrared induction technology
CN105652760B (en) The power protection system and method for single-chip microcontroller
CN108345562A (en) Multipath server and its signal processing method
US9219413B2 (en) Power supplies responsive to multiple control signal formats
TWI361975B (en) Multi-output voltage battery module and electronic device using the same
CN110647478B (en) Method and system for setting serial communication equipment address
TW201739139A (en) Modular battery system
CN206610191U (en) The control circuit and control device of a kind of voltage break-make
CN106033242A (en) An external power supply unit and a system connection detecting unit for the same
CN205721194U (en) The power protection system of single-chip microcomputer
CN210351233U (en) Circuit breaker, cabinet and system
CN112769968B (en) Circuit breaker, cabinet, system, address acquisition method and equipment
CN107132896A (en) Method of supplying power to and device and storage medium, processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 101500 No. 7 Xingsheng South Road, Miyun District, Beijing

Patentee after: BEIJING DRAGON RESOURCES TECHNOLOGY CO., LTD.

Address before: 101500 Beijing Miyun city ten Li Bao Zhen Tong Jun Zhuang intersection 500 meters east of the new

Patentee before: BEIJING DRAGON RESOURCES TECHNOLOGY CO., LTD.

CP02 Change in the address of a patent holder