CN108051649B - Detection circuit and detection method for externally configured resistor - Google Patents
Detection circuit and detection method for externally configured resistor Download PDFInfo
- Publication number
- CN108051649B CN108051649B CN201711418361.8A CN201711418361A CN108051649B CN 108051649 B CN108051649 B CN 108051649B CN 201711418361 A CN201711418361 A CN 201711418361A CN 108051649 B CN108051649 B CN 108051649B
- Authority
- CN
- China
- Prior art keywords
- rexternal
- resistor
- comparator
- external
- mos
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 22
- 229910044991 metal oxide Inorganic materials 0.000 abstract 1
- 150000004706 metal oxides Chemical class 0.000 abstract 1
- 239000004065 semiconductor Substances 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R27/00—Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
- G01R27/02—Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
- G01R27/08—Measuring resistance by measuring both voltage and current
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Semiconductor Integrated Circuits (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
The invention discloses a detection circuit of an external configuration resistor, which comprises a plurality of MOS (metal oxide semiconductor) tubes, a plurality of switches, a current source I0, an external resistor Rexternal and a comparator; the current source I0 is respectively connected with the drain electrode of the first MOS tube T1 and the grid electrodes of other MOS tubes; the source electrode of the first MOS transistor T1 is respectively connected with the source electrodes of other MOS transistors; the drains of the MOS tubes except the first MOS tube T1 are respectively connected with the external resistor Rexternal and the non-inverting terminal of the comparator through a plurality of switches; the other end of the external resistor Rexternal is connected to the ground; the inverting terminal of the comparator is connected to the power supply Vref. The invention can realize reliable resolution of more resistance value gears in a limited power supply voltage range.
Description
Technical Field
The invention relates to a circuit external configuration resistor, in particular to a detection circuit and a detection method of an external configuration resistor.
Background
Currently, many circuits implement different circuit configurations by different external connection resistance values. Such as operating frequency, operating mode, etc. When more different configurations are needed, on the basis of maintaining reliable resolution, more resistance value range resolution and limited power supply voltage range are a pair of contradictions.
There are two general methods for detecting the external resistor value step:
in the first method, a chip pin is set to be output with a fixed voltage value, when an external resistor is connected to the pin, a current reflecting the resistance value of the external resistor flows through the resistor, and the gear of the resistance value of the external resistor can be judged by judging the gear of the current value.
And secondly, setting a chip pin as a fixed current output, obtaining a voltage reflecting the resistance value of the external resistor on the pin when the external resistor is connected to the pin, and judging the gear of the voltage value to judge the gear of the resistance value of the external resistor.
Disclosure of Invention
The invention provides a detection circuit and a detection method for an externally configured resistor, aiming at the problems.
The technical scheme adopted by the invention is as follows: a detection circuit of external configuration resistor comprises a plurality of MOS tubes, a plurality of switches, a current source I0, an external resistor Rexternal and a comparator; the current source I0 is respectively connected with the drain electrode of the first MOS tube T1 and the grid electrodes of other MOS tubes; the source electrode of the first MOS transistor T1 is respectively connected with the source electrodes of other MOS transistors; the drains of the MOS tubes except the first MOS tube T1 are respectively connected with the external resistor Rexternal and the non-inverting terminal of the comparator through a plurality of switches; the other end of the external resistor Rexternal is connected to the ground; the inverting terminal of the comparator is connected to the power supply Vref.
Further, the detection method of the detection circuit of the externally configured resistor comprises the following steps:
s1, the switch K0 is opened, the other switches are closed, the current flowing through the external resistor Rexternal is I0, the voltage value V from the Rexternal to the ground is I0 Rexternal, and when the resistance value of the resistor is in a certain range, the output of the comparator can be determined to be high; when the resistance value of the resistor is in another range, the output of the comparator can be determined to be low;
s2, then switches K0 and K1 are opened, the remaining switches are closed, the current flowing through the external resistor Rexternal is 2 × I0, the voltage value V from the Rexternal to ground is 2 × I0 × Rexternal, and similarly, when the external resistor is within a certain range, the comparator output is determinable to be high; when the external resistance is in another range, the comparator output can be determined to be low;
s3, continuously repeating the steps S1 and S2; the gear of the resistance of the external connection resistor can thus be deduced from the sequence of comparator results obtained by applying different known current sources in sequence.
The invention has the advantages that:
the invention can realize reliable resolution of more resistance value gears in a limited power supply voltage range.
In addition to the objects, features and advantages described above, other objects, features and advantages of the present invention are also provided. The present invention will be described in further detail below with reference to the drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention.
FIG. 1 is a schematic diagram of a detection circuit for an externally configured resistor of the present invention;
fig. 2 is a flow chart of a detection method of the detection circuit of the externally arranged resistor of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, as shown in fig. 1, a detection circuit of an externally configured resistor includes a plurality of MOS transistors, a plurality of switches, a current source I0, an external resistor Rexternal, and a comparator; the current source I0 is respectively connected with the drain electrode of the first MOS tube T1 and the grid electrodes of other MOS tubes; the source electrode of the first MOS transistor T1 is respectively connected with the source electrodes of other MOS transistors; the drains of the MOS tubes except the first MOS tube T1 are respectively connected with the external resistor Rexternal and the non-inverting terminal of the comparator through a plurality of switches; the other end of the external resistor Rexternal is connected to the ground; the inverting terminal of the comparator is connected to the power supply Vref.
Referring to fig. 2, as shown in fig. 2, a method for detecting a detection circuit externally provided with a resistor includes the steps of:
s1, the switch K0 is opened, the other switches are closed, the current flowing through the external resistor Rexternal is I0, the voltage value V from the Rexternal to the ground is I0 Rexternal, and when the resistance value of the resistor is in a certain rangeThe comparator output may be determined to be high; when the resistance value of the resistor is in a certain rangeWhen, the comparator output can be determined to be low;
s2, then switches K0 and K1 are opened, the remaining switches are closed, the current flowing through the external resistor Rexternal is 2 × I0, the voltage value V from the Rexternal to ground is 2 × I0 × Rexternal, and similarly, when the external resistor is within a certain range, the comparator output is determinable to be high; when the external resistance is in another range, the comparator output can be determined to be low;
s3, continuously repeating the steps S1 and S2; the gear of the resistance of the external connection resistor can thus be deduced from the sequence of comparator results obtained by applying different known current sources in sequence.
The specific preferred embodiment of the detection method of the detection circuit with the externally configured resistor is as follows:
setting the Rexternal > (Vref (1+ k%) + Vos _ comparator)/(I0: (1- α%)), the comparator can be made to obtain a result that the output is high when the current of the first Rexternal is I0 and every time thereafter, and the chip is configured with one accordingly; when Rexternal is set to be in range: (Vref (1-k%)) -Vos _ comparator)/(I0 [ (+ α%)) > Rexternal > (Vref (1+ k%) + Vos _ comparator)/(2 [ - ] I0 [ (- ]) can result in the comparator output being low when current I0 flows through the Rexternal, and being high when current 2 [ ] I0 flows through the Rexternal and thereafter, the chip interior is configured with two accordingly; when Rexternal is set to be in range: (Vref (1-k%)) -Vos _ comparator)/(2 × I0 × 1+ α%)) > Rexternal > (Vref (1+ k%) + Vos _ comparator)/(4 × I0 × 1- α%)), it can be obtained that the comparator outputs are both low when the current is flowing through the Rexternal at I0 and 2 × I0, and the comparator outputs are both high when the current is flowing through the Rexternal at 4 × I0 and thereafter, and the chip is configured with three according to the result.
The above-mentioned embodiment is only one example, and the relationship between a series of different known currents in practical implementation is not necessarily increased (or decreased) in multiple with the above-mentioned embodiment. Fig. 1 is also only a schematic diagram, and the number of the current source series in the actual implementation may be more or less than 7 steps. The comparator is not necessarily one comparator, and may be a plurality of comparators, and when a plurality of comparators are used, the judgment of a plurality of voltage range intervals of the pin voltage can be realized at one time.
The invention can realize reliable resolution of more resistance value gears in a limited power supply voltage range.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (1)
1. The detection circuit of an external configuration resistor is characterized by comprising a plurality of MOS tubes, a plurality of switches, a current source I0, an external resistor Rexternal and a comparator; the current source I0 is respectively connected with the drain electrode of the first MOS tube T1 and the grid electrodes of other MOS tubes; the source electrode of the first MOS transistor T1 is respectively connected with the source electrodes of other MOS transistors; the drains of the MOS tubes except the first MOS tube T1 are respectively connected with the external resistor Rexternal and the non-inverting terminal of the comparator through a plurality of switches; the other end of the external resistor Rexternal is connected to the ground; the inverting terminal of the comparator is connected with a power supply Vref;
the detection method of the detection circuit of the external configuration resistor comprises the following steps:
s1, the switch K0 is opened, the other switches are closed, the current flowing through the external resistor Rexternal is I0, the voltage value V from the Rexternal to the ground is I0 Rexternal, and when the resistance value of the resistor is in a certain range, the output of the comparator can be determined to be high; when the resistance value of the resistor is in another range, the output of the comparator can be determined to be low;
s2, then switches K0 and K1 are opened, the remaining switches are closed, the current flowing through the external resistor Rexternal is 2 × I0, the voltage value V from the Rexternal to ground is 2 × I0 × Rexternal, and similarly, when the external resistor is within a certain range, the comparator output is determinable to be high; when the external resistance is in another range, the comparator output can be determined to be low;
s3, continuously repeating the steps S1 and S2; the gear of the resistance of the external connection resistor can thus be deduced from the sequence of comparator results obtained by applying different known current sources in sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711418361.8A CN108051649B (en) | 2017-12-25 | 2017-12-25 | Detection circuit and detection method for externally configured resistor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711418361.8A CN108051649B (en) | 2017-12-25 | 2017-12-25 | Detection circuit and detection method for externally configured resistor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108051649A CN108051649A (en) | 2018-05-18 |
CN108051649B true CN108051649B (en) | 2020-09-11 |
Family
ID=62131709
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711418361.8A Active CN108051649B (en) | 2017-12-25 | 2017-12-25 | Detection circuit and detection method for externally configured resistor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108051649B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114859124B (en) * | 2022-04-28 | 2023-01-31 | 北京芯格诺微电子有限公司 | Gear-switchable configuration resistance detection method and circuit |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101697086A (en) * | 2009-10-26 | 2010-04-21 | 北京交通大学 | Sub-threshold reference source compensated by adopting electric resistance temperature |
CN201667037U (en) * | 2010-03-30 | 2010-12-08 | 比亚迪股份有限公司 | Current source circuit |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4577643B2 (en) * | 2004-06-29 | 2010-11-10 | 株式会社デンソー | Automatic transmission control device |
US9528814B2 (en) * | 2011-05-19 | 2016-12-27 | NeoVision, LLC | Apparatus and method of using impedance resonance sensor for thickness measurement |
CN102768300A (en) * | 2012-07-31 | 2012-11-07 | 圣邦微电子(北京)股份有限公司 | Current detecting circuit |
CN202735401U (en) * | 2012-07-31 | 2013-02-13 | 圣邦微电子(北京)股份有限公司 | Current detection circuit of chip |
CN103163382B (en) * | 2013-03-12 | 2016-04-06 | 中国铁路通信信号上海工程集团有限公司 | Line resistance real-time online measuring system and method |
CN203204077U (en) * | 2013-03-12 | 2013-09-18 | 中国铁路通信信号上海工程集团有限公司 | Ground wire resistance real-time on-line measuring system and monitoring system |
CN103513211B (en) * | 2013-10-25 | 2016-03-02 | 国家电网公司 | Ac impedance measurement measuring device |
JP6586853B2 (en) * | 2015-10-19 | 2019-10-09 | アイシン精機株式会社 | Current source circuit and detection circuit |
CN206057431U (en) * | 2016-03-31 | 2017-03-29 | 中国南方电网有限责任公司超高压输电公司检修试验中心 | A kind of converter power transformer load loss and short-circuit impedance pilot system |
CN106501611B (en) * | 2016-10-28 | 2019-11-29 | 深圳市航盛电子股份有限公司 | Insulation resistance detection method and device |
CN206292305U (en) * | 2016-11-11 | 2017-06-30 | 郭云花 | Low-voltage short-circuit impedance tests auxiliary machine |
CN206221326U (en) * | 2016-11-17 | 2017-06-06 | 重庆多耐达汽车零部件有限公司 | A kind of gear circuit of blower fan negative pole three based on metal-oxide-semiconductor reverse connecting protection |
CN206489218U (en) * | 2016-12-09 | 2017-09-12 | 李国建 | A kind of network impedance tester |
-
2017
- 2017-12-25 CN CN201711418361.8A patent/CN108051649B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101697086A (en) * | 2009-10-26 | 2010-04-21 | 北京交通大学 | Sub-threshold reference source compensated by adopting electric resistance temperature |
CN201667037U (en) * | 2010-03-30 | 2010-12-08 | 比亚迪股份有限公司 | Current source circuit |
Non-Patent Citations (2)
Title |
---|
GCKZ型直流电阻快速测量仪的研制;高泽民等;《电工技术》;20021110(第11期);全文 * |
新型接触电阻测试装置的研制;王志军等;《低压电器》;20081115(第21期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN108051649A (en) | 2018-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5169498B2 (en) | Current detection circuit and switching regulator including the current detection circuit | |
CN103575964B (en) | A kind of over-current detection circuit of power switch pipe and method | |
CN108566080A (en) | A kind of started with high voltage and constant current circuit | |
CN107041166B (en) | Power inverter and semiconductor device | |
CN105680835A (en) | Hysteresis comparator applied to RS-485 receiving end | |
CN103945317A (en) | Detection method and circuit for detecting type of earphone connector | |
CN108051649B (en) | Detection circuit and detection method for externally configured resistor | |
CN102299501B (en) | Undervoltage protection circuit | |
CN205596084U (en) | Be applied to hysteresis comparator of RS -485 receiving terminal | |
CN104678153A (en) | Current detection circuit, current detection method and detection circuit of electricity quantity of batteries | |
CN102931833A (en) | Circuit for converting high voltage into low voltage in analogue circuit | |
CN104020339A (en) | Programmable current detection circuit | |
CN104300949A (en) | Low-voltage resetting circuit for radio frequency chip of internet of things | |
CN108233900B (en) | Improved voltage comparator | |
CN118137996A (en) | Transconductance operational amplifier circuit, LED constant current control chip and system | |
CN108322020A (en) | A kind of liter of voltage protection circuit and its control method | |
CN212935870U (en) | PWM signal duty ratio regulating circuit | |
CN111478693B (en) | Near-threshold level converter | |
CN115333525A (en) | Clamping circuit structure | |
CN115754441A (en) | Overcurrent detection circuit, overcurrent detection method, overcurrent protection circuit and chip | |
CN109254188B (en) | High-speed current detection circuit suitable for switching power supply | |
CN210347751U (en) | Current stepping measuring circuit | |
CN108134366A (en) | A kind of overvoltage crowbar, over-voltage protection method and device | |
CN212381194U (en) | Low-voltage power-on reset circuit | |
CN103105885A (en) | Circuit producing reference voltage of high voltage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A detection circuit and detection method for externally configured resistors Granted publication date: 20200911 Pledgee: Bank of China Co.,Ltd. Dongguan Branch Pledgor: DONGGUAN CHANGGONG MICROELECTRONIC CO.,LTD. Registration number: Y2024980014267 |