A mixer circuit of an audio codec needs to include a gain control circuit for each channel. The gain control circuit includes an analog-digital converter circuit for converting an effector signal into an analog voltage and a control circuit thereof. When the analog-digital converter circuit and the control circuit thereof have large circuit area and high power consumption, the circuit area and power consumption of the gain control circuit might increase with a larger number of channels.
An object of one embodiment of the present invention is to provide a semiconductor device with a novel structure that can inhibit an increase in circuit area. Another object of one embodiment of the present invention is to provide a semiconductor device with a novel structure that can inhibit an increase in power consumption. Another object of one embodiment of the present invention is to provide a novel semiconductor device and the like.
Note that the description of these objects does not preclude the existence of other objects. One embodiment of the present invention does not have to achieve all these objects. Other objects will be apparent from the description of the specification, the drawings, the claims, and the like and objects other than these can be derived from the description of the specification, the drawings, the claims, and the like.