Circuit and method for calibrating internal resistance of photoelectric integrated chip
Technical Field
The invention relates to the technical field of photoelectric integrated chips, in particular to a circuit and a method for calibrating internal resistance of a photoelectric integrated chip.
Background
In a photoelectric integrated chip, an accurate reference current is often needed to provide a reference current for other circuit modules in the photoelectric integrated chip, and a resistor serving as a basic device generated by the reference current deviates by more than 20% with the process and the temperature, so that the generated reference current is inaccurate, and how to obtain the resistor with higher accuracy through a calibration means becomes very important.
The traditional method for calibrating the resistor is to output reference current to the outside through a PIN (PIN), measure the current by using external equipment, compare the current with an ideal current value to calculate a value to be compensated, and control the coding value of an internal resistor network according to the value. To avoid repeated calibration of the chip each time it is powered down, the code values need to be stored in internal memory locations on the chip, such as electrical fuses (eFuses). Not only does this approach require additional PINs and devices to test the current, but placing the eFuse network increases the chip area, thereby increasing cost.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a circuit and a method for calibrating the internal resistance of a photoelectric integrated chip, wherein a Received Signal Strength Indication (RSSI) pin on the photoelectric integrated chip is multiplexed, an analog-to-digital converter (ADC) on the same module as the photoelectric integrated chip is used for collecting the voltage drop of an external resistor, a process influence factor alpha (m) of the internal resistance of the photoelectric integrated chip, which is influenced by the process, is determined by an algorithm, and the internal resistance of the photoelectric integrated chip is calibrated according to the process influence factor alpha (m).
In order to solve the above technical problem, the present invention provides a calibration circuit for an internal resistance of a optoelectronic integrated chip, which includes an external resistance, a first internal branch and a second internal branch;
the first built-in branch and the second built-in branch are both arranged inside the photoelectric integrated chip and are connected in parallel, one end of the whole body formed by connecting the first built-in branch and the second built-in branch in parallel is connected with a power supply end, and the other end of the whole body is connected with a third switch; the third switch is arranged inside the optoelectronic integrated chip and is connected with a received signal strength indication pin (RSSI) of the optoelectronic integrated chip;
the first built-in branch comprises a first resistor and a first switch which are connected in series, and the second built-in branch comprises a second resistor and a second switch which are connected in series; the first resistor and the second resistor are the same type of resistor as the resistor needing to be calibrated in the photoelectric integrated chip;
the external resistor is arranged outside the photoelectric integrated chip, one end of the external resistor is connected with the received signal strength indicating pin of the photoelectric integrated chip, and the other end of the external resistor is grounded.
In a preferred embodiment of the present invention, the optoelectronic integrated chip internal resistance calibration circuit is configured to obtain a process influence factor α (m) of the optoelectronic integrated chip internal resistance affected by a process, and calibrate the optoelectronic integrated chip internal resistance according to the process influence factor α (m).
In a preferred embodiment of the present invention, the first switch, the second switch, and the third switch support a programmable mode control to be turned on or off, and the first switch, the second switch, and the third switch are independently turned on or off.
In a preferred embodiment of the present invention, the first switch, the second switch and the third switch have the same size, and the on-resistance R of the first switch, the second switch and the third switch is the same as each otheronTurn-off resistance RoffRespectively satisfy Ron<50Ω,Roff>500MΩ。
In a preferred embodiment of the present invention, an ADC module is integrated inside an MCU chip on the same module as the optoelectronic ic, the resistance calibration circuit further includes a voltage acquisition lead disposed outside the optoelectronic ic, the voltage acquisition lead is connected to the ADC module and a received signal strength indication pin (RSSI), and the voltage of the external resistor is acquired through the ADC module.
In a preferred embodiment of the present invention, a storage unit is disposed inside the MCU chip on the same module as the optoelectronic integrated chip, and the process impact factor α (m) for resistance calibration obtained by the resistance calibration circuit is stored in the storage unit.
Based on the same inventive concept, the invention also provides a calibration method of the internal resistance of the optoelectronic integrated chip, which uses the calibration circuit of the internal resistance of the optoelectronic integrated chip, and comprises the following steps,
opening the third switch;
turning off the first switch, turning on the second switch, and obtaining the voltage V loaded on the external resistor01;
Opening the first switch, turning off the second switch, and obtaining the voltage V loaded on the external resistor10;
According to voltage V01And voltage V10And determining the process influence factor alpha (m).
In a preferred embodiment of the present invention, the determining the process influence factor α (m) further comprises determining an actual resistance R of an internal resistance of the optoelectronic integrated chipxThe determination method comprises the steps of,
Vddcharacterizing a voltage of the power supply terminal; rextAnd representing the resistance value of the external resistor.
In a preferred embodiment of the present invention, further comprising, determining the process impact factor α (m) further comprises,
Rtyp(T0) Characterised by the temperature T0Typical values of the following, which are not affected by the process, are determined from a process model.
In a preferred embodiment of the present invention, the method further includes storing the determined process impact factor α (m) in a storage unit inside an MCU chip on the same module as the optoelectronic integrated chip.
The invention has the beneficial effects that:
the circuit and the method for calibrating the internal resistance of the optoelectronic integrated chip multiplex the RSSI of the received signal strength indication pin on the optoelectronic integrated chip, simultaneously utilize the ADC on the same module as the optoelectronic integrated chip to acquire the voltage drop of the external resistor, then determine the process influence factor alpha (m) of the internal resistance of the optoelectronic integrated chip influenced by the process through an algorithm, and calibrate the internal resistance of the optoelectronic integrated chip according to the process influence factor alpha (m).
Drawings
FIG. 1 is a schematic circuit diagram of a resistor to be calibrated and a reference current;
FIG. 2 is a schematic circuit diagram of an internal resistance calibration circuit of the optoelectronic integrated chip according to a preferred embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for calibrating an internal resistance of an optoelectronic integrated chip according to a first embodiment of the present invention;
fig. 4 is a flowchart of a method for calibrating an internal resistance of an optoelectronic integrated chip according to a second embodiment of the present invention.
Detailed Description
The present invention is further described below in conjunction with the following figures and specific examples so that those skilled in the art may better understand the present invention and practice it, but the examples are not intended to limit the present invention.
Examples
Referring to the schematic diagram of the circuit of the resistor to be calibrated and the reference current I in the optoelectronic integrated chip shown in FIG. 1refIs obtained by dividing the internal reference voltage VBG by the resistance R to be calibratedtuneThe actual resistance value of the resistor to be calibrated has a deviation due to the influence of the process, and in order to obtain a reference current with a certain precision, the resistor inside the optoelectronic integrated chip needs to be calibrated to compensate the deviation of the reference current caused by the influence of the process on the resistor.
Referring to fig. 2, an embodiment of the invention discloses a calibration circuit for an internal resistance of a photonic integrated chip, which includes an external resistor RextThe first stepA built-in branch and a second built-in branch. The external resistor RextThe photoelectric integrated chip is arranged outside the photoelectric integrated chip, and the first built-in branch and the second built-in branch are both arranged inside the photoelectric integrated chip. The external resistor RextOne end of the second connecting terminal is connected with a received signal strength indication pin RSSI of the photoelectric integrated chip, and the other end is grounded. The first built-in branch and the second built-in branch are connected in parallel, one end of the whole body after the first built-in branch and the second built-in branch are connected in parallel is connected with a power supply end Vdd, and the other end of the whole body is connected with a third switch SW 3; the third switch SW3 is disposed inside the optoelectronic integrated chip and connected to the RSSI of the RSSI. The first built-in branch comprises a first resistor R1 and a first switch SW1 which are connected in series, and the second built-in branch comprises a second resistor R2 and a second switch SW2 which are connected in series; the first resistor R1 and the second resistor R2 are the same type of resistors to be calibrated in the optoelectronic integrated chip. It should be noted that the same type of resistors herein are the same type of resistors provided by the process plant, such as poly resistors, metal resistors, diffusion resistors, etc., that is, when a poly resistor is used inside the optoelectronic integrated chip, the first resistor R1 and the second resistor R2 both use poly resistors; or, when the metal resistor is used inside the optoelectronic integrated chip, the metal resistor is used for both the first resistor R1 and the second resistor R2. The process influence factors alpha (m) of the same type of resistance influenced by the process are basically the same. The resistances of the first resistor R1 and the second resistor R2 can be adjusted according to actual needs, wherein, for convenience of calculation, the resistance of the first resistor R1 in the technical solution of the embodiment is RxThe second resistor R2 has a resistance of 2Rx。
The internal resistance calibration circuit of the photoelectric integrated chip is used for acquiring a process influence factor alpha (m) of the first resistor R1 and the second resistor R2 influenced by a process, further acquiring the process influence factor alpha (m) of the resistance to be calibrated of the photoelectric integrated chip influenced by the process, and calibrating the resistance to be calibrated of the photoelectric integrated chip according to the process influence factor alpha (m). The first switch SW1, the second switch SW2 and the third switch SW3 support the programmable mode control to be turned on or off, and the first switch SW1, the second switch SW2 and the third switch SW3 are independent respectivelyOn or off. In the technical solution of this embodiment, the first switch SW1, the second switch SW2 and the third switch SW3 have the same size, and the on-resistance values R of the first switch SW1, the second switch SW2 and the third switch SW3 are the sameonTurn-off resistance RoffRespectively satisfy Ron<50Ω,Roff> 500M omega. The working states of the switches are shown in the following table:
TABLE 1 switch combination working state table
RintRepresenting the equivalent resistance seen from the RSSI pin to the inside of the photoelectric integrated chip; rtraceAll other link resistances are characterized, including the on resistance of the third switch SW3, the resistance at the junction of the power source terminal VDD to the first switches SW1, SW2, and the resistance at the third switch SW3 to the RSSI pin. The wire resistance near the switch is incorporated into the equivalent resistance of the switch.
According to the resistance voltage-dividing criterion, RintAnd an external resistor RextThe following relationship is satisfied:
each R in Table 1intSubstituting into the above relationship, obtain:
wherein, V01The voltage value loaded on the external resistor is represented when the first switch SW1 is turned off and the second switch SW2 is turned on; v10The voltage value loaded on the external resistor is represented when the first switch SW1 is turned on and the second switch SW2 is turned off.
Determining according to the formulas (1) and (2):
when the process influencing factor alpha (m) is introduced,
R(m,T0)=α(m)·Rtyp(T0) (3);
wherein, R (m, T)0) Characterised by the temperature T0The actual value of the lower resistance; rtyp(T0) Characterised by the temperature T0Typical values of the lower resistance, i.e. determined values that are not affected by the process, are uniquely determined according to a process model.
Determining according to the formula (3) and the formula 1:
based on this, the calibration circuit of the present invention can determine the process influence factor α (m) of the first resistor R1 and the second resistor R2 affected by the process, further obtain the process influence factor α (m) of the resistance to be calibrated of the optoelectronic integrated chip affected by the process, and calibrate the resistance to be calibrated of the optoelectronic integrated chip according to the process influence factor α (m).
As a further improvement of the present invention, an ADC module is integrated inside an MCU chip of the same module as the optoelectronic integrated chip, and the resistance calibration circuit further includes a voltage acquisition lead disposed outside the optoelectronic integrated chip, where the voltage acquisition lead is connected to the ADC module and a received signal strength indication pin RSSI, and acquires the voltage of the external resistor through the ADC module. The ADC module of the MCU chip on the same module is used for measuring the voltage of the external resistor in the calibration process, and extra equipment is not needed for measuring.
And the MCU chip and the photoelectric integrated chip in the same module comprises a storage unit, and a process influence factor alpha (m) for resistance calibration obtained by the resistance calibration circuit is stored in the storage unit. The process influence factor alpha (m) (namely the calibration value) obtained in the calibration process is directly stored by using the storage unit in the MCU chip, no additional eFuse network is required to be arranged on the optoelectronic integrated chip, and the chip area and the cost cannot be increased.
Based on the same inventive concept, the embodiment of the invention also discloses a calibration method for the internal resistance of the optoelectronic integrated chip, which uses the calibration circuit for the internal resistance of the optoelectronic integrated chip of the above embodiment, and comprises the following steps,
opening the third switch SW 3;
turning off the first switch SW1, turning on the second switch SW2, and obtaining the voltage V loaded on the external resistor through the ADC module01;
The first switch SW1 is turned on, the second switch SW2 is turned off, and the voltage V loaded on the external resistor is obtained through the ADC module10;
According to voltage V01And voltage V10And determining the process influence factor alpha (m).
Wherein, the step of determining the process influence factor alpha (m) further comprises the step of determining the actual resistance R of the internal resistance of the optoelectronic integrated chipxThe determination method comprises the steps of,
Vddcharacterizing a voltage of the power supply terminal; rextAnd representing the resistance value of the external resistor.
And, determining the process impact factor α (m) further comprises,
Rtyp(T0) Characterised by the temperature T0Typical values of the following, which are not affected by the process, are determined from a process model.
The process influence factor alpha (m) of the internal resistor of each new photoelectric integrated chip is unique, the process influence factor alpha (m) determined according to the steps is stored in a storage unit of the MCU chip in the same module with the photoelectric integrated chip, the stored process influence factor cannot be lost due to power failure of a power supply, and repeated calibration caused by power failure of the chip every time is avoided.
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.