A semiconductor device includes a comparator which includes two input
terminals and compares the voltage values between the power supply
voltage which is inputted to one side input terminal and the reference
voltage which is inputted to the other side input terminal. A resistor
element connects two signal lines that are connected to the input
terminals of the comparator One end of a capacitance element is connected
to a power supply terminal for applying a power supply and the other end
is connected to one input terminal of the comparator.