The accumulating method of analog radio wave clock and device thereof
Affiliated technical field: the accumulating method and the device thereof that the present invention relates to a kind of analog radio wave clock, be implemented in power supply because of assembling, repair, under the various off-positions such as replacing and test, the location initial bit of memory product when just adorning receiving to keep product, the school constantly positioning reference and keep the memory product and under off-position, continue the operation orthochronous and recover the demonstration of orthochronous automatically and move to guarantee the incoming call back.
Background technology: traditional analog radio wave clock general using manually or the light detection mode carry out the location of indicator.For manual mode, power at every turn and all will carry out complicated manual positioning work, the user is not easy to operate and easy maloperation causes the inaccurate of time, has so just deviated from the characteristics when radio wave clock is accurately walked.Announce that in Chinese patent literature the patent No. is in 99258198.2 the patent, to disclose a kind of " utilizing the Radio time-setting clock of photovalve location ".This clock is provided with the photovalve of the reflected light electric switch of the gear rotation period of judging this clock, in order to realize this clock start to the time function.This smooth detection mode is by reflection of light, transmission, looks for the time difference of a fixing position and this position and the wireless long wave standard time signal that receives, start then to the time to reach automatic location.The defective of light detection mode is, it is long that light detects the stand-by period, repair or the replacing battery after under the situation of the wireless long wave standard time that does not receive national time service center broadcast during the signal school, can't show the standard time accurately.In addition, require certain precision for physical construction, cost is higher.Above defective makes the automatic correcting time characteristics of traditional analog radio wave clock have imperfection.
Summary of the invention: for avoiding the defective of prior art, the present invention proposes a kind of accumulating method and device thereof of analog radio wave clock, repairing, under the various off-positions such as replacing and test, by electromechanics conversion set composite and mnemonic, the location initial bit of memory product when just adorning receiving to keep product, the school constantly positioning reference and keep the memory product and under off-position, continue the operation orthochronous and recover the demonstration of orthochronous automatically and move to guarantee the incoming call back.
The invention is characterized in: set three time memories, when power down protection, the incoming level that detects MCU port K02 is a high level, and the positional value that is about to hour hands, minute hand and the second hand of current indicator is stored in respectively in three time memories; When MCU detection port K02 be input as low level the time, take out the time value in the time memory of remembering the indicator position, and with this value and current second, branch, the time value difference, the control second hand is to surpass the leg speeds in 20 steps p.s., fast moving enters demonstration when walking normally to the current time.
Power down protection is to adopt dynamo-electric conversion set composite control main battery to be converted to reserve battery.
Under usual condition, main battery pack into the dynamo-electric conversion of battery case set composite closed with being connected of main battery, simultaneously, disconnection is connected with reserve battery.This moment, the incoming level of internal processes detection port K02 was low level (there is a pull down resistor K02 inside).Be removed at the generation main battery, the disconnection of dynamo-electric conversion set composite is connected with main battery, and closure is connected with reserve battery, simultaneously, guarantees this not power down of process.The action of dynamo-electric conversion this moment set composite causes that the incoming level of MCU detection port K02 is a high level; the position of the current indicator of nondeclarative memory and when its value is stored in power down protection, in the minute, second pin position memory; stop indicator simultaneously and move, under reserve battery power supply, shake then and keep normal inside when walking according to inner clock.Behind the battery case of again main battery being packed into, dynamo-electric conversion set composite closure is connected with main battery, and disconnection is connected with reserve battery.Detect the low level of the input of port K02 once more as MCU, program take out the value of storer of memory indicator position and current second, branch, the time storer value, surpassing the leg speeds in 20 steps p.s., the fast moving indicator enters after the current time when walking normally up to adjustment and to show.
A kind of device of realizing this accumulating method is characterized in that: adopt the switching of an electromechanical combined device control main battery and reserve battery, and in parallel with electric capacity and be connected between the VDD and VSS terminal of the MCU that remembers the indicator position.Not only guarantee the security of handoff procedure.Simultaneously, the program by inside detects the operating position of battery, the position of memory indicator, and the difference of control indicator shows.When electromechanical combined device control main battery switched with reserve battery, electric capacity was finished the power supply task to MCU, and MCU was finished remember product the location initial bit when just adorning.
Electromechanical combined device can adopt a mechanical switch and a diode to form.When the battery battery case of packing into, battery is depressed mechanical switch, thereby disconnects reserve battery, and diode cathode is unsettled simultaneously, and K02 is a low level; When take out battery from battery case, mechanical switch is upspring, thus being connected of closed and reserve battery, diode connection simultaneously, K02 is a high level.
Electromechanical combined device can also adopt two mechanical switchs to form.When the battery battery case of packing into, battery is depressed mechanical switch, thereby disconnects reserve battery, and K02 connects low level simultaneously; When take out battery from battery case, mechanical switch is upspring, thus closed and reserve battery be connected the high level of K02 connection simultaneously.
The present invention's superiority compared to existing technology is: repairing, under the various off-positions such as replacing and test, detect Control Software by electromechanics conversion set composite and program, the location initial bit of memory product when just adorning receiving to keep product, the school constantly positioning reference and keep the memory product and under off-position, continue the operation orthochronous and recover the demonstration of orthochronous automatically and move to guarantee the incoming call back.
Description of drawings:
Fig. 1: accumulating method schematic diagram
Fig. 2: memory storage 1 schematic diagram
Fig. 3: memory storage 2 schematic diagrams
Embodiment:
Further the present invention will be described below:
MCU can utilize the function of tonic chord chip of radio wave clock itself, and the switching of electromechanical combined device control main battery and reserve battery is in parallel with electric capacity and be connected between the VDD and VSS terminal of the MCU that remembers the indicator position.Electromechanical combined device can adopt two mechanical switchs to form, and can also adopt a mechanical switch and a diode to form.Reserve battery can adopt a button cell to be built in radio wave clock, and capacitance is 220 μ F, and diode that be series at reserve battery in parallel with the MCU of memory indicator position can adopt model 2AP.
When taking out external cell, this analog radio wave clock can be by the connecting of the switch connection radio wave clock that is connected with battery carrier and standby button cell, to keep normal inside when walking.Discharge capacity can guarantee switching uninterrupted of main battery and reserve battery.In this process, behind the MCU memory indicator position, stop that indicator is walked about and should switch to energy-saving mode by analog radio wave clock.
When changing battery or reload battery, this analog radio wave clock can memory based indicator position and time during inner walking, and controls this analog radio wave clock and show the correct standard time fast and keep and continue the operation orthochronous.
Under usual condition, main battery pack into the dynamo-electric conversion of battery case set composite closed with being connected of main battery, simultaneously, disconnection is connected with reserve battery.This moment, the incoming level of internal processes detection port K02 was low level (there is a pull down resistor K02 inside).
Be removed at the generation main battery, the disconnection of dynamo-electric conversion set composite is connected with main battery, and closure is connected with reserve battery, simultaneously, guarantees this not power down of process.The action of dynamo-electric conversion this moment set composite causes that the incoming level of MCU detection port K02 is a high level; the position of the current indicator of nondeclarative memory and when its value is stored in power down protection, in the minute, second pin position memory; stop indicator simultaneously and move, under reserve battery power supply, shake then and keep normal inside when walking according to inner clock.Behind the battery case of again main battery being packed into, dynamo-electric conversion set composite closure is connected with main battery, and disconnection is connected with reserve battery.Detect the low level of the input of port K02 once more as MCU, program take out the value of storer of memory indicator position and current second, branch, the time storer value, surpassing the leg speeds in 20 steps p.s., the fast moving indicator enters after the current time when walking normally up to adjustment and to show.