System, method, device, processor and computer readable storage medium thereof for adjusting trim values in normal operation mode
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-19
- Publication Date
- 2026-08-11
AI Technical Summary
[0004]针对现有技术中存在的只能在测试模式下进行修调,一旦确定并烧写到存储器中后不可修改,在温度或电压等影响因素变化较大时产生的偏差不可重新调整,并且在振荡器的应用中,时钟频率只能在已知确定的值下进行切换,当用户需要使用相近的其他频率时无法实现,因此在实用性和灵活性方面,现有技术仍存在很大的优化空间
[0043] This invention relates to a system, method, apparatus, processor, and computer-readable storage medium for adjusting trimming values in normal operating mode. By implementing hardware-based adjustments to trimming values in normal operating mode, and allowing for adjustments via registers when external environmental conditions change significantly, the accuracy of components such as reference voltages and oscillators can be improved. Simultaneously, the protection register settings can protect trimming values from accidental operation. For oscillators, this invention allows for flexible adjustment of clock signals at different frequencies by changing the trimming values, with an adjustable frequency range near a set frequency. Adjusting the output frequency by adjusting the oscillator's trimming values also increases the flexibility of signal usage. The method of selecting the trimming value switching time according to actual needs allows for immediate switching or switching when the MCU sends a STOP command to enter sleep mode, making it more convenient, simple, and flexible for users.
Smart Images

Figure CN115993990B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic technology, and more particularly to the field of chip trimming technology, specifically to a system, method, apparatus, processor, and computer-readable storage medium for adjusting trimming values in normal operating mode. Background Technology
[0002] Typically, chips calibrate certain parameters during testing, such as reference voltage, reference current, high-frequency clock, and low-frequency clock, and write the calibration values to designated addresses in memory. These calibration values cannot be changed during normal operation unless the chip is reprogrammed; the oscillator, reference current, and voltage remain fixed values or frequencies. While this ensures signal safety and accuracy, it prevents fine-tuning during use and limits applications. Deviations caused by changes in environmental conditions, such as significant voltage or temperature variations, cannot be corrected. Furthermore, after calibration, the chip can only use a fixed-frequency clock, making it impossible for users to make small adjustments to the oscillator frequency.
[0003] In existing technologies, calibration values can be performed during pre-calibration or testing, and the calibration values are written to a specified address in memory. For example, the oscillator calibration process is as follows: Figure 1 As shown: In test and programming modes, the oscillator frequency is adjusted to a fixed value. The adjustment value is programmed into the memory for frequency adjustment. The adjustment value can change the charging and discharging time of the capacitor by adjusting the bias current, thus affecting the oscillation frequency, which is then output to the digital circuit section. Under normal circumstances, it cannot be modified in normal operating mode.
[0004] Existing technologies can only be adjusted in test mode, and once determined and written to memory, they cannot be modified. Deviations caused by significant changes in factors such as temperature or voltage cannot be readjusted. Furthermore, in oscillator applications, the clock frequency can only be switched at a known and fixed value, making it impossible to use other similar frequencies when needed. Therefore, existing technologies still have considerable room for improvement in terms of practicality and flexibility. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of the prior art and provide a system, method, apparatus, processor and computer-readable storage medium thereof that allows for flexible adjustment of adjustment values under normal working conditions.
[0006] To achieve the above objectives, the present invention provides a system, method, apparatus, processor, and computer-readable storage medium for adjusting adjustment values in normal operating mode, as follows:
[0007] The system for adjusting values under normal operating conditions is characterized by the following:
[0008] The microprocessor unit is used to obtain the first trim value through read logic processing and generate the corresponding control signal;
[0009] Data storage is used to store the system's default second adjustment value;
[0010] The adjustment value selection module, connected to both the microprocessor unit and the data memory, generates the adjustment enable signal required by the system simulation section under normal operating mode, and modifies the adjustment enable signal using registers as needed; and
[0011] The top-level testing module is connected to the adjustment value selection module and is used to perform corresponding signal testing processing on the adjustment signal after it has been processed by the adjustment value selection module, so as to output it to the system simulation part to complete the adjustment.
[0012] Preferably, the adjustment value selection module specifically includes:
[0013] The control register, connected to the microprocessor unit, is used to generate the MCU tuning enable signal;
[0014] A protection register, connected to the control register, is used to determine the validity of the MCU tuning enable signal and perform corresponding modification processing based on the determination result.
[0015] An MCU configuration trim value register, connected to the microprocessor unit, is used to store the first trim value written by the microprocessor unit; and
[0016] The digital selector, connected to the protection register, the MCU configuration adjustment value register, and the data memory, is used to select either the output MCU adjustment enable signal or the FLASH adjustment enable signal according to the actual adjustment requirements.
[0017] The method for adjusting the trimming value under normal working mode based on the above system is characterized by the following steps:
[0018] (1) The microprocessor unit inputs the first trimming value to the trimming value selection module;
[0019] (2) The data storage device inputs the second trim value to the trim value selection module;
[0020] (3) The adjustment value selection module determines which adjustment value to output based on the current adjustment configuration requirements.
[0021] (4) Based on the judgment result, the corresponding adjustment value is processed by the test top-level processing module and then output to the simulation part.
[0022] Preferably, step (1) specifically includes the following steps:
[0023] (1.1) The microprocessor unit first inputs the first trim value into the MCU configuration trim value register for configuration processing;
[0024] (1.2) The MCU configuration adjustment value register inputs the first adjustment value after configuration adjustment to the digital selector for subsequent output.
[0025] Preferably, step (2) specifically includes:
[0026] The data storage device directly outputs the second adjustment value through the digital selector.
[0027] Preferably, step (3) specifically includes the following steps:
[0028] (3.1) The adjustment value selection module determines whether the adjustment value needs to be adjusted. If so, proceed to step (3.2); otherwise, proceed directly to step (3.7).
[0029] (3.2) Write the required adjustment value to the specified position in the MCU configuration adjustment value register, and send the corresponding adjustment value configuration signal to the protection register through the microprocessor unit.
[0030] (3.3) If the adjustment value configuration signal received by the protection register is consistent with the system preset adjustment value, the control register outputs a valid MCU adjustment enable signal to the digital selector and proceeds to step (3.4); otherwise, proceeds to step (3.5).
[0031] (3.4) The digital selector outputs the first adjustment value to the test top-level processing module;
[0032] (3.5) If the adjustment value configuration signal received by the protection register is inconsistent with the system preset adjustment value, the control register outputs an invalid MCU adjustment enable signal to the digital selector.
[0033] (3.6) The digital selector outputs the second adjustment value to the test top-level processing module;
[0034] (3.7) The digital selector by default directly outputs the second adjustment value to the test top-level processing module.
[0035] More preferably, the control register also includes a sleep state signal bit;
[0036] When the sleep state signal bit is 0, the trim value selection module immediately switches to output either the currently determined first trim value or the second trim value.
[0037] When the sleep state signal bit is 1, the adjustment value selection module outputs the currently determined first adjustment value or second adjustment value when the sleep signal is pulled high.
[0038] The main feature of this device for adjusting the trim value in normal operating mode is that the device comprises:
[0039] A processor is configured to execute computer-executable instructions;
[0040] The memory stores one or more computer-executable instructions that, when executed by the processor, implement the steps of the method for adjusting the tuning value in normal operating mode as described above.
[0041] The processor used to implement adjustment of the trim value in normal operating mode is characterized in that the processor is configured to execute computer-executable instructions, which, when executed by the processor, implement the various steps of the method for adjusting the trim value in normal operating mode described above.
[0042] The computer-readable storage medium is characterized in that it stores a computer program thereon, which can be executed by a processor to implement the steps of the method for adjusting the adjustment value in normal operating mode as described above.
[0043] This invention relates to a system, method, apparatus, processor, and computer-readable storage medium for adjusting trimming values in normal operating mode. By implementing hardware-based adjustments to trimming values in normal operating mode, and allowing for adjustments via registers when external environmental conditions change significantly, the accuracy of components such as reference voltages and oscillators can be improved. Simultaneously, the protection register settings can protect trimming values from accidental operation. For oscillators, this invention allows for flexible adjustment of clock signals at different frequencies by changing the trimming values, with an adjustable frequency range near a set frequency. Adjusting the output frequency by adjusting the oscillator's trimming values also increases the flexibility of signal usage. The method of selecting the trimming value switching time according to actual needs allows for immediate switching or switching when the MCU sends a STOP command to enter sleep mode, making it more convenient, simple, and flexible for users. Attached Figure Description
[0044] Figure 1 A flowchart illustrating the process of calibrating and adjusting values in existing technologies.
[0045] Figure 2 This is a schematic diagram of the design architecture of the system for adjusting the trim value in normal working mode according to the present invention.
[0046] Figure 3 This is a schematic diagram of the design architecture for switching optimization of the TRIM OUT module according to the present invention.
[0047] Figure Labels
[0048] MCU Microprocessor Unit
[0049] FLASH data storage
[0050] TRIM_MUX Adjustment Value Selection Module
[0051] TEST_TOP tests the top-level processing module.
[0052] TRIM_CTRL control register
[0053] TRIM_PTCT protection register
[0054] MCU_TRIM MCU configuration trim value register
[0055] MUX digital selector
[0056] VREF reference voltage
[0057] IREF reference current
[0058] RC crystal oscillator module
[0059] STOP_EN sleep state signal bit Detailed Implementation
[0060] To more clearly describe the technical content of the present invention, the following description is provided in conjunction with specific embodiments.
[0061] Before describing the embodiments of the present invention in detail, it should be noted that, in the following, the terms “comprising,” “including,” or any other variations are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed or inherent to such process, method, article, or apparatus.
[0062] Please see Figure 2 As shown, this system adjusts the trim value in normal operating mode, wherein the system includes:
[0063] The microprocessor unit (MCU) is used to obtain the first trim value through read logic processing and generate the corresponding control signal;
[0064] The data storage FLASH is used to store the system's default second adjustment value;
[0065] The trimming value selection module TRIM_MUX is connected to both the microprocessor unit (MCU) and the data memory (FLASH). It generates the trimming enable signal required by the system's analog section during normal operation and modifies the trimming enable signal using registers as needed.
[0066] The top-level processing module TEST_TOP is connected to the trimming value selection module TRIM_MUX. It is used to perform corresponding signal test processing on the trimming enable signal after it has been processed by the trimming value selection module TRIM_MUX, and output it to the system simulation part to complete the trimming.
[0067] In a preferred embodiment of the present invention, the adjustment value selection module TRIM_MUX specifically includes:
[0068] The control register TRIM_CTRL is connected to the microprocessor unit (MCU) and is used to generate the MCU tuning enable signal.
[0069] The protection register TRIM_PTCT, connected to the control register TRIM_CTRL, is used to determine the validity of the MCU tuning enable signal and perform corresponding modification processing based on the determination result.
[0070] The MCU configuration trimming register MCU_TRIM, connected to the microprocessor unit MCU, is used to store the first trimming value written by the microprocessor unit MCU; and
[0071] The digital selector MUX is connected to the protection register TRIM_PTCT, the MCU configuration adjustment value register MCU_TRIM, and the data memory FLASH, and is used to select the output MCU adjustment enable signal or FLASH adjustment enable signal according to the actual adjustment requirements.
[0072] In one specific embodiment of the present invention, the control register TRIM_CTRL generates an MCU trimming enable signal; the protection register TRIM_PTCT, when it is a specific value, ensures that the MCU trimming enable signal is valid, otherwise the trimming value cannot be modified, thus avoiding accidental modification of the signal trimming value; in MCU TRIM debug mode, it is used to store the trimming value written by the MCU; in FLASH TRIM debug mode, it is used to store the trimming value in the data memory FLASH; through the TRIM_MUX module selection, by default, the trimming value from FLASH is selected to be output to each module; when entering MCU TRIM mode, the TRIM MUX module selects the trimming value stored in the corresponding MCU_TRIM register to be output to each module.
[0073] The method for adjusting the trim value in normal working mode based on the above system includes the following steps:
[0074] (1) The microprocessor unit (MCU) inputs the first trim value to the trim value selection module TRIM_MUX;
[0075] (2) The data storage FLASH inputs the second trim value to the trim value selection module TRIM_MUX;
[0076] (3) The TRIM_MUX trim value selection module determines which trim value to output based on the current trim configuration requirements.
[0077] (4) Based on the judgment result, the corresponding adjustment value is processed by the test top-level processing module TEST_TOP and then output to the simulation part.
[0078] In a preferred embodiment of the present invention, step (1) specifically includes the following steps:
[0079] (1.1) The microprocessor unit (MCU) first inputs the first trim value into the MCU configuration trim value register MCU_TRIM for configuration processing;
[0080] (1.2) The MCU configuration trim value register MCU_TRIM inputs the first trim value after configuration trimming to the digital selector MUX for subsequent output.
[0081] In a preferred embodiment of the present invention, step (2) specifically comprises:
[0082] The data storage FLASH directly outputs the second adjustment value through the digital selector MUX.
[0083] In practical applications, the protection register TRIM_PTCT serves as a layer of protection against accidental operation, essentially acting as a password. It does not actually store adjustment values. During use, when the password entered into the protection register TRIM_PTCT is correct, the protection register TRIM_PTCT returns to the control register TRIM_CTRL for corresponding configuration processing.
[0084] In one specific embodiment of the present invention, the control register TRIM_CTRL is only effective when the preset value of the protection register TRIM_PTCT is 0xff. When the value of the control register TRIM_CTRL is 1, the debugged value written in the MCU configuration tuner register MCU_TRIM is output. When the value of the control register TRIM_CTRL is 0, the preset tuner value is selected to be output. If the value of the protection register TRIM_PTCT is not 0xff, the control register TRIM_CTRL is invalid, and the preset tuner value is output by default.
[0085] In practical applications, the preset value of the protection register TRIM_PTCT can be arbitrarily determined according to the designer's actual needs during the design process, including but not limited to 0xff mentioned in the above embodiments, or 0x55, 0x12, etc.
[0086] In a preferred embodiment of the present invention, step (3) specifically includes the following steps:
[0087] (3.1) The TRIM_MUX module determines whether the adjustment value needs to be adjusted. If so, proceed to step (3.2); otherwise, proceed directly to step (3.7).
[0088] (3.2) Write the required adjustment value to the specified position of the MCU configuration adjustment value register MCU_TRIM, and send the corresponding adjustment value configuration signal to the protection register TRIM_PTCT through the microprocessor unit MCU.
[0089] (3.3) If the adjustment value configuration signal received by the protection register TRIM_PTCT is consistent with the system preset adjustment value, the control register TRIM_CTRL outputs a valid MCU adjustment enable signal to the digital selector MUX and proceeds to step (3.4); otherwise, proceed to step (3.5).
[0090] (3.4) The digital selector MUX outputs the first trim value to the test top-level processing module TEST_TOP;
[0091] (3.5) If the adjustment value configuration signal received by the protection register TRIM_PTCT is inconsistent with the system preset adjustment value, the control register TRIM_CTRL will output an invalid MCU adjustment enable signal to the digital selector (MUX).
[0092] (3.6) The digital selector MUX outputs the second trim value to the test top-level processing module (TEST_TOP);
[0093] (3.7) The digital selector MUX by default directly outputs the second trim value to the test top-level processing module TEST_TOP.
[0094] In one specific embodiment of the present invention, the principle and process of the TRIM MUX module are as follows:
[0095] The TRIM MUX module is primarily used to select trim values through register configuration, enabling adjustments to these values within the normal operating mode. This improves accuracy and increases application flexibility. The specific implementation process is as follows:
[0096] (a) After power-on reset, the output adjustment value is the adjustment value that has been debugged in test mode and stored in FLASH.
[0097] (b) Write the user-required adjustment value to the specified address.
[0098] (c) Configure the selection control signal in the TRIM_CTRL register: when the selection signal is 0, select the trim value in FLASH; when the selection signal is 1, select the trim value written by MCU.
[0099] (d) To prevent accidental operation, a protection register is added to the selection signal to protect against modification operations. When the protection register signal is received from the MCU, it is first checked whether the protection register matches the set value. If they match, the control register can be configured. If they do not match the set value, the operation is invalid, and the default adjustment value stored in FLASH is output and cannot be modified.
[0100] In a preferred embodiment of the present invention, the control register TRIM_CTRL is further provided with a sleep state signal bit STOP_EN;
[0101] When the sleep state signal bit STOP_EN is 0, the trim value selection module TRIM_MUX immediately switches to output either the currently determined first trim value or the second trim value.
[0102] When the sleep state signal bit STOP_EN is 1, the trim value selection module TRIM_MUX outputs the currently determined first trim value or second trim value when the sleep signal is pulled high.
[0103] In a practical application of the present invention, the overall process of this technical solution is as follows:
[0104] The adjustment values in the data memory FLASH and the control signals and adjustment values written by the MCU are input to the TRIM MUX module. When the protection register is at a specific value, the adjustment values in the data memory FLASH or the MCU register are selected for output based on the enable signal in TRIM_CTRL, and then output to the analog section through the TEST_TOP module. Since the adjustment values in the data memory FLASH are values that have been tested and debugged to meet the specified parameters, the default is to output the adjustment values in the data memory FLASH; when it is necessary to readjust the adjustment values, or when there are special requirements, the values can be modified through the configuration register.
[0105] In practical applications, the above technical solution can immediately modify the adjustment value, but immediate operation may affect the currently running program. To address this, we have improved the above technical solution as follows:
[0106] Please see Figure 3 As shown, in a preferred embodiment of the present invention, the control register TRIM_CTRL is further provided with a sleep state signal bit STOP_EN. When the sleep state signal bit STOP_EN is 0, the current trimming value selection module TRIM_MUX immediately switches to output the MCU trimming enable signal after being trimmed by the third trimming value; when the sleep state signal bit STOP_EN is 1, the current trimming value selection module TRIM_MUX switches to output the MCU trimming enable signal after being trimmed by the third trimming value when the sleep signal is pulled high.
[0107] The adjustment value can be switched either immediately or delayed until the system enters sleep mode, at which point the modified adjustment value is output to the corresponding analog module. This is controlled by the STOP_EN bit in TRIM_CTRL. When STOP_EN is 0, the adjustment value can be switched immediately; when STOP_EN is 1, the adjustment value switches when the sleep signal goes high. After sleep mode ends, the adjustment value has been switched, allowing stable operation of other programs and functions. Users can configure this according to their needs.
[0108] The apparatus for adjusting a trim value in normal operating mode includes:
[0109] A processor is configured to execute computer-executable instructions;
[0110] The memory stores one or more computer-executable instructions that, when executed by the processor, implement the steps of the method described above for adjusting the tuning value in normal operating mode.
[0111] The processor is configured to execute computer-executable instructions, which, when executed by the processor, implement the steps of the method for implementing adjustment values in normal operating mode.
[0112] The computer-readable storage medium contains a computer program that can be executed by a processor to implement the steps of the method for adjusting the tuning value in normal operating mode as described above.
[0113] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0114] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution device.
[0115] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0116] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0117] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.
[0118] In the description of this specification, references to terms such as "an embodiment," "some embodiments," "example," "specific example," or "embodiment," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0119] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
[0120] This invention relates to a system, method, apparatus, processor, and computer-readable storage medium for adjusting trimming values in normal operating mode. By implementing hardware-based adjustments to trimming values in normal operating mode, and allowing for adjustments via registers when external environmental conditions change significantly, the accuracy of components such as reference voltages and oscillators can be improved. Simultaneously, the protection register settings can protect trimming values from accidental operation. For oscillators, this invention allows for flexible adjustment of clock signals at different frequencies by changing the trimming values, with an adjustable frequency range near a set frequency. Adjusting the output frequency by adjusting the oscillator's trimming values also increases the flexibility of signal usage. The method of selecting the trimming value switching time according to actual needs allows for immediate switching or switching when the MCU sends a STOP command to enter sleep mode, making it more convenient, simple, and flexible for users.
[0121] In this specification, the invention has been described with reference to specific embodiments thereof. However, it will be apparent that various modifications and variations can be made without departing from the spirit and scope of the invention. Therefore, the specification and drawings should be considered illustrative rather than restrictive.
Claims
1. A system for adjusting a trim value in normal operating mode, characterized in that, The system includes: The microprocessor unit (MCU) is used to obtain the first trim value through read logic processing and generate the corresponding control signal; The data storage device (FLASH) is used to store the system's default second adjustment value; The trim value selection module (TRIM_MUX) is connected to the microprocessor unit (MCU) and the data memory (FLASH) respectively. It is used to generate the trim enable signal required by the system simulation part in normal working mode, and to modify the trim enable signal using registers according to actual needs. The test top-level processing module (TEST_TOP) is connected to the trim value selection module (TRIM_MUX) and is used to perform corresponding signal test processing on the trim enable signal after it has been processed by the trim value selection module (TRIM_MUX) so as to output it to the system simulation part to complete the trim. The trim value selection module (TRIM_MUX) specifically includes: The control register (TRIM_CTRL), connected to the microprocessor unit (MCU), is used to generate the MCU tuning enable signal; The protection register (TRIM_PTCT), connected to the control register (TRIM_CTRL), is used to determine the validity of the MCU tuning enable signal and perform corresponding modification processing based on the determination result. An MCU configuration trim value register (MCU_TRIM), connected to the microprocessor unit (MCU), is used to store the first trim value written by the microprocessor unit (MCU); and The digital selector (MUX), connected to the protection register (TRIM_PTCT), the MCU configuration trim value register (MCU_TRIM), and the data memory (FLASH), is used to select the output MCU trim enable signal or FLASH trim enable signal according to the actual trim requirements.
2. A method for adjusting a trim value in normal operating mode based on the system described in claim 1, characterized in that, The method includes the following steps: (1) The microprocessor unit (MCU) inputs the first trim value to the trim value selection module (TRIM_MUX); (2) The data storage device (FLASH) inputs the second trim value to the trim value selection module (TRIM_MUX); (3) The trim value selection module (TRIM_MUX) determines which trim value to output based on the current trim configuration requirements; (4) Based on the judgment result, the corresponding adjustment value is processed by the test top-level processing module (TEST_TOP) and then output to the simulation part.
3. The method for adjusting the trim value in normal working mode according to claim 2, characterized in that, Step (1) specifically includes the following steps: (1.1) The microprocessor unit (MCU) first inputs the first trim value into the MCU configuration trim value register (MCU_TRIM) for configuration processing; (1.2) The MCU configuration trim value register (MCU_TRIM) inputs the first trim value after configuration trimming to the digital selector (MUX) for subsequent output.
4. The method for adjusting the trim value in normal working mode according to claim 2, characterized in that, The specific steps (2) are as follows: The data storage device (FLASH) directly outputs the second adjustment value through the digital selector (MUX).
5. The method for adjusting the trim value in normal working mode according to claim 2, characterized in that, Step (3) specifically includes the following steps: (3.1) The trim value selection module (TRIM_MUX) determines whether the trim value needs to be adjusted. If so, proceed to step (3.2); otherwise, proceed directly to step (3.7). (3.2) Write the required adjustment value to the specified position in the MCU configuration adjustment value register (MCU_TRIM), and send the corresponding adjustment value configuration signal to the protection register (TRIM_PTCT) through the microprocessor unit (MCU). (3.3) If the adjustment value configuration signal received by the protection register (TRIM_PTCT) is consistent with the system preset adjustment value, the control register (TRIM_CTRL) outputs a valid MCU adjustment enable signal to the digital selector (MUX) and proceeds to step (3.4); otherwise, proceed to step (3.5). (3.4) The digital selector (MUX) outputs the first trim value to the test top-level processing module (TEST_TOP); (3.5) If the adjustment value configuration signal received by the protection register (TRIM_PTCT) is inconsistent with the system preset adjustment value, the control register (TRIM_CTRL) outputs an invalid MCU adjustment enable signal to the digital selector (MUX). (3.6) The digital selector (MUX) outputs the second trim value to the test top-level processing module (TEST_TOP). (3.7) The digital selector (MUX) mentioned above will by default directly output the second trim value to the test top-level processing module (TEST_TOP).
6. The method for adjusting the trim value in normal working mode according to claim 5, characterized in that, The control register (TRIM_CTRL) also has a sleep state signal bit (STOP_EN). When the sleep state signal bit (STOP_EN) is 0, the trim value selection module (TRIM_MUX) immediately switches the output of the currently determined first trim value or second trim value. When the sleep state signal bit (STOP_EN) is 1, the trim value selection module (TRIM_MUX) outputs the currently determined first trim value or second trim value when the sleep signal is pulled high.
7. An apparatus for adjusting a trim value in normal operating mode, characterized in that, The device includes: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions that, when executed by the processor, implement the steps of the method for adjusting a trim value in normal operating mode as described in any one of claims 2 to 6.
8. A processor for implementing adjustments to a trim value in normal operating mode, characterized in that, The processor is configured to execute computer-executable instructions, which, when executed by the processor, implement the steps of the method for adjusting the adjustment value in normal operating mode as described in any one of claims 2 to 6.
9. A computer-readable storage medium, characterized in that, It stores a computer program that can be executed by a processor to implement the steps of the method for adjusting the adjustment value in normal operating mode as described in any one of claims 2 to 6.
Citation Information
Patent Citations
System capable of realizing frequency trimming integrated control
CN105807133A
Digital-analog hybrid circuit, SoC chip and analog circuit trimming method
CN108023585A