An overcurrent protecting device for protecting a semiconductor element
from an overcurrent includes: the semiconductor element; a shunt resistor
for detecting the overcurrent when the electric current in the
semiconductor element exceeds a threshold value; a reference resistor for
setting the threshold value; a constant electric current circuit for
supplying a constant electric current to the reference resistor; and a
comparator for comparing a terminal voltage of the shunt resistor and a
terminal voltage of the reference resistor. The shunt resistor is made of
a same kind of resistor as the reference resistor.