Many sense circuits rely on resistors, where the sense operations depend on the value of the resistor. If the value of a resistor changes over time, the accuracy of the sense operations decreases. Polysilicon high-sheet resistance (HSR) resistors are one example of on-chip resistor. The resistance of polysilicon HSR resistors is subject to change (e.g., up to 1%) due to aging, accelerated by temperature. For some sense applications, such changes may be unacceptable.
In an example, a system includes: a drift sense circuit; and a driver calibration controller. The drift sense circuit has an input terminal, an output terminal, and a ground terminal. The drift sense circuit includes: a resistor having a first terminal and a second terminal, the first terminal of the resistor coupled to the input terminal; and a reference component having a first terminal and a second terminal, the second terminal of the reference component coupled to the ground terminal. The drift calibration controller is coupled to the output terminal of the drift sense circuit. The drift calibration controller is configured to: obtain a sense signal responsive to an input voltage applied to the input terminal; determine a drift result of the resistor responsive to the sense signal; and update a control operation responsive to the drift result.
In another example, a circuit includes: a first switch; a metal capacitor; a second switch; a first resistor; a second resistor; and a third resistor. The first switch has a first terminal, a second terminal, and a control terminal. The metal capacitor has a first terminal and a second terminal. The first terminal of the metal capacitor is coupled to the second terminal of the first switch. The second switch has a first terminal, a second terminal, and a control terminal. The first terminal of the second switch is coupled to the second terminal of the first switch and to the first terminal of the metal capacitor. The first resistor has a first terminal and a second terminal. The first terminal of the first resistor is coupled to the second terminal of the second switch. The second resistor has a first terminal and a second terminal. The first terminal of the second resistor is coupled to the first terminal of the first switch. The third resistor has a first terminal and a second terminal. The first terminal of the third resistor coupled to the second terminal of the second resistor.
In yet another example, a circuit includes: a first switch; a metal capacitor; a second switch; a first resistor; a second resistor; and a third resistor; a second capacitor; a fourth resistor; a third capacitor; a first buffer circuit; and a second buffer circuit. The first switch has a first terminal, a second terminal, and a control terminal. The metal capacitor has a first terminal and a second terminal. The first terminal of the metal capacitor is coupled to the second terminal of the first switch. The second switch has a first terminal, a second terminal, and a control terminal. The first terminal of the second switch is coupled to the second terminal of the first switch and to the first terminal of the metal capacitor. The first resistor has a first terminal and a second terminal. The first terminal of the first resistor is coupled to the second terminal of the second switch. The second resistor has a first terminal and a second terminal. The first terminal of the second resistor is coupled to the first terminal of the first switch. The third resistor has a first terminal and a second terminal. The first terminal of the third resistor coupled to the second terminal of the second resistor. The second capacitor has a first terminal and a second terminal. The first terminal of the second capacitor is coupled to the first terminal of the first resistor. The fourth resistor has a first terminal and a second terminal. The first terminal of the fourth resistor is coupled to the first terminal of the first resistor. The third capacitor has a first terminal and a second terminal. The first terminal of the third capacitor is coupled to the second terminal of the fourth resistor. The first buffer circuit has a first terminal and a second terminal. The first terminal of the first buffer circuit is coupled to the second terminal of the fourth resistor and to the first terminal of the third capacitor. The second buffer circuit has a first terminal and a second terminal. The first terminal of the second buffer circuit is coupled to the second terminal of the second resistor and to the first terminal of the third resistor.
The same reference numbers or other reference designators are used in the drawings to designate the same or similar features. Such features may be the same or similar either by function and/or structure.
In the example of
The driver circuit 102 operates to: receive VDD at its first terminal 104; receive PWM_IN at its second terminal 106; receive a control signal (CS2) at its third terminal 107; provide a first output voltage (VOUTP) at its fourth terminal 108 responsive to VDD as well as PWM_IN or CS2; and provide a second output voltage (VOUTN1) at its fifth terminal 110 responsive to VDD as well as PWM_IN or CS2. In the example of
The load 112 operates to: receive VOUTP at its first terminal 114; receive VOUTN2 at its second terminal 116; and perform load operations responsive to VOUTP and VOUTN2. In some examples, the load 112 is a speaker, where VOUTP and VOUTN2 control the volume of the speaker.
During some calibration intervals, the test circuit 118 operates to: receive a test voltage (VTEST) at its third terminal 124; receive a control signal (CS1) at its fourth terminal 125; provide VTEST at its first terminal 120 responsive to CS1; and provide VTEST at its second terminal 122 responsive to CS1. During calibration intervals involving VTEST and the test circuit 118, the voltage at the first terminal of the sense resistor RSNS is referred to herein as VTS1 and the voltage at the second terminal of the sense resistor RSNS is referred to herein as VSNS2.
During normal operations (e.g., outside of calibration intervals), the current sense circuit 130 operates to: receive VSNS1 at its first terminal 131; receive VSNS2 at its second terminal 132; and provide a current sense signal (Isense) at its fifth terminal 135 responsive VSNS1 and VSNS2. If a calibration was previously performed and a calibration control signal (CAL_CS) was previously received at its third terminal 133 of the current sense circuit 130, Isense is also based on CAL_CS. During calibration intervals that use the driver circuit 102, the current sense circuit 130 operates to: receive VSNS1 at its first terminal 131; receive VSNS2 at its second terminal 132; and provide first sense results (SR1) at its fifth terminal 135 responsive to VSNS1, VSNS2, and CAL_CS (if a calibration was performed previously). During calibration intervals that use the test circuit 118, the current sense circuit 130 operates to: receive VTS1 at its first terminal 131; receive VTS2 at its second terminal 132; and provide second sense results (SR2) at its fifth terminal 135 responsive to VTS1, VTS2, and CAL_CS (if a calibration was performed previously).
The calibration controller 138 operates to: provide CS1 at its second terminal 141 for calibration intervals that use the driver circuit 102; receive SR1 at its first terminal 140 during calibration intervals that use the driver circuit 102; provide CS2 at its fourth terminal 143 for calibration intervals that use the test circuit 118; receive SR2 at its first terminal 140 during calibration intervals that use the test circuit 118; and provide CAL_CS at its third terminal 142 responsive to SR1 and SR2. In some examples, operations of the calibration controller 138 may also be responsive to Isense from the current sense circuit 130. In some examples, during calibration intervals that use the driver circuit 102, CS2 controls switches of the driver circuit 102 so that a voltage based on VDD is applied to the sense resistor RSNS. During calibration intervals that use the test circuit 118, CS1 control switches of the test circuit 118 so that a voltage based on VTEST is applied to the sense resistor RSNS. In some examples, the calibration controller 138 may provide additional control signals to the test circuit 118 and/or the driver circuit 102 to control calibration operations using the test circuit 118 and/or the driver circuit 102.
The switch controller 144 operates to: receive Isense at its first terminal 146; receive CS_IN at its second terminal(s) 147; and provide PWM_IN at its third terminal 148 responsive to Isense and CS_IN. In some examples, CS_IN may include an audio signal input, a test-mode parameter to test the driver switch resistances, control signals from the calibration controller 138 to control the switch controller 144 during calibration intervals, and/or other control signals. In some examples, the switch controller 144 uses Isense to: estimate a resistivity and/or temperature of the load 112; and adjust PWM_IN responsive to the estimated resistivity and/or temperature.
The driver circuit 102A has the first terminal 104, the second terminal 106, the third terminal 107, the fourth terminal 108, and the fifth terminal 110. The speaker 112A has the first terminal 114 and the second terminal 116. The test circuit 118A has the first terminal 120, the second terminal 122, the third terminal 124, and the fourth terminal 125. The current sense circuit 130A has the first terminal 131, the second terminal 132, the third terminal 133, the fourth terminal 134, and the fifth terminal 135. The calibration controller 138A has the first terminal 140, the second terminal 141, the third terminal 142, and the fourth terminal 143.
In the example of
In the example of
In the example of
In the example of
In the example of
As shown, the first terminal 104 of the driver circuit 102A is coupled to the VDD source (not shown). The second terminal 106 of the driver circuit 102A is coupled to the third terminal 148 of the switch controller 144. The third terminal 107 of the driver circuit 102A is coupled to the fourth terminal 143 of the calibration controller 138A. The fourth terminal 108 of the driver circuit 102A is coupled to the first terminal 114 of the speaker 112A and to the first terminal 120 of the test circuit 118A. The fifth terminal 110 of the driver circuit 102A is coupled to the first terminal of the sense resistor RSNS, the second terminal 122 of the test circuit 118A, and the first terminal 131 of the current sense circuit 130A. The second terminal of the sense resistor RSNS is coupled to the second terminal 116 of the speaker 112A and to the second terminal 132 of the current sense circuit 130A. The third terminal 124 of the test circuit 118A is coupled to a VTEST source (not shown). The fourth terminal 125 of the test circuit 118A is coupled to the second terminal 141 of the calibration controller 138. The third terminal 133 of the current sense circuit 130A is coupled to the third terminal 142 of the calibration controller 138A. The fourth terminal 134 of the current sense circuit 130A is coupled to the first terminal 140 of the calibration controller 138A. The fifth terminal 135 of the current sense circuit 130A is coupled to the first terminal 146 of the switch controller 144. The second terminal(s) 147 of the switch controller 144 is coupled to a CS_IN source (not shown).
The first terminal 104 of the driver circuit 102A is coupled to the first terminals of the transistors N1 and N2. The second terminal of the transistor N1 is coupled to the first terminal of the transistor N3 and to the fourth terminal 108 of the driver circuit 102A. The second terminal of the transistor N3 is coupled to a ground terminal or ground. The second terminal of the transistor N2 is coupled to the first terminal of the transistor N4 and to the fifth terminal 110 of the driver circuit 102A. The second terminal of the transistor N4 is coupled to a ground terminal or ground. In some examples, the control terminals of the transistors N1, N2, N3, and N4 are controlled based on one or more PWM schemes. In one example, the control terminals of the transistors N1 and N4 are coupled to the second terminal 106 of the driver circuit 102 for control by PWM_IN. In this example, the control terminals of the transistors N2 and N3 are coupled to a PWM_INZ source (e.g., the output of an inverter coupled to the second terminal 106 of the driver circuit 102). In other examples, the control of the transistors N1 to N4 may vary.
The third terminal 124 of the test circuit 118A is coupled to the first terminals of the transistors N5 and N6. The second terminal of the transistor N5 is coupled to the first terminal 120 of the test circuit 118A. The second terminal of the transistor N6 is coupled to the second terminal 122 of the test circuit 118A. In some examples, the control terminals of the transistors N5 and N6 are coupled to the fourth terminal 125 of the test circuit 118A.
Regarding the current sense circuit 130A, the first terminal 131 of the current sense circuit 130A is coupled to the first terminal of the resistor R1. The second terminal of the resistor R1 is coupled to the first terminal of the resistor TR1 and to the first terminal 202 of the operational amplifier 201. The second terminal of the resistor TR1 is coupled to the third terminal 226 of the input common-mode regulating amplifier 220. The first terminal 202 of the operational amplifier 201 is also coupled to the first terminal of the resistor R6 and to the first terminal of the resistor R7. The second terminal of the resistor R6 is coupled to the third terminal 206 of the operational amplifier 201. The second terminal of the resistor R7 is coupled to the first terminal of the switch S1. The second terminal of the switch S1 is coupled to the fourth terminal 208 of the operational amplifier 201.
In some examples, the control terminal of the switch S1 is coupled to the calibration logic 230. In such examples, the calibration logic 230 may turn off (e.g., open) the switch S1 during calibration intervals to increase the gain of the operational amplifier 201 and thereby improve current sense trim resolution. During normal operations, the switch S1 may be turned on (e.g., closed), which provides a target gain for the operational amplifier 201. In this example, the target gain for the operational amplifier 201 during normal current sense operations is less than the gain of the operational amplifier 201 during calibration intervals.
The second terminal 132 of the current sense circuit 130A is coupled to the first terminal of the resistor R2. The second terminal of the resistor R2 is coupled to the first terminal of the resistor TR2 and to the second terminal 204 of the operational amplifier 201. The second terminal of the trimmable resistor TR2 is coupled to the third terminal 226 of the input common-mode regulating amplifier 220. The second terminal 204 of the operational amplifier 201 is also coupled to the first terminal of the resistor R9 and to the first terminal of the resistor R10. The second terminal of the resistor R9 is coupled to the fourth terminal 208 of the operational amplifier 201. The second terminal of the resistor 10 is coupled to the first terminal of the switch S2. The second terminal of the switch S2 is coupled to the fourth terminal 208 of the operational amplifier 201.
In some examples, the control terminal of the switch S2 is coupled to the calibration logic 230. In such examples, the calibration logic 230 may turn off (e.g., open) the switch S2 during calibration intervals to increase the gain of the operational amplifier 201 and thereby improve current sense trim resolution. During normal operations, the switch S2 may be turned on (e.g., closed), which provides a target gain for the operational amplifier 201. In this example, the target gain for the operational amplifier 201 during normal current sense operations is less than the gain of the operational amplifier 201 during calibration intervals. In the example of
Regarding the calibration controller 138A, the first terminal 232 of the calibration logic 230 is coupled to the first terminal 140 of the calibration controller 138A. The second terminal 234 of the calibration logic 230 is coupled to the first terminal 242 of the gate control logic 240. The third terminal 236 of the calibration logic 230 is coupled to the first terminal 252 of the trim controller 250. The second terminal 244 of the gate control logic 240 is coupled to the second terminal 141 of the calibration controller 138A. The second terminal 254 of the trim controller 250 is coupled to the third terminal 142 of the calibration controller 138A. The third terminal 245 of the gate control logic 240 is coupled to the fourth terminal 143 of the calibration controller 138A.
The driver circuit 102A operates to: receive VDD at its first terminal 104; receive PWM_IN at its second terminal 106; received CS2 at its third terminal 107; provide VOUTP at its fourth terminal 108 responsive to VDD, PWM_IN or CS2, and the operations of the transistors N1 to N4; and provide VOUTN1 at its fifth terminal 110 responsive to VDD, PWM_IN or CS2, and the operations of the transistors N1 to N4. In some examples, PWM_IN is used to control N1 and N4, and an inverse control signal (PWM_INZ) derived from PWM_IN is used to control N2 and N3. In other examples, the control scheme for the transistors N1 to N4 may vary. During normal operations PWM_IN (and/or related signals such as the inverse of PWM_IN) is used to control the transistors N1 to N4 of the driver circuit 102A. During some calibration operations, CS2 (and/or related signals such as the inverse of PWM_IN) is used to control the transistors N1 to N4 of the driver circuit 102A. In some examples, CS2 enables switch control operations similar to PWM_IN. In the example of
The speaker 112A operates to: receive VOUTP at its first terminal 114; receive VOUTN2 at its second terminal 116; and perform speaker operations responsive to VOUTP and VOUTN2. In some examples, VOUTP and VOUTN2 control the volume of the speaker 112A.
During some calibration intervals, the test circuit 118A operates to: receive VTEST at its third terminal 124; receive CS1 at its fourth terminal 125; provide VTEST at its first terminal 120 responsive to CS1 and the operation of the transistor N6; and provide VTEST at its second terminal 122 responsive to CS1 and the operation of the transistor N5. During calibration intervals that use the test circuit 118A, the voltage at the first terminal of the sense resistor RSNS is referred to herein as VTS1 and the voltage at the second terminal of the sense resistor RSNS is referred to herein as VSNS2.
During normal operations, the current sense circuit 130A operates to: receive VSNS1 at its first terminal 131; receive VSNS2 at its second terminal 132; and provide Isense at its fifth terminal 135 responsive VSNS1 and VSNS2. In some examples, the current sense circuit 130 operates to: amplify the differential signal generated across the sense resistor RSNS; and shift the differential signal from a high-voltage domain to low-voltage domain for compatibility with other circuitry such as the ADC 210.
During normal operations (e.g., outside of calibration intervals), the current sense circuit 130A operates to: receive VSNS1 at its first terminal 131; receive VSNS2 at its second terminal 132; and provide Isense at its fifth terminal 135 responsive VSNS1 and VSNS2. If a calibration was previously performed and CAL_CS was previously received at its third terminal 133 of the current sense circuit 130A, Isense is also based on CAL_CS. During calibration intervals that use the driver circuit 102A, the current sense circuit 130A operates to: receive VSNS1 at its first terminal 131; receive VSNS2 at its second terminal 132; and provide SR1 at its fifth terminal 135 responsive to VSNS1, VSNS2, and CAL_CS if available). During calibration intervals that use the test circuit 118, the current sense circuit 130 operates to: receive VTS1 at its first terminal 131; receive VTS2 at its second terminal 132; and provide SR2 at its fifth terminal 135 responsive to VTS1, VTS2, and CAL_CS (if available).
During some calibration intervals, the current sense circuit 130A operates to: receive VSNS1 at its first terminal 131; receive VSNS2 at its second terminal 132; provide SR1 at its fifth terminal 135 responsive to VSNS1, VSNS2, the operations of the voltage divider formed by the resistor R1 and the trimmable resistor TR1, the operations of the voltage divider formed by the resistor R2 and the trimmable resistor TR2, the operations of the operational amplifier 201, the operations of the feedback loops formed using the resistors R8, R7, and the switch S1, the operations of the feedback loops formed using the resistors R10, R9, and the switch S2, and the operations of the ADC 210. During other calibration intervals, the current sense circuit 130A operates to: receive VTS1 at its first terminal 131; receive VTS2 at its second terminal 132; and provide SR2 at its fifth terminal 135 responsive to VTS1, VTS2, the operations of the voltage divider formed by the resistor R1 and the trimmable resistor TR1, the operations of the voltage divider formed by the resistor R2 and the trimmable resistor TR2, the operations of the operational amplifier 201, the operations of the feedback loops formed using the resistors R8, R7, and the switch S1, the operations of the feedback loops formed using the resistors R10, R9, and the switch S2, and the operations of the ADC 210.
The resistors R5 and R6, and the input common-mode regulating amplifier 220 operate to perform common-mode rejection operations. Example common-mode rejection operations involve regulating the voltage at the first terminal 202 and the second terminal 204 of the operational amplifier 201 so that the operational amplifier 201 is not affected by common-mode changes at the first terminal 131 and the second terminal 132 of the current sense circuit 130A. The resistor R5 and R6 carry the common-mode current flowing through the first terminal 131 and the second terminal 132 of the current sense circuit 130A for regulation by the input common-mode regulating amplifier 220.
The calibration controller 138A operates to: provide CS1 at its second terminal 141 for calibration intervals that use the driver circuit 102; receive SR1 at its first terminal 140 during calibration intervals that use the driver circuit 102A; provide CS2 at its fourth terminal 143 for calibration intervals that use the test circuit 118A; receive SR2 at its first terminal 140 during calibration intervals that use the test circuit 118A; and provide CAL_CS at its third terminal 142 responsive to SR1, SR2, the operations of the calibration logic 230, and the operations of the trim controller 250. In some examples, the calibration logic 230 operates to control VOUTP and VOUTN1 during the calibration phases using the gate control logic 240. The trim controller 250 operates to: receive control signals at its first terminal 252; and provide CAL_CS at its second terminal 254 responsive to the control signals. In some examples, operations of the calibration controller 138A may also be responsive to Isense from the current sense circuit 130A. In some examples, during calibration intervals that use the driver circuit 102A, CS2 controls switches of the driver circuit 102A so that a voltage based on VDD is applied to the sense resistor RSNS. During calibration intervals that use the test circuit 118A, CS1 controls switches of the test circuit 118 so that a voltage based on VTEST is applied to the sense resistor RSNS. In some examples, the calibration controller 138A may provide additional control signals to the test circuit 118A and/or the driver circuit 102A to control calibration operations using the test circuit 118A and/or the driver circuit 102A.
The switch controller 144 operates to: receive Isense at its first terminal 146; receive CS_IN at its second terminal(s) 147; and provide PWM_IN at its third terminal 148 responsive to Isense and CS_IN. In some examples, CS_IN may include an audio input, a test-mode parameter to test the driver switch resistances, control signals from the calibration controller 138A to control the switch controller 144 during calibration intervals, and/or other control signals. In some examples, the switch controller 144 uses Isense to: estimate a resistivity and/or temperature of the speaker 112A; and adjust PWM_IN responsive to the estimated resistivity and/or temperature.
In some examples, current sense circuit calibration involves: obtaining Isense measurements with and without a common-mode signal; and trimming resistors of the current sense circuit so that the effect of the common-mode signal on Isense measurements is as close to zero as possible. If current sense circuit calibration is only performed once and/or is performed before integrated circuit (IC) packaging and installation, the calibration may not achieve or maintain the target CMRR. In the described examples, current sense circuit calibration may be performed after IC packaging and installation, and/or may be performed periodically to achieve or maintain the target CMRR. In some examples, current sense circuit calibration obtains Isense measurements based on VDD and VTEST (e.g., SR1 and SR2 in
In the example of
In some examples, calibration of the current sense circuit 130B involves trimming mismatches in the input resistors (R1 and R2) and the common-mode resistors (R3 and R4) based on adjustments to the trimmable resistors TR3 and TR4. In some examples, the output of the input common-mode regulating amplifier 220 is a scaled-down and inverted version of ISNS common-mode, which is provided to the fifth terminal 428 of the trimmable resistor TR4 to control switches of the trimmable resistor TR4. In the example of
In the example of
For calibration intervals based on VDD and related common-mode sensing (sometimes referred to herein as second calibration intervals), the fourth terminal 108 and the fifth terminal 110 of the driver circuit 102A are pulled to VDD through the high-side transistors N1 and N3, while the transistors N5 and N6 of the test circuit 118A are turned off. Since the fourth terminal 108 and the fifth terminal 110 of the driver circuit 102A are pulled to same voltage, there is zero current flowing through sense resistor RSNS. Accordingly, the differential input to the current sense circuit 130A is zero. With VDD applied to the fourth terminal 108 and the fifth terminal 110 of the driver circuit 102A, there is a VCM equal to VDD-VTEST applied across the input resistors R1 and R2. Due to mismatches in the input resistors (R1 and R2) and the common-mode resistors (R3 and R4) of the current sense circuit 130A, VCM during the second calibration interval results in some additional common-mode error (VCM_error) in VOUT of the operational amplifier 201. In other words, the result of the second calibration interval is VOUT=Vos+VCM_error=SR2.
The difference between SR2−SR1=VCM_error is determined by the calibration controller 138A. Based on VCM_error, the trimmable resistors (e.g., the trimmable resistor(s) 136 in
In some examples, VTEST=1.2V, while VDD may be 2.4V or more. During the trim routine, the feedback resistor value (R7, R8, R9, R10 in
In some examples, the trim range is of total 12-bits, but package stress shift is expected to only affect the final 6-bits. In such examples, a binary-search to determine the trim code is run on only the last 6-bits, and the first 6-bits are kept unchanged from a previously determined trim code. If package stress shift is greater than the 6 LSBs, a range correction may be performed if the output voltage of the operational amplifier 201 changes due to VCM_error by more than a threshold. In such examples, the trim range may be adjusted in either direction (e.g., by 2-bits in either direction). After the trim search is complete, a pass/fail check is conducted again checking for VCM_error. If the resulting VCM_error is less than a predetermined threshold, the trim search has passed. Otherwise, the trim search has failed. In some examples, the threshold used for pass/fail determination may be scaled based on VDD. In some examples, the pass/fail status is updated as a bit that can be monitored via a user interface. In some examples, the trim routine may take about 1 ms to complete.
The coarse trim portion 504 of the method 500 includes a bypass MSB correction determination (block 526). If MSB correction is not bypassed (block 526), a correction factor (n) is set to
at block 528, where “round” refers to the floor function of REF1 minus REF2 (i.e., the largest integer lower than the value calculated), and MSB_LIMIT is a threshold based on VDD. At block 530, an MSB_CODE is set to MSB_CODE+ErrorSign*n, where ErrorSign is the direction of coarse correction, and n is a coarse correction code. At block 532, VCM is set to VTEST. At block 534, the method 500 waits for the first waiting interval. At block 536, a first SAR value (REF1) is determined responsive to VTEST being set to VCM. At block 538, VCM is set to VDD. At block 540, the method 500 waits for the second waiting interval. At block 542, a second SAR value (REF2) is determined responsive to VCM being set to VDD.
The fine trim portion 506 includes updating a least-significant bit (LSB) trim coefficient at block 544. At block 546, the method 500 waits the second waiting interval. At block 548, a SAR binary search measurement is performed. If the fine trim routine is not complete (block 550), the method 500 returns to block 544. If the fine trim routine is complete (block 550), the method 500 proceeds to the error check portion 508.
In some examples, the error check portion 508 includes a bypass final error check option (block 552). If the final error check is bypassed (block 552), the method 500 ends. If the final error check is not bypassed (block 552), a third SAR value (REF3) is determined at block 554. At block 556, VCM is set to VTEST. At block 558, the method 500 waits for the first waiting interval. At block 560, a fourth SAR value (REF4) is determined responsive to VCM being set to VTEST. If REF4−REF3 is less than an LSB limit (block 562), the method 500 ends at block 566. If REF4−REF3 is not less than the LSB limit (block 562), an error flag is raised at block 564 and the method ends at block 566.
The calibration process may start with an initial trim code for trimmable resistors (e.g., the trimmable resistor(s) 136 in
After the second waiting interval, SR1 and SR2 are used to determine VCM_error, and CM_TRIM is adjusted until VCM_error is negligible. After CM_TRIM is adjusted and after a settling interval for ADC readout, the calibration operations include performing the second calibration interval again to obtain SR2 based on the updated trim code and application of VDD to the sense resistor RSNS. If SR2 indicates VCM_error has been reduced to below a threshold, the calibration process is complete. Otherwise, further calibration operations may be used to adjust and test trim codes until SR2 for a given trim code indicates VCM_error is below the threshold when VDD is applied to the sense resistor RSNS.
After deployment, an IC device may benefit from recalibration due to die-stress issues. Example deployment of the IC device may include soldering the IC device to a customer PCB. At block 718, post-deployment calibration is requested. In some examples, post-deployment calibration is requested in response to each power-up cycle, a hardware reset, a schedule, and/or a calibration trigger. In response, controller initialization and configuration of the related circuit are performed at block 720. At block 722, the controller requests current sense calibration at block 724. In the example of
As shown, the driver circuit 102A, the test circuit 118A, the calibration controller 138B, and the switch controller 144 have the same terminals described in
In the example of
The first terminal 842 of the LPF 840 is coupled to the third terminal 206 of the operational amplifier 201. The second terminal 844 of the LPF 840 is coupled to the fourth terminal 208 of the operational amplifier 201. The third terminal 846 of the LPF 840 is coupled to the fourth terminal 848 of the current sense circuit 130C.
The first terminal of the calibration resistor RCAL is coupled to the first terminal 804 of the drift sense circuit 802. The second terminal of the calibration resistor RCAL is coupled to the second terminal 806 of the drift sense circuit 802. The first terminal 814 of the multiplexer 812 is coupled to fourth terminal 848 of the current sense circuit 130C. The second terminal 816 of the multiplexer 812 is coupled to the third terminal 808 of the drift sense circuit 802. The third terminal 818 of the multiplexer 812 is coupled to the fourth terminal 810 of the drift sense circuit 802. The fourth terminal 820 of the multiplexer is coupled to a control signal (CS2) source (not shown). The fifth terminal 822 of the multiplexer 812 is coupled to the first terminal 830 of the SAR ADC 828. The second terminal 832 of the SAR ADC 828 is coupled to the first terminal 140 of the calibration controller 138B.
In some examples, the drift sense circuit 802 operates to: obtain calibration resistor sense results responsive to applying a voltage to the calibration resistor RCAL; and provide the calibration resistor sense results to the calibration controller 138B via the multiplexer 812 and the SAR ADC 828.
In some examples, the drift sense circuit 802 includes a ratiometric circuit having a first sense path and a second sense path, where the calibration resistor RCAL is part of the first sense path. In such examples, the drift sense circuit 802 operates to obtain calibration resistor sense results responsive to applying a voltage to the first sense path and the second sense path. In the example of
In the example of
When an input calibration voltage (VIN_CAL) is applied at the IN terminal, the voltage divider formed by the calibration resistor RCAL and the fixed value resistor Rfixed provides an output calibration voltage (VOUT_CAL) proportional to VIN_CAN and the values of the calibration resistor RCAL and the fixed value resistor Rfixed. For example, if the value of the calibration resistor RCAL and the fixed value resistor Rfixed are the same, VOUT_CAL is approximately half of VIN_CAL. Because drift in the value of the fixed value resistor Rfixed is negligible over time, any change in VOUT_CAL responsive to VIN_CAL may be assumed to be due to drift in the value of the calibration resistor RCAL.
In the calibration resistor arrangement 1010 of
When VIN_CAL is applied at the IN terminal, the voltage divider formed by the switched capacitor and calibration resistor RCAL provides an output calibration voltage VOUT_CAL proportional to VIN_CAN and the resistive values of the switched capacitor and the calibration resistor RCAL. For example, if the resistive value of the switched capacitor and the calibration resistor RCAL are the same, VOUT_CAL is approximately half of VIN_CAL. Because drift in the value of the resistive value of the switched capacitor is negligible over time, any change in VOUT_CAL responsive to VIN_CAL may be assumed to be due to drift in the value of the calibration resistor RCAL.
In the calibration resistor arrangement 1100 of
When an input pulse 1120 is applied at the IN terminal, the RC circuit formed by the calibration resistor RCAL and the fixed value capacitor Cfixed provides a rising voltage at the first terminal 1114 of the comparator 1112. The rise time of the rising voltage at the first terminal 1114 of the comparator 1112 is a function of the values of the calibration resistor RCAL and the fixed value capacitor Cfixed. When the rising voltage at the first terminal 1114 of the comparator reaches the value of VTH at the second terminal 1116 of the comparator, a compare result signal 1122 is asserted at the third terminal 1118 of the comparator. The delay between the input pulse 1120 and the compare result signal 1122 is proportional to the value the calibration resistor RCAL. Because drift in the value of the fixed value capacitor Cfixed is negligible over time, any change in the delay between the input pulse 1120 and the compare result signal 1122 may be assumed to be due to drift in the value of the calibration resistor RCAL.
As shown, the ratiometric measurement circuit 1201 has a first terminal 1202, a second terminal 1203, and a third terminal 1204. In some examples, the ratiometric measurement circuit 1201 includes the calibration resistor arrangement 1130, a first capacitor Cfilt, a resistor Rlpf, a capacitor Clpf, resistors R30 and R31, a first buffer circuit 1206, and a second buffer circuit 1212. The calibration resistor arrangement 1130, the first capacitor Cfilt, the resistor Rlpf, the capacitor Clpf, and the first buffer circuit 1206 form a first sense path of the ratiometric measurement circuit 1201. The resistors R30 and R31, and the second buffer circuit 1212 form a second sense path of the ratiometric measurement circuit 1201. The calibration resistor arrangement 1130 includes the switched capacitor and the calibration resistor RCAL described in
In the example of
In the example of
The first terminal 1202 of the ratiometric measurement circuit 1201 is also coupled to the first terminal of the resistor R30. The second terminal of the resistor R30 is coupled to the first terminal of the resistor R31 and to the first terminal 1214 of the second buffer circuit 1212. The second terminal of the resistor R31 is coupled to a ground terminal or ground. The second terminal 1216 of the second buffer circuit 1212 is coupled to the third terminal 1204 of the ratiometric measurement circuit 1201.
In the example of
The first terminal 1246 of the divider 1244 is coupled to the first terminal 1234 of the drift calibration controller 1232. The second terminal 1248 of the divider 1244 is coupled to the second terminal 1236 of the drift calibration controller 1232. The third terminal 1250 of the divider 1244 is coupled to the first terminal 1254 of the averager 1252. The second terminal 1256 of the averager 1252 is coupled to the first terminal 1260 of the drift calculator 1258. The second terminal 1262 of the drift calculator 1258 is coupled to the terminal 1268 of the OTP register 1266. The third terminal 1264 of the drift calculator 1258 is coupled to the first terminal 1272 of the Isense gain controller 1270. The second terminal 1274 of the Isense gain controller 1270 receives Isense. The third terminal 1276 of the Isense gain controller 1270 provides an updated Isense signal (Isense*). In some examples, the drift calibration controller 1232 includes an additional terminal to receive Isense from another circuit such as a current sense circuit. In some examples, the drift calibration controller 1232 includes an additional terminal to provide Isense* to other circuitry.
In some examples, the ratiometric measurement circuit 1201 operates to: receive VIN_CAL at its first terminal 1202; provide first sense result M1 at its second terminal 1203 responsive to the operations of the calibration resistor arrangement 1130, the capacitor Cfilt, the resistor Rlpf, the capacitor Clpf, and the first buffer circuit 1206; and provide second sense result M2 at its third terminal 1204 responsive to the resistors R30 and R31, and the operations of the second buffer circuit 1212. In some examples, the values for the capacitor Cfilt, the resistor Rlpf, and the capacitor Clpf are selected to eliminate high-frequency switching noise introduced by the switch S7 and/or the switch S8. The first buffer circuit 1206 operates to adjust the voltage level and/or current level of M1. The second buffer circuit 1212 operates to adjust the voltage level and/or current level of M2.
The ADC 1222 operates to: receive M1 at its first terminal 1224; receive M2 at its second terminal 1226; provide a digitized version of M1 (M1_dig) at its third terminal 1228 responsive to M1; and provide a digitized version of M2 (M2_dig) at its fourth terminal 1230 responsive to M2.
The drift calibration controller 1232 operates to: receive M1_dig at its first terminal 1234; receive M2_dig at its second terminal 1236; receive Isense; and provide Isense* responsive to M1_dig, M2_dig, and Isense. In some examples, the divider 1244 of the drift calibration controller 1232 operates to: receive M1_dig at its first terminal 1246; receive M2_dig at its second terminal 1248; and provide a division result (e.g., M2_dig/M1_dig) responsive to M1_dig and M2_dig. In some examples, the averager 1252 operates to: receive N samples of the division result from the divider 1244; and provide an averaged division result based on the N samples of the division result. The OTP register 1266 operates to: store an initial division result based on an initial calibration; and provide the initial division result upon request to the drift calculator 1258.
The drift calculator 1258 operates to: receive the averaged division result (i.e., the average M2/M1 over multiple samples) at its first terminal 1260; receive the initial division results at its second terminal 1262; and provide drift results at its third terminal 1264 responsive to the difference between the averaged division result and the initial division results.
The Isense gain controller 1270 operates to: receive the drift results at its first terminal 1272; receive Isense at its second terminal 1274; and provide Isense* at its third terminal 1276 responsive to the drift results and Isense. In some examples, the drift calibration controller 1232 uses individual circuits to perform the operations of the divider 1244, the average 1252, the drift calculator 1258, the OTP register 1266; and the Isense gain controller 1270. In other examples, the drift calibration controller 1232 uses a processor and a memory with instructions to perform the operations of the divider 1244, the average 1252, the drift calculator 1258, the OTP register 1266; and the Isense gain controller 1270.
In some examples, the processor 1302 operates to perform the operations of the drift calibration controller 1232 of
In some examples, the method 1400 may include: determining an error due to the common-mode voltage responsive to the first sense results and the second sense results; and determining adjustments to first and second trimmable resistors of a ratiometric sense circuit responsive to the determined error. In some examples, the method 1400 may include: determining a resistance drift value for a calibration resistor separate from the sense resistor; adjusting a current sense gain value responsive to the determined resistance drift value.
In this description, the term “couple” may cover connections, communications, or signal paths that enable a functional relationship consistent with this description. For example, if device A generates a signal to control device B to perform an action: (a) in a first example, device A is coupled to device B by direct connection; or (b) in a second example, device A is coupled to device B through intervening component C if intervening component C does not alter the functional relationship between device A and device B, such that device B is controlled by device A via the control signal generated by device A.
Also, in this description, the recitation “based on” means “based at least in part on.” Therefore, if X is based on Y, then X may be a function of Y and any number of other factors.
A device “configured to” perform a task or function may be configured (e.g., programmed and/or hardwired) at a time of manufacturing by a manufacturer to perform the function and/or may be configurable (or reconfigurable) by a user after manufacturing to perform the function and/or other additional or alternative functions. The configuring may be through firmware and/or software programming of the device, through a construction and/or layout of hardware components and interconnections of the device, or a combination thereof.
As used herein, the terms “terminal”, “node”, “interconnection”, “pin” and “lead” are used interchangeably. Unless specifically stated to the contrary, these terms are generally used to mean an interconnection between or a terminus of a device element, a circuit element, an integrated circuit, a device or other electronics or semiconductor component and/or a conductor.
A circuit or device described herein as including certain components may instead be adapted to be coupled to those components to form the described circuitry or device. For example, a structure described as including one or more semiconductor elements (such as transistors), one or more passive elements (such as resistors, capacitors, and/or inductors), and/or one or more sources (such as 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 package) and may be adapted to be coupled to at least some of the passive elements and/or the sources to form the described structure either at a time of manufacture or after a time of manufacture, for example, by an end-user and/or a third-party.
While the use of particular transistors is described herein, other transistors (or equivalent devices) may be used instead with little or no change to the remaining circuitry. For example, a field-effect transistor (“FET”) such as an NFET or a PFET, a bipolar junction transistor (BJT—e.g., NPN transistor or PNP transistor), an insulated gate bipolar transistor (IGBT), and/or a junction field effect transistor (JFET) may be used in place of or in conjunction with the devices described herein. The transistors may be depletion mode devices, drain-extended devices, enhancement mode devices, natural transistors or other types of device structure transistors. Furthermore, the devices may be implemented in/over a silicon substrate (Si), a silicon carbide substrate (SiC), a gallium nitride substrate (GaN) or a gallium arsenide substrate (GaAs).
References may be made in the claims to a transistor's control terminal and its first and second terminals. In the context of a FET, the control terminal is the gate, and the first and second terminals are the drain and source. In the context of a BJT, the control terminal is the base, and the first and second terminals are the collector and emitter.
References herein to a FET being “ON” means that the conduction channel of the FET is present and drain current may flow through the FET. References herein to a FET being “OFF” means that the conduction channel is not present so drain current does not flow through the FET. An “OFF” FET, however, may have current flowing through the transistor's body-diode.
Circuits described herein are reconfigurable to include additional or different components to provide functionality at least partially similar to functionality available prior to the component replacement. Components shown as resistors, unless otherwise stated, are generally representative of any one or more elements coupled in series and/or parallel to provide an amount of impedance represented by the resistor shown. For example, a resistor or capacitor shown and described herein as a single component may instead be multiple resistors or capacitors, respectively, coupled in parallel between the same nodes. For example, a resistor or capacitor shown and described herein as a single component may instead be multiple resistors or capacitors, respectively, coupled in series between the same two nodes as the single resistor or capacitor.
While certain elements of the described examples are included in an integrated circuit and other elements are external to the integrated circuit, in other examples, additional or fewer features may be incorporated into the integrated circuit. In addition, some or all of the features illustrated as being external to the integrated circuit may be included in the integrated circuit and/or some features illustrated as being internal to the integrated circuit may be incorporated outside of the integrated circuit. As used herein, the term “integrated circuit” means one or more circuits that are: (i) incorporated in/over a semiconductor substrate; (ii) incorporated in a single semiconductor package; (iii) incorporated into the same module; and/or (iv) incorporated in/on the same printed circuit board.
Uses of the phrase “ground” in the foregoing description include a chassis ground, an Earth ground, a floating ground, a virtual ground, a digital ground, a common ground, and/or any other form of ground connection applicable to, or suitable for, the teachings of this description. In this description, unless otherwise stated, “about,” “approximately” or “substantially” preceding a parameter means being within +/−10 percent of that parameter or, if the parameter is zero, a reasonable range of values around zero.
Modifications are possible in the described examples, and other examples are possible, within the scope of the claims.
The present application claims priority to U.S. Provisional Application No. 63/437,258, titled “Self-Calibration of Die-Stress and Aging Related Accuracy Errors Affecting Current-Sensing in Smart Class-D Amplifiers”, Attorney Docket number T102843US01, filed on Jan. 5, 2023, which is hereby incorporated by reference in its entirety. The present application is also related to: U.S. application Ser. No. 18/478,384, titled “CIRCUIT WITH DYNAMIC CURRENT SENSE CALIBRATION”, Attorney Docket number T102843US02, filed on Sep. 29, 2023, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
63437258 | Jan 2023 | US |