Data automatic calibration system and method of transmission interface and data processing equipment
By designing the data automatic calibration system for the transmission interface, and using the cooperation of the interface module and the comparison and adjustment module, the problems of low interface calibration efficiency and inability to achieve real-time calibration in the prior art are solved, and efficient and accurate data automatic calibration is achieved.
Patent Information
- Application Number
- CN202311435821.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2025-05-02
AI Technical Summary
In the prior art, the interface calibration of the serial data bus is inefficient, has high labor costs, and it is impossible to realize real-time calibration of data.
A data automatic calibration system for transmission interface is designed, including a data generation module, an interface module and a comparison and adjustment module. The calibration data is transmitted in a time-delayed manner through the interface module, calibration parameters are generated, and the comparison and optimization of the comparison and adjustment module is used to realize automatic calibration of the data to be transmitted.
Improve calibration efficiency and accuracy, real-time calibration of data to be transmitted is achieved, reducing labor costs and simplifying the calibration process.
Smart Images

Figure CN119917335A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data interface calibration, and in particular to a data automatic calibration system, method and data processing equipment for a transmission interface. Background Art
[0002] Serial data buses, including Mobile Industry Processor Interface (MIPI) and Low-Voltage Differential Signaling (LVDS), are common data buses. The above interfaces of the host and slave devices may cause errors in data transmission through the communication interface due to PCB process errors and the discreteness of the electronic components themselves.
[0003] The mainstream practice in the market is to manually input calibration data, then compare the output data with the calibration data, and manually adjust the delay parameters until the calibration data and the output data are consistent.
[0004] However, manual calibration is inefficient, labor-intensive, and cumbersome, and it is impossible to achieve real-time calibration of data. Summary of the invention
[0005] Based on this, it is necessary to provide a data automatic calibration system, method and data processing device for a transmission interface that can improve calibration efficiency and accuracy in order to address the above technical problems.
[0006] In a first aspect, the present application proposes a data automatic calibration system for a transmission interface, the system comprising: a data generation module, an interface module, and a comparison and adjustment module;
[0007] The output end of the data generation module is connected to the first input end of the interface module and the first input end of the comparison and adjustment module respectively, and is used to input the first calibration data or the data to be transmitted into the interface module and the first calibration data into the comparison and adjustment module after generating the first calibration data or the data to be transmitted;
[0008] The first output end of the interface module is connected to the second input end of the comparison and adjustment module, and the output end of the comparison and adjustment module is connected to the second input end of the interface module;
[0009] The interface module is used to delay the transmission of the first calibration data received to obtain second calibration data, and input the second calibration data into the comparison and adjustment module; the interface module is also used to automatically calibrate the received data to be transmitted based on the calibration parameters fed back by the comparison and adjustment module;
[0010] The comparison and adjustment module is used to compare the received first calibration data and the second calibration data, generate calibration parameters, and feed back the calibration parameters to the interface module.
[0011] In one embodiment, the interface module is further used to calibrate the first calibration data based on preset calibration parameters to obtain corresponding calibrated second calibration data, and send the calibrated second calibration data to the comparison and adjustment module.
[0012] In one embodiment, the comparison and adjustment module is also used to, after receiving the second calibration data after the calibration, repeat the above-mentioned comparison process, adjust the calibration parameters based on the previous comparison results, and repeat the above-mentioned calibration process through the interface module to optimize the calibration parameters until the target calibration parameters are obtained, so that the interface module automatically calibrates the data to be transmitted based on the target calibration parameters.
[0013] In one of the embodiments, the data generation module includes: a to-be-transmitted data generator and a calibration data generator;
[0014] The data generator to be transmitted is connected to the first input terminal of the interface module, and is used to send the generated data to be transmitted to the interface module;
[0015] The first output end of the calibration data generator is connected to the first input end of the interface module, and the second output end of the calibration data generator is connected to the first input end of the comparison and adjustment module, so as to send the generated first calibration data to the interface module and the comparison and adjustment module respectively when the data generator to be transmitted is idle.
[0016] In one of the embodiments, the comparison and adjustment module includes: a data comparison and judgment module and a calibration module;
[0017] The first input end of the data comparison and judgment module is connected to the output end of the data generation module, the second input end of the data comparison and judgment module is also connected to the first output end of the interface module, and the output end of the data comparison and judgment module is connected to the input end of the calibration module, and is used to receive the first calibration data from the data generation module, receive the second calibration data from the interface module, and compare the first calibration data with the second calibration data to obtain a comparison result, and send the comparison result to the calibration module;
[0018] The output end of the calibration module is connected to the second input end of the interface module, and is used to generate the calibration parameters based on the comparison result, and send the calibration parameters from the output end of the calibration module to the second input end of the interface module.
[0019] In one of the embodiments, the interface module includes: a delay module and a serial-to-parallel conversion module;
[0020] The output end of the data generation module is connected to the first input end of the delay module, the output end of the delay module is connected to the input end of the serial-to-parallel conversion module, the first output end of the serial-to-parallel conversion module is connected to the second input end of the comparison and adjustment module, and the output end of the comparison and adjustment module is connected to the second input end of the delay module.
[0021] In one of the embodiments, the delay module includes: a delay device and / or a clock phase adjustment device;
[0022] The delay device and / or the clock phase adjustment device performs delay adjustment on the first calibration data or the data to be transmitted based on the calibration parameters.
[0023] In a second aspect, the present application further provides a method for automatic calibration of data of a transmission interface, the method being used in a data automatic calibration system of a transmission interface, the system comprising a data generation module, an interface module and a comparison and adjustment module; the method comprising:
[0024] The data generation module generates first calibration data, and the first calibration data is input into the interface module; the first calibration data is transmitted through the interface module with delay to obtain second calibration data;
[0025] Inputting the first calibration data and the second calibration data into the comparison and adjustment module, comparing the received first calibration data and the second calibration data through the comparison and adjustment module to obtain a comparison result, generating a target calibration parameter based on the comparison result, and feeding the target calibration parameter back to the interface module;
[0026] The interface module automatically calibrates the data to be transmitted generated by the data generation module based on the target calibration parameters.
[0027] In one embodiment, the first calibration data and the second calibration data are input into the comparison and adjustment module, the comparison and adjustment module compares the received first calibration data and the second calibration data to obtain a comparison result, generates a target calibration parameter based on the comparison result, and feeds the calibration parameter back to the interface module, including:
[0028] By inputting the first calibration data and the second calibration data into the comparison and adjustment module; performing a first comparison on the received first calibration data and the second calibration data through the comparison and adjustment module to obtain a first comparison result, generating initial calibration parameters based on the first comparison result, and feeding back the initial calibration parameters to the interface module;
[0029] Calibrate the first calibration data based on the initial calibration parameters through the interface module to obtain the corresponding calibrated second calibration data, and send the calibrated second calibration data to the comparison and adjustment module;
[0030] The comparison process is repeatedly performed through the comparison and adjustment module, and the calibration process is repeatedly performed through the interface module, so that the comparison and adjustment module adjusts the calibration parameters based on the previous comparison results, optimizes the calibration parameters, until the target calibration parameters are obtained, and the target calibration parameters are fed back to the interface module.
[0031] In one embodiment, the automatically calibrating the data to be transmitted generated by the data generation module based on the target calibration parameter through the interface module includes:
[0032] The interface module adjusts the data delay, the clock phase, or the data delay and the clock phase in combination for the data to be transmitted based on the target calibration parameters to complete automatic calibration.
[0033] In a third aspect, the present application further provides a data processing device, the device comprising:
[0034] A data automatic calibration system for a transmission interface as described in any one of the first aspects above, and a data receiving device connected to an output end of the data automatic calibration system for the transmission interface.
[0035] In one embodiment, the device further comprises:
[0036] A data acquisition device connected to the input end of the data automatic calibration system of the transmission interface.
[0037] The data automatic calibration system, method and data processing device of the above-mentioned transmission interface are achieved by connecting the output end of the data generating module to the first input end of the interface module and the first input end of the comparison and adjustment module respectively, and connecting the first output end of the interface module to the second input end of the comparison and adjustment module, and connecting the output end of the comparison and adjustment module to the second input end of the interface module; so that the first calibration data generated by the data generating module is input into the interface module; the first calibration data is transmitted with a delay through the interface module, and the second calibration data is output at the first output end of the interface module; and the first calibration data and the second calibration data are input into the comparison and adjustment module; after the comparison and adjustment module compares the received first calibration data and the second calibration data, the comparison and adjustment module generates calibration parameters based on the comparison results; the calibration parameters are fed back to the interface module from the output end of the comparison and adjustment module, and based on the calibration parameters, the interface module automatically calibrates the data to be transmitted generated by the data generating module, thereby solving the problems of low efficiency, high labor cost and complicated process of manual calibration, and achieving the effect of automatic and real-time calibration of the data to be transmitted. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0039] Figure 1 A structural block diagram of a data automatic calibration system for a transmission interface in one embodiment;
[0040] Figure 2 A schematic diagram of a method for determining an optimal delay gear position in a preferred embodiment;
[0041] Figure 3 A schematic diagram of a method for determining an optimal delay gear position in another preferred embodiment;
[0042] Figure 4 A structural block diagram of a data automatic calibration system for a transmission interface in a preferred embodiment;
[0043] Figure 5 A schematic diagram of a flow chart of a method for automatic calibration of data of a transmission interface in one embodiment;
[0044] Figure 6 A flow chart of a method for real-time data calibration during an intermittent period of interface operation in a preferred embodiment;
[0045] Figure 7 FIG. 4 is a structural block diagram of a data processing device in one embodiment.
[0046] Attached figure numbers: 100, data automatic calibration system of transmission interface; 10, data generating module; 11, data generator to be transmitted; 12, calibration data generator; 20, interface module; 21, delay module; 22, serial-to-parallel conversion module; 30, comparison and adjustment module; 31, data comparison and judgment module; 32, calibration module; 200, data receiving device; 300, data acquisition device. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0048] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as the content disclosed in this application is insufficient.
[0049] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0050] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0051] In this embodiment, a data automatic calibration system 100 for a transmission interface is provided. Figure 1 1 is a structural block diagram of the data automatic calibration system 100 of the transmission interface of this embodiment. Figure 1 As shown, the system includes: a data generation module 10, an interface module 20 and a comparison and adjustment module 30.
[0052] The output end of the data generating module 10 is respectively connected to the first input end of the interface module 20 and the first input end of the comparison and adjustment module 30, and is used to input the first calibration data or the data to be transmitted into the interface module 20 and the comparison and adjustment module 30 after generating the first calibration data or the data to be transmitted.
[0053] The first output end of the interface module 20 is connected to the second input end of the comparison and adjustment module 30 , and the output end of the comparison and adjustment module 30 is connected to the second input end of the interface module 20 .
[0054] The interface module 20 is used to delay the transmission of the received first calibration data to obtain the second calibration data, and input the second calibration data into the comparison and adjustment module 30; the interface module 20 is also used to automatically calibrate the received data to be transmitted based on the calibration parameters fed back by the comparison and adjustment module 30.
[0055] The comparison and adjustment module 30 is used to compare the received first calibration data and the second calibration data, generate calibration parameters, and feed the calibration parameters back to the interface module 20 .
[0056] Specifically, the above system can be implemented by a microcontroller, or by using an FPGA or any other digital circuit as an implementation means.
[0057] Specifically, the first calibration data and the data to be transmitted are not input into the interface module 20 at the same time. Before the data to be transmitted is generated, the calibration data channel can be opened first, and the first calibration data can be passed through the interface module 20 and the comparison and adjustment module 30 to generate calibration parameters for automatic adjustment. Then the calibration data channel is closed and the normal data channel is opened, so that the data to be transmitted can be input into the interface module 20 to obtain the calibrated data to be transmitted. Alternatively, during the interval of the data to be transmitted, when it is judged that the normal data channel is idle, the calibration data channel can be opened to generate calibration parameters, so that the calibration parameters can be updated in real time during the normal data transmission process, without pausing the device for separate calibration. Therefore, the data automatic calibration system of the transmission interface has the functions of factory calibration and periodic trigger calibration.
[0058] Specifically, the interface module 20 is provided with preset delay parameters. Before the calibration parameters are generated, the first calibration data is delayed using the preset delay parameters. After more accurate calibration parameters are generated, the previously low-precision preset delay parameters are replaced.
[0059] In this embodiment, through the interconnected interface module 20 and the comparison and adjustment module 30, and the data generating module 10 respectively connected to the interface module 20 and the comparison and adjustment module 30, the first calibration data is delayed transmitted through the interface module 20 to obtain the second calibration data; and the first calibration data and the second calibration data are input into the comparison and adjustment module 30. After the comparison and adjustment module 30 compares the received first calibration data and the second calibration data, the comparison and adjustment module 30 generates calibration parameters based on the comparison result; the calibration parameters are fed back to the interface module 20 from the output end of the comparison and adjustment module 30. Based on the calibration parameters, the interface module 20 automatically calibrates the data to be transmitted generated by the data generating module 10, thereby solving the problems of low efficiency, high labor cost and complicated process of manual calibration, and achieving the effect of automatic and real-time calibration of the data to be transmitted.
[0060] In one embodiment, the interface module 20 is further configured to calibrate the first calibration data based on preset calibration parameters to obtain corresponding calibrated second calibration data, and send the calibrated second calibration data to the comparison and adjustment module 30 .
[0061] The comparison and adjustment module 30 is also used to, after receiving the second calibration data after calibration, repeat the above-mentioned comparison process, adjust the calibration parameters based on the previous comparison results, and repeat the above-mentioned calibration process through the interface module 20 to optimize the calibration parameters until the target calibration parameters are obtained, so that the interface module 20 automatically calibrates the data to be transmitted based on the target calibration parameters.
[0062] Specifically, a preset number of adjustable delay gears are divided into at least two subdivision units, and the subdivision units are preferably set in an equal division manner; the preset calibration parameter is a delay gear taken at the boundary of each subdivision unit in at least two subdivision units; the comparison adjustment module 30 is also used to reduce the range of non-error gears according to the previous comparison results, taking the subdivision unit as a unit, and further determine whether the delay gear in the subdivision unit has errors, until the gear boundary with errors is compared, and then the non-error gear range is derived, and the optimal delay gear is determined according to the median of the non-error gear range as the target calibration parameter; when the non-error gear range takes the median and there are two gears, the first delay gear is preferably used as the target calibration parameter, and it can also be set to take the second delay gear as the target calibration parameter as needed. Compared with the method of determining the optimal delay gear by the traversal method, the method of determining the optimal delay gear in this embodiment is more efficient and accurate.
[0063] In a preferred embodiment, see Figure 2 , taking 11 adjustable delay gears as an example, the process of determining the target calibration parameters is explained.
[0064] Specifically, when the first calibration data of the first round passes through the interface module 20, the interface module 20 uses delay gears 4 and 8 as preset calibration parameters for delayed transmission, and obtains two sets of second calibration data of the first round; the comparison and adjustment module 30 compares the two sets of second calibration data of the first round with the first calibration data in this round, and finds that the second calibration data corresponding to the delay gear 4 has errors, that is, it is different from the first calibration data, but the second calibration data corresponding to the delay gear 8 is correct, so based on the above comparison results, it is obtained that in the second round, the delay gears 6 and 11 are used as the calibration parameters of the second round.
[0065] When the first calibration data of the second round passes through the interface module 20, the interface module 20 uses the delay gears 6 and 11 as a reference for delayed transmission to obtain two sets of second calibration data of the second round; the comparison and adjustment module 30 compares the two sets of second calibration data of the second round with the first calibration data in this round, and finds that the second calibration data corresponding to the delay gear 6 has errors, that is, it is different from the first calibration data, but the second calibration data corresponding to the delay gear 11 is correct, so based on the above comparison results, it is obtained that in the second round, the delay gear 7 is used as the calibration parameter of the second round.
[0066] When the first calibration data of the third round passes through the interface module 20, the interface module 20 uses the delay gear 7 as a reference for delayed transmission to obtain a set of second calibration data of the third round; after comparison, it is found that the second calibration data corresponding to the delay gear 7 is correct, then based on the correct gear range narrowed down by the previous comparison results, it is inferred that delay gears 7 to 11 can all obtain correct data, so delay gear 9 is determined to be the optimal delay gear, which is the target calibration parameter.
[0067] In another preferred embodiment, see Figure 3 , taking 12 adjustable delay gears as an example, the process of determining the target calibration parameters is explained.
[0068] In the first round of adjustment, delay gears 4 and 9 were used as the benchmark. The data comparison module found that the data of delay gear 4 was erroneous, while the data of delay gear 9 was correct.
[0069] Since the first round of adjustment uses gears 4 and 9, the interface module 20 determines that the second round of adjustment uses delayed gears 6 and 12, resulting in bit errors in gear 6 and bit errors in gear 12 data.
[0070] In the third round, according to the results of the first and second rounds, the interface module 20 determines to use the gears 7 and 11 for adjustment, and obtains that the data of the gear 7 is correct and the data of the gear 11 is correct.
[0071] Since the delay gear range corresponding to the correct data has been determined, it is inferred that the 7-11 delay gears can obtain correct data, and the optimal delay point is determined to be gear 9 (the best delay gear).
[0072] Specifically, in the above two preferred embodiments, the gear division is specifically determined according to the delay device parameters, which can be a data delay adjustment gear or a clock phase adjustment gear.
[0073] In this embodiment, the target calibration parameters are positioned through cyclic iteration of the comparison results to obtain the optimal delay point, which can improve the accuracy and efficiency of data calibration.
[0074] In one embodiment, see Figure 4 The data generation module 10 includes: a data generator 11 to be transmitted and a calibration data generator 12.
[0075] The data generator 11 for transmission is connected to the first input terminal of the interface module 20 , and is used for sending the generated data for transmission to the interface module 20 .
[0076] The first output end of the calibration data generator 12 is connected to the first input end of the interface module 20, and the second output end of the calibration data generator 12 is connected to the first input end of the comparison and adjustment module 30, and is used to send the generated first calibration data to the interface module 20 and the comparison and adjustment module 30 respectively when the data generator 11 to be transmitted is idle.
[0077] The data generator 11 to be transmitted is connected to the interface module 20 using an interface (LVDS / MIPI cable or connector), so the data to be transmitted output by the data generator 11 to be transmitted has bit errors and needs to be calibrated.
[0078] In this embodiment, by alternately using the to-be-transmitted data generator 11 and the calibration data generator 12, real-time calibration is achieved during the intermission period of the interface operation, without stopping the machine for calibration, thereby improving the calibration efficiency.
[0079] In one embodiment, see Figure 4 The comparison and adjustment module 30 includes: a data comparison and judgment module 31 and a calibration module 32 .
[0080] The first input end of the data comparison and judgment module 31 is connected to the output end of the data generation module 10, and the second input end of the data comparison and judgment module 31 is also connected to the first output end of the interface module 20. The output end of the data comparison and judgment module 31 is connected to the input end of the calibration module 32, and is used to receive the first calibration data from the data generation module 10, receive the second calibration data from the interface module 20, and compare the first calibration data with the second calibration data to obtain a comparison result, and send the comparison result to the calibration module 32.
[0081] The output end of the calibration module 32 is connected to the second input end of the interface module 20 , and is used to generate calibration parameters based on the comparison result, and send the calibration parameters from the output end of the calibration module 32 to the second input end of the interface module 20 .
[0082] Specifically, the data generation module 10 includes a calibration data generator 12, and a first input terminal of the data comparison and judgment module 31 is connected to an output terminal of the calibration data generation module 10. After the calibration data generator 12 generates the first calibration data, the first calibration data is sent to the comparison and judgment module.
[0083] In this embodiment, accurate data comparison is achieved through the data comparison and judgment module 31, and calibration parameters are calculated and determined through the calibration module 32, thereby improving the accuracy of data calibration.
[0084] In one embodiment, see Figure 4 The interface module 20 includes: a delay module 21 and a serial-to-parallel conversion module 22 .
[0085] The output end of the data generation module 10 is connected to the first input end of the delay module 21, the output end of the delay module 21 is connected to the input end of the serial-to-parallel conversion module 22, the first output end of the serial-to-parallel conversion module 22 is connected to the second input end of the comparison and adjustment module 30, and the output end of the comparison and adjustment module 30 is connected to the second input end of the delay module 21.
[0086] Specifically, the data generation module 10 includes a data generator 11 to be transmitted and a calibration data generator 12, and the comparison and adjustment module 30 includes a data comparison and judgment module 31 and a calibration module 32. The data generator 11 to be transmitted and the calibration data generator 12 are respectively connected to the first input end of the delay module 21, and the output end of the calibration module 32 is connected to the second input end of the delay module 21.
[0087] When the delay module 21 receives the first calibration data, the first calibration data is delayed and transmitted according to the current calibration parameters. The delayed first calibration data is processed by the serial-to-parallel conversion module 22 to obtain the second calibration data, and the second calibration data is input into the data comparison and judgment module 31. The data comparison and judgment module 31 compares the first calibration data and the second calibration data to obtain the comparison result. The calibration module 32 receives the comparison result and determines the better delay gear as the calibration parameter to obtain the updated calibration parameter. The delay module 21 receives the updated calibration parameter and performs a new round of delay transmission processing with the updated calibration parameter. If the updated calibration parameter is the target calibration parameter, the delay module 21 automatically calibrates the data to be transmitted based on the target calibration parameter; if the updated calibration parameter is not the target parameter, the delay module 21 automatically calibrates the first calibration data based on the updated calibration parameter. After multiple automatic calibrations, the optimal calibration gear is iteratively optimized as the target calibration parameter.
[0088] In this embodiment, accurate calculation of the calibration parameters is achieved through data interaction between the delay module 21 and the serial-to-parallel conversion module 22 and the comparison and adjustment module 30 .
[0089] In one embodiment, the delay module 21 includes: a delay device and / or a clock phase adjustment device. The delay device and / or the clock phase adjustment device adjusts the delay of the first calibration data or the data to be transmitted based on the calibration parameters.
[0090] Specifically, there are three ways to achieve delay adjustment: (1) Adjusting data delay, mainly through delay devices, which can be IDELAY modules, and the characteristics are high precision and can reach 80ps precision in one gear, but the adjustment range is small, with a maximum of 3.3ns (under 300Mhz conditions). To expand the adjustment range by using IDELAY modules, a cascade method is required. (2) Clock phase adjustment, mainly through clock phase adjustment devices, which can be on-chip phase-locked loops (PLLs) for clock phase adjustment, and the characteristics are large adjustment range and can achieve 0-180° (0-3.3ns) phase adjustment within a data clock cycle, but the adjustment accuracy is low, 333ps (1% 300Mhz). (3) Delay devices and clock phase adjustment devices are combined, and the method of combining data delay adjustment and clock phase adjustment is adopted, which has the characteristics of high adjustment accuracy and wide adjustment range.
[0091] In this embodiment, high-precision calibration and adjustment are achieved through a delay device and a clock phase adjustment device.
[0092] In this embodiment, a data automatic calibration method for a transmission interface is also provided, which is used in a data automatic calibration system 100 for a transmission interface. The system includes a data generation module 10, an interface module 20, and a comparison and adjustment module 30; Figure 5 FIG. 1 is a flow chart of the data automatic calibration method of the transmission interface of the present embodiment. Figure 5 As shown, the process includes the following steps:
[0093] Step S510, generating first calibration data through the data generation module 10, and inputting the first calibration data into the interface module 20; the first calibration data is transmitted through the interface module 20 with delay to obtain second calibration data.
[0094] In step S520, the first calibration data and the second calibration data are input into the comparison and adjustment module 30, and the comparison and adjustment module 30 compares the received first calibration data and the second calibration data to obtain a comparison result, generates a target calibration parameter based on the comparison result, and feeds the target calibration parameter back to the interface module 20.
[0095] Step S530 : automatically calibrating the data to be transmitted generated by the data generating module 10 based on the target calibration parameters through the interface module 20 .
[0096] In the above embodiment, by inputting calibration data during the intermittent period of the interface working to perform real-time calibration, the problems of low efficiency, high labor cost and cumbersome process of manual calibration are solved, and efficient and accurate delay calibration of the transmitted data is achieved.
[0097] In one embodiment, based on the above step S520, the first calibration data and the second calibration data are input into the comparison and adjustment module 30, the comparison and adjustment module 30 compares the received first calibration data and the second calibration data to obtain a comparison result, generates a target calibration parameter based on the comparison result, and feeds the calibration parameter back to the interface module 20, specifically including the following steps:
[0098] Step S521, input the first calibration data and the second calibration data into the comparison and adjustment module 30; the comparison and adjustment module 30 performs a first comparison on the received first calibration data and the second calibration data to obtain a first comparison result, generates initial calibration parameters based on the first comparison result, and feeds back the initial calibration parameters to the interface module 20.
[0099] Step S522 , calibrating the first calibration data based on the initial calibration parameters through the interface module 20 to obtain corresponding calibrated second calibration data, and sending the calibrated second calibration data to the comparison and adjustment module 30 .
[0100] Step S523, repeatedly executing the above-mentioned comparison process through the comparison and adjustment module 30, and repeatedly executing the above-mentioned calibration process through the interface module 20, so that the comparison and adjustment module 30 adjusts the calibration parameters based on the previous comparison results, optimizes the calibration parameters, until the target calibration parameters are obtained, and feeds back the target calibration parameters to the interface module 20.
[0101] In the above embodiment, by performing cyclic calibration and comparison on the first calibration data and optimizing the calibration parameters based on the previous comparison results, not only the calculation query speed for the target calibration parameters is improved, but also the calculation query accuracy is improved.
[0102] In one of the embodiments, based on the above step S530, the data to be transmitted generated by the data generating module 10 is automatically calibrated based on the target calibration parameters through the interface module 20, including: adjusting the data delay separately, adjusting the clock phase separately, or adjusting the data delay and clock phase in combination for the data to be transmitted based on the target calibration parameters through the interface module 20 to complete the automatic calibration.
[0103] In the above embodiments, the accuracy of delay processing can be improved by selecting a corresponding delay implementation method based on different usage scenarios.
[0104] See also Figure 6 , the method for performing real-time data calibration during the intermittent period of interface work in this embodiment is described and illustrated through a preferred embodiment.
[0105] S1, based on the data channel idle flag, determine whether the data channel to be transmitted is idle, and switch to the calibration data generator 12 channel when the data channel to be transmitted is in an idle state.
[0106] S2, the calibration data generator 12 generates first calibration data, inputs the first calibration data into the delay module 21 and the serial-to-parallel conversion module to obtain second calibration data, and informs the data comparison and judgment module 31 of the content of the first calibration data generated.
[0107] S3, the data comparison and judgment module 31 compares the received first calibration data and the second calibration data to see whether they are the same, and sends the comparison result to the calibration module 32.
[0108] S4, the calibration module 32 receives the comparison result, and adjusts the data delay parameter of the delay module 21 or adjusts the clock phase based on the records of previous comparison results.
[0109] S5, the above data calibration process is repeated until the optimal delay parameter and clock phase are determined, and the data to be transmitted is automatically calibrated based on the optimal delay parameter and clock phase.
[0110] The above preferred embodiment utilizes the intermittent period of the interface operation to verify the calibration data passing through the interface module 20 in the data comparison and judgment module 31, and the calibration module 32 adjusts the data delay parameters of the delay module 21 or adjusts the clock phase, thereby solving the problem that the original solution can only verify the data manually, and improving the efficiency of verifying data.
[0111] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0112] In this embodiment, a data processing device is also provided. Figure 7 The device includes: the automatic data calibration system 100 of the transmission interface described in any of the above embodiments, and a data receiving device 200 connected to the output end of the automatic data calibration system 100 of the transmission interface.
[0113] In one embodiment, the device further includes: a data acquisition device 300 connected to the input end of the data automatic calibration system 100 of the transmission interface.
[0114] Specifically, the data receiving device 200 is connected to the second output end of the serial-to-parallel conversion module 22 of the data automatic calibration system 100 of the transmission interface; the data acquisition device 300 is connected to the data generator 11 to be transmitted of the data automatic calibration system 100 of the transmission interface.
[0115] The above-mentioned data processing device is suitable for the field of devices with MIPI and LVDS receiving / transmitting functions, such as camera devices and touch screen devices, and can automatically calibrate the error data generated by the MIPI and LVDS interfaces.
[0116] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0117] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0118] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data automatic calibration system for a transmission interface, characterized in that: The system comprises: a data generation module, an interface module and a comparison and adjustment module; The output end of the data generation module is connected to the first input end of the interface module and the first input end of the comparison and adjustment module respectively, and is used to input the first calibration data or the data to be transmitted into the interface module and the first calibration data into the comparison and adjustment module after generating the first calibration data or the data to be transmitted; The first output end of the interface module is connected to the second input end of the comparison and adjustment module, and the output end of the comparison and adjustment module is connected to the second input end of the interface module; The interface module is used to delay the transmission of the first calibration data received to obtain second calibration data, and input the second calibration data into the comparison and adjustment module; the interface module is also used to automatically calibrate the received data to be transmitted based on the calibration parameters fed back by the comparison and adjustment module; The comparison and adjustment module is used to compare the received first calibration data and the second calibration data, generate calibration parameters, and feed back the calibration parameters to the interface module.
2. The data automatic calibration system of the transmission interface according to claim 1, characterized in that: The interface module is further used to calibrate the first calibration data based on preset calibration parameters to obtain corresponding calibrated second calibration data, and send the calibrated second calibration data to the comparison and adjustment module.
3. The data automatic calibration system of the transmission interface according to claim 2, characterized in that: The comparison and adjustment module is also used to, after receiving the second calibration data after the calibration, repeat the above-mentioned comparison process, adjust the calibration parameters based on the previous comparison results, and repeat the above-mentioned calibration process through the interface module to optimize the calibration parameters until the target calibration parameters are obtained, so that the interface module automatically calibrates the data to be transmitted based on the target calibration parameters.
4. The data automatic calibration system of the transmission interface according to claim 1, characterized in that: The data generation module includes: a data generator to be transmitted and a calibration data generator; The data generator to be transmitted is connected to the first input terminal of the interface module, and is used to send the generated data to be transmitted to the interface module; The first output end of the calibration data generator is connected to the first input end of the interface module, and the second output end of the calibration data generator is connected to the first input end of the comparison and adjustment module, so as to send the generated first calibration data to the interface module and the comparison and adjustment module respectively when the data generator to be transmitted is idle.
5. The data automatic calibration system of the transmission interface according to claim 1, characterized in that: The comparison and adjustment module includes: a data comparison and judgment module and a calibration module; The first input end of the data comparison and judgment module is connected to the output end of the data generation module, the second input end of the data comparison and judgment module is also connected to the first output end of the interface module, and the output end of the data comparison and judgment module is connected to the input end of the calibration module, and is used to receive the first calibration data from the data generation module, receive the second calibration data from the interface module, and compare the first calibration data with the second calibration data to obtain a comparison result, and send the comparison result to the calibration module; The output end of the calibration module is connected to the second input end of the interface module, and is used to generate the calibration parameters based on the comparison result, and send the calibration parameters from the output end of the calibration module to the second input end of the interface module.
6. The data automatic calibration system of the transmission interface according to claim 1, characterized in that: The interface module includes: a delay module and a serial-to-parallel conversion module; The output end of the data generation module is connected to the first input end of the delay module, the output end of the delay module is connected to the input end of the serial-to-parallel conversion module, the first output end of the serial-to-parallel conversion module is connected to the second input end of the comparison and adjustment module, and the output end of the comparison and adjustment module is connected to the second input end of the delay module.
7. The data automatic calibration system of the transmission interface according to claim 6, characterized in that: The delay module includes: a delay device and / or a clock phase adjustment device; The delay device and / or the clock phase adjustment device performs delay adjustment on the first calibration data or the data to be transmitted based on the calibration parameters.
8. A data automatic calibration method for a transmission interface, characterized in that: The method is used for a data automatic calibration system of a transmission interface, the system comprising a data generation module, an interface module and a comparison and adjustment module; the method comprises: The data generation module generates first calibration data, and the first calibration data is input into the interface module; the first calibration data is transmitted through the interface module with delay to obtain second calibration data; Inputting the first calibration data and the second calibration data into the comparison and adjustment module, comparing the received first calibration data and the second calibration data through the comparison and adjustment module to obtain a comparison result, generating a target calibration parameter based on the comparison result, and feeding the target calibration parameter back to the interface module; The interface module automatically calibrates the data to be transmitted generated by the data generation module based on the target calibration parameters.
9. The data automatic calibration method of the transmission interface according to claim 8, characterized in that: The step of inputting the first calibration data and the second calibration data into the comparison and adjustment module, comparing the received first calibration data and the second calibration data through the comparison and adjustment module to obtain a comparison result, generating a target calibration parameter based on the comparison result, and feeding the calibration parameter back to the interface module includes: By inputting the first calibration data and the second calibration data into the comparison and adjustment module; performing a first comparison on the received first calibration data and the second calibration data through the comparison and adjustment module to obtain a first comparison result, generating initial calibration parameters based on the first comparison result, and feeding back the initial calibration parameters to the interface module; Calibrate the first calibration data based on the initial calibration parameters through the interface module to obtain the corresponding calibrated second calibration data, and send the calibrated second calibration data to the comparison and adjustment module; The comparison process is repeatedly performed through the comparison and adjustment module, and the calibration process is repeatedly performed through the interface module, so that the comparison and adjustment module adjusts the calibration parameters based on the previous comparison results, optimizes the calibration parameters, until the target calibration parameters are obtained, and the target calibration parameters are fed back to the interface module.
10. The data automatic calibration method of the transmission interface according to claim 8, characterized in that: The method of automatically calibrating the data to be transmitted generated by the data generation module based on the target calibration parameter through the interface module includes: The interface module adjusts the data delay, the clock phase, or the data delay and the clock phase in combination for the data to be transmitted based on the target calibration parameters to complete automatic calibration.
11. A data processing device, characterized in that: The device comprises: The automatic data calibration system for the transmission interface as described in any one of claims 1 to 7, and a data receiving device connected to the output end of the automatic data calibration system for the transmission interface.
12. The data processing device according to claim 11, characterized in that The device also includes: A data acquisition device connected to the input end of the data automatic calibration system of the transmission interface.