A semiconductor device provided with a temperature detection function
having a high temperature detection accuracy for improving the ESD
resistance of a temperature detection diode. The semiconductor device has
a semiconductor element. A temperature detection diode is used to detect
the temperature of the semiconductor element and an ambient temperature
of the semiconductor element. A protection diode is connected between a
cathode of the temperature detection diode and a ground side of the
semiconductor element when the semiconductor element is activated.