S3F84B8_ALL-IN-ONE IH COOKER_AN_REV 0.00 3 SOFTWARE IMPLEMENTATION3-23.2 SOFTWARE DIAGRAMFigure 3-2 shows the software diagram.Figure 3-2 Software DiagramNOTE:1. [1] Pan remove detection [1] is done by current sensing. The pan is judged to be removed when the current is lower than apreset threshold.2. [2] Pan on detection [2] is done by pulse counting. The pan is judged to be put on when the counted pulse number isbetween 1 and 3 during 3 oscillation period.Basic procedures include key process, error detection, power control, and UI update. These procedures areexecuted as an infinite loop. Most of the processes are controlled by timing. In other words, process is executedonly when the corresponding timing flag is set. For example, 16 times AD conversion time for error detection, 1.5second for pan-on detection, and 2 seconds for pan-remove detection.Meanwhile, comparator1 and comparator2’s interrupts are enabled for surge protection and IGBT over-voltageprotection, separately. Therefore, the above procedure might be interrupted whenever any of the comparator 1 orcomparator 2’s interrupt condition is met.