Internal resistance detection circuit, internal resistance detection method, chip and electronic equipment

By gradually applying incremental current to the device with coils to reduce the current change speed, the impact of induced electromotive force on internal resistance detection is solved, and the detection accuracy is improved.

CN119001237APending Publication Date: 2024-11-22HEFEI CHIPSEA ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310574390.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-17
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

When detecting the internal resistance of a device with a coil such as a motor, the inductive characteristics of the coil cause the induced electromotive force to affect the detection accuracy, resulting in low measurement accuracy.

Method used

By gradually applying an incremental current to the object to be detected until the preset current value is reached, the current change speed is reduced and the influence of the induced electromotive force is reduced, thereby improving the internal resistance detection accuracy.

Benefits of technology

By gradually increasing the current, the current change speed is delayed, the impact of induced electromotive force on internal resistance detection is reduced, and the detection accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119001237A_ABST
    Figure CN119001237A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of integrated circuits, in particular to an internal resistance detection circuit, an internal resistance detection method, a chip and electronic device.According to the internal resistance detection circuit provided by the embodiment of the invention, increasing current is sequentially applied to a to-be-detected object until the current reaches a first preset current value; collecting a detection voltage generated by a current of a first preset current value flowing through the to-be-detected object, and obtaining the internal resistance of the to-be-detected object according to the detection voltage and the first preset current value; through the mode, the current flowing through the to-be-detected object is gradually increased in sequence, the change value of the current flowing through the to-be-detected object in unit time is reduced, the current change speed is delayed, induced electromotive force generated by oscillation of a coil in the to-be-detected object due to rapid change of the current is reduced, and the detection accuracy is improved. The influence degree of induced electromotive force on internal resistance detection is reduced, and the detection precision of the internal resistance of the to-be-detected object is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of integrated circuit technology, and in particular to an internal resistance detection circuit, an internal resistance detection method, a chip and an electronic device. Background Art

[0002] In the background technology, when testing the internal resistance of a device with a coil such as a motor, it is necessary to apply a current of a preset current value to the device under test and detect the voltage generated by the current on the device under test. Then, the internal resistance value of the device under test is determined by calculating the voltage and the preset current value.

[0003] Since the coil has inductance characteristics, when current is applied to the device under test, the internal coil generates an induced electromotive force under the influence of the current, which will affect the detection accuracy of the motor's internal resistance. Summary of the invention

[0004] In view of the above problems, the embodiments of the present application provide an internal resistance detection circuit, an internal resistance detection method, a chip and an electronic device to solve the above technical problems.

[0005] In a first aspect, an embodiment of the present application provides an internal resistance detection circuit, comprising:

[0006] A first current generating circuit, used for sequentially applying an increasing current to the object to be detected having a coil until the current reaches a first preset current value;

[0007] A detection circuit is used to collect a detection voltage generated by a detection current flowing through the object to be detected, wherein the detection current includes a current of the first preset current value applied by the first current generating circuit; and to obtain the internal resistance of the object to be detected based on the detection voltage and the first preset current value.

[0008] In a second aspect, an embodiment of the present application provides an internal resistance detection method, comprising:

[0009] Sequentially applying increasing current to the object to be detected having a coil until the current reaches a first preset current value, and using the current of the first preset current value as the detection current;

[0010] collecting a detection voltage generated by a detection current flowing through the object to be detected;

[0011] The internal resistance of the object to be measured is obtained according to the detection voltage and the first preset current value.

[0012] In a third aspect, an embodiment of the present application provides a chip, wherein the chip includes the above-mentioned internal resistance detection circuit.

[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, wherein the electronic device includes the above-mentioned chip.

[0014] The internal resistance detection circuit, internal resistance detection method, chip and electronic device provided in the embodiments of the present application sequentially apply an increasing current to the object to be detected until the current reaches a first preset current value; collect the detection voltage generated by the current of the first preset current value flowing through the object to be detected, and obtain the internal resistance of the object to be detected according to the detection voltage and the first preset current value; through the above method, the current flowing through the object to be detected sequentially increases, which reduces the change value of the current flowing through the object to be detected per unit time, slows down the current change rate, and is beneficial to reducing the induced electromotive force generated by the oscillation of the coil in the object to be detected due to the rapid change of current, reduces the influence of the induced electromotive force on the internal resistance detection, and is beneficial to improving the detection accuracy of the internal resistance of the object to be detected.

[0015] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 An application scenario diagram of the internal resistance detection circuit provided in an embodiment of the present application is shown.

[0017] Figure 2 A schematic diagram of the structure of an internal resistance detection circuit provided in an embodiment of the present application is shown.

[0018] Figure 3 An example diagram showing the change of the current applied to the object to be detected over time in an embodiment of the present application is shown.

[0019] Figure 4 A schematic diagram of the structure of a first current generating circuit in an internal resistance detection circuit provided in an embodiment of the present application is shown.

[0020] Figure 5 A schematic diagram of the structure of a first current generating circuit in an internal resistance detection circuit provided in an embodiment of the present application is shown.

[0021] Figure 6 A schematic diagram of the structure of an internal resistance detection circuit provided in an embodiment of the present application is shown.

[0022] Figure 7 A schematic diagram of the structure of a current calibration circuit in an internal resistance detection circuit provided in an embodiment of the present application is shown.

[0023] Figure 8 A schematic diagram of the structure of an internal resistance detection circuit provided in an embodiment of the present application is shown.

[0024] Fig. 9 A schematic diagram of the structure of an internal resistance detection circuit provided in an embodiment of the present application is shown.

[0025] Fig.10 A schematic diagram of the structure of a detection circuit and a common-mode matching circuit in an internal resistance detection circuit provided in an embodiment of the present application is shown.

[0026] Fig.11 A schematic diagram of the structure of a chip provided in an embodiment of the present application is shown.

[0027] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0028] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0029] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0030] In the embodiments of the present application, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0031] Moreover, the terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0032] In the description of the embodiments of the present application, words such as "example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "example" or "for example" in the embodiments of the present application is not to be interpreted as being more preferred or having more advantages than another embodiment or design. The use of words such as "example" or "for example" is intended to present relative concepts in a clear manner.

[0033] In addition, the "plurality" in the embodiments of the present application refers to two or more than two. In view of this, in the embodiments of the present application, "plurality" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no limit on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A, B and C can be included.

[0034] It should be noted that, in the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship.

[0035] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.

[0036] The first pole / first end of each transistor used in the embodiments of the present application is one of the source and the drain, and the second pole / second end of each transistor is the other of the source and the drain. Since the source and drain of the transistor can be symmetrical in structure, the source and drain thereof can be structurally indistinguishable, that is, the first pole / first end and the second pole / second end of the transistor in the embodiments of the present application can be structurally indistinguishable. Exemplarily, in the case where the transistor is a P-type transistor, the first pole / first end of the transistor is the source, and the second pole / second end is the drain; exemplarily, in the case where the transistor is an N-type transistor, the first pole / first end of the transistor is the drain, and the second pole / second end is the source.

[0037] The internal resistance detection circuit 100 provided in the present application can be applied to Figure 1 In the mobile terminal device 200 shown, the mobile terminal device 200 includes a vibration motor 201 and an internal resistance detection circuit 100 . The internal resistance detection circuit 100 is electrically connected to the vibration motor 201 , and the internal resistance detection circuit 100 is used to detect the internal resistance of the vibration motor 201 .

[0038] Those skilled in the art should understand that the above application scenario is only an example of an application scenario of the internal resistance detection circuit 100 of the present application. In addition to being used for internal resistance detection of vibration motors, the internal resistance detection circuit 100 provided in the present application can also be applied to any other object to be detected that requires internal resistance detection.

[0039] The internal resistance detection circuit 100 of the present application is particularly suitable for application scenarios in which internal resistance detection is performed on an object to be detected having a coil.

[0040] An embodiment of the present application provides an internal resistance detection circuit 100. Figure 2 As shown, the internal resistance detection circuit 100 includes a first current generating circuit 11 and a detection circuit 12 .

[0041] The first current generating circuit 11 is used to sequentially apply an increasing current to the object to be detected 202 until the current reaches a first preset current value. The detection circuit 12 is used to collect a detection voltage generated by the detection current flowing through the object to be detected 202, wherein the detection current includes a current of the first preset current value applied by the first current generating circuit 11; and the internal resistance of the object to be detected is obtained according to the detection voltage and the first preset current value.

[0042] The object to be detected has a coil. When the current flowing through the object to be detected changes, an induced electromotive force is formed on the coil. The faster the current changes, the greater the induced electromotive force, and the greater the impact on the internal resistance detection accuracy. In this embodiment, an increasing current is applied to the object to be detected by the first current generating circuit, slowing down the speed of change of the current, thereby reducing the induced electromotive force of the coil inside the object to be detected, and improving the internal resistance detection accuracy of the object to be detected.

[0043] In this embodiment, the first circuit generating circuit 11 can apply a current between 0 and a first preset current value to the object to be detected 202, and the first circuit generating circuit 11 gradually increases the current, and continues for a preset time after each increase in current until the current increases to the first preset current value.

[0044] As an implementation, see Figure 3 As shown, the first circuit generating circuit 11 applies current I1 to the object to be detected 202 for a duration of t1; the first circuit generating circuit 11 increases the current from I1 to current I2 for a duration of t2; the first circuit generating circuit 11 increases the current from I2 to current I3 for a duration of t3; the first circuit generating circuit 11 increases the current from I3 to current I0, where I0 is a first preset current value.

[0045] In this embodiment, the detection current I0 of the first preset current value flows through the object to be detected 202 to generate a detection voltage. The detection circuit 12 collects the detection voltage V and calculates the internal resistance R of the object to be detected based on the detection voltage V and the first preset current value I0, where V=I0*R, R=V / I0.

[0046] It should be noted that if a detection current with a first preset current value I0 is directly applied to the object to be detected 202, since the object to be detected 202 contains a coil, if the current flowing through the coil suddenly changes from 0 to I0, the induced electromotive force generated by the coil is too large and difficult to release in a short time, which will interfere with the measurement of the internal resistance and result in low measurement accuracy.

[0047] In the internal resistance detection circuit 100 of this embodiment, the current flowing through the object to be detected increases successively, which reduces the change value of the current flowing through the object to be detected per unit time, thereby reducing the induced electromotive force of the internal coil of the object to be detected, which is beneficial to improving the detection accuracy of the internal resistance of the object to be detected.

[0048] As an implementation, see Figure 4 As shown, the first current generating circuit 11 includes: a first current source circuit 111 , a first current mirror circuit 112 and a first current regulating circuit 113 .

[0049] Among them, the first current source circuit 111 is used to generate a first current; the first current mirror circuit 112 includes a plurality of current mirror units, each of which is used to mirror the first current to output the first mirror current to the object to be detected 202; the first current regulation circuit 113 includes a plurality of regulation switches, and the plurality of regulation switches are connected one-to-one with the plurality of current mirror units. The first current regulation circuit 113 is used to turn on a preset number of regulation switches in sequence to control the sum of multiple first mirror currents output to the object to be detected to increase to a first preset current value.

[0050] In this embodiment, a plurality of first mirror currents output by each turned-on current mirror unit converge to form a current output by the first current generating circuit. In this embodiment, by controlling a plurality of current mirror units to be turned on one by one, the incremental output of current is achieved. In this embodiment, the mirror ratio of each current mirror unit to the first current can also be set as needed, which is conducive to the precise control of the incremental current.

[0051] In some embodiments, see Figure 5As shown, the first current source circuit 111 includes a first operational amplifier OP1, a first resistor R1 and a first MOS transistor MN1, wherein the first input terminal of the first operational amplifier OP1 is used to receive an input voltage, and the input voltage may be a reference voltage Vref that is independent of the power supply voltage or a voltage related to the power supply voltage VDD, the second input terminal of the first operational amplifier OP1 is respectively connected to the first terminal of the first MOS transistor MN1 and one terminal of the first resistor R1, the other terminal of the first resistor R1 is grounded, the output terminal of the first operational amplifier OP1 is connected to the control terminal of the first MOS transistor MN1, and the second terminal of the first MOS transistor MN1 is the output terminal of the first current source circuit 111, and is used to output a first current.

[0052] In some embodiments, the first MOS transistor MN1 is an N-type MOS transistor, the first terminal is a source, the second terminal is a drain, and the control terminal is a gate.

[0053] In this embodiment, if the input voltage of the first operational amplifier OP1 is the reference voltage Vref, wherein the reference voltage Vref is a standard voltage and the resistance value of the first resistor R1 is a standard resistance value, then the current value of the first current is Vref / R1.

[0054] In some embodiments, please refer to Figure 5 As shown, the first current mirror circuit 112 includes a second MOS transistor MP2 and a plurality of mirror transistors MPm1-MPm n The first current regulating circuit 113 includes a plurality of regulating switches K1-Kn, wherein the second end of the second MOS transistor MP2 is connected to the second end of the first MOS transistor MN1, and the second end of the second MOS transistor MP2 is connected to the control end of the second MOS transistor MP2; the second MOS transistor MP2 and each mirror transistor MPm x A current mirror is formed respectively, x is 1 to n, and the first end of the second MOS transistor MP2 is connected to the mirror transistor MPm x The control end of the second MOS transistor MP2 is connected to the mirror transistor MPm x The control terminal of the mirror transistor MPm x The second end of the mirror transistor MPm is used to output the first mirror current of the corresponding current mirror unit. x The second end of the second MOS transistor MP2 and the mirror transistor MPm are connected to the regulating switch Kx; xA current mirror unit 112-x is formed, where x is 1 to n, and the first current mirror circuit 112 includes n current mirror units 112-1 to 112-n. The mirror multiples of different current mirror units 112-x may be the same or different. The first current regulating circuit 113 controls the on or off of each current mirror unit 112-1 to 112-n by controlling the on or off of each regulating switch K1 to Kn.

[0055] In some embodiments, the first current regulating circuit 113 can turn on the corresponding regulating switches one by one according to a preset current increasing rule, so that the first mirror currents generated by the corresponding multiple mirror transistors are superimposed and output in sequence, thereby generating a current that increases according to the preset current increasing rule.

[0056] In some embodiments, the second MOS transistor MP2 and the mirror transistors MPm1-MPm n They are P-type MOS transistors, the first end is the source, the second end is the drain, and the control end is the gate.

[0057] The following is a specific example for explanation. A current of 0.25*I0, a current of 0.5*I0, a current of 0.75*I0 and a current of I0 are applied to the object to be detected 202 in sequence. Assuming that there are mirror transistors MPm1-MPm4, four regulating switches K1-K4, the first current is 0.125*I0, and the mirror multiple of each mirror transistor is the same, which is 2. The first mirror current generated is 0.25*I0. When the current to be applied is 0.25*I0, one of the current mirror units is controlled to be turned on, and the other three current mirror units are turned off; when the current to be applied is 0.5*I0, two of the current mirror units are controlled to be turned on, and the other two current mirror units are turned off; when the current to be applied is 0.75*I0, three of the current mirror units are controlled to be turned on, and the other current mirror unit is turned off; when the current to be applied is I0, all four current mirror units are controlled to be turned on.

[0058] As an implementation, see Figure 6As shown, the theoretical current value of the detection current is the first preset current value. During the detection process, the detection current is generally obtained by mirroring the standard current formed by the standard resistor and the standard voltage. Due to the process deviation of the standard resistor and the process deviation of the mirror transistor used in the mirroring, the actual current value of the current output by the first current generating circuit 11 is not equal to the first preset current value. At this time, if the current output by the first current generating circuit 11 is directly applied to the object to be detected 202 as the detection current, the actual current value of the detection current will be not equal to the first preset current value. Therefore, the internal resistance detection circuit 100 of the embodiment of the present application also includes a current calibration circuit 13, which is used to output a calibration current to calibrate the actual current value of the detection current to be equal to the first preset current value.

[0059] In this embodiment, the current calibration circuit 13 is used to make the actual current value of the detection current flowing through the object to be detected 202 equal to the first preset current value, which is beneficial to improving the detection accuracy of the internal resistance.

[0060] In some embodiments, see Figure 7 As shown, the current calibration circuit 13 includes a plurality of calibration modules 131 and a second current regulating circuit 132, each calibration module 131 includes a correspondingly connected second current source circuit 1311 and a switch unit 1312; each second current source circuit 1311 is used to generate a second current, each second current source circuit 1311 is connected to a corresponding switch unit 1312, and each second current source circuit 1311 outputs a corresponding second current when the corresponding switch unit 1312 is turned on; each switch unit 1312 is respectively connected to the second current regulating circuit 132, and the second current regulating circuit 132 is used to control one or more switch units 1312 to be turned on or off to adjust the size of the calibration current output by the current calibration circuit 13, and the calibration current can compensate for the current output by the first current generating circuit, so that the actual current value flowing through the object to be detected is equal to the first preset current value, wherein the calibration current is the sum of the second currents output by the turned-on switch units 1312.

[0061] It should be noted that the directions of the second currents generated by any two second current source circuits 1311 may be the same or different. For example, part of the second current source circuits 1311 are used to generate a second current in the same direction as the detection current, and another part of the second current source circuits 1311 are used to generate a second current in the opposite direction to the detection current. In this way, after the sum of the second currents output by each calibration module 131 that is turned on is superimposed on the current output by the first current generating circuit 11, the detection current can be positively compensated or reversely compensated. Specifically, when the current output by the first current generating circuit 11 is less than the first preset current value, at least one second current source circuit 1311 with the same current direction as the detection current can be selected to be turned on to perform positive compensation for the detection current; when the current output by the first current generating circuit 11 is greater than the first preset current value, at least one second current source circuit 1311 with the opposite current direction to the detection current can be selected to be turned on to perform reverse compensation for the detection current.

[0062] In this embodiment, before performing internal resistance detection, the actual current value of the current output by the first current generating circuit 11 can be measured, and the on or off of each switch unit 1312 can be determined based on the measured actual current value, so that the sum of the second currents output by each turned-on calibration module 131 and the current output by the first current generating circuit 11 are superimposed to obtain a first preset current value.

[0063] In some embodiments, each second current source circuit 1311 is used to generate a second current, and the second current follows the current output by the first current generating circuit at a corresponding preset ratio. For example, the second current generated by each second current source circuit 1311 can be mirrored from the current generated by the first current generating circuit, so that the calibration current and the current generated by the first current generating circuit have the same source and good consistency.

[0064] In some embodiments, the mirror ratio of each second current source circuit 1311 to the current output by the first current generating circuit 11 is less than 1, and the mirror ratios corresponding to the plurality of second current source circuits 1311 decrease exponentially.

[0065] In this embodiment, the mirror ratios corresponding to the plurality of second current source circuits 1311 may be m, m 2 , ...m k ……, m n , wherein m is greater than 0 and less than 1, n is the number of the second current source circuits 1311, and 1<k<n.

[0066] In some embodiments, the magnitudes of the second currents generated by the second current source circuits 1311 may be in a binary proportional relationship. For example, the magnitudes of the second currents generated by the second current source circuits 1311 may be respectively Ia , 2 -1 I a , 2 - 2 I a , ..., 2 -n I a For example, I a It can be the current output by the first current generating circuit 11.

[0067] In some embodiments, a second current following the current output by the first current generating circuit 11 can be generated in a mirroring manner, and each second current source circuit 1311 includes a second current mirror unit, which is used to mirror the current output by the first current generating circuit 11 to output a corresponding second current.

[0068] In some embodiments, the second current regulating circuit 132 is used to send an on control signal or an off control signal to each switch unit 1312 to control the on or off of each switch unit 1312. The on control signal and the off control signal can be a high level signal or a low level signal. For example, when each switch unit 1312 adopts an NMOS tube, the on control signal can be a high level signal, and the off control signal can be a low level signal; conversely, when each switch unit 1312 adopts a PMOS tube, the on control signal can be a low level signal, and the off control signal can be a high level signal.

[0069] As an implementation, see Figure 8 As shown, the internal resistance detection circuit 100 of the embodiment of the present application further includes a common mode matching circuit 14 for providing a common mode voltage of a second preset voltage value to the detection circuit 12 .

[0070] In this embodiment, by providing a common mode voltage to the detection circuit 12 , the measurement error caused by the change of the voltage provided to the detection circuit 12 is reduced, and the accuracy of the internal resistance measurement is improved.

[0071] The detection voltage corresponds to a voltage difference between the first end 202 a and the second end 202 b of the object 202 to be detected.

[0072] In some embodiments, see Fig. 9As shown, a common-mode voltage of a second preset voltage value can be provided to the detection circuit 12 through resistance voltage division, and the common-mode matching circuit 14 can include a third current source circuit 141 and a voltage-dividing resistor unit 142, and the third current source circuit 141 is used to generate a third current; the output end of the third current source circuit 141 is connected to the first input end 12a of the detection circuit 12, the voltage-dividing node 142a of the voltage-dividing resistor unit 142 is connected to the second input end 12b of the detection circuit 12, the first input end 12a of the detection circuit 12 is connected to the first end 202a of the object to be detected 202, and the second input end 12b of the detection circuit 12 is connected to the second end 202b of the object to be detected 202, the third current flows through the voltage-dividing node 142a and generates a common-mode voltage Vcm of a second preset voltage value at the voltage-dividing node 142a, so that the common-mode matching circuit 14 applies the common-mode voltage Vcm of the second preset voltage value to the detection circuit 12.

[0073] In some embodiments, the voltage-dividing resistor unit 142 includes a voltage-dividing resistor string, one end of which is connected to a preset power supply terminal and the other end is grounded, and the voltage-dividing node 142a is a connection node between two adjacent resistors in the voltage-dividing resistor string.

[0074] In some embodiments, the voltage-dividing resistor string may include a second resistor R2 and a third resistor R3 connected in series, and the voltage-dividing node 142 a is a connection node between the second resistor R2 and the third resistor R3 .

[0075] In some embodiments, see Fig.10 As shown, the detection circuit 12 includes an amplifier 121 and an analog-to-digital converter 122. The amplifier 121 is used to amplify the collected detection voltage signal, and the analog-to-digital converter 122 is used to convert the amplified detection voltage signal into a corresponding digital signal, which is used to characterize the magnitude of the detection voltage. In this embodiment, the common-mode voltage Vcm of the common-mode matching circuit 14 can be a voltage provided to the amplifier 121, the first input terminal 12a of the detection circuit 12 can be the input terminal INP of the amplifier 121, and the second input terminal 12b of the detection circuit 12 can be the input terminal INN of the amplifier 121.

[0076] In some embodiments, the first end 202a of the object to be detected 202 is a positive terminal, and the second end 202b of the object to be detected 202 is a negative terminal.

[0077] The above-mentioned stage of collecting the detection voltage generated by the detection current flowing through the object to be detected 202 is the detection stage. In the detection stage, by providing a common-mode voltage to the detection circuit 12, the measurement error caused by the voltage change provided to the detection circuit 12 is reduced, thereby improving the accuracy of the internal resistance measurement.

[0078] Before the detection phase, the detection circuit 12 needs to be calibrated for offset, and the process of performing the offset calibration is the offset calibration phase.

[0079] In some embodiments, the common mode voltage of the second preset voltage value provided by the common mode matching circuit 14 may be equal to the common mode voltage when the detection circuit 12 performs offset calibration. In the offset calibration stage, the common mode voltage may be provided to the detection circuit 12 by the common mode matching circuit 14, or by other circuits.

[0080] In this embodiment, since the detection circuit 12 needs to be calibrated for offset (OS), a common-mode voltage will be applied to the detection circuit 12 during the offset calibration. By controlling the common-mode voltage provided to the detection circuit during the detection phase to be the same as the common-mode voltage provided to the detection circuit during the offset calibration phase, the error caused by the change of the common-mode voltage in the detection circuit is reduced, thereby improving the accuracy of the internal resistance measurement.

[0081] An embodiment of the present application provides an internal resistance detection method, including:

[0082] S11, applying increasing current to the object to be detected having a coil in sequence until the current reaches a first preset current value, and using the current of the first preset current value as the detection current;

[0083] S12, collecting a detection voltage generated by the detection current flowing through the object to be detected;

[0084] S13, obtaining the internal resistance of the object to be measured according to the detection voltage and the first preset current value.

[0085] In some embodiments, the stage of collecting the detection voltage generated by the detection current flowing through the object to be detected is the detection stage. Before the detection stage, it also includes an offset calibration stage. Before step S11, it also includes:

[0086] S10a, in an offset calibration phase, applying a voltage of a second preset voltage value to the detection circuit as a common mode voltage;

[0087] Furthermore, in step S12, a voltage of a second preset voltage value is applied to the detection circuit as a common mode voltage, and a detection voltage generated by the detection current flowing through the object to be detected is collected.

[0088] In some implementations, after step S11 and before step S12, the method further includes:

[0089] S11a, calibrating the actual current value of the detection current to be equal to the first preset current value.

[0090] In the internal resistance detection method of the present embodiment, the current flowing through the object to be detected increases successively, which reduces the change value of the current flowing through the object to be detected per unit time and slows down the speed of current change, which is beneficial to reducing the induced electromotive force generated by the oscillation of the coil in the object to be detected due to the rapid change of current, reduces the influence of the induced electromotive force on the internal resistance detection, and is beneficial to improving the detection accuracy of the internal resistance of the object to be detected.

[0091] An embodiment of the present application provides a chip 300, see Fig.11 As shown, the chip 300 includes the above-mentioned internal resistance detection circuit 100. A chip (Integrated Circuit, IC) is also called a chip, and the chip can be, but is not limited to, a SOC (System on Chip) chip or a SIP (system in package) chip.

[0092] In the chip of this embodiment, the current flowing through the object to be detected increases successively, which reduces the change value of the current flowing through the object to be detected per unit time and slows down the speed of current change, which is beneficial to reducing the induced electromotive force generated by the oscillation of the coil in the object to be detected due to the rapid change of current, reduces the influence of the induced electromotive force on the internal resistance detection, and is beneficial to improving the detection accuracy of the internal resistance of the object to be detected.

[0093] The present application embodiment also provides an electronic device 400, see Fig.12 As shown, the electronic device 400 includes a device body and a chip 300 as described above, which is arranged in the device body. The electronic device can be, but is not limited to, a weight scale, a body fat scale, a nutrition scale, a pulse oximeter, a human body composition analyzer, a display, a USB (Universal Serial Bus) docking station, a car, a smart wearable device, a mobile terminal, and a smart home device. Smart wearable devices include, but are not limited to, smart watches, smart bracelets, and cervical massagers. Mobile terminals include, but are not limited to, smart phones, laptops, tablet computers, and POS (point of sales terminal). Smart home devices include, but are not limited to, smart sockets, smart rice cookers, smart sweepers, and smart lights.

[0094] In the electronic device of this embodiment, the current flowing through the object to be detected increases successively, which reduces the change value of the current flowing through the object to be detected per unit time and slows down the speed of current change, which is beneficial to reducing the induced electromotive force generated by the oscillation of the coil in the object to be detected due to the rapid change of current, reduces the influence of the induced electromotive force on the internal resistance detection, and is beneficial to improving the detection accuracy of the internal resistance of the object to be detected.

[0095] The above is only an implementation method of the present application. It should be pointed out that a person skilled in the art can make improvements without departing from the inventive concept of the present application, but these improvements are within the scope of protection of the present application.

Claims

1. An internal resistance detection circuit, characterized in that: include: A first current generating circuit, used for sequentially applying an increasing current to the object to be detected having a coil until the current reaches a first preset current value; A detection circuit is used to collect a detection voltage generated by a detection current flowing through the object to be detected, wherein the detection current includes a current of the first preset current value applied by the first current generating circuit; and to obtain the internal resistance of the object to be detected based on the detection voltage and the first preset current value.

2. The internal resistance detection circuit according to claim 1, characterized in that: The first current generating circuit comprises: a first current source circuit, a first current mirror circuit and a first current regulating circuit; The first current source circuit is used to generate a first current; The first current mirror circuit includes a plurality of current mirror units, each of which is used to mirror the first current to output a first mirror current to the object to be detected; The first current regulating circuit includes a plurality of regulating switches, which are connected one-to-one with a plurality of current mirror units. The first current regulating circuit is used to sequentially turn on a preset number of regulating switches to control the sum of multiple first mirror currents output to the object to be detected to increase to the first preset current value.

3. The internal resistance detection circuit according to claim 1, characterized in that: The internal resistance detection circuit also includes a current calibration circuit for outputting a calibration current to calibrate the actual current value of the detection current to be equal to the first preset current value.

4. The internal resistance detection circuit according to claim 3, characterized in that: The current calibration circuit comprises: A plurality of calibration modules, each of which comprises a correspondingly connected second current source circuit and a switch unit, each of which is used to generate a second current, and the switch unit outputs a corresponding second current when it is turned on; The second current regulating circuit is connected to each of the switch units respectively, and is used to control one or more of the switch units to be turned on or off so as to adjust the size of the calibration current, wherein the calibration current is the sum of the second currents output by the turned-on switch units.

5. The internal resistance detection circuit according to claim 4, characterized in that: Each of the second current source circuits is used to generate the second current that follows the current output by the first current generating circuit at a corresponding preset ratio.

6. The internal resistance detection circuit according to claim 5, characterized in that: Each of the second current source circuits includes a second current mirror unit, and the second current mirror unit is used to mirror the current output by the first current generating circuit to output the corresponding second current.

7. The internal resistance detection circuit according to claim 6, characterized in that: The mirror ratio of each second current source circuit to the current output by the first current generating circuit is respectively less than 1, and the mirror ratios corresponding to the plurality of second current source circuits decrease exponentially.

8. The internal resistance detection circuit according to claim 1, characterized in that: The detection voltage is the voltage difference between the first end and the second end of the object to be detected; the internal resistance detection circuit also includes a common mode matching circuit for providing a common mode voltage of a second preset voltage value for the detection circuit.

9. The internal resistance detection circuit according to claim 8, characterized in that: The common-mode matching circuit comprises a third current source circuit and a voltage-dividing resistor unit, wherein the output end of the third current source circuit is connected to the first input end of the detection circuit; the voltage-dividing node of the voltage-dividing resistor unit is connected to the second input end of the detection circuit; wherein the first input end of the detection circuit is used to connect to the first end of the object to be detected, and the second input end of the detection circuit is used to connect to the second end of the object to be detected; The third current source circuit is used to generate a third current, and the third current flows through the voltage division node and generates a voltage of the second preset voltage value at the voltage division node.

10. The internal resistance detection circuit according to claim 9, characterized in that: The voltage-dividing resistor unit includes a voltage-dividing resistor string, one end of which is connected to a preset power supply terminal and the other end is grounded, and the voltage-dividing node is a connection node between two adjacent resistors in the voltage-dividing resistor string.

11. The internal resistance detection circuit according to any one of claims 8 to 10, characterized in that: The voltage of the second preset voltage value is equal to the common mode voltage when the detection circuit performs offset calibration.

12. A method for detecting internal resistance, characterized in that: include: Sequentially applying increasing current to the object to be detected having a coil until the current reaches a first preset current value, and using the current of the first preset current value as the detection current; collecting a detection voltage generated by a detection current flowing through the object to be detected; The internal resistance of the object to be measured is obtained according to the detection voltage and the first preset current value.

13. The internal resistance detection method according to claim 12, characterized in that: Before collecting the detection voltage generated by the detection current flowing through the object to be detected, the method further includes: The actual current value of the detection current is calibrated to be equal to the first preset current value.

14. The internal resistance detection method according to claim 12, characterized in that: The stage of collecting the detection voltage generated by the detection current flowing through the object to be detected is the detection stage; before the detection stage, the method also includes an offset calibration stage; The method further comprises: During the offset calibration phase and the detection phase, a voltage of a second preset voltage value is applied to the detection circuit as a common mode voltage.

15. A chip, characterized in that: The chip includes the internal resistance detection circuit according to any one of claims 1 to 11.

16. An electronic device, characterized in that: The electronic device comprises the chip as claimed in claim 15.