a photocoupler semiconductor device comprises a light receiving device for generating electric current ; a control circuit ; and a constant current circuit having a resistor for detecting the generated current to provide the control circuit with a current command . the resistor allows the electric current to increase with the amount of current received .