Patent attributes
Power consumption of an interface circuit is to be reduced. A semiconductor device includes a processor and the interface circuit including a register that stores setting information. The register includes a first memory circuit capable of storing the setting information when power supply voltage is supplied, and a second memory capable of storing the setting information when supply of the power supply voltage is stopped. The interface circuit changes a state between a first state, a second state, a third state, and a fourth state. In the first state, the setting information is stored in the first memory. In the second state, the interface circuit operates on the basis of the setting information stored in the first memory circuit. In the third state, the setting information stored in the first memory circuit is stored in the second memory circuit and the supply of the power supply voltage is stopped. In the fourth state, the supply of the power supply voltage is restarted and the setting information stored in the second memory circuit is stored in the first memory circuit. The interface circuit changes a state between the second state, the third state and the fourth state on the basis of a state of the functional device.