When a semiconductor device is connected in series with a battery and a resistance