WO2023207763A1 - 可切换档位的配置电阻检测方法及电路 - Google Patents

可切换档位的配置电阻检测方法及电路 Download PDF

Info

Publication number
WO2023207763A1
WO2023207763A1 PCT/CN2023/089619 CN2023089619W WO2023207763A1 WO 2023207763 A1 WO2023207763 A1 WO 2023207763A1 CN 2023089619 W CN2023089619 W CN 2023089619W WO 2023207763 A1 WO2023207763 A1 WO 2023207763A1
Authority
WO
WIPO (PCT)
Prior art keywords
type
digital code
code
voltage
configuration
Prior art date
Application number
PCT/CN2023/089619
Other languages
English (en)
French (fr)
Inventor
齐伟
Original Assignee
北京芯格诺微电子有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 北京芯格诺微电子有限公司 filed Critical 北京芯格诺微电子有限公司
Publication of WO2023207763A1 publication Critical patent/WO2023207763A1/zh

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant

Definitions

  • the present invention relates to the technical field of integrated circuits, and in particular to a switchable configuration resistance detection method and circuit.
  • the method of obtaining digital code bits by configuring resistors can be set by adjusting the external resistor value in chip applications so that the same chip has different functions and parameters, so that more choices can be obtained at a lower cost.
  • This method has the characteristics of low cost and flexible configuration in chip applications with a variety of optional functions and parameters, and is increasingly used. For chips that do not have this function, customers can only meet this requirement by replacing chips with different models.
  • the existing configuration resistance detection method uses a fixed current method to detect the configuration resistance. This method is limited by the voltage conversion range of the detection circuit, and the digital code bits obtained are limited, which limits the application range.
  • Figure 1 shows a typical configuration resistance detection circuit in the prior art.
  • the technical purpose to be achieved by the present invention is to provide a method that is suitable for detecting configuration resistors with a wide range of resistance values, and through this method, more digital codes can be detected.
  • the present invention provides a switchable gear configuration resistance detection method, which method includes:
  • the first current source is turned off, the second current source is turned on, the second current value is output to the configuration resistor, and the second voltage is regenerated on the configuration resistor; analog-to-digital conversion is used
  • the circuit converts the second voltage into a second type of digital code; the second current value is less than the first current value;
  • the control parameter code is generated based on the first type of digital code and the second type of digital code.
  • the first type of digital code when the first type of digital code is less than the threshold, the first type of digital code is used to generate the control parameter code.
  • the invention also provides a switchable configuration resistance detection circuit, which circuit includes a first current source, a second current source, a coding operation circuit and an analog-to-digital conversion circuit;
  • the encoding code operation circuit controls the first current source to output a first current value to the configuration resistor, and generates a first voltage on the configuration resistor;
  • the analog-to-digital conversion circuit converts the first voltage into a first-type digital code, and the encoding operation circuit determines whether the first-type digital code is greater than or equal to the threshold according to a preset threshold;
  • the encoding operation circuit When the first type of digital code is greater than or equal to the threshold, the encoding operation circuit turns off the first current source, turns on the second current source, outputs the second current value to the configuration resistor, and regenerates the second voltage on the configuration resistor; use The analog-to-digital conversion circuit converts the second voltage into a second type of digital code; the second current value is smaller than the first current value;
  • the encoding code operation circuit generates a control parameter code based on the first type of digital code and the second type of digital code.
  • the encoding code operation circuit uses the first type of digital code to generate the control parameter code.
  • one or more embodiments of the present invention may have the following advantages:
  • Figure 1 is a schematic diagram of a configuration resistance detection circuit in the prior art
  • Figure 2 is a schematic diagram of a configuration resistance detection circuit in an embodiment of the present invention.
  • the configuration resistance detection method in this embodiment includes:
  • the analog-to-digital conversion circuit converts the voltage V R1 into a first-type digital code, and the encoding operation circuit determines whether the first-type digital code is greater than or equal to the threshold according to the preset threshold. If the first-type digital code is less than the threshold, , then the current source will not be switched.
  • the first current source is turned off, and the second current source is turned on, and the second current I R2 value is output to the configuration resistor R, and a voltage V is regenerated on the configuration resistor R.
  • the analog-to-digital conversion circuit re-converts the voltage V R2 into the second type of digital code.
  • the first type of digital code and the second type of digital code are jointly calculated by the encoding operation circuit to obtain the control parameter code.
  • the analog-to-digital conversion circuit described in this embodiment takes an 8-bit ADC as an example.
  • the quantized value range of the 8-bit ADC is 0 to 255, which is expressed in binary as 00000000 to 11111111, which is the first type of digital code.
  • the 8-bit ADC outputs 255, it means that the voltage it detects has reached the ADC reference voltage, which is the maximum voltage Vmax that the ADC can input.
  • the reference voltage of the 8-bit ADC is still Vmax.
  • the quantized value range of the 8-bit ADC output ranges from 0 to 255.
  • the binary representation of 00000000 to 11111111 is the quantization of the resistance value between Rmax and R'max, which is the second type of digital code.
  • the first type of digital code obtained after the first current source is connected and the second type of digital code obtained after switching the second current source can extend the output of the 8-bit ADC to 16 bits. That is, the first type of digital code represents the quantization of the resistance values 0 to Rmax, and the second type of digital code represents the quantization of the resistance values Rmax to R'max.
  • the range of the first type of digital code is 0000000000000000 ⁇ 0000000011111111
  • the range of the second type of digital code is 0000000100000000 ⁇ 1111111111111111.
  • the value range of the configuration resistor R is expanded to 5 times the original value, and it overcomes the problem of using too small a current value when the value of the configuration resistor R is small because the current source I R and
  • the disadvantage is that errors in analog-to-digital conversion circuits cannot be detected correctly.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Analogue/Digital Conversion (AREA)
  • Electronic Switches (AREA)

Abstract

一种可切换档位的配置电阻检测方法,包括:使用编码运算电路控制打开第一电流源输出第一电流值到配置电阻,在配置电阻上产生第一电压;使用模拟数字转换电路将第一电压转换为第一类数字代码,并由编码运算电路根据预设的阈值判断第一类数字代码是否大于等于阈值;若第一类数字代码大于或等于阈值,则关断第一电流源,并导通第二电流源,输出第二电流值到配置电阻,在配置电阻上重新产生第二电压;使用模拟数字转换电路将第二电压转换为第二类数字代码;第二电流值小于第一电流值;根据第一类数字代码和第二类数字代码生成控制参数代码。

Description

可切换档位的配置电阻检测方法及电路 技术领域
本发明涉及集成电路技术领域,尤其涉及一种可切换档位的配置电阻检测方法及电路。
背景技术
用配置电阻获得数字代码位的方式在芯片应用中可以通过对外部电阻值进行调整来设定使得同一芯片具有不同功能和参数,从而可以用较低的成本获得较多的选择。此种方式在有多种可选功能和参数的芯片应用中,具有低成本和配置灵活的特点,得到越来越广泛的使用。不具有此功能的芯片,客户只能通过替换不同型号的芯片来达到这一要求。然而现有的配置电阻检测方式是使用固定电流方式检测配置电阻,这种方式受限于检测电路的电压转换范围,得到的数字代码位有限,使得应用范围受到限制。
图1所示的是现有技术中一种典型的配置电阻检测电路,当配置电阻检测电路工作时,编码运算电路控制固定电流源输出电流IR到配置电阻R,在配置电阻R上产生一个电压VR,并有VR=IR×R,此时模拟数字转换电路转换电压VR为一组数字代码,这组数字代码经过编码运算电路计算得到控制代码去做功能和参数的选择控制。如果模拟数字转换电路的电压范围是Vmax,则需满足VR<Vmax,根据VR=IR×R可计算出R<Vmax/IR。所以配置电阻值R受到模拟数字转换电路的电压范围是Vmax的限制,必须要小于Vmax/IR,即配置电阻的阻值上限Rmax=Vmax/IR。由于电阻值具有上限,因此形成的数字代码的数量也是受限的。在实际电路中,如果希望减小电流源IR获得更大的配置电阻R的取值范围,那么在配置电阻的电阻值R处于较小范围时,电流源IR和模拟数字转换电路的误差会使得检测电路不能正确的得到数字代码位。
由此可见,现有技术中需要一种能够适用于对大范围阻值的配置电阻进行检 测的检测方法及对应的电路结构。从而使得配置电阻检测电路能够对更大的电阻范围进行检测,从而形成更多数字代码数量,同时能够保证针对每一个配置电阻阻值所对应的数字代码的检测精度。
发明内容
本发明所要实现的技术目的在于提供一种能够适用于对大范围阻值的配置电阻进行检测的方法,通过该方法实现对更多数字代码的检测。
基于上述技术目的,本发明提供一种可切换档位的配置电阻检测方法,所述方法包括:
使用编码码运算电路控制打开第一电流源输出第一电流值到配置电阻,在配置电阻上产生第一电压;
使用模拟数字转换电路将第一电压转换为第一类数字代码,并由编码运算电路根据预设的阈值判断该第一类数字代码是否大于等于阈值;
若第一类数字代码大于或等于阈值,则关断第一电流源,并导通第二电流源,输出第二电流值到配置电阻,在配置电阻上重新产生第二电压;使用模拟数字转换电路将第二电压转换为第二类数字代码;所述第二电流值小于第一电流值;
根据第一类数字代码和第二类数字代码生成控制参数代码。
在一个实施例中,当第一类数字代码小于阈值时,则使用第一类数字代码生成得到控制参数代码。
本发明还提供一种可切换档位的配置电阻检测电路,所述电路包括第一电流源、第二电流源、编码运算电路和模拟数字转换电路;
所述编码码运算电路控制第一电流源输出第一电流值到配置电阻,在配置电阻上产生第一电压;
所述模拟数字转换电路将第一电压转换为第一类数字代码,并由编码运算电路根据预设的阈值判断该第一类数字代码是否大于等于阈值;
当第一类数字代码大于或等于阈值时,编码运算电路关断第一电流源,并导通第二电流源,输出第二电流值到配置电阻,在配置电阻上重新产生第二电压;使用模拟数字转换电路将第二电压转换为第二类数字代码;所述第二电流值小于第一电流值;
所述编码码运算电路根据第一类数字代码和第二类数字代码生成控制参数代码。
在一个实施例中,当第一类数字代码小于阈值时,所述编码码运算电路使用第一类数字代码生成得到控制参数代码。
与现有技术相比,本发明的一个或多个实施例可以具有如下优点:
本发明中通过使用两个电流值不同的电流源对配置电阻进行检测,在小电阻情况下克服了过小的模拟量在电流源IR和模拟数字转换电路的误差的影响下不能被正确检测的缺点。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例共同用于解释本发明,并不构成对本发明的限制。在附图中:
图1是现有技术中的配置电阻检测电路示意图;
图2是本发明实施例中的配置电阻检测电路示意图;
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,以下结合附图对本发明作进一步地详细说明。
实施例
根据如图2所示的本实施例的配置电阻检测电路,本实施例中的配置电阻检测方法包括:
首先,由编码运算电路控制打开第一电流源输出第一电流值IR1到配置电阻R,在配置电阻R上产生一个电压VR1,即有VR=IR1·R;
随后,由模拟数字转换电路将电压VR1转换为第一类数字代码,并由编码运算电路根据预设的阈值判断该第一类数字代码是否大于等于阈值,如果该第一类数字代码小于阈值,则不对电流源进行切换。
如果该第一类数字代码大于或等于阈值,则关断第一电流源,并导通第二电流源,输出第二电流IR2值到配置电阻R,在配置电阻R上重新产生一个电压VR2,即有VR2=IR2·R,此时模拟数字转换电路重新转换电压VR2为第二类数字代码。
第一类数字代码和第二类数字代码共同经过编码运算电路计算得到控制参数代码。
本实施例中所述模拟数字转换电路以8位ADC为例,8位ADC的量化值范围为0~255,以二进制表示即为00000000~11111111,即第一类数字代码。当8位ADC输出255时,说明其检测到的电压已经达到ADC参考电压,即ADC所能输入的最大电压Vmax。在本实施例中针对第一电流源而言,该8位ADC所能检测的最大阻值Rmax即为,Rmax=Vmax/IR1。也就是说使用该8位ADC的配置检测电路所能检测的电阻值范围为0~Vmax/IR1
若设定IR2远小于IR1,如IR2=IR1/5。该8位ADC的参考电压依然是Vmax,在从第一电流源切换至第二电流源后,该8位ADC所输入的模拟量为:VR2=IR2·R=(IR1·R)/5。所以针对第二电流源而言,该8位ADC所能检测的最大阻值R’max表示为,R’max=5·Vmax/IR1。即当第一电流源切换至第二电流源后,该该8位ADC针对Rmax至R’max之间的电阻值进行量化。即此时8位ADC输出的量化值范围0~255,以二进制表示的00000000~11111111,是针对Rmax至R’max之间的电阻值进行的量化,即第二类数字代码。
综合,上述第一电流源接入后所得到的第一类数字代码,及切换第二电流源后所得到的的第二类数字代码可以将8位ADC的输出扩展至16位。即,第一类数字代码表示对电阻值0~Rmax的量化,第二类数字代码表示对电阻值Rmax~R’max的量化。以二进制表示即为第一类数字代码的范围是0000000000000000~0000000011111111,第二类数字代码的范围是0000000100000000~1111111111111111。相比现有技术中的配置电阻检测方式,配置电阻R的取值范围扩大到原来的5倍,且克服了在小的配置电阻R值时,使用过小的电流值因为电流源IR和模拟数字转换电路的误差不能被正确检测的缺点。
以上所述,仅为本发明的具体实施案例,本发明的保护范围并不局限于此,任何熟悉本技术的技术人员在本发明所述的技术规范内,对本发明的修改或替 换,都应在本发明的保护范围之内。

Claims (4)

  1. 一种可切换档位的配置电阻检测方法,其特征在于,所述方法包括:
    使用编码码运算电路控制打开第一电流源输出第一电流值到配置电阻,在配置电阻上产生第一电压;
    使用模拟数字转换电路将第一电压转换为第一类数字代码,并由编码运算电路根据预设的阈值判断该第一类数字代码是否大于等于阈值;
    若第一类数字代码大于或等于阈值,则关断第一电流源,并导通第二电流源,输出第二电流值到配置电阻,在配置电阻上重新产生第二电压;使用模拟数字转换电路将第二电压转换为第二类数字代码;所述第二电流值小于第一电流值;
    根据第一类数字代码和第二类数字代码生成控制参数代码。
  2. 根据权利要求1所述的配置电阻检测方法,其特征在于,当第一类数字代码小于阈值时,则使用第一类数字代码生成得到控制参数代码。
  3. 一种可切换档位的配置电阻检测电路,其特征在于,所述电路包括第一电流源、第二电流源、编码运算电路和模拟数字转换电路;
    所述编码码运算电路控制第一电流源输出第一电流值到配置电阻,在配置电阻上产生第一电压;
    所述模拟数字转换电路将第一电压转换为第一类数字代码,并由编码运算电路根据预设的阈值判断该第一类数字代码是否大于等于阈值;
    当第一类数字代码大于或等于阈值时,编码运算电路关断第一电流源,并导通第二电流源,输出第二电流值到配置电阻,在配置电阻上重新产生第二电压;使用模拟数字转换电路将第二电压转换为第二类数字代码;所述第二电流值小于第一电流值;
    所述编码码运算电路根据第一类数字代码和第二类数字代码生成控制参数代码。
  4. 根据权利要求3所述的配置电阻检测电路,其特征在于,第一类数字代码小于阈值时,所述编码码运算电路使用第一类数字代码生成得到控制参数代码。
PCT/CN2023/089619 2022-04-28 2023-04-20 可切换档位的配置电阻检测方法及电路 WO2023207763A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210470881.8 2022-04-28
CN202210470881.8A CN114859124B (zh) 2022-04-28 2022-04-28 可切换档位的配置电阻检测方法及电路

Publications (1)

Publication Number Publication Date
WO2023207763A1 true WO2023207763A1 (zh) 2023-11-02

Family

ID=82636389

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/089619 WO2023207763A1 (zh) 2022-04-28 2023-04-20 可切换档位的配置电阻检测方法及电路

Country Status (2)

Country Link
CN (1) CN114859124B (zh)
WO (1) WO2023207763A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114859124B (zh) * 2022-04-28 2023-01-31 北京芯格诺微电子有限公司 可切换档位的配置电阻检测方法及电路

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108051649A (zh) * 2017-12-25 2018-05-18 东莞市长工微电子有限公司 一种外部配置电阻的检测电路及其检测方法
US20190219452A1 (en) * 2016-11-01 2019-07-18 Evonetix Ltd Resistance measurement and current control
CN110568252A (zh) * 2019-08-29 2019-12-13 桂林电子科技大学 四通道双档位接口控制电路检测电流系统
CN212229042U (zh) * 2020-03-31 2020-12-25 平顶山天安煤业股份有限公司 一种接地导通电阻测试仪多通道自动切换装置
CN114859124A (zh) * 2022-04-28 2022-08-05 北京芯格诺微电子有限公司 可切换档位的配置电阻检测方法及电路

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI106492B (fi) * 1999-03-09 2001-02-15 Nokia Mobile Phones Ltd Häiriönpoistomenetelmä
US7821041B2 (en) * 2007-05-15 2010-10-26 Taiwan Semiconductor Manufacturing Co., Ltd. Electrical fuse circuit for security applications
CN102192702A (zh) * 2010-03-18 2011-09-21 杭州工具量具有限公司 一种数显高度测量仪的操作方法
CN102338698B (zh) * 2010-07-29 2013-09-04 中国北车集团大连机车研究所有限公司 变矩器传动箱试验台及其检测控制装置
CN104852871B (zh) * 2014-02-13 2017-10-10 四零四科技股份有限公司 基于rs‑485网络的电阻配置系统及其方法
CN203933599U (zh) * 2014-05-29 2014-11-05 航天新长征电动汽车技术有限公司 一种电机控制器脉冲转换装置
CN203908700U (zh) * 2014-06-14 2014-10-29 淮安信息职业技术学院 一种铂电阻测量温度电路
CN105743358B (zh) * 2016-04-26 2018-12-14 安徽师范大学 一种后备式不间断变频电源
CN106211478A (zh) * 2016-08-29 2016-12-07 成都元始信息科技有限公司 一种智能声控led照明设备
CN106708150B (zh) * 2016-12-21 2018-07-31 北京时代民芯科技有限公司 一种分段多阶补偿的高精度电压及电流基准电路
US9843338B1 (en) * 2017-03-20 2017-12-12 Silanna Asia Pte Ltd Resistor-based configuration system
JP6431136B1 (ja) * 2017-06-13 2018-11-28 ファナック株式会社 比較器の閾値を調整する機能を有するエンコーダ及びエンコーダの制御方法
CN108448716B (zh) * 2018-05-30 2024-03-15 浙江现代电气有限公司 一种自动转换开关的控制器电路
US10483023B1 (en) * 2018-06-22 2019-11-19 Futurewei Technologies, Inc. Resistor calibration
CN111929605A (zh) * 2020-09-09 2020-11-13 深圳原能电器有限公司 可选负载阻值电路、连接电路及应用其的多功能负载器
CN112897269A (zh) * 2021-01-21 2021-06-04 广州广日电梯工业有限公司 电梯轿门检测系统、电梯轿门检测方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190219452A1 (en) * 2016-11-01 2019-07-18 Evonetix Ltd Resistance measurement and current control
CN108051649A (zh) * 2017-12-25 2018-05-18 东莞市长工微电子有限公司 一种外部配置电阻的检测电路及其检测方法
CN110568252A (zh) * 2019-08-29 2019-12-13 桂林电子科技大学 四通道双档位接口控制电路检测电流系统
CN212229042U (zh) * 2020-03-31 2020-12-25 平顶山天安煤业股份有限公司 一种接地导通电阻测试仪多通道自动切换装置
CN114859124A (zh) * 2022-04-28 2022-08-05 北京芯格诺微电子有限公司 可切换档位的配置电阻检测方法及电路

Also Published As

Publication number Publication date
CN114859124B (zh) 2023-01-31
CN114859124A (zh) 2022-08-05

Similar Documents

Publication Publication Date Title
WO2023207763A1 (zh) 可切换档位的配置电阻检测方法及电路
US10397028B2 (en) Decision feedback equalizer
US8054302B2 (en) Digital to analog converter with minimum area and source driver having the same
JP2800233B2 (ja) Ad変換器
US20050001747A1 (en) All-analog calibration of string-DAC linearity: application to high voltage processes
KR20050061344A (ko) A/d 변환기 고장 검출 장치
EP1741190A1 (en) Method to improve error reduction in a digital-to-analog converter and digital-to-analog converter in which this method is applied
JPS59171315A (ja) アナログ−デジタル変換器
US8749412B1 (en) Anti-noise successive approximation analog to digital conversion method
US6718275B2 (en) Trimming circuit for a physical quantity sensor
US7579973B2 (en) Analog-to-digital converter
US6816104B1 (en) Analog-to-digital converter utilizing a timer for increased resolution
US20160357697A1 (en) Systems and methods for multibit code communications
US9473164B1 (en) Method for testing analog-to-digital converter and system therefor
TWI674763B (zh) 數位類比轉換器裝置與校正方法
US8704692B2 (en) Digital to analog converter
US5831568A (en) Process for the analog/digital conversion of an electric signal and device for implementing it
EP3696983A1 (en) Analog to digital converter
US6836237B2 (en) Analog-to-digital converter
TWI703331B (zh) 電壓差量測電路以及相關的電壓差量測方法
CN113517891A (zh) 一种应用于数模转换器的线性校准系统和方法
US6718357B2 (en) Microcomputer including an upper and lower clip circuit
JP3130007B2 (ja) 逐次比較型a/dコンバータ回路
CN111510147B (zh) 多比较器结构sar比较器失调电压数字校正装置及算法
US6246724B1 (en) Signal transfer method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23795196

Country of ref document: EP

Kind code of ref document: A1