A semiconductor device for outputting a reference voltage, the value of which changes depending on the ambient temperature, and a crystal oscillator device comprising the semiconductor device. The semiconductor device comprises at least one depletion MOS transistor having an overall