Calibration methods, devices, and storage media for reference voltages
By calculating the step value and adjusting trim_coarse, the target trim value is determined, which solves the problem of low reference voltage calibration efficiency in the existing technology. Especially in the case of the maximum trim value, the calibration efficiency is significantly improved.
Patent Information
- Application Number
- CN202210767863.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-06-30
AI Technical Summary
The reference voltage calibration efficiency in the prior art is low, especially when the maximum trim value of the trim register is large, the number of calibrations increases, resulting in low efficiency.
By obtaining the adjusted reference voltage values of trim_mid and trim_mid+1, calculate the step value, adjust trim_coarse according to the step value and the target reference voltage value, and determine whether the third reference voltage value is within the preset voltage range and is greater than the target voltage value. , thereby determining the target trim value and reducing the number of calibrations.
Compared with the incremental method or the dichotomy method, the number of calibrations is significantly reduced. Especially when the maximum trim value is large, the performance improvement is more obvious and the calibration efficiency is improved.
Smart Images

Figure CN114967813B
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip calibration, and in particular to a reference voltage calibration method, device and storage medium. Background Art
[0002] In the prior art, after the chip sample is taped out, the most important step before testing the chip related functions in the laboratory stage is to calibrate the chip clock. During the chip production process, due to equipment, process and other issues, there is a certain deviation between the actual reference voltage of the chip after leaving the factory and the set target reference voltage.
[0003] In order for the chip to work properly, the reference voltage of the chip must be calibrated. In the prior art, a trim register is reserved inside the chip at the beginning of chip design to calibrate the reference voltage. In the prior art, when calibrating the reference voltage of the chip, an incremental method or a binary method is used to calibrate the reference voltage, and a large number of calibrations are required to complete the calibration. This calibration method is relatively inefficient, especially when the maximum trim value of the trim register is large, the number of calibrations will increase rapidly. Summary of the invention
[0004] The embodiments of the present application provide a reference voltage calibration method, device, and storage medium, which can solve the problem of low reference voltage calibration efficiency in the prior art. The technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a reference voltage calibration method, the method comprising:
[0006] Obtaining a first reference voltage value of the chip to be calibrated after adjustment based on trim_mid; wherein tirm_mid is half of the maximum trim value of the trim register;
[0007] Obtaining a second reference voltage value of the chip to be calibrated after adjustment based on trim_mid+1;
[0008] Calculate the step value; wherein LSB=VREF2-VREF1, LSB is the step value, VREF1 is the first reference voltage value, and VREF2 is the second reference voltage value;
[0009] Obtaining a third reference voltage value of the chip to be calibrated after adjustment based on trim_coarse; wherein trim_coarse=(VREF_target-VREF1) / LSB+trim_mid, and VREF_target is a target reference voltage value of the chip to be calibrated;
[0010] Determining whether the third reference voltage value is within the range of VREF_target±LSB;
[0011] If yes, determine whether the third reference voltage value is greater than VREF_target;
[0012] If yes, use trim_coarse-1 as the target trim value.
[0013] In a second aspect, an embodiment of the present application provides a reference voltage calibration device, the device comprising:
[0014] An acquisition unit, used for acquiring a first reference voltage value of the chip to be calibrated after adjustment based on trim_mid; wherein tirm_mid is half of the maximum trim value of the trim register;
[0015] The acquisition unit is further used to acquire the second reference voltage value of the chip to be calibrated after adjustment based on trim_mid+1;
[0016] A calculation unit, used for calculating a step value; wherein LSB=VREF2-VREF1, LSB is the step value, VREF1 is the first reference voltage value, and VREF2 is the second reference voltage value;
[0017] The acquisition unit is further used to acquire a third reference voltage value of the chip to be calibrated after adjustment based on trim_coarse; wherein trim_coarse=(VREF_target-VREF1) / LSB+trim_mid, and VREF_target is a target reference voltage value of the chip to be calibrated;
[0018] A judging unit, configured to judge whether the third reference voltage value is within the range of VREF_target±LSB;
[0019] The judging unit is further configured to judge whether the third reference voltage value is greater than VREF_target if the answer is yes;
[0020] Calibration unit, used to set trim_coarse-1 as the target trim value if yes.
[0021] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0022] In a fourth aspect, an embodiment of the present application provides a calibration device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0023] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0024] The step value is calculated based on the voltage values of the two reference voltages obtained based on trim_mid and trim_mid+1, and then trim_coarse is calculated based on the step value, the target reference voltage value, the first reference voltage value adjusted based on trim_mid, and trim_mid. Then, the third reference voltage value after trim_coarse adjustment is compared with the preset voltage value range. When the third reference voltage value is within the preset voltage value range and is greater than the target base station voltage value, trim_coarse-1 is used as the target trim value, so that the chip to be calibrated adjusts the reference voltage based on the target trim value. Compared with determining the target trim value by the incremental method or the binary method, the present application can reduce the number of calibration times, especially when the maximum trim value is large, the performance improvement is more obvious, and therefore has a higher calibration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 It is a schematic diagram of the network architecture provided by the embodiment of the present application;
[0027] Figure 2 It is a flowchart of a reference voltage calibration method provided in an embodiment of the present application;
[0028] Figure 3 is another flow chart of the reference voltage calibration method provided in an embodiment of the present application;
[0029] Figure 4 It is a structural schematic diagram of a reference voltage calibration device provided by the present application;
[0030] Figure 5 This is another structural schematic diagram of a base station voltage calibration device provided by the present application. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0032] It should be noted that the reference voltage calibration method provided in the present application is generally performed by a calibration device, and accordingly, the reference voltage calibration device is generally arranged in the calibration device.
[0033] Figure 1 An exemplary system architecture that can be applied to the reference voltage calibration method or reference voltage calibration device of the present application is shown.
[0034] like Figure 1 As shown, the system architecture may include: a calibration device, a chip to be calibrated, and a voltage follower.
[0035] The first port 1 of the calibration device is connected to the control pin of the chip to be calibrated, and the calibration device writes the trim value to the trim register of the chip to be calibrated through the first port. The second port 2 of the calibration device 2 is connected to the reference voltage output pin of the chip to be calibrated through a voltage follower, and the voltage follower improves the driving capability of the chip to be calibrated. The chip to be calibrated adjusts the reference voltage based on the trim value in the trim register, and then outputs the reference voltage signal through the reference voltage output pin, and the device to be calibrated measures the voltage value of the reference voltage signal through the second port 2.
[0036] The calibration device may be a host computer, that is, the calibration device may be various calibration devices with a display screen, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like.
[0037] It should be understood that Figure 1 The number of calibration devices, voltage followers and chips to be calibrated is only illustrative and can be any number according to implementation requirements.
[0038] The following will be combined with the attached Figure 2 , the reference voltage calibration method provided in the embodiment of the present application is described in detail. Among them, the reference voltage calibration device in the embodiment of the present application can be Figure 1 The calibration setup shown.
[0039] See also Figure 2 , is a flow chart of a reference voltage calibration method provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:
[0040] S201 , obtaining a first reference voltage value of a chip to be calibrated after adjustment based on trim_mid.
[0041] The chip to be calibrated is provided with a trim register, which is used to store the trim value. The chip to be calibrated adjusts the reference voltage according to the trim value stored in the trim register. The calibration device is connected to the reference voltage output pin of the chip to be calibrated, and the calibration device obtains the reference voltage value of the chip to be calibrated through the reference voltage output pin. The calibration device is connected to the register pin of the chip to be calibrated, and the trim value is written to the trim register through the register pin. After the calibration device writes trim_mid to the trim register, the chip to be calibrated adjusts the reference voltage based on trim_mid, and the calibration device obtains the adjusted first reference voltage value. Trim_mid is half of the maximum trim value of the trim register. The maximum trim value of the trim register is related to the number of bits. For example, the number of bits of the tirm register is 8, and the value range of the trim register is 0 to 255, that is, the maximum trim value is 255, and trim_mid is 127. The calibration device obtains the first reference voltage value of the chip to be calibrated after adjustment based on the trim value of 127.
[0042] S202 , obtaining a second reference voltage value of the chip to be calibrated after adjustment based on trim_mid+1.
[0043] For example, the calibration device obtains the second reference voltage value of the chip to be calibrated after the adjustment based on the trim value of 128. Since the reference voltage value and the trim value are positively correlated, the second reference voltage value is greater than the first reference voltage value.
[0044] S203: Calculate the step value.
[0045] The step value is calculated according to the following formula: LSB=VREF2-VREF1, LSB is the step value, VREF1 is the first reference voltage value, and VREF2 is the second reference voltage value.
[0046] S204, obtaining a third reference voltage value of the chip to be calibrated after adjustment based on trim_coarse.
[0047] Among them, trim_coarse is calculated according to the following formula: trim_coarse = (VREF_target-VREF1) / LSB+trim_mid, VREF_target is the target reference voltage value of the chip to be calibrated, that is, the reference voltage value finally output by the chip to be calibrated, VREF1 is the first reference voltage value, LSB is the step value, and trim_mid is half of the maximum trim value.
[0048] S205 , determining whether the third reference voltage value is within the range of VREF_target±LSB.
[0049] Here, it is determined whether VREF_target-LSB≤VREF3≤VREF_target+LSB is satisfied, VREF3 is the third reference voltage value, VREF_target is the target reference voltage value, and LSB is the step value.
[0050] S206 , if yes, determine whether the third reference voltage value is greater than VREF_target.
[0051] If VREF_target-LSB≤VREF3≤VREF_target+LSB is satisfied, it is further determined whether VREF3 is greater than VREF_target.
[0052] S207. Set trim_coarse-1 as the target trim value.
[0053] The calibration device writes trim_coarse-1 into the trim register, and the chip to be calibrated adjusts the reference voltage according to trim_coarse-1.
[0054] In the embodiment of the present application, when calibrating the reference voltage of the chip, the step value is calculated based on the voltage values of the two reference voltages obtained by trim_mid and trim_mid+1, and then trim_coarse is calculated according to the step value, the target reference voltage value, the first reference voltage value adjusted based on trim_mid, and trim_mid. Then, the third reference voltage value after trim_coarse adjustment is compared with the preset voltage value range. When the third reference voltage value is within the preset voltage value range and is greater than the target base station voltage value, trim_coarse-1 is used as the target trim value, so that the reference voltage of the chip to be calibrated is adjusted based on the target trim value. Compared with determining the target trim value by the incremental method or the binary method, the present application can reduce the number of calibration times, especially when the maximum trim value is large, the performance improvement is more obvious, and therefore has a higher calibration efficiency.
[0055] See also Figure 3 As shown, Figure 3 Another flowchart of a reference voltage calibration method provided in an embodiment of the present application is provided. In an embodiment of the present application, the method includes the following steps:
[0056] S301 , obtaining a first reference voltage value of a chip to be calibrated after adjustment based on tirm_mid.
[0057] Among them, trim_mid is half of the maximum trim value in the trim register, that is, trim_mid=trim_full / 2, and trim_full is the maximum trim value.
[0058] S302 , obtaining a second reference voltage value of the chip to be calibrated after adjustment based on trim_mid+1.
[0059] S303: Calculate the step value.
[0060] The step value is calculated according to the following formula: LSB=VREF2-VREF1, LSB is the step value, VREF1 is the first reference voltage value, and VREF2 is the second reference voltage value.
[0061] S304 , obtaining a third reference voltage value of the chip to be calibrated after adjustment based on trim_coarse.
[0062] S305 , determining whether the third reference voltage value is less than or equal to VREF_target+LSB.
[0063] Wherein, VREF_target is a preset target reference voltage value, and LSB is the step value calculated in S303. If the judgment result is yes, execute S306; if the judgment result is no, execute S313.
[0064] S306: Determine whether the third reference voltage value is greater than or equal to VREF_target-LSB.
[0065] If the judgment result is yes, execute S307, if the judgment result is no, execute S314.
[0066] S307: Determine whether the third reference voltage value is greater than VREF_target.
[0067] If the judgment result is yes, execute S308, if the judgment result is no, execute S309.
[0068] S308. Set trim_coarse-1 as the target trim value.
[0069] The calibration device writes trim_coarse-1 into the trim register of the chip to be calibrated, and the chip to be calibrated performs calibration of the reference voltage according to trim_coarse-1.
[0070] S309 , obtaining a fifth reference voltage value of the chip to be calibrated after adjustment based on trim_coarse+1.
[0071] S310, determine whether abs(VREF5-VREF_target)>abs(VREF3-VREF_target) is satisfied.
[0072] Wherein, abs represents an absolute value operator. If the judgment result is yes, execute S311, if the judgment result is no, execute S312.
[0073] S311. Set trim_coarse as the target trim value.
[0074] The calibration device writes trim_coarse into the trim register, and the chip to be calibrated adjusts the reference voltage according to trim_coarse written into the trim register.
[0075] S312. Set trim_coarse-1 as the target trim value.
[0076] The calibration device writes trim_coarse-1 into the trim register of the chip to be calibrated.
[0077] S313. Set trim_coarse-1 as the target trim value.
[0078] S314, obtaining a fourth reference voltage value of the chip to be calibrated after adjustment based on trim_coarse-1.
[0079] S315 , determining whether the fourth reference voltage value is within the range of VREF_target±LSB.
[0080] Here, it is determined whether VREF_target-LSB≤VREF4≤VREF_target+LSB is satisfied. If not, S316 is executed; if yes, S317 is executed.
[0081] S316: Update the third reference voltage value according to the fourth reference voltage value.
[0082] The fourth reference voltage value is used as a new third reference voltage value, and then the process jumps to execute S305.
[0083] S317: Determine whether the fourth reference voltage value is greater than VREF_target.
[0084] If the judgment result is yes, execute S318, if the judgment result is no, execute S319.
[0085] S318. Set trim_coarse as the target trim value.
[0086] S319, obtaining a sixth reference voltage value of the chip to be calibrated after adjustment based on trim_coarse+2.
[0087] S320, determine whether abs(VREF6-VREF_target)>abs(VREF3-VREF_target) is satisfied.
[0088] Wherein, VREF6 is a sixth reference voltage value.
[0089] S321. Set trim_coarse+1 as the target trim value.
[0090] S322. Set trim_coarse+2 as the target trim value.
[0091] In the embodiment of the present application, the step value is calculated based on the voltage values of the two reference voltages obtained by trim_mid and trim_mid+1, and then trim_coarse is calculated according to the step value, the target reference voltage value, the first reference voltage value adjusted based on trim_mid, and trim_mid, and then the third reference voltage value adjusted by trim_coarse is compared with the preset voltage value range. When the third reference voltage value is within the preset voltage value range and is greater than the target base station voltage value, trim_coarse-1 is used as the target trim value, so that the chip to be calibrated adjusts the reference voltage based on the target trim value. Compared with the incremental method or the binary method for determining the target trim value, the present application can reduce the number of calibration times, especially when the maximum trim value is large, the performance improvement is more obvious, and therefore has a higher calibration efficiency.
[0092] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0093] See also Figure 4 , which shows a schematic diagram of the structure of a reference voltage calibration device provided by an exemplary embodiment of the present application, hereinafter referred to as device 4. The device 4 can be implemented as all or part of the calibration device through software, hardware or a combination of both. The device 4 includes: an acquisition unit 401, a calculation unit 402, a judgment unit 403, and a calibration unit 404.
[0094] An acquisition unit 401 is used to acquire a first reference voltage value of the chip to be calibrated after adjustment based on trim_mid; wherein tirm_mid is half of the maximum trim value of the trim register;
[0095] The acquisition unit 401 is further configured to acquire a second reference voltage value of the chip to be calibrated after adjustment based on trim_mid+1;
[0096] The calculation unit 402 is used to calculate the step value; wherein LSB=VREF2-VREF1, LSB is the step value, VREF1 is the first reference voltage value, and VREF2 is the second reference voltage value;
[0097] The acquisition unit 401 is further used to acquire the third reference voltage value of the chip to be calibrated after adjustment based on trim_coarse; wherein trim_coarse=(VREF_target-VREF1) / LSB+trim_mid, and VREF_target is the target reference voltage value of the chip to be calibrated;
[0098] A judging unit 403, configured to judge whether the third reference voltage value is within the range of VREF_target±LSB;
[0099] The judging unit 403 is further configured to, if yes, judge whether the third reference voltage value is greater than VREF_target;
[0100] The calibration unit 404 is configured to use trim_coarse-1 as the target trim value if the answer is yes.
[0101] In one or more possible embodiments, the calibration unit 404 is further configured to:
[0102] If the third reference voltage value is less than or equal to VREF_target, obtaining a fifth reference voltage value of the chip to be calibrated adjusted based on trim_coarse+1;
[0103] Determine whether abs(VREF5-VREF_target)>abs(VREF3-VREF_target); wherein VREF5 is the fifth reference voltage value;
[0104] If yes, use trim_coarse as the target trim value;
[0105] If false, use trim_coarse-1 as the target trim value.
[0106] In one or more possible embodiments, the calibration unit 404 is further configured to:
[0107] If the third reference voltage value is greater than VREF_target+LSB, trim_coarse-1 is used as the target trim value; or
[0108] If the third reference voltage value is less than VREF_target-LSB, obtaining a fourth reference voltage value of the chip to be calibrated after adjustment based on trim_coarse+1;
[0109] Determining whether the fourth reference voltage value is within the range of VREF_target±LSB;
[0110] If not, the third reference voltage value is updated according to the fourth reference voltage value, and the step of determining whether the third reference voltage value is within the range of VREF_target±LSB is continued.
[0111] In one or more possible embodiments, the calibration unit 404 is further configured to:
[0112] If the fourth reference voltage value is within the range of VREF_target±LSB, determining whether the fourth reference voltage value is greater than VREF_target;
[0113] If yes, trim_coarse is used as the target trim value;
[0114] In one or more possible embodiments, the calibration unit 404 is further configured to:
[0115] If the fourth reference voltage value is less than or equal to VREF_target, obtaining a sixth reference voltage value of the chip to be calibrated after adjustment based on trim_coarse;
[0116] Determine whether (VREF6-VREF_target)>abs(VREF3-VREF_target); wherein VREF6 is the sixth reference voltage value;
[0117] If yes, set trim_coarse+1 as the target trim value;
[0118] If not, use trim_coarse+2 as the target trim value.
[0119] In one or more possible embodiments, obtaining the first reference voltage value of the chip to be calibrated after being adjusted based on trim_mid includes:
[0120] Writing trim_mid into the trim register of the chip to be calibrated, so that the trim register adjusts the reference voltage according to the trim_mid and outputs a first reference voltage signal;
[0121] A first reference voltage value of the first reference voltage signal is measured by a voltage measuring unit.
[0122] In one or more possible embodiments, the maximum trim value of the trim register is determined by the bit width.
[0123] It should be noted that, when the device 4 provided in the above embodiment performs the reference voltage calibration method, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above functions. In addition, the reference voltage calibration device provided in the above embodiment and the reference voltage calibration method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0124] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0125] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.
[0126] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the reference voltage calibration method described in the above embodiments.
[0127] See also Figure 5 , which is a schematic diagram of the structure of a calibration device provided in an embodiment of the present application. Figure 5 As shown, the calibration device 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .
[0128] The communication bus 502 is used to realize the connection and communication between these components.
[0129] The user interface 503 may include a display screen (Display) and a camera (Camera), and the optional user interface 503 may also include a standard wired interface and a wireless interface.
[0130] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0131] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect the various parts of the entire calibration device 500, and executes various functions and processes data of the calibration device 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501, and can be implemented separately through a chip.
[0132] Among them, the memory 505 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. As Figure 5 As shown, the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program.
[0133] exist Figure 5In the calibration device 500 shown in FIG. 1 , the user interface 503 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 501 can be used to call the application stored in the memory 505 and specifically execute the following steps: Figure 2 The specific process can be referred to Figure 2 As shown, no further description is given here.
[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0135] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A reference voltage calibration method, characterized in that: include: Obtaining a first reference voltage value of the chip to be calibrated after adjustment based on trim_mid; wherein tirm_mid is half of a maximum trim value of a trim register, the trim register is provided with a plurality of trim values, and the trim value is used to adjust the reference voltage of the chip to be calibrated; Obtaining a second reference voltage value of the chip to be calibrated after adjustment based on trim_mid+1; Calculate the step value; wherein LSB=VREF2-VREF1, LSB is the step value, VREF1 is the first reference voltage value, and VREF2 is the second reference voltage value; Obtaining a third reference voltage value of the chip to be calibrated after adjustment based on trim_coarse; wherein trim_coarse=(VREF_target-VREF1) / LSB+trim_mid, and VREF_target is a target reference voltage value of the chip to be calibrated; Determining whether the third reference voltage value is within the range of VREF_target±LSB; If yes, determine whether the third reference voltage value is greater than VREF_target; If yes, use trim_coarse-1 as the target trim value.
2. The method according to claim 1, characterized in that Also includes: If the third reference voltage value is less than or equal to VREF_target, obtaining a fifth reference voltage value of the chip to be calibrated adjusted based on trim_coarse+1; Determine whether abs(VREF5-VREF_target)>abs(VREF3-VREF_target); wherein VREF5 is the fifth reference voltage value, and abs represents an absolute value operator; If yes, use trim_coarse as the target trim value; If false, use trim_coarse-1 as the target trim value.
3. The method according to claim 1 or 2, characterized in that: Also includes: If the third reference voltage value is greater than VREF_target+LSB, trim_coarse-1 is used as the target trim value; or If the third reference voltage value is less than VREF_target-LSB, obtaining a fourth reference voltage value of the chip to be calibrated adjusted based on trim_coarse+1; Determining whether the fourth reference voltage value is within the range of VREF_target±LSB; If not, the third reference voltage value is updated according to the fourth reference voltage value, and the step of determining whether the third reference voltage value is within the range of VREF_target±LSB is continued.
4. The method according to claim 3, characterized in that Also includes: If the fourth reference voltage value is within the range of VREF_target±LSB, determining whether the fourth reference voltage value is greater than VREF_target; If yes, use trim_coarse as the target trim value.
5. The method according to claim 4, characterized in that Also includes: If the fourth reference voltage value is less than or equal to VREF_target, obtaining a sixth reference voltage value of the chip to be calibrated after adjustment based on trim_coarse; Determine whether (VREF6-VREF_target)>abs(VREF3-VREF_target); wherein VREF6 is the sixth reference voltage value; If yes, set trim_coarse+1 as the target trim value; If not, use trim_coarse+2 as the target trim value.
6. The method according to claim 1 or 2 or 4 or 5, characterized in that: The step of obtaining a first reference voltage value of the chip to be calibrated after adjustment based on trim_mid includes: Writing trim_mid into the trim register of the chip to be calibrated, so that the trim register adjusts the reference voltage according to the trim_mid and outputs a first reference voltage signal; A first reference voltage value of the first reference voltage signal is measured by a voltage measuring unit.
7. The method according to claim 6, characterized in that The maximum trim value of the trim register is determined by the bit width.
8. A reference voltage calibration device, characterized in that: include: An acquisition unit, used for acquiring a first reference voltage value of the chip to be calibrated after adjustment based on trim_mid; wherein tirm_mid is half of a maximum trim value of a trim register, the trim register is provided with a plurality of trim values, and the trim value is used for adjusting the reference voltage of the chip to be calibrated; The acquisition unit is further used to acquire the second reference voltage value of the chip to be calibrated after adjustment based on trim_mid+1; A calculation unit, used for calculating a step value; wherein LSB=VREF2-VREF1, LSB is the step value, VREF1 is the first reference voltage value, and VREF2 is the second reference voltage value; The acquisition unit is further used to acquire a third reference voltage value of the chip to be calibrated after adjustment based on trim_coarse; wherein trim_coarse=(VREF_target-VREF1) / LSB+trim_mid, and VREF_target is a target reference voltage value of the chip to be calibrated; A judging unit, configured to judge whether the third reference voltage value is within the range of VREF_target±LSB; The judging unit is further configured to judge whether the third reference voltage value is greater than VREF_target if the answer is yes; Calibration unit, used to set trim_coarse-1 as the target trim value if yes.
9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.
10. A reference voltage calibration device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.
