Pin setting detection circuit
By combining analog-to-digital converters and logic circuits, and using switches to control parallel resistors, the accuracy and cost issues in existing pin setting detection methods are solved, enabling high-precision programming of electrical components and reducing costs.
Patent Information
- Application Number
- CN202080091536.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-31
- Filing Date
- 2020-12-28
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2040-12-28
AI Technical Summary
Existing pin configuration detection methods are insufficient in terms of accuracy and cost, especially in terms of inaccurate resistance measurement, which leads to inaccurate programming of electrical components and high costs.
By employing an analog-to-digital converter (ADC) and logic circuits, high-precision pin setting detection is achieved by detecting the input pin voltage and resistance value, using a switch to control the parallel connection of resistors to improve voltage measurement accuracy, and combining a calibration mode to compensate for resistor deviations.
It achieves 5-bit precision detection of input terminal voltage and 4-bit precision detection of resistance, improving the accuracy of electrical component programming, reducing costs and manufacturing complexity.
Smart Images

Figure CN114902412B_ABST
Abstract
Description
Background Technology
[0001] Some electrical components include multiple operating modes, operating settings, or other features that can be programmed after the component is manufactured. These settings can sometimes be configured by the consumer of the electrical component, who implements it in a larger circuit, device, or system. As the number of available settings for an electrical component increases, consumers may also expect simple and precise programming of the component. Summary of the Invention
[0002] This specification provides an integrated circuit in various aspects. In at least some examples, the 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 circuit also includes logic circuitry including an input terminal coupled to the output terminal of the ADC, a first output terminal, and a second output terminal. The circuit also includes a resistor circuitry. In an example, the resistor circuitry 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] Other aspects of this specification provide an integrated circuit. In at least some examples, the circuit includes an input pin and an ADC, the ADC including an input terminal coupled to the input pin and an output terminal. The circuit also includes a resistor circuit including an output terminal coupled to the input pin and a first input terminal. The circuit further includes logic circuitry 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 circuitry. The logic circuitry is configured to generate a first ADC control signal to control the ADC to determine a voltage present at the input pin given a first resistance value. The logic circuitry is also configured to generate a control signal to control the resistor circuitry to modify the first resistance value to a second resistance value. The circuitry is further configured to generate a second ADC control signal to control the ADC to determine a second voltage present at the input pin, varying according to the second resistance value, and to determine the first resistance value 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 circuitry, and a reference voltage.
[0004] Other aspects of this specification provide a system. In at least some examples, the system includes programmable electrical components and a voltage divider. The programmable electrical components include 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, a resistor circuit including an output terminal coupled to the input pin and a first input terminal, and logic circuitry. The logic circuitry 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 circuitry. The logic circuitry is configured to generate a first ADC control signal to control the ADC to determine a voltage present at the input pin given a first resistance value. The logic circuitry is also configured to generate a control signal to control the resistor circuitry to modify the first resistance value to a second resistance value. The logic circuitry is further configured to generate a second ADC control signal to control the ADC to determine a second voltage present at the input pin, varying according to the second resistance value, and to determine the first resistance value 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 circuitry, 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. Attached Figure Description
[0005] For a detailed description of the various examples, reference will now be made to the accompanying drawings, in which:
[0006] Figure 1 Schematic diagrams of illustrative electrical components are shown in some examples;
[0007] Figure 2 Schematic diagrams of illustrative resistor circuits are shown in some examples;
[0008] Figure 3 Schematic diagrams of illustrative resistor circuits are shown in some examples;
[0009] Figure 4 Timing diagrams of illustrative signals are shown in some examples; and
[0010] Figure 5 The flowcharts show illustrative methods for pinstrap detection in some examples. Detailed Implementation
[0011] For electrical components designed for post-programmability, one method for programming these components is pin setup detection. Pin setup detection is a process by which a known reference voltage (VREF) (output by the electrical component performing the pin setup detection in some examples) 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 providing VREF 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 through reporting to the electrical component, control exerted by the electrical component, or measurement performed by the electrical component. The various voltages present at the input terminals correspond to or map to specific settings of the electrical component, as communicated to the user of the electrical component via datasheets or other instructions for implementing the electrical component in a circuit. To program the electrical component, the user can 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 the resistors in the voltage divider controls the voltage present at the input terminal. Typically, the resistance of the voltage divider between the VREF pin and the input terminal is called the top resistance (RTOP), and the resistance of the voltage divider between the input terminal and the GND pin is called the bottom resistance (RBOT). RTOP and RBOT can each be provided by one or more components with measurable impedance. For example, RTOP and / or RBOT can each be implemented as a single resistor, potentiometer, multiple coupled resistors, or any other suitable component capable of providing a measurable impedance or resistance. By changing the values of RTOP and / or RBOT, the user can control the voltage present at the input terminal, thereby programming the electrical components.
[0012] The pin setup detection process described above offers two degrees of flexibility when performing measurements. For example, in addition to the voltage measurements mentioned above, the value of RTOP or RBOT can be determined. Several methods exist for pin setup detection of the resistors used in voltage dividers, but these methods have limited accuracy and / or are relatively expensive (e.g., due to the die surface area consumed by implementing the method). One such method involves forcing VREF through a buffer, where a current mirror mirrors the buffer's output current to an internal resistor (RINT) contained within the electrical component. The voltage across RINT is measured to determine RBOT. However, this method can be highly inaccurate. For example, the percentage error in RBOT determination increases due to buffer offset, which increases with the voltage present at the input terminals. Therefore, buffers are typically implemented as low-offset amplifiers, resulting in a larger die surface area compared to other components such as resistors and / or transistors when combined with a current mirror. This increase in size increases the cost of manufacturing the electrical component and, in some cases, contradicts customer requirements for minimum component dimensions.
[0013] At least some aspects of this specification provide a pin setup detection circuit. In at least some examples, the pin setup detection circuit of this specification is adapted to detect the voltage present at an input terminal with 5-bit precision and to detect RBOT with 4-bit precision. In other examples, the pin setup detection circuit of this specification is adapted to detect the voltage present at an input terminal with greater than 5-bit precision and to detect RBOT with greater than 4-bit precision, based on minimized component process and temperature variations provided by the pin setup detection circuit and / or resistors supplying RTOP and RBOT. For example, an input terminal of an analog-to-digital converter (ADC) is coupled to an input terminal and generates a digital signal representing the voltage present at the input terminal. In at least some examples, this digital signal representing the voltage present at the input terminal is referred to as pin voltage (VP), for example, when RINT is not coupled in parallel with RBOT or RTOP. In other examples, the digital signal representing the voltage present at the input terminal is referred to as sense voltage (VS), for example, when RINT is coupled in parallel with RBOT or RTOP. 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 the VP to generate the VCODE and uses it to determine the VS. The digital code processes the VS to determine the RBOT and, accordingly, the RCODE. In at least some examples, the voltage present at the input terminals may vary due to resistor tolerances or other factors. Therefore, in at least some examples, when generating a VCODE for programming settings of the digital core or another component or device, the digital core utilizes less than all 11 bits of the VP (e.g., only the least significant 5 bits). In some examples, when using less than all bits of the VP to generate a VCODE for programming settings, the bit precision of the VCODE relative to the VP is increased.
[0014] In some examples, VS is measured after VP, causing the ADC to generate 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 a VCODE based on VP. The digital core further determines a VCODE value relative to one or more thresholds. Based on this determination, the digital core generates and outputs a control signal (e.g., a switch control signal). The control signal controls the pin to set the switch of the detection circuit to couple RINT in parallel with RTOP or RBOT, thereby enabling the measurement of VS. The ADC then measures the voltage present at the input node to generate VS. After the ADC generates VS, the digital core processes VS, VP, VREF, and / or RINT to generate a digital code (RCODE) representing the RBOT. In at least some examples, RINT has a value configured to make VS have a value closer to VREF / 2 than VP. Making VS have a value closer to VREF / 2 than VP maximizes the resolution of the detectable RBOT value. The digital core is programmed using specific settings corresponding to the values of VCODE and RCODE, based on the values of VCODE and RCODE. As mentioned above, in at least some examples, fewer than all bits of VCODE are used in programming the digital core. For example, approximately 5 or more bits of VCODE (e.g., the least significant 5 bits of VCODE) and approximately 4 bits of RCODE (e.g., the least significant 4 bits of RCODE) are used to program the digital core. This provides an improvement in multiple settings for electrical components that can be precisely set using an input provided at a single pin of the electrical component. The improvement of using multiple settings programmable on a single pin is at least in part due to the increased accuracy of the RBOT and RCODE determination based on the pin settings detected according to this specification.
[0015] Turn now Figure 1The diagram illustrates an illustrative electrical component 100. In at least some examples, electrical component 100 represents any electrical component comprising one or more elements disposed on a semiconductor die and / or packaged in a component package, wherein a specified number of pins are exposed outside the component package for coupling to the elements disposed on the semiconductor die. Electrical component 100 may have any suitable primary function, and its scope is not limited thereto. For example, electrical component 100 may be an analog component, a digital component, or a combination of both, configured to provide specific processing and / or control functions. In at least one example, the electrical component is a power controller (such as a DC-DC power controller) or a component of a power controller. To achieve its primary function, electrical component 100 may also include various supporting functions. For example, electrical component 100 may include functions for users to specify one or more desired settings for the operation of electrical component 100. This selection may be performed according to a pin-setting method, wherein voltage and / or resistance are detected at the pins and mapped to a predetermined setting or function of the corresponding electrical component 100.
[0016] In at least one exemplary architecture, electrical component 100 includes logic circuitry 102, resistor circuitry 103, and ADC 104. Resistor circuitry 103 includes resistor 106, switch 108, and switch 110. In at least some examples, resistor circuitry 103 also includes logic circuitry 105. In some examples, logic circuitry 102 is circuitry capable of performing processing and / or decision-making, such as a digital core. In some examples, logic circuitry 105 is circuitry capable of or adapted to perform a logical OR operation based on a plurality of input signals to produce an output signal that is asserted when any of the plurality of input signals is asserted. In at least some examples, resistor 106 has a resistance of RINT. While resistor 106 is shown as a single resistor with a defined value, it may alternatively be a programmable resistor (e.g., a potentiometer) with a resistance value controlled by logic circuitry 102 or any other suitable control device. Alternatively or additionally, resistor 106 may represent any combination of parallel and / or series coupled components having measurable and / or definable resistance quantities. Furthermore, in at least some examples, electrical component 100 includes a VREF pin 112, an input pin 114, and a GND pin 116. In some examples, the VREF pin 112, input pin 114, and GND pin 116 provide a user with an interface to electrical component 100 via one or more external components for interaction with components of electrical component 100 or components within electrical component 100. In at least some examples, input pin 114 is multi-purpose, such that after pin setup detection is performed according to this specification, input pin 114 is used for another purpose within electrical component 100, the scope of which is not limited thereto.
[0017] In some examples, ADC104 has an input terminal coupled to input pin 114 and an output terminal coupled to the input terminal of logic circuit 102. In at least some examples, such as when ADC104 is a multi-channel ADC, ADC104 has one or more additional input terminals. For example, ADC104 may include another input terminal coupled to VREF pin 112. When ADC104 is a multi-channel ADC, ADC104 includes or is configured to be coupled to a multiplexer at its input terminals such that ADC104 receives the output of the multiplexer as its input signal. The multiplexer is then coupled to a node previously attributed herein to the input terminal of ADC104. For example, the multiplexer includes corresponding input terminals coupled to input pin 114 and VREF pin 112. ADC104 (or the multiplexer) also includes control inputs that receive control signals (e.g., one or more ADC control signals) from logic circuit 102 to control which analog input signal ADC104 converts into a digital signal. Figure 1 The diagram shows a single coupling of control signals between logic circuit 102 and ADC 104, but in various examples, any number of couplings may exist based on the number of channels of ADC 104 (e.g., the number of unique input terminals of a multiplexer) or any other suitable criterion. Resistor 106 has a first terminal coupled to input pin 114 and a second terminal coupled to node 118. Switch 108 is coupled between node 118 and VREF pin 112 and is configured to receive and be controlled by a first control signal (e.g., a switch control signal) received from logic circuit 102. Switch 110 is coupled between node 118 and GND pin 116 and is configured to receive and be controlled by a second control signal (e.g., a switch control signal) received from logic circuit 102. Switches 108 and 110 may each be implemented according to any suitable technology, and their scope is not limited thereto. In at least one example, switches 108 and 110 are each implemented as solid-state devices, such as transistors of any suitable process technology.
[0018] Although not shown in electrical component 100, in at least some examples, electrical component 100 includes a circuit system for providing VREF with a known value to VREF pin 112. The circuit system of electrical component 100 generating and / or providing VREF at VREF pin 112 can be implemented in a variety of suitable architectures, and its scope is not limited thereto. Electrical component 100 is not included but configured to be coupled to voltage divider 120. Voltage divider 120 includes resistors 122 and 124. As described above with respect to resistor 106, resistors 122 and 124 each represent any one or more coupling components providing a measurable and / or defined amount of resistance. As further mentioned 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 operational example of electrical component 100, electrical component 100 can be programmed according to multiple settings to provide various functions. In some examples, electrical component 100 can be programmed according to dozens, hundreds, or thousands of settings. In some examples, these settings are programmed into electrical component 100 based at least in part on a mapping between specific settings and the voltage and / or resistance present at input pin 114. For example, based on the voltage measured at input pin 114 and the determination of the RBOT, logic circuitry 102 programs electrical component 100 using specific settings mapped to the measured voltage and the determined RBOT.
[0020] To program the electrical components, in at least some examples, the 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 such that a voltage modified by voltage divider 120 exists 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, as well as 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 circuitry 102 for subsequent use, for example, as a variable in an equation to generate RCODE, as described in more detail elsewhere herein. ADC 104 detects the voltage present at input pin 114 in analog format and generates VP in digital format based on the detected voltage. The ADC 104 then provides the VP to the logic circuit 102, which in some examples generates and stores the VCODE for later use when programming the electrical component 100. In at least some examples, the logic circuit 102 further stores the VP for later use, such as when determining the RCODE.
[0021] After determining the VCODE, in at least some examples, electrical component 100 determines the RCODE. In at least some embodiments, the RCODE is a digital value representation of RBOT. In other embodiments, the RCODE is a digital value representation of RTOP. To generate the RCODE, logic circuitry 102 or another suitable control device controls one of switch 108 or switch 110 to close and form a conductive path across the respective switch 108 or switch 110. When switches 108 and 110 are normally open devices, they are controlled to close when a signal received from logic circuitry 102 is asserted. Alternatively, in other examples, switch 108 or switch 110 is configured to close when a signal received from logic circuitry 102 is deasserted. When one of switch 108 or switch 110 is closed, the other of switch 108 or switch 110 is open, such that at any given time, in some examples, neither of switches 108 or switch 110 is closed, or only one is closed. Therefore, by closing switch 108 or switch 110, resistor 106 is coupled in parallel with resistor 122 or resistor 124, respectively. When VP is known based on previously performed measurements (e.g., for determining VCODE) and the value of resistor 106 is known based on the fact that resistor 106 is a component included within electrical component 100, the value of RTOP or RBOT can be determined.
[0022] For example, after closing either switch 108 or switch 110, a new voltage exists at input pin 114, modified from the value prior to closing switch 108 or switch 110 (e.g., represented as VP in the digital domain). ADC 104 detects the new voltage at input pin 114 in analog format and generates VS based on the detected new voltage. ADC 104 then provides VS to logic circuitry 102, which in some examples determines RCODE at least in part based on VS. For example, in some implementations, logic circuitry 102 implements an equation for determining RCODE based on the received digital code, previously determined and / or stored VP, VREF, and known RINT. In the example where switch 108 couples resistor 106 in parallel with resistor 122, logic circuitry 102 determines RCODE based on Equation 1.
[0023]
[0024] In the example where switch 110 couples resistor 106 and resistor 124 in parallel, logic circuit 102 determines RCODE based on the following Equation 2.
[0025]
[0026] In other examples, 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 includes one of VS or VP on the horizontal axis and the other of VS or VP on the vertical axis. The intersection of the lookup table for a particular VS and VP represents the RCODE value for that particular combination of VS and VP. In embodiments where logic circuit 102 utilizes a lookup table instead of implementing Equations 1 and / or 2, logic circuit 102 may not include math engine capabilities (e.g., the ability to perform mathematical calculations). In at least some examples, omitting math engine capabilities results in a smaller physical size (and therefore lower cost) for logic circuit 102, lower power consumption for logic circuit 102, and / or faster time to determine RCODE.
[0027] In some examples, logic circuit 102 determines which of the two switches, 108 or 110, to close based on the value of VCODE. For example, when the value of VCODE is greater than a threshold, logic circuit 102 controls one of the switches 108 or 110 to close. When the value of VCODE is less than the threshold, logic circuit 102 controls the other of the switches 108 or 110 to close. In some embodiments, when the decimal value of VCODE is less than approximately sixteen, logic circuit 102 generates and outputs a control signal CONNECT_VREF to control switch 108 to close. When the decimal value of VCODE is greater than approximately fifteen, logic circuit 102 further generates and outputs a control signal CONNECT_GND to control switch 110 to close. More generally, in at least some embodiments, when the decimal value of VCODE is less than approximately VREF / 2, logic circuit 102 generates and outputs a control signal CONNECT_VREF to control switch 108 to close. When the decimal value of VCODE is greater than approximately VREF / 2, logic circuit 102 further generates and outputs the control signal CONNECT_GND to control switch 110 to close. Alternatively, in other examples, logic circuit 102 determines which of the switches 108 or 110 to close based on the value of VP. In such an example, VP replaces VCODE in this description of the generation of CONNECT_VREF or CONNECT_GND.
[0028] By coupling resistor 106 in parallel with resistor 122 or resistor 124 based on the above scheme, in at least some examples, logic circuit 102 makes the value of VS closer to VREF / 2 than the value of VP. In at least some examples, making VS closer to VREF / 2 than VP increases 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 case, a small change in the voltage value present at input pin 114 will result in a large change in RBOT. Therefore, the potential error generated by ADC 104 in generating VS will lead to a large error in RBOT detection. However, coupling resistor 106 in parallel with resistor 124 limits RBOT to a lower value, thus making the voltage value present at input pin closer to VREF / 2. In such examples, the error generated by ADC 104 in generating VS will lead to a lower error in RBOT detection, thereby improving RBOT detection resolution.
[0029] Similarly, when the value of VP is close to the value at GND pin 116, RTOP >> RBOT. In this case, a small change in RBOT will result in a large change in VS. By coupling resistor 106 in parallel with resistor 122, RTOP is limited to a lower value, thus making the value of VS closer to VREF / 2. In such an example, the error introduced by ADC104 in generating VS will result in a lower error in RBOT detection, thereby improving RBOT detection resolution. For example, if ADC104 introduces error into the value of VS, the effect of the error is increased due to the large change in VS measured by ADC104. However, because the value of VP is close to the value at GND pin 116 and therefore the value of VS is close to VREF / 2, for a large change in VS, only a small change occurs in RBOT, and the corresponding error in RBOT will be minimal.
[0030] In some examples, there is a variation in RINT from the expected or ideal resistance value. In at least some examples, without compensation, the percentage error in RINT from the expected or ideal value is directly converted into the same percentage error in the detected or calculated RBOT, and thus into the error in RCODE. Therefore, in at least some examples, it is advantageous to determine and / or compensate for this variation. To determine this variation, in at least some examples, electrical component 100 includes a calibration or test operation mode. To enter the calibration operation mode, logic circuit 102 generates and outputs a control signal TEST_EN with an assertion value. The control signal is received by logic circuit 105 and, when asserted, causes switch 110 to close to couple resistor 106 in parallel with resistor 124. When operating in test mode, resistors with known values are used as resistors 122 and 124. Subsequently, logic circuit 102 determines RINT. Because the values of resistors 122 and 124 are known, and the expected value of RINT is known, logic circuit 102 can then determine the deviation between the actual value of RINT and the expected value of RINT. In at least some examples, logic circuit 102 stores a value indicating this deviation as an 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. In subsequent normal operation (e.g., when not operating in test mode), logic circuit 102 modifies RINT when calculating Equations 1 and 2 based on the RINT offset. In at least some examples, the determination of the RINT offset compensates for the deviation between the actual value of RINT and the expected value of RINT to within approximately 0.2% accuracy.
[0031] Turn now Figure 2 A schematic diagram of an illustrative resistor circuit 200 is shown. In at least some examples, resistor circuit 200 replaces... Figure 1 The electrical component 100 includes resistors 106, switches 108, and switches 110. For example, in at least some embodiments, resistor circuit 200 is adapted to be implemented as (e.g., instead of) resistor circuit 103. Therefore, when describing resistor circuit 200, reference may be made to at least some components and / or signals of electrical component 100.
[0032] In some examples, the resistor circuit 200 includes resistors 202, 204, 206, 208, and switches 210, 212, 214, and 216. In at least one exemplary 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, in some examples, each of switches 210, 212, 214, and 216 is configured to receive a corresponding 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 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 other examples, a different number of resistor and switch pairs are coupled between input pin 114 and one of VREF pin 112 or GND pin 116, rather than between input pin 114 and the other of VREF pin 112 or GND pin 116.
[0033] In at least some operational examples of resistor circuit 200, for example, 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 controls the remainder of switches 210, 212, 214, or 216 to remain or become open. 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) when the decimal value of VCODE is between 0 and 7 (inclusive). When the decimal value of VCODE is between 8 and 15 (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 16 and 23 (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 24 and 31 (inclusive), logic circuit 102 further controls switch 216 to close (and switches 210, 212, and 214 to open).
[0034] Typically, logic circuit 102 generates one or more control signals to control one or more switches of resistor circuit 200 to have a state that makes the value of VS close to VREF / 2. For example, in at least some embodiments, resistors 202, 204, 206, and 208 have different resistance values optimized for certain values or ranges of VCODE. By determining the value of VCODE, logic circuit 102 then controls switches 210, 212, 214, and / or 216 to have a state configured to make VS close to 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 changes. By changing the amount of resistance coupled in parallel with resistor 222 or resistor 224, the value of VS is made closer to VREF / 2 than the previously measured VP. When switches 210, 212, 214 and 216 are all open, the least significant 5 bits of VP are stored as VCODE by logic circuit 102.
[0035] Turn now Figure 3 A schematic diagram of an illustrative resistor circuit 300 is shown. In at least some examples, resistor circuit 300 replaces... Figure 1The electrical component 100 includes resistors 106, switches 108, and switches 110. For example, in at least some embodiments, resistor circuit 300 is adapted to be implemented as (e.g., instead of) resistor circuit 103. Therefore, when describing resistor circuit 300, reference may be made to at least some components and / or signals of electrical component 100.
[0036] In at least one example, the resistor circuit 300 includes a resistor 302 and a voltage source 304. Resistor 302 is coupled between the output terminal and input pin 114 of voltage source 304. In some examples, the resistor circuit 300 also includes a switch coupled between resistor 302 and input pin 114. In some examples, voltage source 304 is a digital-to-analog converter (DAC). In other examples, voltage source 304 is any component, circuit, or device capable of outputting a signal with a controllable value. For example, the value of the output signal of voltage source 304 can be controllable from a minimum of approximately zero volts (e.g., substantially equal to the value present at GND pin 116) to a maximum of approximately VREF (e.g., substantially equal to the value present at VREF pin 112). In some examples, voltage source 304 is controlled to produce an output signal having a value determined based on the value of VCODE. For example, based on the value of VCODE and the known resistance value of resistor 302, logic circuit 102 controls voltage source 304 to generate an output signal that is configured such that the absolute value of the difference between VS and VREF / 2 is less than the absolute value of the difference between VCODE and VREF / 2. Alternatively, VCODE can again be replaced by VP for controlling voltage source 304. In at least some examples, voltage source 304 is controlled based on signals 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, based on control signals received from logic circuit 102, when VP is being determined by logic circuit 102, switch 306 opens to decouple resistor 302 and voltage source 304 from input pin 114. Subsequently, as described elsewhere in this document, based on the control signal received from logic circuit 102, while logic circuit 102 is determining RCODE, switch 306 closes to couple resistor 302 and voltage source 304 to input pin 114.
[0037] Turn now Figure 4 This illustrates a timing diagram 400. In at least some examples, timing diagram 400 represents... Figure 1 At least some signals of or associated with the electrical component 100. Therefore, when describing the timing diagram 400, reference may be made to at least some components and / or signals of the electrical component 100.
[0038] Timing diagram 400 illustrates the illustrative pin setup detection sequence and the device configuration based on the pin setup detection results. 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.
[0039] As mentioned above Figure 1 The ADC104 can be a multi-channel ADC. In such an example, ADC_PINSTRAP_EN is a signal output by logic circuitry 102 to control ADC104 to generate VP based on the voltage present at input pin 114. For example, when ADC_PINSTRAP_EN is asserted (e.g., has a logic high value), ADC104 measures the voltage present at input pin 114 and generates VP. In some examples, VP generation is performed by ADC104 performing dynamic averaging to mitigate the possibility of inaccurate VP values due to transient changes in the voltage present at input pin 114. Similarly, ADC_VREF_EN is a signal output by logic circuitry to control ADC104 to generate a digital signal representation of VREF based on the voltage present at VREF pin 112. When ADC_VREF_EN is asserted (e.g., has a logic high value), ADC104 measures the voltage present at VREF node 112 and generates a digital signal representation of VREF. In some examples, the digital representation of VREF is generated by performing dynamic averaging using ADC 104 to mitigate the possibility of inaccurate VREF values due to transient changes in the VREF value present at VREF pin 112. For the sake of illustration in timing diagram 400, it is assumed that VP is less than VREF / 2, therefore logic 102 asserts CONNECT_VREF. However, in other examples, VP may alternatively be greater than VREF / 2, such that the states of CONNECT_VREF and CONNECT_GND are reversed compared to those shown in timing diagram 400.
[0040] As shown in timing diagram 400, the pin setup detection sequence typically includes seven operations. However, in some examples, more or fewer operations may be included, and each operation may include one or more sub-operations not specifically shown in timing diagram 400, and timing diagram 400 may be non-scaled (e.g., some operations may require longer times than others). Furthermore, there may be delays between some operations that are not shown in timing diagram 400 (e.g., a delay after an operation that generates a specific signal before generating a new signal based on a specific signal completes).
[0041] After startup, electrical component 100 waits for a voltage setting (e.g., stabilization) at input pin 114. While waiting for the voltage setting at input pin 114, logic circuitry 102 controls the ADC to generate a digital representation of VREF via the ADC_VREF_EN signal for storage and later use. After the voltage setting at input pin 114, logic circuitry 102 controls ADC 104 to measure the voltage at input pin 114 to generate VP. In at least some examples, logic circuitry 102 performs control via the ADC_PINSTRAP_EN signal. ADC 104 performs the measurement of VP according to a dynamic averaging process, and upon completion of the dynamic averaging process, ADC 104 generates and outputs VP as an 11-bit value (when ADC 104 is an 11-bit ADC). Logic circuitry 102 stores at least a portion of VP as VCODE and determines whether VP is greater than or less than VREF / 2. A portion of the VP stored as VCODE can be determined based on any suitable characteristics, such as the tolerances of resistors 122 and 124, but in at least one example, at least the least significant 5 bits of the VP are stored as the VCODE. Based on the value of the VP relative to VREF / 2, logic circuitry 102 asserts one of CONNECT_VREF or CONNECT_GND, where CONNECT_VREF is shown as asserted in timing diagram 400. Electrical component 100 again waits for the voltage present at input pin 114 to be set. After the voltage present at input pin 114 is set again, logic circuitry 102 controls ADC 104 to measure the voltage present at input pin 114 to generate VS. In at least some examples, logic circuitry 102 performs control via the ADC_PINSTRAP_EN signal. ADC 104 performs the VS measurement according to a dynamic averaging process, and upon completion of the dynamic averaging process, ADC 104 generates and outputs the VS as an 11-bit value (when ADC 104 is an 11-bit ADC). After generating the VS, logic circuitry 102 generates the RCODE as a value of at least 4 bits. Subsequently, in at least some examples, logic circuit 102 configures electrical component 100 or another device based on a stored VCODE and a determined RCODE, wherein the values of VCODE and RCODE together uniquely correspond to a specific setting (or multiple settings) of electrical component 100 or another device being configured.
[0042] Turn now Figure 5 A flowchart illustrating illustrative method 500 is shown. In some examples, method 500 is a pin setting detection method. In at least some examples, method 500 is at least partially... Figure 1 The method is implemented in or by the electrical component 100 (or its components). Therefore, when describing the method 500, reference may be made to at least some components and / or signals of the electrical component 100.
[0043] In operation 502, VREF is sampled. In at least some examples, VREF is sampled by controlling ADC104 to measure VREF and generate a digital code representing VREF using a channel of ADC104 coupled to VREF pin 112. In some examples, control is applied by logic circuitry 102 to output a channel selection signal to ADC104, causing ADC104 to sample a channel of ADC104 coupled to VREF pin 112.
[0044] In operation 504, the input pin voltage is sampled to generate VP. In at least some examples, the input pin voltage is sampled by controlling ADC 104 to measure the input pin voltage and generating VP as a digital representation of the input pin voltage using a channel of ADC 104 coupled to input pin 114. In some examples, control is applied by logic circuit 102 to output a channel selection signal to ADC 104 to cause ADC 104 to sample a channel of ADC 104 coupled to input pin 114. In at least some examples, sampling the input pin voltage is a hardware operation that causes ADC 104 to generate VP based on the analog value present at input pin 114. In at least some examples, VP is provided by ADC 104 to logic circuit 102 as one or more electrical pulses representing one or more digital bits.
[0045] In operation 506, VCODE is calculated. In at least some examples, VCODE is calculated by logic circuitry 102 by manipulating the digital code received from ADC 104 (storing a portion of the digital code as VCODE). For example, when ADC 104 outputs an 11-bit digital code, 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) can be used to program one or more settings, although all 11 bits are used for other calculations (e.g., calculating RCODE). Therefore, 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 error tolerances (e.g., approximately 1%) between the actual values of RTOP and RBOT and their ideal values, respectively. When lower-tolerance (e.g., higher-precision) resistors are used for resistors 122 and 124, in at least some examples, more bits of digital code than just the least significant 5 bits can be used when programming one or more settings. In other examples, logic circuit 102 can generate a VCODE by directly storing all bits of the VP as a VCODE. In at least some examples, after generating the VCODE from the VP, logic circuit 102 stores the VCODE in a storage element. In at least some examples, logic circuit 102 also stores the received VP, upon 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.
[0046] In operation 508, a control signal is generated. In at least some examples, the control signal is generated by logic circuitry 102. In at least some embodiments, logic circuitry 102 generates the control signal based on the value of VCODE relative to a threshold. For example, in one embodiment of operation 508, logic circuitry 102 determines whether VCODE is less than or greater than the threshold to generate the control signal. For example, when VCODE is less than the threshold, the logic circuitry generates a first assertion control signal and a second deassertion control signal. When VCODE is greater than the threshold, the logic circuitry generates a first deassertion control signal and a second assertion control signal. In at least some examples, the threshold is a numerical value representing VREF / 2.
[0047] In operation 510, an internal resistor (e.g., resistor 106) is coupled in parallel with the 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 signal voltage present at input pin 114 to be closer to VREF / 2 than the value of the signal voltage present at input pin 114 at operation 504. In at least some examples, when the first control signal is asserted, a switch receiving the first control signal closes to couple the internal resistor in parallel with resistor 122. Similarly, when the second control signal is asserted, a switch receiving the second control signal closes to couple the internal resistor in parallel with resistor 124.
[0048] In operation 512, the input pin voltage is sampled to generate a VS. In at least some examples, the input pin voltage is sampled by controlling ADC 104 to measure the input pin voltage and generating a VS as a digital representation of the input pin voltage using a channel of ADC 104 coupled to input pin 114. In some examples, control is applied by logic circuit 102 to output a channel selection signal to ADC 104, causing ADC 104 to sample a channel of ADC 104 coupled to input pin 114. In at least some examples, sampling the input pin voltage is a hardware operation that causes ADC 104 to generate a VS based on the analog value present at input pin 114. In at least some examples, the generated digital code is provided by ADC 104 to logic circuit 102 as one or more electrical pulses representing one or more digital bits.
[0049] In operation 514, the resistance of the resistor in voltage divider 120 is calculated. In at least some examples, the resistance is the resistance of the bottom resistor of voltage divider 120 (e.g., resistor 124). In other examples, the resistance is the resistance of resistor 122. In some examples where the internal resistor is coupled in series with resistor 122 at operation 510, the resistance of the resistor is determined according to Equation 1, as described above regarding... Figure 1 As described above. In the example where the internal resistor is coupled in series with resistor 124 at operation 510, the resistance of the resistor is determined according to Equation 2, as also mentioned above. Figure 1The resistance of the resistor is determined by logic circuitry 102 in at least some examples. In at least some examples, logic circuitry 102 stores the resistance of the resistor as an RCODE in a storage element. The storage element may be a register, cache, or any 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 RCODE together accurately provide at least 9 bits of programmability (e.g., at least 511 distinct values) to electrical component 100.
[0050] In operation 516, the device is programmed using settings based on the values of VCODE and RCODE. For example, logic circuit 102 can be programmed itself, or another component of electrical component 100 can be programmed (either through logic circuit 102 or through another component), using specific settings based on VCODE and RCODE. In at least some examples, VCODE and RCODE can be used to control the value of VCODE based on the ratio of the resistance of the top resistor to the bottom resistor of the voltage divider, and together with controlling the resistance value selected for RCODE, to provide selection from at least 511 unique settings.
[0051] Although the operations of Method 500 have been described and labeled with numerical references, in various examples, Method 500 includes additional operations not listed herein. In some examples, any one or more operations listed herein include one or more sub-operations (e.g., intermediate comparisons, logical operations, output selection via multiplexer, format conversion, determination, etc.). In some examples, any one or more operations listed herein are omitted. In some examples, any one or more operations listed herein are performed in an order different from that given herein (e.g., in reverse order, substantially simultaneously, overlapping, etc.). Each of these alternatives falls within the scope of this specification.
[0052] In the foregoing, the terms “comprising” and “including” are used in an open-ended manner and should therefore be interpreted as “including, but not limited to…”. The term “coupled” is used throughout the specification. This term may cover connection, communication, or signal paths that enable a functional relationship consistent with the description herein. For example, if device A generates a signal to control device B to perform an action, then in the first example, device A is coupled to device B; or if intermediate component C substantially does not alter the functional relationship between device A and device B such that device B is controlled by device A via control signals generated by device A, then in the second example, device A is coupled to device B via intermediate component C. A device “configured” to perform a task or function may be configured by the manufacturer at manufacturing time (e.g., programmed and / or hardwired) to perform that function, and / or may be configured (or reconfigured) by the user after manufacturing to perform that function and / or other additional or alternative functions. This configuration may be achieved through firmware and / or software programming of the device, through the construction and / or layout of the device’s hardware components and interconnections, or a combination thereof. Furthermore, it is said that circuits or devices including certain components may alternatively be configured to be coupled to those components to form the described circuit system 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 sources and / or current sources) may alternatively include only semiconductor elements within a single physical device (e.g., a semiconductor die and / or integrated circuit (IC) package), and may be configured to be coupled to at least some of the passive elements and / or sources during or after manufacturing, e.g., by an end user and / or a third party, to form the described structure.
[0053] While certain components are described herein as being made using a specific process technology, these components can be interchanged with components made using other process technologies, and circuitry including the replaced component can be reconfigured to provide at least partially similar functionality to that available before the component replacement. Unless otherwise stated, components shown as resistors generally represent any one or more elements coupled in series and / or parallel to provide the impedance represented by the resistor shown. Furthermore, the phrase “ground voltage potential” includes chassis ground, earth ground, floating ground, virtual ground, digital ground, common ground, and / or any other form of grounding connection suitable for or applicable to the teachings of this specification. Unless otherwise stated, “approximately,” “about,” or “substantially” preceding a numerical value means + / - 10% of the stated value.
[0054] The above description illustrates the principles and various examples of this specification. Once fully understood, many variations and modifications will be apparent to those skilled in the art. This description contains all such variations and modifications.
Claims
1. An integrated circuit, comprising: An analog-to-digital converter (ADC) has an ADC input terminal and an ADC output terminal. A first logic circuit has an input terminal coupled to the output terminal of the ADC, a first output terminal, and a second output terminal; as well as A resistive circuit includes: A resistor having a first terminal coupled to the input of the ADC and a second terminal; A first switch coupled between the second terminal of the resistor and the reference voltage terminal; and A second switch coupled between the second terminal of the resistor and the ground terminal. The integrated circuit is configured as follows: The top resistor of the voltage divider is coupled between the ADC input terminal and the reference voltage terminal, and The bottom resistor of the voltage divider is coupled between the ADC input terminal and the ground terminal.
2. The integrated circuit of claim 1, wherein the first logic circuit is configured to generate a first ADC control signal, and the ADC is configured to determine a first voltage at the ADC input in response to the first ADC control signal.
3. The integrated circuit of claim 2, wherein the first logic circuit is further configured to generate a switch control signal. in, The first switch is configured to couple the resistor between the ADC input and the reference voltage terminal in response to a switch control signal based on the first voltage relative to a threshold. The second switch is configured to couple the resistor between the ADC input and the ground terminal in response to a switch control signal based on the first voltage relative to a threshold.
4. The integrated circuit of claim 3, wherein the first switch is further configured to couple the resistor between the ADC input terminal and the reference voltage terminal when the first voltage is less than the threshold voltage, and The second switch is further configured to couple the resistor between the ADC input terminal and the ground terminal when the first voltage is greater than the threshold.
5. The integrated circuit of claim 3, wherein the first logic circuit is further configured to generate a second ADC control signal, and the ADC is further configured to determine a second voltage at the ADC input in response to the second ADC control signal. in, The second voltage is modified by the coupling between the resistor at the ADC input and one of the terminals of the reference voltage terminal and the ground terminal.
6. The integrated circuit of claim 5, wherein the first logic circuit is further configured to determine the resistance of the element coupled to the ADC input based on the second voltage, the reference voltage at the reference voltage terminal, and the resistance of the resistor.
7. The integrated circuit of claim 6, wherein the first logic circuit is further configured to program settings of the integrated circuit according to the second voltage and the resistance of the element.
8. The integrated circuit according to claim 1 further includes a 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 first logic circuit, and a second input terminal coupled to the third output terminal of the first logic circuit.
9. The integrated circuit of claim 8, wherein the second logic circuit is configured to perform a logical OR operation between the first input terminal of the second logic circuit and the second input terminal of the second logic circuit.
10. An integrated circuit, comprising: An analog-to-digital converter (ADC) has an ADC input terminal, an ADC output terminal, and a control input terminal. A resistor circuit having an input terminal and an output terminal coupled to the input terminal of the ADC, the resistor circuit comprising: A resistor having a first terminal and a second terminal coupled to the input of the ADC, wherein the resistance of the resistor is the resistance of the resistor circuit; A first switch coupled between the first terminal of the resistor and the reference voltage terminal; and A second switch coupled between the first terminal and the ground terminal of the resistor; and A logic circuit having an input coupled to the output of the ADC, a first output coupled to the input of the resistor circuit, and a second output coupled to the control input, the logic circuit being configured as follows: A first ADC control signal is generated at the second output terminal; A control signal is generated at the first output terminal; A second ADC control signal is generated at the second output terminal; and The first resistance at the ADC input is determined at least in part based on the second voltage at the ADC input, the resistance of the resistor circuit, and the reference voltage at the reference voltage terminal. The ADC is configured as follows: In response to the first ADC control signal, and given the presence of the first resistor at the ADC input, a first voltage at the ADC input is determined; and In response to the second ADC control signal, and given the presence of a second resistor at the ADC input, the second voltage is determined, and The resistor circuit is configured to change the first resistor to the second resistor in response to the control signal.
11. The integrated circuit of claim 10, further comprising a voltage divider coupled between the reference voltage terminal and the ground terminal, the voltage divider including a resistor and having an output coupled to the ADC input, wherein the resistor circuit is configured to modify the first resistor into the second resistor in such a way that: In response to the control signal, when the first voltage is less than a threshold, the first switch is controlled to couple the ADC input terminal to the reference voltage terminal; and In response to the control signal, when the first voltage is greater than the threshold, the second switch is controlled to couple the ADC input terminal to the ground terminal. The threshold is approximately half of the reference voltage, and the first resistor is the resistance of the resistor in the voltage divider.
12. An integrated circuit, comprising: An analog-to-digital converter (ADC) has an ADC input terminal, an ADC output terminal, and a control input terminal. A resistor circuit having an input terminal and an output terminal coupled to the input terminal of the ADC, the resistor circuit comprising: A first resistor has a first terminal coupled to the input of the ADC and a second terminal; A first switch is coupled between the second terminal of the first resistor and the reference voltage terminal; The second resistor has a first terminal coupled to the input of the ADC, and a second terminal; A second switch is coupled between the second terminal of the second resistor and the reference voltage terminal; A third resistor has a first terminal coupled to the input of the ADC and a second terminal; A third switch is coupled between the second terminal and the ground terminal of the third resistor; A fourth resistor includes a first terminal coupled to the input of the ADC, and a second terminal; and A fourth switch, coupled between the second terminal of the fourth resistor and the ground terminal, and A logic circuit having an input coupled to the output of the ADC, a first output coupled to the input of the resistor circuit, and a second output coupled to the control input, the logic circuit being configured as follows: A first ADC control signal is generated at the second output terminal; A control signal is generated at the first output terminal; A second ADC control signal is generated at the second output terminal; and The first resistance at the ADC input is determined at least in part based on the second voltage at the ADC input, the resistance of the resistor circuit, and the reference voltage at the reference voltage terminal. The ADC is configured as follows: In response to the first ADC control signal, and given the presence of the first resistor at the ADC input, a first voltage at the ADC input is determined; and In response to the second ADC control signal, and given the presence of a second resistor at the ADC input, the second voltage is determined, and The resistor circuit is configured to change the first resistor to the second resistor in response to the control signal.
13. The integrated circuit of claim 12, further comprising a voltage divider coupled between the reference voltage terminal and the ground terminal, the voltage divider including a resistor and having an output coupled to the ADC input. The first resistor, the second resistor, the third resistor, and the fourth resistor have different resistances from each other. The resistor circuit is further configured to modify the first resistor into the second resistor in the following way: In response to the control signal, based on the first voltage and the resistances of the first resistor, the second resistor, the third resistor, or the fourth resistor, one of the following switches is closed: the first switch, the second switch, the third switch, or the fourth switch. The first resistor is the resistance of the resistor in the voltage divider.
14. An integrated circuit, comprising: An analog-to-digital converter (ADC) has an ADC input terminal, an ADC output terminal, and a control input terminal. A resistor circuit having an input terminal and an output terminal coupled to the input terminal of the ADC, the resistor circuit comprising: A resistor having a first terminal coupled to the input of the ADC, and a second terminal; and A voltage source, coupled between the second terminal of the resistor and the input terminal of the resistor circuit; and A logic circuit having an input coupled to the output of the ADC, a first output coupled to the input of the resistor circuit, and a second output coupled to the control input, the logic circuit being configured as follows: A first ADC control signal is generated at the second output terminal; A control signal is generated at the first output terminal; A second ADC control signal is generated at the second output terminal; and The first resistance at the ADC input is determined at least in part based on the second voltage at the ADC input, the resistance of the resistor circuit, and the reference voltage at the reference voltage terminal. The ADC is configured as follows: In response to the first ADC control signal, and given the presence of the first resistor at the ADC input, a first voltage at the ADC input is determined; and In response to the second ADC control signal, and given the presence of a second resistor at the ADC input, the second voltage is determined, and The resistor circuit is configured to change the first resistor to the second resistor in response to the control signal.
15. The integrated circuit of claim 14, further comprising a voltage divider coupled between the reference voltage terminal and the ground terminal, the voltage divider including a resistor and having an output coupled to the input of the ADC. The resistor circuit is configured to modify the first resistor to the second resistor by controlling the output voltage of the voltage source based on the first voltage, and The first resistor is the resistance of the resistor in the voltage divider.
16. An electrical system comprising: Programmable electrical components, including: An analog-to-digital converter (ADC) has an ADC input terminal, an ADC output terminal, and a control input terminal. A resistor circuit having an input terminal and an output terminal coupled to the input terminal of the ADC; and A logic circuit having an input coupled to the output of the ADC, a first output coupled to the input of the resistor circuit, and a second output coupled to the control input, the logic circuit being configured as follows: A first ADC control signal is generated at the second output terminal; A control signal is generated at the first output terminal; A second ADC control signal is generated at the second output terminal; and The first resistance at the ADC input is determined at least in part based on the second voltage at the ADC input, the resistance of the resistor circuit, and the reference voltage at the reference voltage terminal; and A voltage divider, coupled between the reference voltage terminal and the ground terminal, has an output terminal coupled to the ADC input. The ADC is configured as follows: In response to the first ADC control signal, a first voltage at the ADC input terminal having the first resistor is determined; and In the presence of a second resistor at the ADC input, the second voltage is determined, and The resistor circuit is configured to change the first resistor to the second resistor in response to the control signal.
17. The system of claim 16, wherein the voltage divider comprises a top resistor and a bottom resistor, and, in, The programmable electrical component can be programmed into one of at least 511 configurations via the following: Modifying the ratio of the resistance of the top resistor to the resistance of the bottom resistor to control the first voltage; and Control the resistance of the voltage divider.
18. The system of claim 16, wherein the logic circuit is further configured to determine the first resistor based on the reference voltage, the voltage at the ADC input when the resistor circuit is inactive, the voltage at the ADC input when the resistor circuit is coupled to a signal path between the ADC input and the reference voltage terminal or to a signal path between the ADC input and the ground terminal, and the resistance of the resistor circuit.
Citation Information
Patent Citations
Active interface resistance modulation switch
US20180158814A1
Method and apparatus for automatically selecting a plurality of modes for programmable interface circuit by coupling field devices to process controllers
US8656065B1
