CN105652760A - System and method for protecting power sources of single chip microcomputer - Google Patents
System and method for protecting power sources of single chip microcomputer Download PDFInfo
- Publication number
- CN105652760A CN105652760A CN201610195445.9A CN201610195445A CN105652760A CN 105652760 A CN105652760 A CN 105652760A CN 201610195445 A CN201610195445 A CN 201610195445A CN 105652760 A CN105652760 A CN 105652760A
- Authority
- CN
- China
- Prior art keywords
- voltage
- chip microcomputer
- electrically connected
- monitoring circuit
- chip
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000012544 monitoring process Methods 0.000 claims abstract description 51
- 238000006243 chemical reaction Methods 0.000 claims description 47
- 230000009466 transformation Effects 0.000 claims description 14
- 238000001514 detection method Methods 0.000 claims description 10
- 230000002093 peripheral effect Effects 0.000 claims description 9
- 230000007704 transition Effects 0.000 claims description 6
- 230000005611 electricity Effects 0.000 claims description 4
- 238000012360 testing method Methods 0.000 claims description 4
- 238000013461 design Methods 0.000 abstract description 23
- 238000007639 printing Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 102100039435 C-X-C motif chemokine 17 Human genes 0.000 description 3
- 101000889048 Homo sapiens C-X-C motif chemokine 17 Proteins 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000000844 transformation Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 241000949477 Toona ciliata Species 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0428—Safety, monitoring
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/21—Pc I-O input output
- G05B2219/21154—Over 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 system and a method for protecting power sources of a single chip microcomputer. The system comprises a control chip, the single chip microcomputer and external equipment. The control chip is electrically connected with the single chip microcomputer and the external equipment and is used for converting external input voltages into first voltages and second voltages, the first voltages correspond to the single chip microcomputer, and the second voltages correspond to the external equipment; the single chip microcomputer is electrically connected with the control chip and is used for receiving the first voltages transformed by the control chip; the external equipment is electrically connected with the control chip and is used for receiving the second voltages transformed by the control chip. The system and the method have the advantage that technical problems of high design cost and large occupied printed circuit board (PCB) areas due to the fact that voltage monitoring circuits and watchdog circuits are required to be individually designed in the prior art can be solved by the aid of the system and the method.
Description
Technical field
The present invention relates to electrical applications technical field, in particular to a kind of power protection system and side of single-chip microcomputerMethod.
Background technology
Along with the extensive utilization of singlechip technology, according to the 61508th article of agreement (International of International Electrotechnical CommissionElectrotechnicalCommission, be called for short IEC61508) regulation, in functional safety product, must be to listThe supply voltage of sheet machine minimum system and program operation are monitored and could be met security requirement. Large portion in correlation techniqueDividing the core power voltage of single-chip microcomputer is 1.2V or 1.8V, and I/O mouth supply voltage is 3.3V, and external power voltage is5V, therefore needs just can meet the demands for single-chip minimum system provides many specifications safety power supply. General solution nowScheme is to be divided into independently functional unit electricity of three of voltage conversion circuit, voltage monitoring circuit and window watchdog circuitsRealize on road, in the time that voltage monitoring circuit monitors electric voltage exception or house dog and overflows, will trigger reset single-chip microcomputer. ToolBody comprises following two kinds of technical schemes, respectively as depicted in figs. 1 and 2.
Fig. 1 is the structural representation of the operation principle of the first related art scheme: adopt 3 independently voltage transitionsCircuit, realize respectively 24V to 5V, 5V to 3.3V, 3.3V is to the stepped-up voltage conversion of 1.2V. 3 independentlyVoltage monitoring circuit is monitored respectively the under-voltage and overvoltage condition of 5V, 3.3V and 1.2V, when monitored voltage occurs abnormalShi Fuwei single-chip microcomputer. Independently window watch dog monitoring single-chip microcomputer Program operation, when single-chip microcomputer is not within the designated timeWhile triggering house dog, house dog is overflowed reset single-chip microcomputer.
Fig. 2 is the structural representation of the operation principle of the second related art scheme: adopt the integrated voltage transitions of a sliceDevice is realized 24V to 5V, 3.3V and 1.2V voltage transitions, 3 independently voltage monitoring circuit monitor respectively 5V,Under-voltage and the overvoltage condition of 3.3V and 1.2V, when the monitored voltage single-chip microcomputer that occurs resetting when abnormal. Independently windowWatch dog monitoring single-chip microcomputer Program operation, when single-chip microcomputer is not during designated time internal trigger house dog, house dog is overflowedReset single-chip microcomputer.
For above-mentioned due to correlation technique voltage monitoring circuit with see that doorway circuit needs design separately, causes design costHeight, and take the large problem of area of printing board PCB, effective solution is not yet proposed at present.
Summary of the invention
The embodiment of the present invention provides a kind of power protection system and method for single-chip microcomputer, at least to solve due to relevant skillArt voltage monitoring circuit and watchdog circuit need design separately, cause design cost high, and take printed circuit board (PCB)The large technical problem of area of PCB.
According to the embodiment of the present invention aspect, a kind of power protection system of single-chip microcomputer is provided, comprising: controlChip, single-chip microcomputer and external equipment, wherein, control chip, is electrically connected with single-chip microcomputer and external equipment respectively, forExternal input voltage is converted to the first voltage of corresponding single-chip microcomputer and the second voltage of corresponding external equipment; Single-chip microcomputer,Be electrically connected with control chip, for receiving the first voltage after control chip transformation; External equipment, with control chip electricityConnect, for receiving the second voltage after control chip transformation.
According to the embodiment of the present invention on the other hand, also provide a kind of power protection method of single-chip microcomputer, having comprised: willThe external input voltage receiving is converted to the first voltage of corresponding single-chip microcomputer and the second voltage of corresponding external equipment; InspectionWhether survey the first voltage and second voltage and mate with preset standard, whether preset standard is monolithic for detection of input voltageThe operating voltage of machine and external equipment; In the time detecting that the first voltage and second voltage do not mate with preset standard, Xiang DanSheet machine sends reset signal, and reset signal resets for control single chip computer.
In embodiments of the present invention, adopt the mode of the integrated voltage monitoring of control chip and watchdog circuit, by controllingChip, is electrically connected with single-chip microcomputer and external equipment respectively, for external input voltage being converted to of corresponding single-chip microcomputerThe second voltage of one voltage and corresponding external equipment; Single-chip microcomputer, is electrically connected with control chip, for receiving control chipThe first voltage after transformation; External equipment, is electrically connected with control chip, for receiving second after control chip transformationVoltage, has reached and has reduced the object of design cost, thereby realized saving pcb board design area, saves Production designThe technique effect of cost, and then solved due to correlation technique voltage monitoring circuit and watchdog circuit design separately,Cause design cost high, and take the large technical problem of area of printing board PCB.
Brief description of the drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, thisBright schematic description and description is used for explaining the present invention, does not form inappropriate limitation of the present invention. At accompanying drawingIn:
Fig. 1 is the structural representation of the operation principle of the first related art scheme;
Fig. 2 is the structural representation of the operation principle of the second related art scheme;
Fig. 3 is according to the structural representation of the power protection system of the single-chip microcomputer of the embodiment of the present invention;
Fig. 4 is according to the structural representation of the power protection system of a kind of single-chip microcomputer of the embodiment of the present invention;
Fig. 5 is according to the schematic flow sheet of the power protection method of the single-chip microcomputer of the embodiment of the present invention.
Detailed description of the invention
In order to make those skilled in the art person understand better the present invention program, below in conjunction with in the embodiment of the present inventionAccompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, obviously, and described embodimentOnly the embodiment of a part of the present invention, instead of whole embodiment. Based on the embodiment in the present invention, abilityTerritory those of ordinary skill, not making the every other embodiment obtaining under creative work prerequisite, all should belong toThe scope of protection of the invention.
It should be noted that the term " first " in description of the present invention and claims and above-mentioned accompanying drawing, " second "Deng being for distinguishing similar object, and needn't be used for describing specific order or precedence. Should be appreciated that like this and makeWith data suitably in situation, can exchange so that embodiments of the invention described herein can be with except hereOrder beyond those of diagram or description is implemented. In addition, term " comprises " and " having " and their any distortion,Intention is to cover not exclusive comprising, for example, the process that comprised series of steps or unit, method, system,Those steps or unit that product or equipment are not necessarily limited to clearly list, but can comprise clearly do not list orFor these processes, method, product or equipment intrinsic other step or unit.
Embodiment 1
According to the embodiment of the present invention, a kind of system embodiment of power protection system of single-chip microcomputer is provided, Fig. 3 is rootAccording to the structural representation of the power protection system of the single-chip microcomputer of the embodiment of the present invention, as shown in Figure 3, this system comprises:Control chip 32, single-chip microcomputer 34 and external equipment 36, wherein,
Control chip 32, is electrically connected with single-chip microcomputer 34 and external equipment 36 respectively, for external input voltage is changedFor the first voltage of corresponding single-chip microcomputer 34 and the second voltage of corresponding external equipment 36;
Single-chip microcomputer 34, is electrically connected with control chip 32, for receiving the first voltage after control chip 32 transformations;
External equipment 36, is electrically connected with control chip 32, for receiving the second voltage after control chip 32 transformations.
The power protection system of the single-chip microcomputer that as from the foregoing, the embodiment of the present application provides can be applied to single-chip microcomputer minimumThe operation of the supply voltage of system and program is monitored, and is different from correlation technique, as depicted in figs. 1 and 2 relevant of exampleTechnology, the power protection system of the single-chip microcomputer that the embodiment of the present application provides can be to external input electricity by control chip 32Compress into row transformation and can monitor the voltage after transformation, with the first voltage energy that control chip 32 is exportedEnough meet operating voltage (first voltage that, the embodiment of the present application is mentioned and of single-chip microcomputer 34 and external equipment 36Two voltages), thus avoid in correlation technique need to establishing separately due to correlation technique voltage monitoring circuit and watchdog circuitMeter, the large problem of plate face layout area occupied of the high and printed circuit pcb board of the design cost that causes, and then saveDesign cost and each device shared area on pcb board.
In the power protection system of the single-chip microcomputer that the embodiment of the present application provides, adopt the integrated voltage monitoring of control chip and seeThe mode of door dog circuit, by control chip, is electrically connected with single-chip microcomputer and external equipment respectively, for by external inputVoltage transitions is the first voltage of corresponding single-chip microcomputer and the second voltage of corresponding external equipment; Single-chip microcomputer, with control chipElectrical connection, for receiving the first voltage after control chip transformation; External equipment, is electrically connected with control chip, forReceive the second voltage after control chip transformation, reached and reduced the object of design cost, thereby realized saving PCBPlate design area, saves the technique effect of Production design cost, and then has solved due to correlation technique voltage monitoring circuitNeed separately design with watchdog circuit, cause design cost high, and it is large to take the area of printing board PCBTechnical problem.
Fig. 4 is according to the structural representation of the power protection system of a kind of single-chip microcomputer of the embodiment of the present invention, as Fig. 4 instituteShow, the power protection system of the single-chip microcomputer that the embodiment of the present application provides is specific as follows:
Optionally, control chip 32 comprises: voltage conversion circuit 321 and voltage monitoring circuit 322, wherein,
Voltage conversion circuit 321, is electrically connected with the power end of single-chip microcomputer 34 and external equipment 36 respectively, outside inciting somebody to actionConnect input voltage and be converted to the first voltage of corresponding single-chip microcomputer 34 and the second voltage of corresponding external equipment 36;
Voltage monitoring circuit 322, is electrically connected with voltage conversion circuit 321, defeated for detection of voltage conversion circuit 321Whether the first voltage and the second voltage that go out reach preset standard, and whether preset standard is monolithic for detection of input voltageThe operating voltage of machine 34 and external equipment 36.
Concrete, in the control chip 32 that the embodiment of the present application provides, the input of voltage conversion circuit 321 and externalInput power electrical connection, the output of voltage conversion circuit 321 is electrically connected with external equipment 36 and single-chip microcomputer 34 respectively,As shown in Figure 4, the input of voltage conversion circuit 321, after the voltage input that receives 24V, by transformation, is exportedVoltage in the input voltage of external equipment 36 be 5V, the input voltage of single-chip microcomputer 34 is 3.3V and 1.2V, that is,Voltage conversion circuit 321 in control chip 32, will according to the voltage input demand of external equipment 36 and single-chip microcomputer 34The external input voltage of external input power output carries out transformation and is met the output of external equipment 36 and single-chip microcomputer 34Voltage (being the first voltage and the second voltage that the embodiment of the present application provides);
For ensureing that the first voltage and second voltage that voltage conversion circuit 321 is exported are single-chip microcomputer 34 and external equipment 36Operating voltage (, the embodiment of the present application provides pass through that preset standard exports voltage conversion circuit 321 firstVoltage and second voltage detect), in the control chip 32 that the embodiment of the present application provides, voltage monitoring circuit 322 is logicalCross with voltage conversion circuit 321 and be electrically connected, the voltage that this voltage conversion circuit 321 is exported detects, to ensureThe voltage that voltage conversion circuit 321 is exported is due to the too high damage single-chip microcomputer 34 causing and external equipment 36, or, andThe voltage of exporting after these voltage conversion circuit 321 transformations of Shi Faxian can not drive external equipment due to what brownout caused36 and single-chip microcomputer 34. Voltage monitoring circuit 322 has ensured that voltage conversion circuit 321 in control chip 32 is externallyConnect input voltage and carry out whether can reaching the demand that meets external equipment 36 and single-chip microcomputer 34 after transformation, and to externalWhether equipment 36 and single-chip microcomputer 34 can be used safely guarantee is provided.
Here because the core power voltage of most of single-chip microcomputer is 1.2V or 1.8V, I/O mouth supply voltage is 3.3V,External power voltage is 5V, therefore needs just can meet the demands for single-chip minimum system provides many specifications safety power supply,In the control chip 32 that the embodiment of the present application provides, in the output voltage of voltage conversion circuit 321, the first voltage is exported respectively3.3V and 1.2V, second voltage output 5V, that is, the input voltage of the I/O mouth of single-chip microcomputer 34 is 3.3V (, Fig. 4Shown VCC1 end), the core power voltage of single-chip microcomputer 34 is 1.2V (, the VCC2 end shown in Fig. 4),The input voltage of external equipment 36 is 5V. It should be noted that, the power supply of the single-chip microcomputer that the embodiment of the present application provides is protectedProtecting system only describes as an example of above-mentioned output voltage example, protects with the power supply of realizing the single-chip microcomputer that the embodiment of the present application providesProtecting system is as the criterion, and does not specifically limit.
Further, optional, voltage conversion circuit 321 comprises: current/direct-current conversion device 3211 and voltage-stablizer group 3212,Wherein,
Current/direct-current conversion device 3211, is electrically connected with external power supply, for the external input voltage of external power supply is converted toTertiary voltage;
Voltage-stablizer group 3212, is electrically connected with current/direct-current conversion device 3211, for tertiary voltage being converted to corresponding firstVoltage and second voltage.
Concrete, as shown in Figure 4, in voltage conversion circuit 321, voltage conversion circuit 321 is changed by direct currentDevice 3211 is DC voltage by ac/dc voltage transitions, and wherein, external input voltage 24V is through direct current transducer3211DC/DC is converted to medium voltage V1 (, the tertiary voltage that the application provides), and V1 passes through voltage-stablizer group again3212 (being the LDO1~LDO3 shown in Fig. 4) are exported respectively 5V, 3.3V and 1.2V. General voltage-stablizer group 3212Requiring minimum voltage difference between input and output is 0.5V, and V1 magnitude of voltage Ruo Taigao can cause 3212 groups of voltage-stablizer groupsThe change-over circuit heating becoming, will damage the change-over circuit being made up of voltage-stablizer group 3212, so the embodiment of the present applicationThe control chip 32 providing is multi-functional integrated chip TPS65381, and the V1 voltage of this TPS65381 chip is 6V,Can meet the demand of the change-over circuit that rear end voltage-stablizer group 3212 forms, can in the time of work, not produce again a lot of heats.And then, V1 is converted to respectively to the first voltage and second voltage obtaining voltage-stablizer group 3212 after tertiary voltage V1,As shown in Figure 4, V1 is converted to 5V, 3.3V and 1.2V.
Further, voltage-stablizer group 3212 comprises: multiple voltage-stablizers 32121, and voltage-stablizer is low pressure difference linearity voltage stabilizingDevice, wherein, the first voltage-stablizer, is electrically connected with external equipment 36, for exporting the second electricity of corresponding external equipment 36Press; The second voltage-stablizer and the 3rd voltage-stablizer, be electrically connected with single-chip microcomputer 34, for exporting first of corresponding single-chip microcomputer 34Voltage.
Concrete, as shown in Figure 4, the voltage-stablizer group 3212 that the embodiment of the present application provides is low pressure difference linear voltage regulator(LowDropoutregulator is called for short LDO), receiving after tertiary voltage V1, this V1 is converted toThe first voltage and second voltage, wherein, in voltage-stablizer group 3212, the first voltage-stablizer is electrically connected with external equipment 36,The second voltage-stablizer and the 3rd voltage-stablizer are electrically connected with single-chip microcomputer 34, and as from the foregoing, the VCC1 in Fig. 4 connects the second voltage stabilizingDevice, VCC2 connects the 3rd voltage-stablizer, the second voltage-stablizer output 3.3V voltage, the 3rd voltage-stablizer output 1.2V voltage.
Optionally, voltage monitoring circuit 322, is electrically connected with current/direct-current conversion device 3211 and voltage-stablizer group 3212 respectively,Whether reach preset standard for detection of tertiary voltage, the first voltage and second voltage.
Concrete, as shown in Figure 4, voltage monitoring circuit 322 respectively with voltage conversion circuit 321 in direct current conversionDevice 3211 and voltage-stablizer group 3212 are electrically connected, the tertiary voltage exported for detection of current/direct-current conversion device 3211, steadyWhether the first voltage and second voltage that depressor group 3212 is exported meet preset standard.
Optionally, control chip 32 also comprises: program monitoring circuit 323, wherein,
Program monitoring circuit 323, is electrically connected with single-chip microcomputer 34, for the program operation of monitoring singlechip 34.
In addition, as shown in Figure 4, control chip 32 in the power protection system of the single-chip microcomputer that the embodiment of the present application providesIn also comprise: program monitoring circuit 323, the program monitoring circuit 323 in the embodiment of the present application can be Fig. 4 hereShown when independent the window watchdog circuit of base, judged whether to receive single-chip microcomputer 34 by preset timerThe signal sending, if in the time that timer expiry does not also receive the signal that single-chip microcomputer 34 sends, in the embodiment of the present applicationProgram monitoring circuit 323 (, the window watchdog circuit of base when independent in Fig. 4) will trigger reset monolithicThe reset signal of machine 34. Wherein, control chip 32 receives configuration information and the triggering signal that single-chip microcomputer 34 sends, whenWhen monitoring single-chip microcomputer 34 and not sending triggering signal at preset timed intervals, program monitoring circuit 323 sends to single-chip microcomputer 34Reset signal, this single-chip microcomputer 34 resets.
Further, program monitoring circuit 323 comprises: configuration module and functional module, wherein,
Configuration module, is electrically connected the configuration information sending for receiving single-chip microcomputer 34 with single-chip microcomputer 34;
Functional module, is electrically connected with single-chip microcomputer 34, for receiving the triggering signal of single-chip microcomputer 34 and to single-chip microcomputer 34Send reset signal.
Concrete, the functional module in program monitoring circuit 323 is electrically connected with single-chip microcomputer 34, when default for being received inIn the triggering signal that sends of single-chip microcomputer 34, simultaneously for do not receive triggering signal in Preset Time in the situation that, toSingle-chip microcomputer 34 sends reset signal, so that single-chip microcomputer 34 is resetted.
Optionally, single-chip microcomputer 34 comprises: the first voltage input end 341, second voltage input 342 and serial peripheralInterface 343, wherein,
The first voltage input end 341 and second voltage input 342, be electrically connected with voltage conversion circuit 321, forThe first voltage that receiver voltage change-over circuit 321 is exported, wherein, the voltage that the first voltage input end 341 receives is largeThe voltage receiving in second voltage input 342;
Serial Peripheral Interface (SPI) 343, is electrically connected with voltage monitoring circuit 322 and program monitoring circuit 323 respectively, forConfiguration voltages supervisory circuit 322 and program monitoring circuit 323.
Concrete, as shown in Figure 4, single-chip microcomputer 34 comprise the first voltage input end 341 (VCC1 shown in Fig. 4),Second voltage input 342 (VCC2 shown in Fig. 4) and Serial Peripheral Interface (SPI) 343 (SPI shown in Fig. 4), thisIn voltage conversion circuit 321 in the first voltage input end 341 and second voltage input 342 and control chip 32Electrical connection, the first voltage of exporting for receiver voltage change-over circuit 321, wherein, the first voltage input end 341 isData input and output I/O port, second voltage input 342 is core power voltage input end, as shown in Figure 4,The voltage of the first voltage input end 341 is 3.3V, and second voltage input 342 is 1.2V.
Serial Peripheral Interface (SPI) (SerialPeripheralInterface, be called for short SPI) 343 respectively with control chip 32 inVoltage monitoring circuit 322 and program monitoring circuit 323 are electrically connected, and single-chip microcomputer 34 configures by Serial Peripheral Interface (SPI) 343Voltage monitoring circuit 322 in control chip 32 and program monitoring circuit 323, and after configuration completes, discharge this serialPeripheral Interface 343.
Optionally, single-chip microcomputer 34 also comprises: reseting interface 344 and signal output interface 345, wherein,
Reseting interface 344, is electrically connected with voltage monitoring circuit 322 and program monitoring circuit 323 respectively, for receivingThe reset signal that voltage monitoring circuit 322 or program monitoring circuit 323 send;
Signal output interface 345, is electrically connected with program monitoring circuit 323, for the triggering signal sending.
Concrete, as shown in Figure 4, the reseting interface 344 in single-chip microcomputer 34 is institute in Fig. 4 in the embodiment of the present applicationThe RST port showing, signal output interface 345 is the WDI port shown in Fig. 4. Wherein, reseting interface 344Be electrically connected with voltage monitoring circuit 322 and program monitoring circuit 323 in control chip 32 respectively, for supervising at voltageControl circuit 322 detects the reset signal of exporting in the first voltage and second voltage overvoltage or under-voltage situation, or, journeyOrder supervisory circuit 323 does not receive triggering signal in Preset Time, sends reset signal, here corresponding single-chip microcomputer 34Side, signal output interface 345 is the port that sends triggering signal in Preset Time to control chip.
To sum up, the power protection system of the single-chip microcomputer that the embodiment of the present application provides is in use, specific as follows:
First, be the voltage conversion circuit 321 of TPS65381 (control chip 32 that, the embodiment of the present application provides)The 24V power supply of redundancy is provided.
The second, for the VSAF of control chip 32 provides independently 24V power supply.
The 3rd, after single-chip microcomputer 34 completes initialization, read the register in TPS65381 chip by SPI, reallyRecognize voltage monitoring function and whether can use, if unavailable, enable voltage monitoring function. , corresponding above-mentioned single-chip microcomputer 34Serial Peripheral Interface (SPI) 343 be electrically connected with the voltage monitoring circuit 322 of control chip 32.
The 4th, single-chip microcomputer configures the house dog in TPS65381 chip by SPI, in running, and single-chip microcomputer34 by WDI designated time internal trigger house dog. , corresponding above-mentioned Serial Peripheral Interface (SPI) 343 and signal outputInterface 345.
The 5th, single-chip microcomputer discharges SPI mouth after completing TPS65381 chip initiation by SPI. , in releaseState Serial Peripheral Interface (SPI) 343.
The power protection system of the single-chip microcomputer that as from the foregoing, the embodiment of the present application provides provide adopted collecting voltage conversion,Voltage monitoring and when independent base window watchdog function solve in correlation technique voltage and supervise in the TPS65381 of one chipControl circuit and watchdog circuit need design separately, cause design cost high, and take the face of printing board PCBLong-pending large technical problem.
In addition, compared with prior art, the power protection system of the single-chip microcomputer that the embodiment of the present application provides has following excellentPoint: (1) part category is single, facilitates supplier management; (2) do not need independent design voltage supervisory circuit and guard the gateDog circuit; (3) take pcb board area little.
Embodiment 2
According to the embodiment of the present invention, a kind of embodiment of the method for power protection method of single-chip microcomputer is provided, Fig. 5 is rootAccording to the schematic flow sheet of the power protection method of the single-chip microcomputer of the embodiment of the present invention, as shown in Figure 5, the method comprises:
Step S502, is converted to the external input voltage receiving the first voltage and corresponding external the establishing of corresponding single-chip microcomputerStandby second voltage;
Whether step S504, detect the first voltage and second voltage and mate with preset standard, and preset standard is for detection of defeatedWhether enter voltage is the operating voltage of single-chip microcomputer and external equipment;
Step S506, in the time detecting that the first voltage and second voltage do not mate with preset standard, sends multiple to single-chip microcomputerPosition signal, reset signal resets for control single chip computer.
Integrating step S502 is to step S506, the Fig. 3 in corresponding embodiment 1, and step S502 exists to step S506When the power protection method of the single-chip microcomputer that provides of the embodiment of the present application is provided, by receiving external input voltage, this is outerConnect input voltage and be converted to the first voltage of corresponding diagram 3 single-chip microcomputers 34 and the second voltage of external equipment 36; And then figureIn 3, whether control chip 32 these first voltages of detection and second voltage reach preset standard, if do not reach preset standard,Send reset signal to single-chip microcomputer 34, to ensure the safe operation of single-chip microcomputer 34.
In the power protection method of the single-chip microcomputer that the embodiment of the present application provides, by the external input voltage receiving is turnedBe changed to the first voltage of corresponding single-chip microcomputer and the second voltage of corresponding external equipment; Detecting the first voltage and second voltage isNoly mate with preset standard, whether preset standard is the operating voltage of single-chip microcomputer and external equipment for detection of input voltage;In the time detecting that the first voltage and second voltage do not mate with preset standard, send reset signal to single-chip microcomputer, letter resetsNumber reset for control single chip computer, reached the object that reduces design cost, thereby realized saving pcb board design surfaceLong-pending, save the technique effect of Production design cost, and then solved due to correlation technique voltage monitoring circuit and house dogCircuit needs design separately, causes design cost high, and takies the large technical problem of area of printing board PCB.
Optionally, comprise at control chip: the situation of voltage conversion circuit, voltage monitoring circuit and program monitoring circuitUnder, in step S506, send reset signal to single-chip microcomputer and comprise:
Step1, whether the first voltage and the second voltage that detect voltage conversion circuit conversion at voltage monitoring circuit reach pre-Bidding standard;
Step2, in the time that voltage monitoring circuit detects that the first voltage and/or second voltage are less than preset standard, judges firstVoltage and/or second voltage are under-voltage condition, send the first reset signal to single-chip microcomputer, and wherein, the first reset signal is usedBe under-voltage condition in the voltage status of instructed voltage;
Step3, in the time that voltage monitoring circuit detects that the first voltage and/or second voltage are greater than preset standard, judges firstVoltage and/or second voltage are overvoltage condition, send the second reset signal to single-chip microcomputer, and wherein, the second reset signal is used forThe voltage status of instructed voltage is overvoltage condition.
In conjunction with Step1 to Step3, the Fig. 4 in corresponding embodiment 1, the voltage monitoring circuit 322 in control chip 32If detect when the first voltage and/or voltage do not reach preset standard (, overvoltage and under-voltage state), send firstReset signal or the second reset signal.
The power protection method of the single-chip microcomputer that optionally, the embodiment of the present application provides also comprises:
Whether overtime step S508, detect default reset timer;
Step S510, be no in the situation that, receives the triggering signal that single-chip microcomputer sends in testing result;
Step S512, for be in the situation that, sends reset signal to single-chip microcomputer in testing result.
Integrating step S508 is to step S512, the Fig. 4 in corresponding embodiment 1, control chip 32 and single-chip microcomputer 34Between there is preset timer, that is, and program monitoring circuit 323 in control chip 32 (, the window of base when independentMouthful house dog) in whether detect default reset timer overtime, if do not receive single-chip microcomputer 34 in Preset TimeThe triggering signal sending, the program monitoring circuit 323 in control chip 32 sends reset signal to single-chip microcomputer 34;If receive the triggering signal that single-chip microcomputer 34 sends in Preset Time, receive this triggering signal.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, do not haveThe part describing in detail, can be referring to the associated description of other embodiment.
In the several embodiment that provide in the application, should be understood that, disclosed technology contents, can pass through otherMode realize. Wherein, device embodiment described above is only schematically, the division of for example described unit,Can be that a kind of logic function is divided, when actual realization, can have other dividing mode, for example multiple unit or assemblyCan in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out. Another point, instituteThe coupling each other showing or discuss or direct-coupling or communication connection can be by some interfaces, unit or mouldThe INDIRECT COUPLING of piece or communication connection can be electrical or other form.
The described unit as separating component explanation can or can not be also physically to separate, aobvious as unitThe parts that show can be or can not be also physical locations, can be positioned at a place, or also can be distributed toOn multiple unit. Can select according to the actual needs some or all of unit wherein to realize the present embodiment schemeObject.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, also canBe that the independent physics of unit exists, also can be integrated in a unit two or more unit. Above-mentioned integratedUnit both can adopt hardware form realize, also can adopt SFU software functional unit form realize.
If described integrated unit is realized and during as production marketing independently or use using the form of SFU software functional unit,Can be stored in a computer read/write memory medium. Based on such understanding, technical scheme essence of the present inventionOn the part that in other words prior art contributed or this technical scheme all or part of can be with software productForm embodies, and this computer software product is stored in a storage medium, comprises that some instructions are in order to make onePlatform computer equipment (can be personal computer, server or the network equipment etc.) is carried out each embodiment institute of the present inventionState all or part of step of method. And aforesaid storage medium comprises: USB flash disk, read-only storage (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc orThe various media that can be program code stored such as CD.
The above is only the preferred embodiment of the present invention, it should be pointed out that the ordinary skill people for the artMember, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvement and profitDecorations also should be considered as protection scope of the present invention.
Claims (12)
1. a power protection system for single-chip microcomputer, is characterized in that, comprising: control chip, single-chip microcomputer and external equipment,Wherein,
Described control chip, is electrically connected with described single-chip microcomputer and described external equipment respectively, for by external inputVoltage transitions is the first voltage of corresponding described single-chip microcomputer and the second voltage of corresponding described external equipment;
Described single-chip microcomputer, is electrically connected with described control chip, for receive after described control chip transformation described inThe first voltage;
Described external equipment, is electrically connected with described control chip, for receiving the institute after described control chip transformationState second voltage.
2. the power protection system of single-chip microcomputer according to claim 1, is characterized in that, described control chip comprises:Voltage conversion circuit and voltage monitoring circuit, wherein,
Described voltage conversion circuit, is electrically connected with the power end of described single-chip microcomputer and described external equipment respectively, usesIn external input voltage being converted to described first voltage of corresponding described single-chip microcomputer and corresponding described external equipmentSecond voltage;
Described voltage monitoring circuit, is electrically connected with described voltage conversion circuit, for detection of described voltage transitions electricityWhether described the first voltage and the described second voltage of road output reach preset standard, and described preset standard is for inspectionWhether survey described input voltage is the operating voltage of described single-chip microcomputer and described external equipment.
3. the power protection system of single-chip microcomputer according to claim 2, is characterized in that, described voltage conversion circuitComprise: current/direct-current conversion device and voltage-stablizer group, wherein,
Described current/direct-current conversion device, is electrically connected with external power supply, for by the external input electricity of described external power supplyPressure is converted to tertiary voltage;
Described voltage-stablizer group, is electrically connected with described current/direct-current conversion device, right for described tertiary voltage is converted toShould described the first voltage and described second voltage.
4. the power protection system of single-chip microcomputer according to claim 3, is characterized in that, described voltage-stablizer group comprises:Multiple voltage-stablizers, and described voltage-stablizer is low pressure difference linear voltage regulator, wherein, the first voltage-stablizer, outside describedConnect equipment electrical connection, for exporting the described second voltage of corresponding described external equipment; The second voltage-stablizer and the 3rdVoltage-stablizer, is electrically connected with described single-chip microcomputer, for exporting described first voltage of corresponding described single-chip microcomputer.
5. the power protection system of single-chip microcomputer according to claim 3, is characterized in that, described voltage monitoring circuit,Be electrically connected with described current/direct-current conversion device and described voltage-stablizer group respectively, for detection of described tertiary voltage, described inWhether the first voltage and described second voltage reach described preset standard.
6. the power protection system of single-chip microcomputer according to claim 2, is characterized in that, described control chip also wrapsDraw together: program monitoring circuit, wherein,
Described program monitoring circuit, is electrically connected with described single-chip microcomputer, for monitoring the program operation of described single-chip microcomputer.
7. the power protection system of single-chip microcomputer according to claim 6, is characterized in that, described program monitoring circuitComprise: configuration module and functional module, wherein,
Described configuration module, is electrically connected with described single-chip microcomputer, the configuration information sending for receiving described single-chip microcomputer;
Described functional module, is electrically connected with described single-chip microcomputer, for receive the triggering signal of described single-chip microcomputer and toDescribed single-chip microcomputer sends reset signal.
8. the power protection system of single-chip microcomputer according to claim 6, is characterized in that, described single-chip microcomputer comprises:The first voltage input end, second voltage input and Serial Peripheral Interface (SPI), wherein,
Described the first voltage input end and described second voltage input, be electrically connected with described voltage conversion circuit,For receiving described first voltage of described voltage conversion circuit output, wherein, described the first voltage input end connectsThe voltage of receiving is greater than the voltage that described second voltage input receives;
Described Serial Peripheral Interface (SPI), is electrically connected with described voltage monitoring circuit and described program monitoring circuit respectively,Be used for configuring described voltage monitoring circuit and described program monitoring circuit.
9. the power protection system of single-chip microcomputer according to claim 6, is characterized in that, described single-chip microcomputer also comprises:Reseting interface and signal output interface, wherein,
Described reseting interface, is electrically connected with described voltage monitoring circuit and described program monitoring circuit respectively, forReceive the reset signal that described voltage monitoring circuit or described program monitoring circuit send;
Described signal output interface, is electrically connected with described program monitoring circuit, for the triggering signal sending.
10. a power protection method for single-chip microcomputer, is characterized in that, is applied in claim 1 to 9 described in any oneThe power protection system of single-chip microcomputer, comprising:
The first voltage and the correspondence that the external input voltage receiving are converted to corresponding described single-chip microcomputer are described externalThe second voltage of equipment;
Whether detect described the first voltage and described second voltage and mate with preset standard, described preset standard is used forWhether detect described input voltage is the operating voltage of described single-chip microcomputer and described external equipment;
In the time detecting that described the first voltage and described second voltage do not mate with described preset standard, to described listSheet machine sends reset signal, and described reset signal is used for controlling described monolithic processor resetting.
11. methods according to claim 10, is characterized in that, comprise at described control chip: voltage conversion circuit,In the situation of voltage monitoring circuit and program monitoring circuit, describedly send reset signal to described single-chip microcomputer and comprise:
Detect described first voltage and described second of described voltage conversion circuit conversion at described voltage monitoring circuitWhether voltage reaches described preset standard;
When detecting described the first voltage and/or described second voltage, described voltage monitoring circuit is less than described presettingWhen standard, judge that described the first voltage and/or described second voltage are under-voltage condition, send the to described single-chip microcomputerOne reset signal, wherein, the voltage status that described the first reset signal is used to indicate described voltage is described under-voltageState;
When detecting described the first voltage and/or described second voltage, described voltage monitoring circuit is greater than described presettingWhen standard, judge that described the first voltage and/or described second voltage are overvoltage condition, send the to described single-chip microcomputerTwo reset signals, wherein, the voltage status that described the second reset signal is used to indicate described voltage is described overvoltage shapeState.
12. methods according to claim 10, is characterized in that, described method also comprises:
Whether overtimely detect default reset timer;
Be no in the situation that, receive the triggering signal that described single-chip microcomputer sends in testing result;
For be in the situation that, send reset signal to described single-chip microcomputer in testing result.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610131397 | 2016-03-08 | ||
CN2016101313977 | 2016-03-08 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105652760A true CN105652760A (en) | 2016-06-08 |
CN105652760B 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) |
Cited By (1)
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 (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201145894Y (en) * | 2007-10-26 | 2008-11-05 | 比亚迪股份有限公司 | Observation circuit for single-chip |
US20100164299A1 (en) * | 2008-12-31 | 2010-07-01 | Powertech Industrial Co., Ltd. | Remote Controllable Power Outlet Apparatus with Grouping Capability and Remote Control Grouping Method Thereof |
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 |
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 |
WO2016032408A1 (en) * | 2014-08-28 | 2016-03-03 | Aselsan Elektronik Sanayi Ve Ticaret Anonim Şirketi | High efficiency battery charging method and device with solar panel by using maximum power monitoring technique |
CN205721194U (en) * | 2016-03-08 | 2016-11-23 | 北京龙鼎源科技股份有限公司 | The power protection system of single-chip microcomputer |
-
2016
- 2016-03-30 CN CN201610195445.9A patent/CN105652760B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201145894Y (en) * | 2007-10-26 | 2008-11-05 | 比亚迪股份有限公司 | Observation circuit for single-chip |
US20100164299A1 (en) * | 2008-12-31 | 2010-07-01 | Powertech Industrial Co., Ltd. | Remote Controllable Power Outlet Apparatus with Grouping Capability and Remote Control Grouping Method Thereof |
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 |
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 |
WO2016032408A1 (en) * | 2014-08-28 | 2016-03-03 | Aselsan Elektronik Sanayi Ve Ticaret Anonim Şirketi | High efficiency battery charging method and device with solar panel by using maximum power monitoring technique |
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 |
Non-Patent Citations (1)
Title |
---|
互联网公开: "《Multi-Rail Supply for Microcontrollers in Safety-Critical Applications》", 《TEXAS INSTRUMENTS网站 HTTP://PDF-FILE.IC37.COM/PDF6/TI/TPS65381-Q1_DATASHEET_1151950/187709/TPS653_DATASHEET.PDF》 * |
Cited By (1)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105652760B (en) | 2019-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1167023C (en) | Method and device for controlling power supply of computer system using Wake-on-LAN signal | |
US11042202B2 (en) | Server rack with dynamic power management by using baseboard management controllers | |
CN101677190B (en) | Component with multiple output voltages and electronic device using same | |
CN102882267B (en) | Power supply device, electronic equipment and power supply method | |
US20040078655A1 (en) | Apparatus and method for power integrated control | |
CN103809724A (en) | Equipment cabinet and power source control method thereof | |
CN103777721A (en) | Server system and cooling control method thereof | |
US7045914B2 (en) | System and method for automatically providing continuous power supply via standby uninterrupted power supplies | |
CN113157474B (en) | A server power supply black box data analysis system | |
CN108388332A (en) | A kind of server power-off protection method and system | |
CN109144582A (en) | Wake-up circuit and electronic equipment | |
US20120290854A1 (en) | Circuit protection system and method | |
CN110401260B (en) | Server standby power supply and server power supply | |
CN105652760A (en) | System and method for protecting power sources of single chip microcomputer | |
CN201707675U (en) | Computer isolation card | |
CN201287312Y (en) | Electric screw locking apparatus | |
CN205721194U (en) | The power protection system of single-chip microcomputer | |
US8826056B2 (en) | Circuit protection system and method | |
CN105005727A (en) | Control system based on dynamic password and USBKEY and control method for control system | |
CN217388303U (en) | Embedded system power-down protection device based on super capacitor | |
CN107122034A (en) | The apparatus and method of voltage monitoring | |
CN111381659B (en) | Computer system and power management method | |
CN112821474A (en) | Power supply system, network device and power supply control method | |
CN201540532U (en) | Server system | |
CN204926090U (en) | Control system based on developments password and USBKEY |
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 | ||
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. |