摘要 |
PROBLEM TO BE SOLVED: To eliminate a conflict in hardware between an NMI interruption and a users' reset interruption when the memory is retained by the battery backup system. SOLUTION: After the processing of the step S18, it is judged whether the NMI flag is ON or not (step S19). When it is YES, the judgment that the power failure signal is already inputted is made to inhibit the access to the RAM (step S23) and the solenoid output is turned OFF (step S24). The program is put on standby in the loop. When it is NO at the step S19, the judgment that the power failure signal is not yet inputted is made and the processing left, e.g., the initial value random number updating processing (step S20) and the random number updating processing (step S21) for the figures are executed. Then, it is determined whether the INT flag is ON or not, that is, whether the time is up (over 2.731 ms) or not (step S22) and when it is NO, the operation is returned back to the step S20 and the processing left is continued. When it is YES, the processing left is all canceled and the processing is shifted to the step S10. COPYRIGHT: (C)2005,JPO&NCIPI
|