How can the software be used to minimise the problem of noise generating a reset?
Answer The most effective method of eliminating the adverse effects of noise is to eliminate the noise sources and isolate the noisy lines, however this can often be difficult to achieve. In hostile environments, the MCU may be subject to excessive amounts of noise interference, and in such cases one of the most often experienced phenomenon is that of spurious resets. To prevent the program from erroneous jumps software traps can be set or the watchdog timer used to reset the device. Holtek MCUs have a TO (temporary stop flag) and a PDF flag (watchdog timer overflow flag), which can be examined to determine the source of the reset. Additionally flags can be buried in the RAM. Each time the program resets, these flags can be examined and the source of the reset determined. According to the result of these flag examinations, the program can then jump to different program sections. In this way the program can continue running, and the user will not be aware of any spurious reset occurrenc