To provide a program execution device capable of preventing a processing result from being lost even with a small charging amount of a backup power source.
A detection circuit 20 outputs the detection signal C1 of '0' when a DC voltage Vb is higher than a first threshold voltage and the detection signal C1 of '1' when it is not. An execution circuit 30 is driven by receiving the DC voltage Va at a power source terminal, executes a first kind program at the time of receiving the detection signal C1 of '0' and executes a second kind program for protecting a processing result obtained by executing the first kind program and generates a control signal C2 at the time of receiving the detection signal C1 of '1'. A charging circuit 60 charges the DC voltage Vc. A discharging circuit 50 discharges a charging voltage V2 to the power source terminal of the execution circuit 30 based on the control signal C2.
YONEZAWA HIROSHI
MAMIYA MASARU
SUGAI YUHEI
TAKURI YOSHITERU