Patent ID: 7965128

Claim:
A semiconductor device, comprising: a temperature detection element, a voltage to be applied to the temperature detection element so as to allow a current greater than or equal to a prescribed value to flow through the temperature detection element changing in accordance with an ambient temperature; a constant current source for applying a voltage to said temperature detection element so as to allow a reference current greater than or equal to said prescribed value to flow through said temperature detection element, said constant current source including a reference current transistor having a first conductive electrode coupled to a first power source node to which a first power source voltage is supplied, and a second conductive electrode, and outputting said reference current, and a first diffused resistor, said first diffused resistor including a first semiconductor region of a first conductivity type, having a first potential-fixing node coupled to said first power source node, and a second semiconductor region of a second conductivity type, having a first resistor node coupled to the second conductive electrode of said reference current transistor and a second resistor node coupled to a second power source node to which a second power source voltage is supplied, and formed to be spaced apart from said first potential-fixing node at a surface of said first semiconductor region; and a first leakage current correction circuit for allowing a current having approximately the same magnitude and the same direction as a magnitude and a direction of a current flowing between said first power source node and said second power source node via said first potential-fixing node and said second resistor node, to flow between said first power source node and said second power source node, not via said first diffused resistor but via said reference current transistor.