Patent ID: 8416220

Claim:
A semiconductor device comprising: a first substrate; a second substrate attached to the first substrate; a pixel portion formed over the first substrate; and a sound signal circuit comprising a rectifier circuit formed over the first substrate, wherein the pixel portion and the sound signal circuit are located between the first substrate and the second substrate, and wherein the rectifier circuit comprises a first input terminal to which a first signal is configured to be inputted, a second input terminal to which a second signal is configured to be inputted, a first amplifier circuit configured to compare the first signal and the second signal, a waveform shaping circuit configured to shape waveform of an outputted signal of the first amplifier circuit, a second amplifier circuit, and an analog switch which is configured to be controlled by a waveform shaped signal generated by the waveform shaping circuit and is configured to connect an input portion of the second amplifier circuit and the first input terminal or connect the input portion of the second amplifier circuit and the second input terminal.