【正文】
orresponding procedure, enters dormancy in time after finishing carrying out the task, wait to be restored to the throne nextly. Have solved abovementioned problems well with this method , and has got better result in the agricultural voltage transformer prehensive protector experiment. Now take 51 serial onechip puters as an example and probe into the concrete principle and implementation method, restored to the throne the signal as the high level. principle and implementation method Restored to the throne the law regularly unconditionally Use timer, specialpurpose clock chip or other pulse generator, produce signal of restoring to the throne regularly according to interval that set for. This kind of method is especially suitable for the measuring instrument. In not running actually, sample the analog quantity of introduction with A/D converter often, then store showing. This course is very fast, but steady for reading, the data per second are only upgraded 1 2 times, a large amount of time of CPU is used for waiting. Let CPU carry out and enter dormancy directly after the task , restore to the throne and wake by external world up It carry out the next operation, this is to restore to the throne the law regularly In this way can make antiinterference ability strengthen greatly , have 2 points mainly: ① . At the dormancy, procedure stop run, can appear PC indicator disorderly procedure that causes run and fly. Work time in dormancy proportion 1:9, that is to say 1 s have time of s used for measuring, sending off showing, there is time dormancy of , the probability that the procedure is interfered is 1/10 while running at full speed, whole antiinterference ability raise by 10 times. ② Because every 1s is restored to the throne once unconditionally, once present the system halted during a job, can certainly resume when restored to the throne next time. As to only instrument that show, some reading mistake that 1s appear accidentally there is no memory to the next measurement, be could bear , belong to “pass” mistake. This kind is restored to the throne the advantage of dog39。 Second, avoided happenning that the dog controls the death circulation of the link to include guarding the gate. The external condition is restored to the throne the law Some arrival that export or measure is controlled by the outside. For instance, the hot form. of heating, rotate the pulse produced and calculate heat by hot water water wheels, there is no hot water to flow, there is no heat to export, CPU only need in fact keep number value, do not need to count. Can imagine hot water water wheels rotate when parking warm , CPU idle in will it be will it be one season autumn spring and summer, If let dormancy its , measure have water wheels pulse constantly, antiinterference ability can strengthen greatly. So, so long as link up the restoring to the throne of the pulse of the water wheels and CPU, the water wheels rotate a circle each time, CPU is restored to the throne once, hot form. can work normally , this is restored to the throne the law by the external condition . Similar application have half electron kilowatthour meter , go on one count just when the machinery degree wheels and transfers to a circle, users do not need the electricity, CPU has been knowing the dormancy all the time . The restoring to the throne in the interval not to be regular, but confirmed according to the external condition of this method. In some occasions, the time of the dormancy will be very long, very effective to improving antiinterference ability. 2 .The hardware realizes the main point Restored to the throne regularly unconditionally Generally have 2 kinds of methods. ① Use theitimer or the specialpurpose clock chip to be restored to the throne. Fig1, in order to use the timing circuit that 555 circuit makes up。s trigger to have a facelift。 After the high level, the onechip puter begins to hold the conduct proc