Pinstrap detection circuit

The pin-strap detection circuit addresses accuracy and cost issues in programmable electrical components by using an integrated circuit with an ADC and logic circuit to detect voltage and resistance with high precision, reducing component size and cost while increasing programmable settings.

JP2025131772AActive Publication Date: 2025-09-09TEXAS INSTRUMENTS INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025095107
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-12-31
Filing Date
2025-06-06
Publication Date
2025-09-09
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

Existing pin-strap detection methods for programmable electrical components suffer from limited accuracy and high cost due to the use of large die surface area and buffers, which increase manufacturing costs and go against customer demands for minimum component size.

Method used

A pin-strap detection circuit that uses an integrated circuit with an ADC, logic circuit, and resistor circuit to accurately detect voltage and resistance with 5-bit and 4-bit accuracy, minimizing component size and cost by employing a digital core to process digital signals and compensate for resistor tolerances.

Benefits of technology

The circuit achieves improved accuracy in detecting programmable settings with reduced component size and cost, allowing for a higher number of programmable settings using a single pin, enhancing flexibility and precision in electrical component programming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025131772000001_ABST
    Figure 2025131772000001_ABST
Patent Text Reader

Abstract

To provide an integrated circuit.SOLUTION: An integrated circuit (100) includes an input pin (114) and an analog-to-digital converter (ADC) (104) including an input terminal coupled to the input pin and an output terminal. The integrated circuit further includes a logic circuit (102) including an input terminal coupled to the output terminal of the ADC, a first output terminal, and a second output terminal. The integrated circuit further includes a resistive circuit (103). In an example, a resistive circuit includes: a resistor (106) coupled between an input pin and a first node (118); a first switch (108) coupled between the first node and a reference voltage pin (112); and a second switch (110) coupled between the first node and a ground pin (116).SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] Some electrical components include multiple operating modes, operating settings, or other characteristics that are programmable after the electrical component is manufactured. These settings may be set by a consumer of the electrical component who implements the electrical component within a larger circuit, device, or system. As the number of available settings for electrical components increases, consumers may desire that their electrical components be easily and accurately programmed. Summary of the Invention

[0002] Aspects of the present disclosure provide an integrated circuit. In at least some examples, the integrated circuit includes an input pin and an analog-to-digital converter (ADC) including an input terminal coupled to the input pin and an output terminal. The integrated circuit further includes a logic circuit including an input terminal coupled to the output terminal of the ADC, a first output terminal, and a second output terminal. The integrated circuit further includes a resistance circuit. In some examples, the resistance circuit includes a resistor coupled between the input pin and a first node, a first switch coupled between the first node and a reference voltage pin, and a second switch coupled between the first node and a ground pin.

[0003] Another aspect of the present disclosure provides an integrated circuit. In at least some examples, the integrated circuit includes an input pin and an ADC including an input terminal coupled to the input pin and an output terminal. The integrated circuit also includes a resistor circuit including an output terminal coupled to the input pin and a first input terminal. The integrated circuit also includes a logic circuit including an input terminal coupled to the output terminal of the ADC and a first output terminal coupled to the first input terminal of the resistor circuit. The logic circuit is configured to generate a first ADC control signal that controls the ADC to determine a voltage present at the input pin using a first value of resistance present at the input pin. The logic circuit is further configured to generate a control signal that controls the resistor circuit to change the first value of the resistance to a second value of resistance. The circuit is further configured to determine a second voltage present at the input pin changed according to the second value of resistance, and to generate a second ADC control signal that controls the ADC to determine the first value of the resistance based at least in part on the voltage present at the input pin, the second voltage present at the input pin, the resistance of the resistor circuit, and a reference voltage.

[0004] Another aspect of the present disclosure provides a system. In at least some examples, the system includes a programmable electrical component and a voltage divider. The programmable electrical component includes an input pin, a reference voltage pin, a ground pin, an ADC including an input terminal coupled to the input pin and an output terminal, and a resistor circuit including an output terminal coupled to the input pin, a first input terminal, and a logic circuit. The logic circuit includes an input terminal coupled to the output terminal of the ADC and a first output terminal coupled to the first input terminal of the resistor circuit. The logic circuit is configured to generate a first ADC control signal that controls the ADC to determine a voltage present at the input pin using a first value of resistance present at the input pin. The logic circuit is further configured to generate a control signal that controls the resistor circuit to change the first value of the resistance to a second value of resistance. The logic circuit is further configured to determine a second voltage present at the input pin changed according to the second value of the resistance, and to generate a second ADC control signal that controls the ADC to determine the first value of the resistance based in part on the voltage present at the input pin, the second voltage present at the input pin, the resistance of the resistor circuit, and a reference voltage present at the reference voltage pin. The voltage divider is coupled between the reference voltage pin and the ground pin and has an output coupled to the input pin. [Brief explanation of the drawings]

[0005] For a detailed description of the various examples, reference is made to the accompanying drawings.

[0006] [Figure 1] 1 illustrates a schematic diagram of exemplary electrical components in some instances.

[0007] [Figure 2] 1 illustrates a schematic diagram of an example resistor circuit in some examples.

[0008] [Figure 3] 1 illustrates a schematic diagram of an example resistor circuit in some examples.

[0009] [Figure 4]3A-3C illustrate timing diagrams of example signals in some examples.

[0010] [Figure 5] 10 illustrates a flowchart of an example pin strap detection method in accordance with some examples. DETAILED DESCRIPTION OF THE INVENTION

[0011] For electrical components intended to be programmable after manufacture, one such approach to programming the component is pin-strap detection. Pin-strap detection is a process in which, in some examples, a known reference voltage (VREF) output by an electrical component implementing pin-strap detection is monitored at an input terminal of the electrical component to determine the voltage present at that input terminal. In some examples, the output terminal of the electrical component to which VREF is provided is the VREF pin of the electrical component. In other examples, VREF is provided by any suitable source, and its value is known to the electrical component either through reporting to the electrical component, control performed by the electrical component, or measurement by the electrical component. Various voltages present at the input terminal correspond to or are mapped to specific settings of the electrical component, as communicated to a user of the electrical component via a datasheet or other instructions for implementing the electrical component in a circuit. To program the electrical component, a user may couple a voltage divider between the VREF pin and a ground (GND) pin or node. The output of the voltage divider is then coupled to the input terminal of the electrical component such that the ratio of resistors in the voltage divider controls the voltage present at the input terminal. Generally, the amount of resistance of the voltage divider present between the VREF pin and the input terminal is called the top resistance (RTOP), and the amount of resistance of the voltage divider present between the input terminal and the GND pin is called the bottom resistance (RBOT). RTOP and RBOT may each be provided by one or more elements having a measurable impedance. For example, RTOP and / or RBOT may each be implemented by a single resistor, a potentiometer, multiple coupled resistors, or any other suitable element capable of providing a measurable amount of impedance or resistance. By changing the value of RTOP and / or RBOT, a user may control the voltage present at the input terminal, thereby programming the electrical component.

[0012] The pin-strap detection process described above offers two degrees of flexibility in making measurements. For example, in addition to the voltage measurements described above, the values ​​of RTOP or RBOT can also be determined. While several approaches exist for pin-strap detection of the resistance of a voltage divider resistor, these approaches suffer from limitations such as limited accuracy and / or relatively high cost (e.g., the die surface area consumed to implement the approach). One such approach involves sending VREF to a buffer and mirroring the buffer's output current with a current mirror to an internal resistor (RINT) housed within the electrical component. The voltage across RINT is measured to determine RBOT. However, this approach can be highly inaccurate. For example, as the voltage present at the input terminal increases, the buffer offset increases, resulting in an increased percentage error in the RBOT determination. Therefore, buffers are often implemented as low-offset amplifiers, which, when combined with a current mirror, consume a large die surface area compared to other components such as resistors and / or transistors. The increased size also increases the cost of manufacturing the electrical component and, in some cases, goes against customer demands for minimum electrical component size.

[0013] At least some aspects of the present disclosure provide a pin-strap detection circuit. The pin-strap detection circuit herein, in at least some examples, is suitable for detecting a voltage present at an input terminal with 5-bit accuracy and detecting R with 4-bit accuracy. In other examples, the pin-strap detection circuit herein is suitable for detecting a voltage present at an input terminal with greater than 5-bit accuracy and R with greater than 4-bit accuracy based on minimized component process and temperature variations of the pin-strap detection circuit and / or resistors that provide R and R. For example, an input terminal of an analog-to-digital converter (ADC) is coupled to the input terminal and generates a digital signal representative of the voltage present at the input terminal. In at least some examples, this digital signal representative of the voltage present at the input terminal is referred to as a pin voltage (V), such as when R is not coupled in parallel with R or R. In other examples, the digital signal representative of the voltage present at the input terminal is referred to as a sensed voltage (V), such as when R is coupled in parallel with R or R. In at least some examples, the digital signal is provided to a digital core or other processing element. The digital core or processing element processes the digital code to generate one or more additional values. For example, the digital core processes VP to generate a VCODE for use in determining VS. The digital code processes VS for use in determining RBOT and, correspondingly, RCODE. In at least some examples, the voltage present at the input terminal may vary due to resistor tolerances or other factors. Thus, in at least some examples, the digital core uses fewer than all 11 bits of VP (e.g., only the least significant 5 bits) to generate a VCODE for use in programming the configuration of the digital core or another component or device. In some examples, the bit precision of VCODE relative to VP is increased when fewer than all bits of VP are used to generate a VCODE for use in programming the configuration.

[0014] In some examples, VS is measured after VP so that the ADC generates two separate digital codes. In other examples, VP is measured after VS. In at least one example, the ADC measures the voltage present at the input pin to generate VP. In at least some examples, after the ADC generates VP, the digital core generates VCODE based on VP. The digital core further determines the value of VCODE with respect to one or more threshold values. Based on that determination, the digital core generates and outputs a control signal (e.g., a switch control signal). The control signal controls a switch in the pin-strap detection circuit to couple RENT in parallel with RTOP or RBOT, allowing VS to be measured. The ADC then measures the voltage present at the input node and generates VS. After the ADC generates VS, the digital core processes VS, VP, VREF, and / or RINT to generate a digital code (RCODE) representing RBOT. In at least some examples, RINT has a value configured to cause VS to have a value closer to the value of VREF / 2 than VP. Having VS have a value closer to VREF / 2 than VP maximizes the resolution of detectable RBOT values. Based on the values ​​of VCODE and RCODE, the digital core is programmed with a particular setting corresponding to the VCODE and RCODE values. As described above, in at least some examples, fewer than all bits of VCODE are used in programming the digital core. For example, approximately five or more bits of VCODE (e.g., the least significant five bits of VCODE) and approximately four bits of RCODE (e.g., the least significant four bits of RCODE) are used in programming the digital core. This provides an improvement in the number of settings for an electrical component that can be accurately set using an input provided on a single pin of the electrical component. The improvement in the number of settings programmable using a single pin is due, at least in part, to the increased accuracy of RBOT and RCODE determination in accordance with the pin-strap detection herein.

[0015] Referring now to FIG. 1 , a schematic diagram of an example electrical component 100 is shown. In at least some examples, electrical component 100 represents any electrical component including one or more elements disposed on a semiconductor die and / or enclosed in a component package with a certain number of pins exposed on the exterior of the component package for coupling to elements disposed on the semiconductor die. Electrical component 100 may have any suitable primary functionality, the scope of its functionality not being limited herein. For example, electrical component 100 may be an analog component, a digital component, or a combination of the two, configured to provide specific processing and / or control functionality. In at least one example, electrical component 100 is or is a power controller, such as a DC-to-DC power controller. To implement its primary functionality, electrical component 100 may further include various supporting functionality. For example, electrical component 100 may include functionality for a user to specify one or more desired settings for operation of electrical component 100. This selection may be performed according to a pin-strap methodology, where voltage and / or resistance is detected at a pin and mapped to some predefined setting or function of the electrical component 100 corresponding to the voltage and / or resistance.

[0016] In at least one example architecture, electrical component 100 includes logic circuit 102, resistive circuit 103, and ADC 104. Resistive circuit 103 includes resistor 106, switch 108, and switch 110. In at least some examples, resistive circuit 103 further includes logic circuit 105. In some examples, logic circuit 102 is a circuit capable of processing and / or decision-making, such as a digital core. Logic circuit 105 is, in some examples, a circuit capable of or adapted to perform a logical OR operation according to multiple input signals to generate an output signal that is asserted when any of the multiple input signals is asserted. In at least some examples, resistor 106 has a resistance of RINT. While resistor 106 is illustrated as a single resistor having a defined value, it may instead be a programmable resistor (e.g., a potentiometer) with the value of the resistance controlled by logic circuit 102 or any other suitable control device. Alternatively or additionally, resistor 106 may represent any combination of parallel and / or series coupled components having a measurable and / or definable amount of resistance. Furthermore, in at least some examples, electrical component 100 includes a VREF pin 112, an input pin 114, and a GND pin 116. VREF pin 112, input pin 114, and GND pin 116, in some examples, provide an interface to electrical component 100, allowing a user to interact with electrical component 100 through one or more components external to electrical component 100 or with components within electrical component 100. In at least some examples, input pin 114 is versatile, such that after performing pin-strap detection in accordance with the present disclosure, input pin 114 may be used in electrical component 100 for other purposes, the scope of which is not limited herein.

[0017] In some examples, ADC 104 has an input terminal coupled to input pin 114 and an output terminal coupled to an input terminal of logic circuit 102. In at least some examples, ADC 104 has one or more additional input terminals, such as when ADC 104 is a multi-channel ADC. For example, ADC 104 may include another input terminal coupled to VREF pin 112. When ADC 104 is a multi-channel ADC, ADC 104 may include or be configured to couple to a multiplexer (not shown) at its input terminal such that ADC 104 receives the output of the multiplexer as its input signal. The multiplexer couples to a node to the input terminal of ADC 104 described herein above. For example, the multiplexer may include respective input terminals coupled to input pin 114 and VREF pin 112. The ADC 104 (or multiplexer) further includes a control input that receives a control signal (e.g., one or more ADC control signals) from the logic circuit 102 to control which analog input signals are converted to digital signals by the ADC 104. While shown in FIG. 1 as a single coupling for the control signal between the logic circuit 102 and the ADC 104, in various examples, there may be any number of couplings based on the number of channels of the ADC 104 (e.g., multiple unique input terminals of the multiplexer) or any other suitable criteria. The resistor 106 has a first terminal coupled to the input pin 114 and a second terminal coupled to a node 118. The switch 108 is coupled between the node 118 and the VREF pin 112 and is configured to receive and be controlled by a first control signal (e.g., a switch control signal) received from the logic circuit 102. The switch 110 is coupled between the node 118 and the GND pin 116 and is configured to receive and be controlled by a second control signal (e.g., a switch control signal) received from the logic circuit 102. Switch 108 and switch 110 may each be implemented according to any suitable technology, the scope of which is not limited herein, and in at least one example, switch 108 and switch 110 are each implemented as solid-state devices, such as transistors, in any suitable process technology.

[0018] Although not shown in electrical component 100, in at least some examples, electrical component 100 includes circuitry for providing VREF having a known value to VREF pin 112. The circuitry for electrical component 100 for generating and / or providing VREF at VREF pin 112 may be implemented in a number of suitable architectures, the scope of which is not limited herein. Electrical component 100 does not include voltage divider 120, but is configured to be coupled to voltage divider 120. Voltage divider 120 includes resistor 122 and resistor 124. As discussed above with respect to resistor 106, resistor 122 and resistor 124 each represent any one or more coupled components that provide a measurable and / or defined amount of resistance. As further alluded to above, the resistance of resistor 122 is referred to as RTOP, and the resistance of resistor 124 is referred to as RBOT.

[0019] In an example of the operation of electrical component 100, electrical component 100 is programmable according to multiple settings to provide a variety of functionality. In some examples, electrical component 100 may be programmable according to tens, hundreds, or thousands of settings. The settings are, in some examples, programmed into electrical component 100 based at least in part on a mapping between a particular setting and a voltage and / or resistance present at input pin 114. For example, based on a determination of a measured voltage and R at input pin 114, electrical component 100 is programmed by logic circuit 102 with a particular setting that maps to the measured voltage and determined R

[0020] To program the electrical component, in at least some examples, a user couples resistor 122 between VREF pin 112 and input pin 114 and resistor 124 between input pin 114 and GND pin 116. Electrical component 100 provides VREF to VREF pin 112 and causes a voltage modified by voltage divider 120 to be present at input pin 114. The voltage present at input pin 114 is referred to as VP, as described above, and is determined based on the value of VREF and the values ​​of RBOT and RTOP. In at least some examples, ADC 104 detects the voltage present at VREF pin 112 and generates a digital signal representation of VREF. ADC 104 provides the digital signal representation of VREF to logic circuit 102, which then uses it as a variable in an equation to generate RCODE, for example, as described in more detail elsewhere herein. ADC 104 detects the voltage present at input pin 114 in analog form and generates VP in digital form based on the detected voltage. ADC 104 then provides VP to logic circuit 102, which in some examples generates and stores a VCODE for subsequent use in programming electrical component 100. In at least some examples, logic circuit 102 also stores VP for later use, such as in determining an RCODE.

[0021] After determining the VCODE, in at least some examples, the electrical component 100 determines the RCODE. In at least some implementations, the RCODE is a digital value representation of R. In other implementations, the RCODE is a digital value representation of R. To generate the RCODE, the logic circuit 102 or another suitable control device controls one of the switches 108 or 110 to close, forming a conductive path across the respective switch 108 or 110. If the switches 108 and 110 are normally open devices, they are controlled to close when the signal received from the logic circuit 102 is asserted. Alternatively, in other examples, the switch 108 or 110 is configured to close when the signal received from the logic circuit 102 is deasserted. When one of switch 108 or switch 110 is closed, the other of switch 108 and switch 110 is open, so that in some examples, neither switch 108 nor switch 110 is closed at any given time. Thus, by closing switch 108 or switch 110, resistor 106 is coupled in parallel with resistor 122 or resistor 124, respectively. If V is known based on measurements previously performed, such as to determine V, and the value of resistor 106 is known based on it being a component included within electrical component 100, the value of R or RB can be determined.

[0022] For example, after closing one of switches 108 or 110, a new voltage is present at input pin 114, altered from the value (e.g., represented in the digital domain as VP) that existed before closing switch 108 or switch 110. ADC 104 detects the new voltage at input pin 114 in analog form and generates VS based on the detected new voltage. ADC 104 then provides VS to logic circuit 102, which, in some examples, determines RCODE based at least in part on VS. For example, in some implementations, logic circuit 102 implements an equation to determine RCODE based on the received digital code, previously determined and / or stored VP, VREF, and known RENT. In examples where switch 108 couples resistor 106 in parallel with resistor 122, logic circuit 102 determines RCODE based on Equation 1 below: In the example where switch 110 couples resistor 106 in parallel with resistor 124, logic circuit 102 determines RCODE based on Equation 2 below. TIFF2025131772000003.tif21125

[0023] In another example, logic circuit 102 accesses a lookup table stored in memory (not shown) to determine the value of RCODE based on VS and VP. For example, the lookup table may include one of VS or VP on the horizontal axis of the lookup table and the other of VS or VP on the vertical axis of the lookup table. The intersection in the lookup table for a particular VS and VP indicates the value of RCODE for that particular VS and VP combination. In implementations in which logic circuit 102 uses a lookup table instead of implementing Equation 1 and / or Equation 2, logic circuit 102 may not include mathematical engine capabilities (e.g., the ability to perform mathematical calculations). Not including mathematical engine capabilities may, at least in some examples, reduce the physical size of logic circuit 102 (resulting in reduced cost), reduce power consumption by logic circuit 102, and / or reduce the time to determine RCODE.

[0024] In some examples, the logic circuit 102 determines whether to close the switch 108 or the switch 110 based on the value of VCODE. For example, when VCODE has a value greater than a threshold, the logic circuit 102 controls one of the switches 108 or 110 to close. When VCODE has a value less than the threshold, the logic circuit 102 controls the other of the switches 108 or 110 to close. In some implementations, the logic circuit 102 generates and outputs the control signal CONNECT_VREF to control the switch 108 to close when the decimal value of VCODE is less than approximately 16. The logic circuit 102 also generates and outputs the control signal CONNECT_GND to control the switch 110 to close when the decimal value of VCODE is greater than approximately 15. More generally, in at least some implementations, the logic circuit 102 generates and outputs the control signal CONNECT_VREF to control the switch 108 to close when the decimal value of VCODE is less than approximately VREF / 2. Logic circuit 102 further generates and outputs a control signal CONNECT_GND to control switch 110 to close when the decimal value of VCODE is greater than approximately VREF / 2. Alternatively, in another example, logic circuit 102 determines whether switch 108 or switch 110 is closed based on the value of VP. In such an example, VP would replace VCODE in the descriptions herein regarding generating CONNECT_VREF or CONNECT_GND.

[0025] Based on the above scheme, by coupling resistor 106 in parallel with resistor 122 or resistor 124, in at least some examples, logic circuit 102 causes VS to have a value closer to VREF / 2 than VP. In at least some examples, forcing VS to have a value closer to VREF / 2 than VP improves the resolution of detectable changes in RBOT. For example, when the value of VP is very close to VREF, RBOT is significantly larger than RTOP (e.g., RBOT >> RTOP). In this situation, a small change in the value of the voltage present at input pin 114 results in a large change in RBOT. Therefore, potential errors made by ADC 104 in generating VS result in large errors in RBOT detection. However, coupling resistor 106 in parallel with resistor 124 limits RBOT to a lower value, thus forcing the value of the voltage present at the input pin closer to VREF / 2. In such examples, errors made by ADC 104 in generating VS reduce the error in RBOT detection, thereby improving the resolution of RBOT detection.

[0026] Similarly, when the value of VP is close to the value present at GND pin 116, RTOP >> RBOT. In this situation, a small change in RBOT causes a large change in VS. By coupling resistor 106 in parallel with resistor 122, RTOP is limited to a lower value, thereby forcing the value of VS closer to VREF / 2. In such an example, errors introduced by ADC 104 in generating VS reduce errors in RBOT detection, thereby improving RBOT detection resolution. For example, if ADC 104 introduces errors into the value of VS, the effect of the errors increases due to large changes in VS measured by ADC 104. However, because the value of VP is close to the value present at GND pin 116 and therefore the value of VS is close to VREF / 2, a large change in VS causes only a small change in RBOT, thereby minimizing the corresponding error in RBOT.

[0027] In some instances, variation in RINT from an expected or ideal value of resistance exists. In at least some instances, if left uncompensated, a percentage error in RINT from the expected or ideal value will directly translate into the same percentage error in the detected or calculated RBOT, and therefore, an error in RCODE. Therefore, in at least some instances, it is advantageous to determine and / or compensate for this variation. To determine the variation, in at least some instances, electrical component 100 includes a calibration or test mode of operation. To enter the calibration mode of operation, logic circuit 102 generates and outputs a control signal TEST_EN having an asserted value. The control signal is received by logic circuit 105, which, when asserted, closes switch 110, coupling resistor 106 in parallel with resistor 124. While operating in the test mode, resistors having known values ​​are used as resistors 122 and 124. Logic circuit 102 then determines RINT. With the values ​​of resistors 122 and 124 known and the expected RINT known, logic circuit 102 can then determine a variation in the actual value of RINT from the expected value of RINT. In at least some examples, logic circuit 102 stores a value indicative of the variation as a RINT offset in a storage element (not shown), such as a register, one-time programmable (OTP) memory, or other suitable memory or data storage structure. Thereafter, during normal operation (e.g., when not operating in test mode), logic circuit 102 modifies RINT according to the RINT offset in its calculations of Equations 1 and 2. In at least some examples, the determination of the RINT offset compensates for variations in the actual value of RINT to within about 0.2% of the expected value of RINT.

[0028] 2, a schematic diagram of an example resistive circuit 200 is shown. In at least some examples, resistive circuit 200 replaces resistor 106, switch 108, and switch 110 of electrical component 100 of FIG. 1. For example, in at least some implementations, resistive circuit 200 is suitable for implementation as (e.g., instead of) resistive circuit 103. Accordingly, in describing resistive circuit 200, reference may be made to at least some components and / or signals of electrical component 100.

[0029] Resistor circuit 200, in some examples, includes resistor 202, resistor 204, resistor 206, resistor 208, switch 210, switch 212, switch 214, and switch 216. In at least one example architecture, resistor 202 and switch 210 are coupled in series between input pin 114 and VREF pin 112. Resistor 204 and switch 212 are also coupled in series between input pin 114 and VREF pin 112. Resistor 206 and switch 214 are coupled in series between input pin 114 and GND pin 116. Resistor 208 and switch 216 are also coupled in series between input pin 114 and GND pin 116. Although not shown, each of switches 210, 212, 214, and 216 is configured in some examples to receive a respective control signal from logic circuit 102 to control the state (e.g., open or closed) of switches 210, 212, 214, and 216. Although two resistor and switch pairs are shown and described as being coupled between input pin 114 and each of VREF pin 112 and GND pin 116, in various other examples, any number of resistor and switch pairs are coupled between input pin 114 and each of VREF pin 112 and GND pin 116. In some examples, the same number of resistor and switch pairs are coupled between input pin 114 and each of VREF pin 112 and GND pin 116. In another example, a different number of resistor and switch pairs are coupled between the input pin 114 and one of the VREF pin 112 or the GND pin 116 than between the input pin 114 and the other of the VREF pin 112 or the GND pin 116.

[0030] In at least some examples of operation of resistor circuit 200, such as when ADC 104 is an 11-bit ADC, the maximum decimal value of VCODE is 31. Based on the decimal value of VCODE, logic circuit 102 controls one of switches 210, 212, 214, or 216 to close and leaves the remaining switches 210, 212, 214, or 216 open or opens them. For example, when the maximum value of VCODE is 31, logic circuit 102 controls switch 210 to close (and switches 212, 214, and 216 to open) and when the decimal value of VCODE is between 0 and 7, inclusive, logic circuit 102 further controls switch 212 to close (and switches 210, 214, and 216 to open) when the decimal value of VCODE is between 8 and 15, inclusive. Logic circuit 102 further controls switch 214 to close (and switches 210, 212, and 216 to open) when the decimal value of VCODE is between 16 and 23 (inclusive). Logic circuit 102 further controls switch 216 to close (and switches 210, 212, and 214 to open) when the decimal value of VCODE is between 24 and 31 (inclusive).

[0031] Generally, logic circuit 102 generates one or more control signals that control one or more switches of resistor circuit 200 to have states that cause the value of V to approach VREF / 2. For example, in at least some implementations, resistor 202, resistor 204, resistor 206, and resistor 208 have different values ​​of resistance optimized for a certain value or range of values ​​of VCODE. By determining the value of VCODE, logic circuit 102 then controls switches 210, 212, 214, and / or 216 to have states configured to cause V to approach VREF / 2. For example, based on the states of switches 210, 212, 214, and 216, the amount of resistance coupled in parallel with resistor 222 or resistor 224 is changed. Varying the amount of resistance coupled in parallel with resistor 222 or resistor 224 causes the value of V to approach VREF / 2 closer to VREF / 2 than the previously measured value of V. The least significant five bits of the previously measured VP are stored as VCODE by logic circuit 102 when switch 210, switch 212, switch 214, and switch 216 are each opened.

[0032] 3, a schematic diagram of an example resistive circuit 300 is shown. In at least some examples, resistive circuit 300 replaces resistor 106, switch 108, and switch 110 of electrical component 100 of FIG. 1. For example, in at least some implementations, resistive circuit 300 is suitable for implementation as (e.g., instead of) resistive circuit 103. Accordingly, in describing resistive circuit 300, reference may be made to at least some components and / or signals of electrical component 100.

[0033] In at least one example, the resistance circuit 300 includes a resistor 302 and a voltage source 304. The resistor 302 is coupled between an output terminal of the voltage source 304 and the input pin 114. In some examples, the resistance circuit 300 further includes a switch coupled between the resistor 302 and the input pin 114. The voltage source 304 is, in some examples, a digital-to-analog converter (DAC). In other examples, the voltage source 304 is any component, circuit, or device capable of outputting a signal having a controllable value. For example, the output signal of the voltage source 304 may be controllable in values ​​from a minimum of approximately 0 volts (e.g., substantially equal to that present at the GND pin 116) to a maximum of approximately VREF (e.g., substantially equal to the value present at the VREF pin 112). In some examples, the voltage source 304 is controlled to generate an output signal having a value determined based on the value of VCODE. For example, based on the value of V and the known resistance of resistor 302, logic circuit 102 controls voltage source 304 to generate an output signal configured to make the absolute value of the difference between V and V / 2 less than the absolute value of the difference between V and V. Alternatively, V may also be substituted for V and used to control voltage source 304. Voltage source 304, in at least some examples, is controlled based on a signal received from logic circuit 102. In at least some examples, switch 306 is configured to decouple resistor 302 and voltage source 304 from input pin 114 under certain conditions. For example, as described elsewhere herein, when V is determined by logic circuit 102, switch 306 opens, decoupling resistor 302 and voltage source 304 from input pin 114 based on a control signal received from logic circuit 102. Thereafter, as described elsewhere herein, once RCODE is determined by logic circuit 102, switch 306 closes, coupling resistor 302 and voltage source 304 to input pin 114 based on a control signal received from logic circuit 102.

[0034] 4, an example timing diagram 400 is shown. In at least some examples, timing diagram 400 represents at least some signals present in or associated with electrical component 100 of FIG. 1. Accordingly, in describing timing diagram 400, reference may be made to at least some components and / or signals of electrical component 100.

[0035] Timing diagram 400 illustrates an example pin-strap detection sequence and device configuration based on the results of pin-strap detection. Timing diagram 400 shows the control signals ADC_PINSTRAP_EN and ADC_VREF_EN. Timing diagram 400 also shows VP, VCODE, CONNECT_VREF, CONNECT_GND, VS, and RCODE, each as previously described herein.

[0036] As previously described with respect to FIG. 1 , ADC 104 may be a multi-channel ADC. In such an example, ADC_PINSTRAP_EN is a signal output by logic circuit 102 that controls ADC 104 to output V P based on the voltage present at input pin 114. For example, when ADC_PINSTRAP_EN is asserted (e.g., has a logic high value), ADC 104 measures the voltage present at input pin 114 and generates V P. In some examples, the generation of V P is performed by ADC 104 performing dynamic averaging to mitigate potential inaccuracies in the value of V P resulting from momentary fluctuations in the value of the voltage present at input pin 114. Similarly, ADC_VREF_EN is a signal output by logic circuitry that controls ADC 104 to generate a digital signal representation of V P based on the voltage present at V P pin 112. When ADC_VREF_EN is asserted (e.g., has a logic high value), ADC 104 measures the voltage present at V P node 112 and generates a digital signal representation of V P. In some examples, generating the digital signal representation of VREF is performed by ADC 104 performing dynamic averaging to mitigate potential inaccuracies in the value of VREF resulting from momentary fluctuations in the value VREF present at VREF pin 112. For purposes of illustrating timing diagram 400, it is assumed that VREF is less than VREF / 2, and therefore logic circuit 102 asserts CONNECT_VREF; however, in other examples, VREF may instead be greater than VREF / 2, and therefore the states of CONNECT_VREF and CONNECT_GND will be opposite to those shown in timing diagram 400.

[0037] As illustrated in timing diagram 400, the pin-strap detection sequence generally includes seven operations. However, in some examples, more or fewer operations may be included, each of which may include one or more sub-operations not specifically shown in timing diagram 400, and timing diagram 400 may not be to scale (e.g., some operations may take longer than others). Additionally, there may be delays between some operations not shown in timing diagram 400 (e.g., a delay between the completion of one operation that generates a particular signal and the generation of a new signal based on that particular signal).

[0038] After power-up, electrical component 100 waits for the voltage present at input pin 114 to settle (e.g., stabilize). While waiting for the voltage present at input pin 114 to settle, logic circuit 102 controls the ADC via the ADC_VREF_EN signal to generate a digital representation of VREF for storage and subsequent use by logic circuit 102. After the voltage present at input pin 114 has settled, logic circuit 102 controls ADC 104 to measure the voltage present at input pin 114 and generate VREF. Logic circuit 102 exercises control, in at least some examples, via the ADC_PINSTRAP_EN signal. ADC 104 measures VREF according to a dynamic averaging process, upon completion of which ADC 104 generates and outputs VREF as an 11-bit value (if ADC 104 is an 11-bit ADC). Logic circuit 102 stores at least a portion of VREF as VCODE and determines whether VREF is greater than or less than VREF / 2. While the portion of VP stored as VCODE may be determined according to any suitable characteristics, such as the tolerances of resistors 122 and 124, in at least one example, at least the least significant five bits of VP are stored as VCODE. Based on the value of VP relative to VREF / 2, logic circuit 102 asserts one of CONNECT_VREF or CONNECT_GND. In timing diagram 400, CONNECT_VREF is asserted. Electrical component 100 again waits for the voltage present at input pin 114 to settle. After the voltage present at input pin 114 has settled again, logic circuit 102 controls ADC 104 to measure the voltage present at input pin 114 and generate VS. Logic circuit 102, in at least some examples, exercises control via the ADC_PINSTRAP_EN signal. The ADC 104 performs a measurement of VS according to a dynamic averaging process, and upon completion, the ADC 104 generates and outputs VS as an 11-bit value (if the ADC 104 is an 11-bit ADC). After generating VS, the logic circuit 102 generates RCODE as at least a 4-bit value.Thereafter, in at least some instances, logic circuitry 102 configures electrical component 100 or another device according to the stored VCODE and the determined RCODE, the VCODE and RCODE values ​​together uniquely corresponding to a particular setting or settings of electrical component 100 or another device being configured.

[0039] 5, a flowchart of an example method 500 is shown. Method 500, in some examples, is a pin strap detection method. In at least some examples, method 500 is at least partially implemented in or by electrical component 100 (or components thereof) of FIG. 1. Accordingly, in describing method 500, reference may be made to at least some components and / or signals of electrical component 100.

[0040] In operation 502, VREF is sampled. In at least some examples, VREF is sampled by controlling ADC 104 to measure VREF and generate a digital code representing VREF using a channel of ADC 104 coupled to VREF pin 112. In some examples, the control is performed by logic circuit 102 outputting a channel select signal to ADC 104, causing ADC 104 to sample the channel of ADC 104 coupled to VREF pin 112.

[0041] At operation 504, the input pin voltage is sampled to generate Vp. In at least some examples, the input pin voltage is sampled by controlling the ADC 104 to measure the input pin voltage and generate Vp as a digital representation of the input pin voltage using a channel of the ADC 104 coupled to the input pin 114. In some examples, the control is performed by the logic circuit 102, which outputs a channel select signal to the ADC 104, causing the ADC 104 to sample the channel of the ADC 104 coupled to the input pin 114. Sampling the input pin voltage, in at least some examples, is a hardware operation that causes the ADC 104 to generate Vp based on the analog value present at the input pin 114. Vp, in at least some examples, is provided by the ADC 104 to the logic circuit 102 as one or more electrical impulses representing one or more digital bits.

[0042] In operation 506, VCODE is calculated. In at least some examples, VCODE is calculated by logic circuit 102 by manipulating the digital code received from ADC 104 (e.g., storing a portion of the digital code as VCODE). For example, if ADC 104 outputs a digital code having 11 bits, in some implementations, only the least significant 5 bits of the digital code (or more generally, fewer than all 11 bits of the digital code) may be used in programming one or more settings, even though all 11 bits are used for other calculations (e.g., in calculating RCODE). Thus, in at least some examples, VCODE is calculated to include fewer than all bits of VP. In at least some examples, fewer than all 11 bits of the digital code are used in programming to compensate for potential errors or inaccuracies due to tolerances (e.g., about 1%) in the actual values ​​of RTOP and RBOT from their ideal values, respectively. When resistors with lower tolerances (e.g., higher precision) are used for resistors 122 and 124, in at least some examples, a digital code of more than only the least significant five bits can be used to program one or more settings. In other examples, logic circuit 102 may generate the VCODE by directly storing all bits of VP as the VCODE. In at least some examples, after generating the VCODE from VP, logic circuit 102 stores the VCODE in a storage element. In at least some examples, logic circuit 102 also stores the received VP on which the VCODE is based. The storage element can be a register, a cache, or any other volatile or non-volatile storage component or device. In at least some examples, the VCODE is a digital value accurate to at least 5 bits.

[0043] At operation 508, a control signal is generated. In at least some examples, the control signal is generated by the logic circuit 102. The logic circuit 102, in at least some implementations, generates the control signal based on the value of VCODE relative to a threshold value. For example, in one implementation of operation 508, the logic circuit 102 determines whether VCODE is less than or greater than a threshold value and generates the control signal. For example, if VCODE is less than the threshold value, the logic circuit generates an asserted first control signal and a de-asserted second control signal. If VCODE is greater than the threshold value, the logic circuit generates a de-asserted first control signal and an asserted second control signal. In at least some examples, the threshold value is a digital value representing VREF / 2.

[0044] In operation 510, an internal resistor (e.g., resistor 106) is coupled in parallel with a resistor of voltage divider 120. For example, when a first control signal is asserted, the internal resistor is coupled in parallel with resistor 122 between VREF pin 112 and input pin 114. When a second control signal is asserted, the internal resistor is coupled in parallel with resistor 124 between input pin 114 and GND pin 116. In at least some examples, coupling the internal resistor in parallel with the resistor of voltage divider 120 changes the value of the voltage of the signal present at input pin 114 to a value closer to VREF / 2 than the voltage of the signal that was present at input pin 114 in operation 504. In at least some examples, when the first control signal is asserted, a switch receiving the first control signal closes, coupling the internal resistor in parallel with resistor 122. Similarly, when the second control signal is asserted, the switch receiving the second control signal closes, coupling the internal resistor in parallel with resistor 124 .

[0045] At operation 512, the input pin voltage is sampled to generate Vs. In at least some examples, the input pin voltage is sampled by controlling the ADC 104 to measure the input pin voltage and generate Vs as a digital representation of the input pin voltage using a channel of the ADC 104 coupled to the input pin 114. In some examples, the control is performed by the logic circuit 102 outputting a channel select signal to the ADC 104, causing the ADC 104 to sample the channel of the ADC 104 coupled to the input pin 114. Sampling the input pin voltage, in at least some examples, is a hardware operation that causes the ADC 104 to generate Vs based on the analog value present at the input pin 114. The generated digital code, in at least some examples, is provided by the ADC 104 to the logic circuit 102 as one or more electrical impulses representing one or more digital bits.

[0046] In operation 514, the resistance of the resistors of voltage divider 120 is calculated. In at least some examples, the resistance is that of the bottom resistor of voltage divider 120 (e.g., resistor 124). In other examples, the resistance is that of resistor 122. In some examples where an internal resistor is coupled in series with resistor 122 in operation 510, the resistance of the resistor is determined according to Equation 1, as described above with respect to FIG. 1. In examples where an internal resistor is coupled in series with resistor 124 in operation 510, the resistance of the resistor is determined according to Equation 2, as described above with respect to FIG. 1. In at least some examples, the resistance of the resistor is determined by logic circuit 102. In at least some examples, logic circuit 102 stores the resistance of the resistor as RCODE in a storage element. The storage element may be a register, a cache, or other volatile or non-volatile storage component or device. In at least some examples, the RCODE is a digital value accurate to at least 4 bits, such that the VCODE and the RCODE together accurately provide at least 9 bits of programmability (e.g., at least 511 distinct values) to the electrical component 100.

[0047] In operation 516, the device is programmed with a setting according to the values ​​of VCODE and RCODE. For example, logic circuit 102 may program itself, or another component of electrical component 100 may be programmed (either by logic circuit 102 or another component) with a particular setting according to VCODE and RCODE. In at least some examples, by controlling the value of VCODE based on the ratio of the resistance of the top resistor of the voltage divider to the bottom resistor of the voltage divider, and by controlling the value of the resistor selected for RCODE, VCODE and RCODE together may provide a selection from among at least 511 unique settings.

[0048] Although the operations of method 500 have been described and indicated by numerical references, in various examples, method 500 includes additional operations not described herein. In some examples, any one or more operations described herein include one or more sub-operations (e.g., intermediate comparisons, logical operations, output selection via multiplexers, etc., format conversion, decision making, etc.). In some examples, any one or more operations described herein are omitted. In some examples, any one or more of the operations described herein are performed in an order other than the order presented herein (e.g., in reverse order, substantially simultaneously, overlapping, etc.). Each of these alternatives is within the scope of the present specification.

[0049] In the foregoing description, the terms "comprise" and "include" are used in an open-ended manner and should therefore be interpreted to mean "including, but not limited to." The term "couple" is used throughout this specification. This term may encompass connections, communications, or signal paths that enable functional relationships consistent with the description herein. For example, if device A generates signals that control controlling device B to perform a certain action, in a first example, device A is coupled to device B, and in a second example, device A is coupled to device B via an intermediate component C, whereby intervening component C does not substantially change the functional relationship between device A and device B, such that device B is controlled by device A via the control signals generated by device A. Devices that are "configured" to perform a certain task or function may be configured (e.g., programmed and / or hardwired) to perform those functions by a manufacturer at the time of manufacture, or they may be configurable (or reconfigurable) by a user after manufacture to perform those functions and / or other additional or alternative functions. Such configuration may be via firmware and / or software programming of the device, or via the configuration and / or layout of hardware components, or via the interconnection of the device, or via a combination thereof. Furthermore, a circuit or device that is said to include certain components may instead be configured to couple to those components to form the described circuit element or device. For example, a structure described as including one or more semiconductor elements (e.g., transistors), one or more passive elements (e.g., resistors, capacitors, and / or inductors), and / or one or more sources (e.g., voltage and / or current sources) may instead include only the semiconductor elements within a single physical device (e.g., a semiconductor die and / or integrated circuit (IC) package) and be configured to couple to at least some of the passive elements and / or sources, thereby forming the described structure, either at the time of manufacture or at a time thereafter, e.g., by an end user and / or third party.

[0050] Although certain components are described herein as being of a particular process technology, these components may be interchangeable with components of other process technologies. A reconfiguration circuit including the replaced components provides desired functionality at least partially similar to the functionality available before the component replacement. Unless otherwise specified, components shown as resistors generally represent one or more elements coupled in series and / or parallel to provide the amount of impedance represented by the depicted resistor. Additionally, the term "ground voltage potential" includes chassis ground, earth ground, floating ground, virtual ground, digital ground, common ground, and / or any other form of ground connection applicable or suitable to the teachings herein. Unless otherwise specified, "about," "approximately," or "substantially" preceding a value means + / - 10 percent of the stated value.

[0051] The foregoing is illustrative of the principles and various examples herein. Many changes and modifications will become apparent to those skilled in the art once the above description is fully understood. The present specification includes all such changes and modifications.

Claims

1. 1. An integrated circuit comprising: An input pin, an analog-to-digital converter (ADC) including an input terminal coupled to the input pin and an output terminal; a logic circuit including an input terminal coupled to the output terminal of the ADC, a first output terminal, and a second output terminal; a resistance circuit including a resistor coupled between the input pin and a first node, a first switch coupled between the first node and a reference voltage pin, and a second switch coupled between the first node and a ground pin; , an integrated circuit.

2. 10. The integrated circuit of claim 1, an integrated circuit configured to couple the input pin to the reference voltage pin through a top resistor of a voltage divider, and the input pin to couple to the ground pin through a bottom resistor of the voltage divider.

3. 10. The integrated circuit of claim 1, The integrated circuit, wherein the logic circuit is configured to generate a first ADC control signal that causes the ADC to determine a voltage present at the input pin.

4. 4. An integrated circuit according to claim 3, the logic circuit is further configured to generate a switch control signal to control the first switch or the second switch to couple the resistor between the input pin and the reference voltage pin or between the input pin and the ground pin, respectively, based on a value of the voltage present at the input pin relative to a threshold.

5. 5. An integrated circuit according to claim 4, the logic circuit is further configured to generate the switch control signal to control the first switch to couple the resistor between the input pin and the reference voltage pin when the voltage present at the input pin is less than the threshold, and the logic circuit is configured to generate the switch control signal to control the second switch to couple the resistor between the input pin and the ground pin when the voltage present at the input pin is greater than the threshold.

6. 5. An integrated circuit according to claim 4, the logic circuit is further configured to generate a second ADC control signal to control the ADC to determine a second voltage present at the input pin that has been modified by coupling the resistor between the input pin and one of the reference voltage pin or the ground pin.

7. 7. An integrated circuit according to claim 6, the logic circuit is further configured to determine a resistance of an element coupled to the input pin according to the voltage present at the input pin, the second voltage present at the input pin, the reference voltage present at the reference voltage pin, and the resistance of the resistor.

8. 8. An integrated circuit according to claim 7, The integrated circuit, wherein the logic circuit is further configured to program a setting of the circuit according to the voltage present at the input pin and the resistance of the element coupled to the input pin.

9. 10. The integrated circuit of claim 1, an integrated circuit further including a second logic circuit, the second logic circuit having an output terminal coupled to a control terminal of the second switch, a first input terminal coupled to the second output terminal of the logic circuit, and a second input terminal coupled to a third output terminal of the logic circuit.

10. 10. The integrated circuit of claim 9, the second logic circuit is a circuit capable of performing a logical OR operation between signals received at the first input terminal of the second logic circuit and the second input terminal of the second logic circuit.

11. 1. An integrated circuit comprising: An input pin, an analog-to-digital converter (ADC) including an input terminal coupled to the input pin and an output terminal; a resistor circuit including an output terminal coupled to the input pin and a first input terminal; a logic circuit including an input terminal coupled to the output terminal of the ADC and a first output terminal coupled to the first input terminal of the resistor circuit; Including, The logic circuit is configured to generate a first ADC control signal to control the ADC to determine a voltage present at the input pin using a first value of resistance present at the input pin; configured to generate a control signal to control the resistance circuit to modify the first value of resistance to a second value of resistance; configured to generate a second ADC control signal to control the ADC to determine a second voltage present at the input pin, the second voltage being modified according to the second value of the resistor; an integrated circuit configured to determine the first value of a resistor based at least in part on the voltage present at the input pin, the second voltage present at the input pin, a resistance of the resistor circuit, and a reference voltage.

12. 12. The integrated circuit of claim 11, The resistor circuit is A resistor; a first switch; a second switch; Including, the resistor is coupled between the input pin and a first node, the resistance of the resistor being the resistance of the resistor circuit; the first switch is coupled between the first node and a reference voltage pin at which the reference voltage is present; The second switch is coupled between the first node and a ground pin.

13. 13. An integrated circuit according to claim 12, comprising: the logic circuit is further configured to control the resistance circuit to modify the first value of resistance to the second value of resistance; The modification is by generating the control signal to control the first switch to couple the resistor between the input pin and the reference voltage pin when the voltage present at the input pin is less than a threshold; and by generating the control signal to control the second switch to couple the resistor between the input pin and the ground pin when the voltage present at the input pin is greater than the threshold; the threshold voltage is approximately half the reference voltage; an integrated circuit wherein the first value of resistance is a resistance of a resistor of a voltage divider coupled between the reference voltage pin and the ground pin and having an output coupled to the input pin;

14. 12. The integrated circuit of claim 11, the resistance circuit includes a first resistor, a first switch, a second resistor, a second switch, a third resistor, a third switch, a fourth resistor, and a fourth switch; the first resistor includes a first terminal coupled to the input pin and a second terminal; the first switch is coupled between the second terminal of the first resistor and a reference voltage pin at which the reference voltage is present; the second resistor includes a first terminal coupled to the input pin and a second terminal; the second switch is coupled between the second terminal of the second resistor and the reference voltage pin; the third resistor includes a first terminal coupled to the input pin and a second terminal; the third switch is coupled between the second terminal of the third resistor and a ground pin; the fourth resistor includes a first terminal coupled to the input pin and a second terminal; the fourth switch is coupled between the second terminal of the fourth resistor and the ground pin; Integrated circuit.

15. 15. An integrated circuit according to claim 14, comprising: each of the first resistor, the second resistor, the third resistor, and the fourth resistor has a different value of resistance; the logic circuit is further configured to control the resistance circuit to modify the first value of resistance to the second value of resistance; the modifying is performed by generating the control signal to control one of the first switch, the second switch, the third switch, or the fourth switch to close based on the value of the voltage present at the input pin and the value of a resistance of the first resistor, the second resistor, the third resistor, or the fourth resistor, respectively; an integrated circuit wherein the first value of resistance is a resistance of a resistor of a voltage divider coupled between the reference voltage pin and the ground pin and having an output coupled to the input pin;

16. 12. The integrated circuit of claim 11, the resistance circuit includes a voltage source and a resistor; the voltage source includes an input terminal coupled to the logic circuit and an output terminal; The resistor is coupled between the input pin and the output terminal of the voltage source.

17. 17. An integrated circuit according to claim 16, comprising: the logic circuit is further configured to control the resistor circuit by generating the control signal to control an output voltage of the voltage source based on the voltage present at the input pin to modify the first value of resistance to the second value of resistance; an integrated circuit wherein the first value of resistance is a resistance of a resistor of a voltage divider coupled between the reference voltage pin and a ground pin and having an output coupled to the input pin;

18. 1. A system comprising: a programmable electrical component and a voltage divider; the programmable electrical component includes an input pin, a reference voltage pin, a ground pin, an analog-to-digital converter (ADC), a resistor circuit, and a logic circuit; the ADC includes an input terminal coupled to the input pin and an output terminal; the resistor circuit includes an output terminal coupled to the input pin, a first input terminal; the logic circuit includes an input terminal coupled to the output terminal of the ADC and a first output terminal coupled to the first input terminal of the resistor circuit; The logic circuit is configured to generate a first ADC control signal to control the ADC to determine a voltage present at the input pin using a first value of resistance present at the input pin; configured to generate a control signal to control the resistance circuit to modify the first value of resistance to a second value of resistance; configured to generate a second ADC control signal to control the ADC to determine a second voltage present at the input pin, the second voltage being modified according to the second value of the resistor; configured to determine the first value of a resistor based at least in part on the voltage present at the input pin, the second voltage present at the input pin, a resistance of the resistor circuit, and a reference voltage present at the reference voltage pin; The system wherein the voltage divider is coupled between the reference voltage pin and the ground pin and has an output coupled to the input pin.

19. 20. The system of claim 18, the programmable electrical component is programmable to one of at least 511 settings by varying the ratio of resistance of a top resistor of the voltage divider to a bottom resistor of the voltage divider to control the first voltage present at the input pin and by controlling the values ​​of resistance of the resistors of the voltage divider.

20. 20. The system of claim 18, the logic circuit is further configured to determine the first value of resistor according to a value of the reference voltage, a voltage present at the input pin when the resistive circuit is inactive, a voltage present at the input pin when the resistive circuit is coupled in a signal path between the input pin and the reference voltage pin or a signal path between the input pin and the ground pin, and a resistance of the resistive circuit.

Citation Information

Patent Citations

  • Digital insulation resistance meter

    JP1985018771A