Patent ID: 9658664
Date: 2017-05-23
CPC Classifications: G06F

Claim:
1. An electronic device having a pin for setting its mode of operation, the electronic device comprising: a push-pull stage including a first transistor having a first current electrode coupled to the pin and a second current electrode coupled to a first reference voltage and a second transistor having a first current electrode coupled to the pin and a second current electrode coupled to a second reference voltage, the push-pull stage configured to adjust a voltage provided at the pin; a first current mirror including a third transistor, a control electrode of the third transistor coupled to a control electrode of the first transistor, the first current mirror to clone a current conducted at the first transistor; and a second current mirror including a fourth transistor, a control electrode of the fourth transistor coupled to a control electrode of the second transistor, the second current mirror to clone a current conducted at the second transistor, wherein the pin is connected to a first terminal of a resistor, wherein the electronic device is arranged to detect a location of the resistor, the location identifying connectivity of a second terminal of the resistor, wherein the electronic device is arranged to detect a size of the resistor based on a current provided by the first current mirror and a current provided by the second current mirror, wherein the electronic device is arranged to determine a first setting based on the location of the resistor, and wherein the electronic device is arranged to determine a second setting based on the size of the resistor.