METHOD AND CIRCUIT FOR CONFIGURING PIN STATES
First Claim
1. A method for configuring pin states, comprising:
- loading a fixed voltage on a pin connected to a variable resistor;
detecting intensity of currents generated by the variable resistor under different resistance;
comparing the current intensity with at least two different reference values, andoutputting corresponding pin states according to the comparison results;
orloading a fixed current on a pin connected to a variable resistor;
detecting voltages generated by the variable resistor under different resistance;
comparing the voltages with at least two different reference values, andoutputting corresponding pin states according to the comparison results.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure relates to an electronic technology and discloses a method and circuit for configuring pin states. The method for configuring pin states includes: establishing a connection between a pin and a variable resistor; loading a fixed voltage on the pin, and detecting intensity of currents generated by the variable resistor under different resistance; comparing the detected current intensity with at least two different reference values, and outputting corresponding pin states according to the comparison results; or loading a fixed current on the pin, and detecting voltages generated by the variable resistor under different resistance; comparing the detected voltages with at least two different reference values, and outputting corresponding pin states according to the comparison results. With the present disclosure, multiple pin states may be easily obtained.
14 Citations
10 Claims
-
1. A method for configuring pin states, comprising:
-
loading a fixed voltage on a pin connected to a variable resistor; detecting intensity of currents generated by the variable resistor under different resistance; comparing the current intensity with at least two different reference values, and outputting corresponding pin states according to the comparison results;
orloading a fixed current on a pin connected to a variable resistor; detecting voltages generated by the variable resistor under different resistance; comparing the voltages with at least two different reference values, and outputting corresponding pin states according to the comparison results. - View Dependent Claims (2, 3)
-
-
4. A method for configuring pin states comprising:
-
loading a variable current on a pin connected to a variable resistor; detecting voltages generated by the variable resistor under different resistance; comparing the voltages with a reference value, and outputting corresponding pin states according to the comparison results. - View Dependent Claims (5)
-
-
6. A circuit for configuring pin states comprising
a pin; -
a variable resistor, wherein a first end of the pin is connected to a first end of the variable resistor, and a second end of the variable resistor is connected to the earth; and a detection circuit having an input end connected to a second end of the pin, wherein the detection circuit is configured to; load a fixed voltage on the second end of the pin, compare the current intensity with at least two different reference values when detecting intensity of currents generated by the variable resistor under different resistance, and output corresponding pin states according to the comparison results;
orload a fixed current on the second end of the pin, compare the voltages with at least two different reference values when detecting voltages generated by the variable resistor under different resistance, and output corresponding pin states according to the comparison results. - View Dependent Claims (7, 8)
-
-
9. A circuit for configuring pin states comprising:
-
a pin having a first end connected to a first end of a variable resistor, wherein a second end of the variable resistor is connected to the earth, a detection circuit having an input end connected to a second end of the pin, wherein the detection circuit is configured to; load a variable current on the second end of the pin, compare the voltages with a reference value when detecting voltages generated by the variable resistor under different resistance, and output corresponding pin states according to the comparison results. - View Dependent Claims (10)
-
Specification