Patent ID: 8564676

Claim:
A semiconductor device having an anti-shake function, comprising: a logic chip having a digital circuit which obtains a value for vibration of an apparatus based on a vibration detection signal supplied from a vibration detection element to generate a correction signal, the logic chip including: a correction signal processing unit which generates the correction signal; and a control signal output unit which outputs a vibration control signal in accordance with the correction signal to a vibration correction control unit which executes vibration correction control for an optical component in accordance with vibration, the correction signal processing unit having: a vibration computing unit which is capable of executing a plurality of stages of signal processing operations by dedicated circuits, respectively, and which generates the correction signal from the vibration detection signal, and a central processing unit capable of executing desired computation processing to be performed by the vibration computing unit, wherein a signal obtained by executing all or a part of the computation processing to be performed by the dedicated circuits by the central processing unit is supplied as the correction signal to the control signal output unit; wherein the dedicated circuits are configured to perform predetermined computations that cannot be changed; wherein the desired computation processing of the central processing unit can be changed; and wherein the semiconductor device further comprises: a selection switch unit capable of selecting between an output of the vibration computing unit and an output of the central processing unit; and a switch unit which supplies a computation result obtained by the central processing unit, in place of a computation result obtained by the dedicated circuit, the computation processing of which is to be performed by the central processing unit, to another dedicated circuit which executes computation processing; and wherein the central processing unit and the dedicated circuits are different structures; and wherein the dedicated circuits are provided in series and the CPU is configured to perform one of the predetermined computations of the dedicated circuits based on a state of the switch unit.