CN104333112B - A kind of RTC electric power controller and method - Google Patents

A kind of RTC electric power controller and method Download PDF

Info

Publication number
CN104333112B
CN104333112B CN201410603758.4A CN201410603758A CN104333112B CN 104333112 B CN104333112 B CN 104333112B CN 201410603758 A CN201410603758 A CN 201410603758A CN 104333112 B CN104333112 B CN 104333112B
Authority
CN
China
Prior art keywords
power supply
rtc
charge
voltage
discharge circuit
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
CN201410603758.4A
Other languages
Chinese (zh)
Other versions
CN104333112A (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.)
Fujian Star Net eVideo Information Systems Co Ltd
Original Assignee
Fujian Star Net eVideo Information Systems 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 Fujian Star Net eVideo Information Systems Co Ltd filed Critical Fujian Star Net eVideo Information Systems Co Ltd
Priority to CN201410603758.4A priority Critical patent/CN104333112B/en
Publication of CN104333112A publication Critical patent/CN104333112A/en
Application granted granted Critical
Publication of CN104333112B publication Critical patent/CN104333112B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The present invention provides a kind of RTC electric power controller, and it is suitable in the RTC system of equipment, and described electric power controller includes device power supply (DPS) power supply circuits, a battery feed circuit, a RC charge-discharge circuit and a MCU;Described device power supply (DPS) power supply circuits connect battery feed circuit and RC charge-discharge circuit respectively, described RC charge-discharge circuit is additionally coupled to device power supply (DPS) power supply circuits and forms to be connected the junction point A of RTC chip U1 feeder ear on the connecting line of battery feed circuit and on described connecting line, and described device power supply (DPS) power supply circuits, battery feed circuit and RTC chip are all controlled by described MCU.The present invention also provides for a kind of RTC method for managing power supply.The medicine have the advantages that by the management to RTC system backup power supply, adopt multichannel back-up source power supply plan, solve RTC system time reset issues, and can automatically investigate RTC low-voltage alarm problem by mistake.

Description

A kind of RTC electric power controller and method
[technical field]
The present invention relates to a kind of RTC method for managing power supply and device.
[background technology]
At present, the RTC system in media player, generally adopt disposable button cell or farad capacitor power supply in support.Shortcoming 1: when adopting disposable button cell, (such as shutdown one week) after equipment shutdown, if button cell electricity is not enough, will cause RTC system time to be reset;Shortcoming 2: when adopting farad capacitor, reaches the standard grade (such as at least one moon) during this period of time at the media player media player that dispatches from the factory, farad capacitor self discharge, can cause back-up source electricity deficiency too, cause RTC system time to be reset;Shortcoming 3: when the RTC clock chip in RTC system is because, when battery, farad capacitor electricity are low or circuit is subject to the low electricity warning of other interference triggered, RTC system cannot investigate fault automatically.
[summary of the invention]
One of the technical problem to be solved in the present invention, it is in that to provide a kind of RTC electric power controller, it adopts multichannel back-up source, solve the problem that the RTC system time of existing equipment is easily reset, when battery electric quantity deficiency, the short time shutdown of equipment can be tackled, ensure the normal operation of RTC, thus the present invention can significantly reduce the workload of after-sales service.
The present invention one solves one of above-mentioned technical problem by the following technical programs:
A kind of RTC electric power controller, it is suitable in the RTC system of equipment, and described electric power controller includes device power supply (DPS) power supply circuits, a battery feed circuit, a RC charge-discharge circuit and a MCU;Described device power supply (DPS) power supply circuits connect battery feed circuit and RC charge-discharge circuit respectively, described RC charge-discharge circuit is additionally coupled to device power supply (DPS) power supply circuits and forms to be connected the junction point A of RTC chip feeder ear on the connecting line of battery feed circuit and on described connecting line, described device power supply (DPS) power supply circuits, battery feed circuit and RTC chip are all controlled by described MCU, and described RTC chip is the master chip of RTC system.
Further, described device power supply (DPS) power supply circuits are made up of resistance R1, audion Q1, communication relay LS1 and diode D1;One end of described resistance R1 connects the P1 pin of described MCU, the B pole of other end connecting triode Q1, the C pole of described audion Q1 is connected to the 2nd pin of described communication relay LS1,1st pin and the 3rd pin of described communication relay LS1 are also connected with the system power supply of equipment, 4th pin of described diode D1 and described communication relay LS1 is connected, and described diode D1 is additionally coupled to described junction point A.
Further, described audion Q1 is NPN type triode.
Further, described diode D1 is Schottky diode.
Further, described RC charge-discharge circuit is made up of resistance R2, electric capacity CB1, diode D2, communication relay LS2, audion Q2 and resistance R4;One end of described resistance R4 connects the P2 pin of described MCU, the B pole of other end connecting triode Q2, the C pole of described audion Q2 connects the 2nd pin of described communication relay LS2,3rd pin of described communication relay LS2 connects junction point A, 1st pin of described communication relay LS2 connects the system power supply of equipment, 5th pin of described communication relay LS2 connects one end of diode D2, the other end of described diode D2 is also respectively connected with one end of resistance R2 and the positive pole of electric capacity CB1, and the other end of described resistance R2 connects described device power supply (DPS) power supply circuits.
Further, described battery feed circuit is made up of diode D3, resistance R3 and battery BAT, and described diode D3, resistance R3 and battery BAT are sequentially connected with, and described diode D3 is also connected with described junction point A.
Further, described MCU also includes SCL pin and SDA pin, and the RTC chip of described RTC system includes SCL pin and SDA pin;The SCL pin of described MCU connects the SCL pin of described RTC chip, and the SDA pin of described MCU connects the SDA pin of described RTC chip, forms described I by this two connection2C-channel.
The two of the technical problem to be solved in the present invention, are in that to provide a kind of RTC method for managing power supply, and it adopts multichannel back-up source, solves the problem that the RTC system time of existing equipment is easily reset, meanwhile, passes through I2C-channel investigation RTC low-voltage is missed alarm problem and is accurately judged to battery electric quantity deficiency, when battery electric quantity deficiency, can tackle the short time shutdown of equipment, ensure the normal operation of RTC.
The present invention two solves the two of above-mentioned technical problem by the following technical programs:
A kind of RTC method for managing power supply, this management method is based on a kind of RTC electric power controller and realizes, described electric power controller its suitable in the RTC system of equipment, described RTC electric power controller includes device power supply (DPS) power supply circuits, a battery feed circuit, a RC charge-discharge circuit and a MCU;Described method for managing power supply includes shutdown power management step and start power management step;
Described shutdown power management step is: during equipment shutdown, if the voltage of described RC charge-discharge circuit output is higher than the voltage of described battery feed circuit output, then RC charge-discharge circuit is to the power supply of RTC system, if the voltage of described RC charge-discharge circuit output is equal to the voltage of described battery feed circuit output, then RC charge-discharge circuit and battery feed circuit give the power supply of RTC system simultaneously, if the voltage that the voltage of described RC charge-discharge circuit output exports less than described battery feed circuit, described battery feed circuit give described RTC system power supply;
Described start power management step is: after described device power, MCU controls the power supply of equipment offer by described device power supply (DPS) power supply circuits to the power supply of RTC system, the power supply that the equipment of MCU control simultaneously provides charges to described RC charge-discharge circuit, and described battery feed circuit and RC charge-discharge circuit all do not provide power supply for described RTC system power supply.
Further, after described device power, also perform automatically to get rid of low charge alert step after performing start power management step, the described low charge alert of automatic eliminating particularly as follows:
After step 100, described device power, described MCU closes described device power supply (DPS) power supply circuits and RC charge-discharge circuit, and only by described battery feed circuit to RTC system power supply, described MCU passes through I2C-channel reads the low-voltage indicating bit of RTC system, if I2C-channel communication is normal, and described low-voltage indicating bit is not set, then it represents that all go well, and opens described device power supply (DPS) power supply circuits, keeps the closed mode of RC charge-discharge circuit;If I2C-channel communication is normal, and described low-voltage indicating bit is set, then it represents that too low voltage alarm occurs in RTC system, performs step 110;If I2C-channel miscommunication, performs step 120;
Step 110, described MCU remove low-voltage indicating bit, and now device power supply (DPS) power supply circuits and RC charge-discharge circuit are closed, after time delay a period of time, again by I2C-channel reads described low-voltage indicating bit, if now low-voltage indicating bit is not set, then it represents that set before is once set, then all goes well now, opens described device power supply (DPS) power supply circuits, keeps the closed mode of RC charge-discharge circuit;If now low-voltage indicating bit is still set, then it represents that battery has been low-voltage state, send low-voltage warning information, then open device power supply (DPS) power supply circuits, close battery feed circuit and RC charge-discharge circuit;The time of described time delay sets according to actual needs;
Step 120, I2C-channel miscommunication, described MCU opens described device power supply (DPS) power supply circuits, again low-voltage indicating bit of detection, if I2C-channel communication is normal, and described low-voltage indicating bit is not set, then it represents that all go well, and keeps the open mode of device power supply (DPS) power supply circuits and keeps the closed mode of RC charge-discharge circuit;If I2C-channel communication is normal, and described low-voltage indicating bit is set, then it represents that too low voltage alarm occurs in RTC system, performs step 110;If finding I after checking2C-channel communication or mistake, then it represents that RTC electricity fault, described MCU opens device power supply (DPS) power supply circuits and RC charge-discharge circuit, stops battery feed circuit and powers, to save battery electric quantity.
Further, step 121 is also included after described step 120, particularly as follows: described MCU will detect that RTC circuit malfunction and warning information are sent to the primary processor of equipment by the UART interface of single-chip microcomputer.
Present invention have the advantage that
The present invention adopts device power supply (DPS) power supply circuits, battery feed circuit and RC charge-discharge circuit power supply in support, effectively solve the problem that RTC system time is easily reset after equipment stock and equipment shut down, meanwhile, the present invention can investigate filtration RTC low-voltage alarm problem by mistake and be accurately judged to battery electric quantity deficiency.The present invention can also identify battery low-electricity quantity and send alarm, and by RC charging circuit as RTC back-up source, it is possible to the shutdown of reply equipment short time (within a week), ensure RTC system worked well.This device can also significantly reduce after-sales service workload.
[accompanying drawing explanation]
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is one RTC electric power controller of the present invention.
Fig. 2 is the flow chart that the present invention investigates low charge alert automatically.
[detailed description of the invention]
Embodiment one:
Referring to Fig. 1, a kind of RTC electric power controller, it is suitable in the RTC system of equipment, and described electric power controller includes device power supply (DPS) power supply circuits 1, RC charge-discharge circuit 2, battery feed circuit 3 and a MCU;Described device power supply (DPS) power supply circuits 1 connect battery feed circuit 3 and RC charge-discharge circuit 2 respectively, described RC charge-discharge circuit 2 is additionally coupled to device power supply (DPS) power supply circuits 1 and forms to be connected the junction point A of RTC chip U1 feeder ear on the connecting line of battery feed circuit 3 and on described connecting line, described device power supply (DPS) power supply circuits 1, battery feed circuit 3 and RTC chip U1 are all controlled by described MCU, and described RTC chip U1 is the master chip of RTC system.Described battery feed circuit 3 is generally adopted button cell.
In the present embodiment, described device power supply (DPS) power supply circuits 1 are made up of resistance R1, audion Q1, communication relay LS1 and diode D1;One end of described resistance R1 connects the P1 pin of described MCU, the B pole of other end connecting triode Q1, the C pole of described audion Q1 is connected to the 2nd pin of described communication relay LS1,1st pin and the 3rd pin of described communication relay LS1 are also connected with the system power supply of equipment, 4th pin of described diode D1 and described communication relay LS1 is connected, and described diode D1 is additionally coupled to described junction point A.Described audion Q1 generally selects NPN type triode;Described diode D1 generally selects Schottky diode.
Described RC charge-discharge circuit 2 is made up of resistance R2, electric capacity CB1, diode D2, communication relay LS2, audion Q2 and resistance R4;One end of described resistance R4 connects the P2 pin of described MCU, the B pole of other end connecting triode Q2, the C pole of described audion Q2 connects the 2nd pin of described communication relay LS2, 3rd pin of described communication relay LS2 connects junction point A, 1st pin of described communication relay LS2 connects the system power supply of equipment, 5th pin of described communication relay LS2 connects one end of diode D2, the other end of described diode D2 is also respectively connected with one end of resistance R2 and the positive pole of electric capacity CB1, the other end of described resistance R2 connects described device power supply (DPS) power supply circuits 1, in the present embodiment, the other end of described resistance R2 connects described diode D1.
Described battery feed circuit 3 is made up of diode D3, resistance R3 and battery BAT, and described diode D3, resistance R3 and battery BAT are sequentially connected with, and described diode D3 is also connected with described junction point A.
Described MCU also includes SCL pin and SDA pin, and the RTC chip of described RTC system includes SCL pin and SDA pin;The SCL pin of described MCU connects the SCL pin of described RTC chip, and the SDA pin of described MCU connects the SDA pin of described RTC chip, forms described I by this two connection2C-channel.
nullDuring equipment shutdown,The step that this device is RTC system power supply is: the P1 pin output low level of described MCU,3rd pin of described communication relay LS1 and the 4th pin disconnect,Described device power supply (DPS) power supply circuits 1 can not be RTC system power supply,The P2 pin output low level of described MCU,3rd pin of described communication relay LS2 and the conducting of the 4th pin,Described electric capacity CB1 passes through diode D2 and described communication relay LS2 to RTC system power supply,When electric capacity CB1 voltage is more than described battery BAT voltage,Described diode D3 is not turned on,Only by described RC charge-discharge circuit to RTC system power supply,When electric capacity CB1 voltage is equal to described battery BAT voltage,Described diode D2 and diode D3 is both turned on,Electric capacity CB1 and battery BAT gives RTC system power supply simultaneously,When electric capacity CB1 voltage is less than described battery BAT voltage,Described RTC system power supply is given by described battery feed circuit 3.
During device power-up, the step that this device is RTC system power supply is: after described device power, the P1 pin output high level of MCU, the P2 pin output high level of MCU, 3rd pin of described communication relay LS1 and the conducting of the 4th pin, the power supply that equipment provides passes through communication relay LS1 through communication relay LS1 and diode D1 to the power supply of RTC system, 3rd pin of described communication relay LS2 and the 4th pin disconnect, described electric capacity CB1 can not give described RTC system power supply, the power supply that equipment provides is by communication relay LS1, diode D1 and resistance R2 charges to electric capacity CB1.
Equipment is after the manufacturing; would generally there is shutdown a period of time (inventory time; road haulage time); just meeting on-line running; the such as unused time reaches one month, then after the electric capacity CB1 self discharge in RC charge-discharge circuit 2, and electricity is not enough; battery in battery feed circuit 3 then can continued power (time was more than 3 years), thus can avoid the occurrence of the problem that the time of RTC system is reset.
During equipment on-line running; often have switching on and shutting down operation; when disposable button cell electricity deficiency; MCU can detect battery low-voltage, and sends warning information prompting replacing battery, during battery is not changed; after equipment shutdown; by RC charge-discharge circuit to RTC system power supply, power-on time can continue more than one week, so can avoid the occurrence of the problem that RTC time is reset.
Referring to Fig. 2, the step realizing automatically investigating low charge alert by this device is:
After step 100, described device power, described MCU closes described device power supply (DPS) power supply circuits 1 and RC charge-discharge circuit 2, is only given RTC system power supply by described battery feed circuit 3, and described MCU passes through I2C-channel reads the low-voltage indicating bit of RTC system, if I2C-channel communication is normal, and described low-voltage indicating bit is not set, then it represents that all go well, and opens described device power supply (DPS) power supply circuits 1, keeps the closed mode of RC charge-discharge circuit 2;If I2C-channel communication is normal, and described low-voltage indicating bit is set, then it represents that too low voltage alarm occurs in RTC system, performs step 110;If I2C-channel miscommunication, performs step 120;Described set refers to: refer to that arranging low-voltage indicating bit is 1, for instance, when low-voltage indicating bit is 0, expression system is not in low-voltage state;When low-voltage indicating bit is 1, expression system is in low-voltage state;
Step 110, described MCU remove low-voltage indicating bit, and now device power supply (DPS) power supply circuits 1 and RC charge-discharge circuit 2 are closed, after time delay a period of time, again by I2C-channel reads described low-voltage indicating bit, if now low-voltage indicating bit is not set, then it represents that set before is once set, then all goes well now, opens described device power supply (DPS) power supply circuits 1, keeps the closed mode of RC charge-discharge circuit 2;If now low-voltage indicating bit is still set, then it represents that battery has been low-voltage state, send low-voltage warning information, then open device power supply (DPS) power supply circuits 1, close battery feed circuit 3 and RC charge-discharge circuit 2;The time of described time delay sets according to actual needs, for instance, set delay time as 200ms;
Step 120, I2C-channel miscommunication, described MCU opens described device power supply (DPS) power supply circuits 1, again low-voltage indicating bit of detection, if I2C-channel communication is normal, and described low-voltage indicating bit is not set, then it represents that all go well, and keeps the open mode of device power supply (DPS) power supply circuits 1 and keeps the closed mode of RC charge-discharge circuit 2;If I2C-channel communication is normal, and described low-voltage indicating bit is set, then it represents that too low voltage alarm occurs in RTC system, performs step 110;If finding I after checking2C-channel communication or mistake, then it represents that RTC electricity fault (acquiescence RTC system low-voltage), described MCU opens device power supply (DPS) power supply circuits 1 and RC charge-discharge circuit 2, stops battery feed circuit 3 and powers, to save battery electric quantity.
Step 121, described MCU will detect that RTC circuit malfunction and warning information are sent to the primary processor of equipment by the UART interface of single-chip microcomputer.
RTC low-voltage alarm problem by mistake can be investigated by above-mentioned steps and be accurately judged to battery electric quantity deficiency, starting alarm prompt and change battery, and filter out some low-voltage caused by interference alarm erroneous judgement information.When battery electric quantity deficiency, the short time shutdown of equipment can be tackled by RC charge-discharge circuit, ensure the normal operation of RTC.
Embodiment two:
Refer to Fig. 1, a kind of RTC method for managing power supply, this management method is based on a kind of RTC electric power controller and realizes, described electric power controller its suitable in the RTC system of equipment, described RTC electric power controller includes device power supply (DPS) power supply circuits 1, battery feed circuit 3, RC charge-discharge circuit 2 and a MCU;Described method for managing power supply includes shutdown power management step and start power management step;
Described shutdown power management step is: during equipment shutdown, if the voltage of described RC charge-discharge circuit 2 output is higher than the voltage of described battery feed circuit output, then RC charge-discharge circuit 2 gives the power supply of RTC system, if the voltage of described RC charge-discharge circuit 2 output is equal to the voltage of described battery feed circuit 3 output, then RC charge-discharge circuit 2 and battery feed circuit 3 give the power supply of RTC system simultaneously, if the voltage that the voltage of described RC charge-discharge circuit 2 output exports less than described battery feed circuit 3, described battery feed circuit 3 give described RTC system power supply;
Described RC charge-discharge circuit 2 is made up of resistance R2, electric capacity CB1, diode D2, communication relay LS2, audion Q2 and resistance R4;One end of described resistance R4 connects the P2 pin of described MCU, the B pole of other end connecting triode Q2, the C pole of described audion Q2 connects the 2nd pin of described communication relay LS2, 3rd pin of described communication relay LS2 connects junction point A, 1st pin of described communication relay LS2 connects the system power supply of equipment, 5th pin of described communication relay LS2 connects one end of diode D2, the other end of described diode D2 is also respectively connected with one end of resistance R2 and the positive pole of electric capacity CB1, the other end of described resistance R2 connects described device power supply (DPS) power supply circuits 1, in the present embodiment, the other end of described resistance R2 connects described diode D1.
Described battery feed circuit 3 is made up of diode D3, resistance R3 and battery BAT, and described diode D3, resistance R3 and battery BAT are sequentially connected with, and described diode D3 is also connected with described junction point A
Described shutdown power management step particularly as follows:
nullDuring equipment shutdown,The P1 pin output low level of described MCU,3rd pin of described communication relay LS1 and the 4th pin disconnect,Described device power supply (DPS) power supply circuits 1 can not be RTC system power supply,The P2 pin output low level of described MCU,3rd pin of described communication relay LS2 and the conducting of the 4th pin,Described electric capacity CB1 passes through diode D2 and described communication relay LS2 to RTC system power supply,When electric capacity CB1 voltage is more than described battery BAT voltage,Described diode D3 is not turned on,Only by described RC charge-discharge circuit to RTC system power supply,When electric capacity CB1 voltage is equal to described battery BAT voltage,Described diode D2 and diode D3 is both turned on,Electric capacity CB1 and battery BAT gives RTC system power supply simultaneously,When electric capacity CB1 voltage is less than described battery BAT voltage,Described RTC system power supply is given by described battery feed circuit 3.
Described start power management step is: after described device power, MCU controls the power supply of equipment offer by described device power supply (DPS) power supply circuits 1 to the power supply of RTC system, MCU controls the power supply of equipment offer to described RC charge-discharge circuit charging 2 simultaneously, and described battery feed circuit 3 and RC charge-discharge circuit 2 all do not provide power supply for described RTC system power supply.
Described device power supply (DPS) power supply circuits 1 are particularly as follows: described device power supply (DPS) power supply circuits 1 are made up of resistance R1, audion Q1, communication relay LS1 and diode D1;One end of described resistance R1 connects the P1 pin of described MCU, the B pole of other end connecting triode Q1, the C pole of described audion Q1 is connected to the 2nd pin of described communication relay LS1,1st pin and the 3rd pin of described communication relay LS1 are also connected with the system power supply of equipment, 4th pin of described diode D1 and described communication relay LS1 is connected, and described diode D1 is additionally coupled to described junction point A.Described audion Q1 generally selects NPN type triode, and described diode D1 generally selects Schottky diode.
Described start power management step is: after described device power, the P1 pin output high level of MCU, the P2 pin output high level of MCU, 3rd pin of described communication relay LS1 and the conducting of the 4th pin, the power supply that equipment provides passes through communication relay LS1 through communication relay LS1 and diode D1 to the power supply of RTC system, 3rd pin of described communication relay LS2 and the 4th pin disconnect, described electric capacity CB1 can not give described RTC system power supply, and the power supply that equipment provides is charged to electric capacity CB1 by communication relay LS1, diode D1 and resistance R2.
Described MCU also includes SCL pin and SDA pin, and the RTC chip U1 of described RTC system includes SCL pin and SDA pin;The SCL pin of described MCU connects the SCL pin of described RTC chip U1, and the SDA pin of described MCU connects the SDA pin of described RTC chip U1, forms described I by this two connection2C-channel.
Referring to Fig. 2, the step realizing automatically investigating low charge alert by this device is:
After step 100, described device power, described MCU closes described device power supply (DPS) power supply circuits 1 and RC charge-discharge circuit 2, is only given RTC system power supply by described battery feed circuit 3, and described MCU passes through I2C-channel reads the low-voltage indicating bit of RTC system, if I2C-channel communication is normal, and described low-voltage indicating bit is not set, then it represents that all go well, and opens described device power supply (DPS) power supply circuits 1, keeps the closed mode of RC charge-discharge circuit 2;If I2C-channel communication is normal, and described low-voltage indicating bit is set, then it represents that too low voltage alarm occurs in RTC system, performs step 110;If I2C-channel miscommunication, performs step 120;Described set refers to: refer to that arranging low-voltage indicating bit is 1, for instance, when low-voltage indicating bit is 0, expression system is not in low-voltage state;When low-voltage indicating bit is 1, expression system is in low-voltage state;
Step 110, described MCU remove low-voltage indicating bit, and now device power supply (DPS) power supply circuits 1 and RC charge-discharge circuit 2 are closed, after time delay a period of time, again by I2C-channel reads described low-voltage indicating bit, if now low-voltage indicating bit is not set, then it represents that set before is once set, then all goes well now, opens described device power supply (DPS) power supply circuits 1, keeps the closed mode of RC charge-discharge circuit 2;If now low-voltage indicating bit is still set, then it represents that battery has been low-voltage state, send low-voltage warning information, then open device power supply (DPS) power supply circuits 1, close battery feed circuit 3 and RC charge-discharge circuit 2;The time of described time delay sets according to actual needs, for instance, set delay time as 200ms;
Step 120, I2C-channel miscommunication, described MCU opens described device power supply (DPS) power supply circuits 1, again low-voltage indicating bit of detection, if I2C-channel communication is normal, and described low-voltage indicating bit is not set, then it represents that all go well, and keeps the open mode of device power supply (DPS) power supply circuits 1 and keeps the closed mode of RC charge-discharge circuit 2;If I2C-channel communication is normal, and described low-voltage indicating bit is set, then it represents that too low voltage alarm occurs in RTC system, performs step 110;If finding I after checking2C-channel communication or mistake, then it represents that RTC electricity fault (acquiescence RTC system low-voltage), described MCU opens device power supply (DPS) power supply circuits 1 and RC charge-discharge circuit 2, stops battery feed circuit 3 and powers, to save battery electric quantity.
Step 121, described MCU will detect that RTC circuit malfunction and warning information are sent to the primary processor of equipment by the UART interface of single-chip microcomputer.
RTC low-voltage alarm problem by mistake can be investigated by above-mentioned steps and be accurately judged to battery electric quantity deficiency, starting alarm prompt and change battery, and filter out some low-voltage caused by interference alarm erroneous judgement information.When battery electric quantity deficiency, the short time shutdown of equipment can be tackled by RC charge-discharge circuit, ensure the normal operation of RTC.
Present invention have the advantage that
The present invention adopts device power supply (DPS) power supply circuits, battery feed circuit and RC charge-discharge circuit power supply in support, effectively solve the problem that RTC system time is easily reset after equipment stock and equipment shut down, meanwhile, the present invention can investigate filtration RTC system low-voltage alarm problem by mistake and be accurately judged to battery electric quantity deficiency.The present invention can also identify battery low-electricity quantity and send alarm, and by RC charging circuit as RTC back-up source, it is possible to the shutdown of reply equipment short time (within a week), ensure RTC system worked well.This device can also significantly reduce after-sales service workload.
Although the foregoing describing the specific embodiment of the present invention; but those familiar with the art is to be understood that; we are merely exemplary described specific embodiment; rather than for the restriction to the scope of the present invention; those of ordinary skill in the art, in the equivalent modification made according to the spirit of the present invention and change, should be encompassed in the scope of the claimed protection of the present invention.

Claims (10)

1. a RTC electric power controller, it is suitable in the RTC system of equipment, it is characterised in that: described electric power controller includes device power supply (DPS) power supply circuits, a battery feed circuit, a RC charge-discharge circuit and a MCU;Described device power supply (DPS) power supply circuits connect battery feed circuit and RC charge-discharge circuit respectively, described RC charge-discharge circuit is additionally coupled to device power supply (DPS) power supply circuits and forms to be connected the junction point A of RTC chip feeder ear on the connecting line of battery feed circuit and on described connecting line, described device power supply (DPS) power supply circuits, battery feed circuit and RTC chip are all controlled by described MCU, and described RTC chip is the master chip of RTC system;
During equipment shutdown, if the voltage of described RC charge-discharge circuit output is higher than the voltage of described battery feed circuit output, then RC charge-discharge circuit is to the power supply of RTC system, if the voltage of described RC charge-discharge circuit output is equal to the voltage of described battery feed circuit output, then RC charge-discharge circuit and battery feed circuit give the power supply of RTC system simultaneously, if the voltage that the voltage of described RC charge-discharge circuit output exports less than described battery feed circuit, described battery feed circuit give described RTC system power supply.
2. a kind of RTC electric power controller according to claim 1, it is characterised in that: described device power supply (DPS) power supply circuits are made up of resistance R1, audion Q1, communication relay LS1 and diode D1;One end of described resistance R1 connects the P1 pin of described MCU, the B pole of other end connecting triode Q1, the C pole of described audion Q1 is connected to the 2nd pin of described communication relay LS1, the E pole ground connection of described audion Q1,1st pin and the 3rd pin of described communication relay LS1 are also connected with the system power supply of equipment, 4th pin of described diode D1 and described communication relay LS1 is connected, and described diode D1 is additionally coupled to described junction point A.
3. a kind of RTC electric power controller according to claim 2, it is characterised in that: described audion Q1 is NPN type triode.
4. a kind of RTC electric power controller according to claim 2, it is characterised in that: described diode D1 is Schottky diode.
5. a kind of RTC electric power controller according to claim 1, it is characterised in that: described RC charge-discharge circuit is made up of resistance R2, electric capacity CB1, diode D2, communication relay LS2, audion Q2 and resistance R4;One end of described resistance R4 connects the P2 pin of described MCU, the B pole of other end connecting triode Q2, the C pole of described audion Q2 connects the 2nd pin of described communication relay LS2, the E pole ground connection of described audion Q2, 3rd pin of described communication relay LS2 connects junction point A, 1st pin of described communication relay LS2 connects the system power supply of equipment, 5th pin of described communication relay LS2 connects one end of diode D2, the other end of described diode D2 is also respectively connected with one end of resistance R2 and the positive pole of electric capacity CB1, the other end of described resistance R2 connects described device power supply (DPS) power supply circuits.
6. a kind of RTC electric power controller according to claim 1, it is characterized in that: described battery feed circuit is made up of diode D3, resistance R3 and battery BAT, described diode D3, resistance R3 and battery BAT are sequentially connected with, and described diode D3 is also connected with described junction point A.
7. a kind of RTC electric power controller according to claim 1, it is characterised in that: described MCU also includes SCL pin and SDA pin, and the RTC chip of described RTC system includes SCL pin and SDA pin;The SCL pin of described MCU connects the SCL pin of described RTC chip, and the SDA pin of described MCU connects the SDA pin of described RTC chip, forms I by this two connection2C-channel.
8. a RTC method for managing power supply, it is characterized in that: this management method is based on a kind of RTC electric power controller and realizes, described electric power controller its suitable in the RTC system of equipment, described RTC electric power controller includes device power supply (DPS) power supply circuits, a battery feed circuit, a RC charge-discharge circuit and a MCU;Described method for managing power supply includes shutdown power management step and start power management step;
Described shutdown power management step is: during equipment shutdown, if the voltage of described RC charge-discharge circuit output is higher than the voltage of described battery feed circuit output, then RC charge-discharge circuit is to the power supply of RTC system, if the voltage of described RC charge-discharge circuit output is equal to the voltage of described battery feed circuit output, then RC charge-discharge circuit and battery feed circuit give the power supply of RTC system simultaneously, if the voltage that the voltage of described RC charge-discharge circuit output exports less than described battery feed circuit, described battery feed circuit give described RTC system power supply;
Described start power management step is: after described device power, MCU controls the power supply of equipment offer by described device power supply (DPS) power supply circuits to the power supply of RTC system, the power supply that the equipment of MCU control simultaneously provides charges to described RC charge-discharge circuit, and described battery feed circuit and RC charge-discharge circuit all do not provide power supply for described RTC system power supply.
9. a kind of RTC method for managing power supply according to claim 8, it is characterised in that: after described device power, also perform automatically to get rid of low charge alert step after performing start power management step, the described low charge alert of automatic eliminating particularly as follows:
After step 100, described device power, described MCU closes described device power supply (DPS) power supply circuits and RC charge-discharge circuit, and only by described battery feed circuit to RTC system power supply, described MCU passes through I2C-channel reads the low-voltage indicating bit of RTC system, if I2C-channel communication is normal, and described low-voltage indicating bit is not set, then it represents that all go well, and opens described device power supply (DPS) power supply circuits, keeps the closed mode of RC charge-discharge circuit;If I2C-channel communication is normal, and described low-voltage indicating bit is set, then it represents that too low voltage alarm occurs in RTC system, performs step 110;If I2C-channel miscommunication, performs step 120;
Step 110, described MCU remove low-voltage indicating bit, and now device power supply (DPS) power supply circuits and RC charge-discharge circuit are closed, after time delay a period of time, again by I2C-channel reads described low-voltage indicating bit, if now low-voltage indicating bit is not set, then it represents that set before is once set, then all goes well now, opens described device power supply (DPS) power supply circuits, keeps the closed mode of RC charge-discharge circuit;If now low-voltage indicating bit is still set, then it represents that battery has been low-voltage state, send low-voltage warning information, then open device power supply (DPS) power supply circuits, close battery feed circuit and RC charge-discharge circuit;The time of described time delay sets according to actual needs;
Step 120, I2C-channel miscommunication, described MCU opens described device power supply (DPS) power supply circuits, again low-voltage indicating bit of detection, if I2C-channel communication is normal, and described low-voltage indicating bit is not set, then it represents that all go well, and keeps the open mode of device power supply (DPS) power supply circuits and keeps the closed mode of RC charge-discharge circuit;If I2C-channel communication is normal, and described low-voltage indicating bit is set, then it represents that too low voltage alarm occurs in RTC system, performs step 110;If finding I after checking2C-channel communication or mistake, then it represents that RTC electricity fault, described MCU opens device power supply (DPS) power supply circuits and RC charge-discharge circuit, stops battery feed circuit and powers, to save battery electric quantity.
10. a kind of RTC method for managing power supply according to claim 9, it is characterized in that: also include step 121 after described step 120, particularly as follows: described MCU will detect that RTC circuit malfunction and warning information are sent to the primary processor of equipment by the UART interface of single-chip microcomputer.
CN201410603758.4A 2014-10-31 2014-10-31 A kind of RTC electric power controller and method Active CN104333112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410603758.4A CN104333112B (en) 2014-10-31 2014-10-31 A kind of RTC electric power controller and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410603758.4A CN104333112B (en) 2014-10-31 2014-10-31 A kind of RTC electric power controller and method

Publications (2)

Publication Number Publication Date
CN104333112A CN104333112A (en) 2015-02-04
CN104333112B true CN104333112B (en) 2016-07-06

Family

ID=52407786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410603758.4A Active CN104333112B (en) 2014-10-31 2014-10-31 A kind of RTC electric power controller and method

Country Status (1)

Country Link
CN (1) CN104333112B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293796B (en) * 2015-06-10 2019-11-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN106354075B (en) * 2016-11-25 2020-01-21 北京意同创科技有限公司 Remote controller control circuit with backlight screen
CN111836347B (en) * 2020-06-16 2024-07-16 厦门汉印电子技术有限公司 Electric quantity display method, device, equipment and readable storage medium
CN112366803A (en) * 2020-11-06 2021-02-12 杭州叙简未兰电子有限公司 Power supply method, power supply circuit and law enforcement recorder

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5905365A (en) * 1997-10-28 1999-05-18 Twinhead International Corp. Real time-clock power supply device
CN1804574A (en) * 2006-01-19 2006-07-19 湖南大学 Method and apparatus for measuring running performance parameters of hybrid electric vehicle
CN200947549Y (en) * 2006-09-07 2007-09-12 安凯(广州)软件技术有限公司 Power supply circuit of double voltage source real-time clock circuit
CN201063794Y (en) * 2007-07-16 2008-05-21 浙江三维通信股份有限公司 Mobile communications network overlapping effect remote dial testing system
CN103607037A (en) * 2013-11-01 2014-02-26 恒动能源(深圳)有限公司 Switching apparatus of UPS power supply
CN103944254A (en) * 2014-04-15 2014-07-23 福建星网视易信息***有限公司 Power-fail protection circuit and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5905365A (en) * 1997-10-28 1999-05-18 Twinhead International Corp. Real time-clock power supply device
CN1804574A (en) * 2006-01-19 2006-07-19 湖南大学 Method and apparatus for measuring running performance parameters of hybrid electric vehicle
CN200947549Y (en) * 2006-09-07 2007-09-12 安凯(广州)软件技术有限公司 Power supply circuit of double voltage source real-time clock circuit
CN201063794Y (en) * 2007-07-16 2008-05-21 浙江三维通信股份有限公司 Mobile communications network overlapping effect remote dial testing system
CN103607037A (en) * 2013-11-01 2014-02-26 恒动能源(深圳)有限公司 Switching apparatus of UPS power supply
CN103944254A (en) * 2014-04-15 2014-07-23 福建星网视易信息***有限公司 Power-fail protection circuit and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于单片机C8051F 的智能温控***的设计与实现;赵跃齐等;《计算机测量与控制》;20090331;第17卷(第3期);第490-491页 *

Also Published As

Publication number Publication date
CN104333112A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN103698640B (en) A kind of intelligent charge testing circuit and portable power source
CN103092315B (en) The mobile terminal of rear recovery application program can be restarted
CN104333112B (en) A kind of RTC electric power controller and method
CN201813422U (en) Charging chip and mobile terminal capable of automatically adjusting charging mode
CN105468127A (en) Real-time data acquisition system and power failure data saving circuit and method thereof
CN103326432B (en) A kind of battery charging control method of electronic equipment and system
CN104377812B (en) A kind of multi input power supply switch circuit
CN208971163U (en) BMS power-supply system and electrical equipment
CN103683266B (en) Rechargeable battery protection circuit
CN203434637U (en) Energy storage system
CN107221988A (en) The power circuit and its control method of a kind of under-voltage protection
CN207264576U (en) Bandwidth carrier collector
CN204376531U (en) The remote and intelligent maintenance system of transforming plant DC power supply
CN103633719B (en) A kind of charging system and charge control method thereof
CN103108081B (en) Subscriber identity module (SIM) card detection control device of mobile terminal
CN209560016U (en) A kind of DC power supply plate connector detection system
CN207586855U (en) Intelligent wearable device crash restarts system automatically
CN203745567U (en) Intelligent charging detection circuit and mobile power source
CN203607846U (en) Rechargeable battery protection circuit
CN107634577B (en) Power-off detection control circuit and gas meter
CN105429246A (en) Circuit and method for automatically disconnecting terminal after full charge
TW201324113A (en) Hot-pluggable uninterruptible power module
CN205543129U (en) Battery maintenance appearance based on distribution automation terminal
CN204462295U (en) Auxiliary circuit is detected from equipment and insertion thereof
US20120311354A1 (en) Power Adapter and Portable Computer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant