Patent ID: 8339013

Claim:
A semiconductor device controlling an electrostatic actuator having first and second electrodes formed so as to come close to each other when transition occurs from opened state to closed state by electrostatic attraction against elastic force, the semiconductor device comprising: a voltage generation unit generating different applied voltages to be applied to the first and second electrodes; a control unit controlling the voltage generation unit to switch the applied voltages; and a detection unit detecting voltage of the first or second electrode or a rate of change in the voltage, wherein the control unit controls a target voltage of the voltage generation unit to be switched from a first voltage to a second voltage lower than the first voltage according to a detection output by the detection unit, wherein the detection unit comprises a comparator, and the applied voltages from the voltage generation unit are input to a first input terminal of the comparator with an additional predetermined offset voltage and to a second input terminal of the comparator via a delay element.