Patent ID: 7786790

Claim:
A temperature compensation circuit performing temperature compensation of an analog reference voltage, comprising: a first reference voltage generating circuit generating a first voltage of which a voltage level varies depending on a temperature; a second reference voltage generating circuit generating a second voltage of which a voltage level is independent of a temperature and having a circuit configuration that is same as a circuit configuration of the first reference voltage generating circuit; an inverting amplifier having a gain of 1, the inverting amplifier inverting and amplifying a voltage difference between the first voltage and the second voltage so as to generate a third voltage; and a differential amplifier amplifying a voltage difference between the third voltage and the first voltage so as to generate a fourth voltage, the differential amplifier including: a first operational amplifier; a first resistor coupled between a first node and a second node that is an inverting input terminal of the first operational amplifier; a second resistor coupled between a third node and a fourth node that is a non-inverting input terminal of the first operational amplifier; a third resistor coupled between the second node and a fifth node that is an output node of the first operational amplifier; and a fourth resistor coupled between the fourth node and a sixth node to which an analog reference voltage is applied, resistance values of the first resistor and the second resistor are set to be same as each other, and resistance values of the third resistor and the fourth resistor are set to be same as each other.