a semiconductor device can output a reference voltage for an arbitrary potential and can detect the voltage of each cell in a battery including multiple cells very precisely . the device includes a depletion - type mosfet 21 and an enhancement type mosfet 22 , and has a floating structure that isolates depletion - type mosfet 21 and enhancement type mosfet 22 from a ground terminal . the depletion - type mosfet 21 and enhancement type mosfet 22 are connected in series to each other , wherein the depletion - type mosfet 21 is connected to high - potential - side terminal and the enhancement type mosfet 22 is connected to low - potential - side terminal . the semiconductor device having the configuration described above is disposed in a voltage detecting circuit section in a control ic for a battery including multiple cells .