An adc sampling and loop computation control method and related apparatus

CN115811314BActive Publication Date: 2026-11-03SHENZHEN SUPLET
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111077255.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2026-11-03
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

The limited bandwidth of the digital control loop in digital power supplies results in lower computational speeds compared to analog power supplies.

Method used

When the digital control loop starts, the ADC sampling device is controlled to sample the target signal and store the results every cycle. After the preset cycle is reached, ADC sampling and digital loop calculation are performed simultaneously, and the digital loop calculation is performed using the first-in-first-out principle.

Benefits of technology

It shortens the total time for ADC sampling and loop calculation, and improves data processing speed and efficiency by about half that of the original solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115811314B_ABST
    Figure CN115811314B_ABST
Patent Text Reader

Abstract

The application provides an ADC sampling and loop calculation control method and related equipment. The scheme provided by the embodiment of the application is as follows: when a digital control loop is started, an ADC sampling result is first used to sample a target object, and the sampling result is stored; when the digital control loop is started for a preset period, the stored sampling result is calculated in the digital loop, and the ADC sampling is continued at the same time, so that the total time length of the ADC sampling and the loop calculation is shortened by about half, and the data processing speed and processing efficiency of the ADC sampling and the loop calculation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic circuit technology, and more specifically to a novel ADC sampling and loop calculation control method and related equipment for use in digital power supplies. Background Technology

[0002] Currently, the conventional approach used in the power supply industry for digital power supply control calculations is to first sample data using an ADC and then perform calculations sequentially. While this method can achieve the digital control loop of a digital power supply, its drawback is limited digital loop bandwidth because it can only perform calculations after sampling. Compared to analog power supplies, digital power supplies have lower digital control loop bandwidth due to the processing speed of the MCU and the limitations of ADC sampling, thus reducing calculation speed. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide an ADC sampling and loop calculation control method and related equipment to improve the calculation speed of ADC sampling and loop calculation.

[0004] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0005] An ADC sampling and loop calculation control method is applied to a digital control loop, wherein the digital control loop includes an ADC sampling device and a digital loop calculation unit, and the method includes:

[0006] When the digital control loop is started, it controls the ADC sampling device to sample the target signal in each cycle and stores the sampling results;

[0007] When the digital control loop starts a preset period, it controls the digital loop calculation unit to perform digital loop calculation on the stored sampling results while the ADC sampling device samples the target signal, so that ADC sampling and digital loop calculation are performed simultaneously.

[0008] Optionally, in the above ADC sampling and loop calculation control method, controlling the digital loop calculation unit to perform digital loop calculation on the stored sampling results while the ADC sampling device samples the target signal includes:

[0009] The ADC sampling device is controlled to sample the target signal using the periodic signal of the digital control loop as a trigger condition, while the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results.

[0010] Alternatively, the periodic signal of the digital control loop can be used as a trigger condition to control the digital loop calculation unit to perform digital loop calculation on the stored sampling results. At the same time, the start signal of the digital loop calculation unit can be used as a trigger condition to control the ADC sampling device to sample the target signal.

[0011] Optionally, in the above ADC sampling and loop calculation control method, after the digital control loop starts a preset period, while the ADC sampling device samples the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results, including:

[0012] After the digital control loop has been started for at least one cycle, while the ADC sampling device is sampling the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results.

[0013] Optionally, in the above ADC sampling and loop calculation control method, performing digital loop calculation on the stored sampling results includes:

[0014] The stored sampling results are processed using a digital loop based on the principle of first-to-store and first-to-compute, and only one stored sampling result is processed in each cycle.

[0015] An ADC sampling and loop calculation control device is applied in a digital control loop, the digital control loop including an ADC sampling device and a digital loop calculation unit. The device includes:

[0016] An ADC sampling device control unit is used to control the ADC sampling device to sample the target signal in each cycle and store the sampling results when the digital control loop is started.

[0017] The digital loop calculation unit is used to control the digital loop calculation unit to perform digital loop calculation on the stored sampling results while the ADC sampling device samples the target signal after the digital control loop starts a preset period, so that ADC sampling and digital loop calculation are performed simultaneously.

[0018] Optionally, in the above-mentioned ADC sampling and loop calculation control device, when the digital loop calculation unit controls the digital loop calculation unit to perform digital loop calculation on the stored sampling results while the ADC sampling device samples the target signal, it is specifically used for:

[0019] The ADC sampling device is controlled to sample the target signal using the periodic signal of the digital control loop as a trigger condition, while the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results.

[0020] Alternatively, the periodic signal of the digital control loop can be used as a trigger condition to control the digital loop calculation unit to perform digital loop calculation on the stored sampling results. At the same time, the start signal of the digital loop calculation unit can be used as a trigger condition to control the ADC sampling device to sample the target signal.

[0021] Optionally, in the above-mentioned ADC sampling and loop calculation control device, the digital loop calculation unit, after the digital control loop starts a preset period, controls the digital loop calculation unit to perform digital loop calculation on the stored sampling results while the ADC sampling device samples the target signal. Specifically, it is used for:

[0022] After the digital control loop has been started for at least one cycle, while the ADC sampling device is sampling the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results.

[0023] Optionally, in the above-mentioned ADC sampling and loop calculation control device, the digital loop calculation unit, when performing digital loop calculation on the stored sampling results, is specifically used for:

[0024] The stored sampling results are processed using a digital loop based on the principle of first-to-store and first-to-compute, and only one stored sampling result is processed in each cycle.

[0025] An MCU processor that incorporates the ADC sampling and loop calculation control device described in any one of the above-mentioned embodiments.

[0026] An electronic device shall have the aforementioned MCU processor.

[0027] Based on the above technical solution, the above solution provided by the embodiments of the present invention, when the above digital control loop is started, firstly controls the ADC sampling result to sample the target object and stores the sampling result. When the start of the digital control loop reaches a preset period, digital loop calculation is performed on the stored sampling result. While performing digital loop calculation, ADC sampling continues, which shortens the total time of ADC sampling and loop calculation by about half, thereby improving the data processing speed and efficiency of ADC sampling and loop calculation. Attached Figure Description

[0028] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0029] Figure 1This is a schematic flowchart of the ADC sampling and loop calculation control method disclosed in the embodiments of this application;

[0030] Figure 2 This is a schematic flowchart of an ADC sampling and loop calculation control method disclosed in another embodiment of this application;

[0031] Figure 3 This is a schematic flowchart of an ADC sampling and loop calculation control method disclosed in another embodiment of this application;

[0032] Figure 4 This is a schematic flowchart of an ADC sampling and loop calculation control method disclosed in another embodiment of this application;

[0033] Figure 5 This is a schematic diagram of the ADC sampling and loop calculation control device disclosed in the embodiments of this application;

[0034] Figure 6 This is a time consumption diagram for ADC sampling and loop calculation in the existing technology;

[0035] Figure 7 This is a time consumption diagram for ADC sampling and loop calculation using the scheme disclosed in the embodiments of this application. Detailed Implementation

[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0037] Example 1

[0038] To address the low data processing efficiency caused by the prior art's sequential ADC sampling followed by loop calculation, this application discloses an ADC sampling and loop calculation control method applied to a digital control loop. The digital control loop includes an ADC sampling device and a digital loop calculation circuit. The method may include:

[0039] Step S101: Control the ADC sampling device to sample the target signal.

[0040] In the technical solution disclosed in the embodiments of this application, in order to improve data processing efficiency, when the device using this solution is working, firstly, when the digital control loop is started, the ADC sampling device is controlled to sample the target in each digital control loop operation cycle. The target signal is the controlled object, for example, it can usually be Vout (constant voltage control) or Iout (constant current control).

[0041] Step S102: Store the sampling results.

[0042] In this step, after the sampling data of the ADC sampling device is obtained, the sampling results are stored. That is, after the sampling results are obtained, the loop calculation is not performed on the sampling results immediately, but stored and retrieved when the loop calculation is required.

[0043] Step S103: Determine whether the digital control loop has started a preset cycle. If yes, proceed to step S104; otherwise, continue waiting.

[0044] In the technical solution disclosed in the embodiments of this application, it is determined whether the digital control loop has started a preset period, that is, whether the ADC sampling device has performed a preset number of sampling periods. In the technical solution disclosed in the embodiments of this application, the number of preset periods can be set by the user based on the user's needs. Only after the ADC sampling device has sampled a preset number of periods will subsequent steps be executed; otherwise, it will continue to wait until the ADC sampling device starts the preset period.

[0045] Step S104: While sampling the target signal, perform digital loop calculation on the stored sampling results;

[0046] In this scheme, the ADC sampling device samples the target signal in each operation cycle of the digital control loop. After the digital control loop starts a preset cycle, while controlling the ADC sampling device to sample the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the pre-stored sampling results, so that ADC sampling and digital loop calculation are performed simultaneously.

[0047] In particular, when performing digital loop calculation on the ADC sampling results, the digital loop calculation can be performed based on the first-in-first-out principle. That is, when performing digital loop calculation, the earliest stored ADC calculation result is calculated first, and then the latest stored ADC calculation result is calculated. When performing digital loop calculation, ADC sampling is performed simultaneously, without waiting for the ADC sampling result before performing digital loop calculation, so that ADC sampling and digital loop calculation can be performed simultaneously.

[0048] Specifically, the step of controlling the digital loop calculation unit to perform digital loop calculation on the stored sampling results while the ADC sampling device samples the target signal is used for:

[0049] The ADC sampling device is controlled to sample the target signal using the periodic signal of the digital control loop as a trigger condition, while the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results.

[0050] Alternatively, the periodic signal of the digital control loop can be used as a trigger condition to control the digital loop calculation unit to perform digital loop calculation on the stored sampling results. At the same time, the start signal of the digital loop calculation unit can be used as a trigger condition to control the ADC sampling device to sample the target signal.

[0051] In the ADC sampling and loop calculation control method provided in this embodiment, when the digital control loop of this method is working, it first controls the ADC sampling results to sample the target object and stores the sampling results. When the working cycle of the digital control loop reaches the preset cycle, it then performs digital loop calculation on the stored sampling results. At the same time as performing digital loop calculation, ADC sampling continues, which shortens the total time of ADC sampling and loop calculation by about half, thereby improving the data processing speed and efficiency of ADC sampling and loop calculation.

[0052] Example 2

[0053] See Figure 2 The ADC sampling and loop calculation control method disclosed in this embodiment may include:

[0054] Step S201: When the digital control loop is started, the ADC sampling device is controlled to sample the target signal in each cycle.

[0055] In the technical solutions disclosed in the embodiments of this application, in order to improve data processing efficiency, when the device using this solution is working, firstly, the ADC sampling device is controlled to sample the target, and the target signal is the controlled object, for example, it can usually be Vout (constant voltage control) or Iout (constant current control).

[0056] Step S202: The digital loop compensator of the MCU reads and stores the sampling results.

[0057] In this step, after acquiring the ADC sampling device, the sampling results are first stored. That is, after acquiring the sampling results, loop calculation is not performed on the sampling results immediately, but rather they are stored and retrieved when loop calculation is needed. Specifically, when storing the sampling results, a digital loop compensator in the MCU using this method can be used to read and store the sampling results.

[0058] Step S203: Determine whether the digital control loop has started a preset cycle. If yes, proceed to step S204; otherwise, continue waiting.

[0059] In the technical solution disclosed in the embodiments of this application, it is determined whether the digital control loop has started a preset period, that is, whether the digital control loop has performed sampling for a preset number of periods. In the technical solution disclosed in the embodiments of this application, the number of preset periods can be set by the user based on the user's needs. After the ADC sampling device has sampled for a preset number of periods, the subsequent steps are executed; otherwise, the process continues to wait until the digital control loop starts the preset period.

[0060] Step S204: While sampling the target signal, perform digital loop calculation on the stored sampling results;

[0061] In this scheme, the ADC sampling device samples the target signal in each operation cycle of the digital control loop. After the digital control loop starts a preset cycle, while controlling the ADC sampling device to sample the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the pre-stored sampling results, so that ADC sampling and digital loop calculation are performed simultaneously.

[0062] When the digital control loop starts a preset period, it performs digital loop calculations on the stored ADC sampling results. The digital loop calculation is performed based on the first-in-first-out principle. That is, the earliest stored ADC calculation result is calculated first, and then the later stored ADC calculation result is calculated. Furthermore, ADC sampling is performed simultaneously during the digital loop calculation, without waiting for the ADC sampling results before performing the digital loop calculation, so that ADC sampling and digital loop calculation are performed concurrently.

[0063] In the ADC sampling and loop calculation control method provided in this embodiment, when the digital control loop of this method is working, it first controls the ADC sampling results to sample the target object, and controls the digital loop compensator of the MCU to read and store the sampling results. When the working cycle of the digital control loop reaches the preset cycle, the stored sampling results are then used for digital loop calculation. While performing digital loop calculation, ADC sampling continues, which shortens the total time of ADC sampling and loop calculation by about half, thereby improving the data processing speed and efficiency of ADC sampling and loop calculation.

[0064] Example 3

[0065] See Figure 3 The ADC sampling and loop calculation control method disclosed in this embodiment may include:

[0066] Step S301: When the digital control loop is started, the ADC sampling device is controlled to sample the target signal.

[0067] In the technical solutions disclosed in the embodiments of this application, in order to improve data processing efficiency, when the device using this solution is working, firstly, the ADC sampling device is controlled to sample the target, and the target signal is the controlled object, for example, it can usually be Vout (constant voltage control) or Iout (constant current control).

[0068] Step S302: Store the sampling results.

[0069] In this step, after acquiring the ADC sampling device, the sampling results are first stored. That is, after acquiring the sampling results, the loop calculation is not performed on the sampling results immediately, but stored and retrieved when the loop calculation is required.

[0070] Step S303: Determine whether the digital control loop has started for at least one cycle. If yes, proceed to step S304; otherwise, continue waiting.

[0071] In the technical solution disclosed in the embodiments of this application, the at least one cycle can be a positive integer number of cycles such as one cycle, two cycles, three cycles, etc. It is determined whether the digital control loop has started at least one cycle, that is, whether the ADC sampling device has performed sampling for one cycle. Only after the ADC sampling device has sampled for one cycle will the subsequent steps be executed; otherwise, the process continues to wait until the ADC sampling device has started one cycle.

[0072] Step S304: While the ADC sampling device samples the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results;

[0073] The ADC sampling device samples the target signal in each working cycle of the digital control loop. After the digital control loop starts a preset cycle, while the ADC sampling device is sampling the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results, so that ADC sampling and digital loop calculation are performed simultaneously.

[0074] When the digital control loop starts a preset period, it performs digital loop calculations on the stored ADC sampling results. The digital loop calculations are performed based on the first-in-first-out principle, that is, the earliest stored ADC calculation result is calculated first, and then the later stored ADC calculation result is calculated. ADC sampling is performed simultaneously during the digital loop calculations, without waiting for the ADC sampling results before performing the digital loop calculations, so that ADC sampling and digital loop calculations are performed simultaneously.

[0075] In the ADC sampling and loop calculation control method provided in this embodiment, when the digital control loop of this method is working, it first controls the ADC sampling results to sample the target object and stores the sampling results. When the working cycle of the digital control loop reaches one cycle, it performs digital loop calculation on the stored sampling results. While performing digital loop calculation, ADC sampling continues, which shortens the total time of ADC sampling and loop calculation by about half, thereby improving the data processing speed and efficiency of ADC sampling and loop calculation.

[0076] Example 4

[0077] See Figure 4 The ADC sampling and loop calculation control method disclosed in this embodiment may include:

[0078] Step S401: When the digital control loop is started, the ADC sampling device is controlled to sample the target signal.

[0079] In the technical solution disclosed in the embodiments of this application, in order to improve data processing efficiency, when the device using this solution is working, firstly, when the digital control loop is started, the ADC sampling device is controlled to sample the target in each digital control loop operation cycle. The target signal is the controlled object, for example, it can usually be Vout (constant voltage control) or Iout (constant current control).

[0080] Step S402: Store the sampling results.

[0081] In this step, after acquiring the ADC sampling device, the sampling results are first stored. That is, after acquiring the sampling results, the loop calculation is not performed on the sampling results immediately, but stored and retrieved when the loop calculation is required.

[0082] Step S403: Determine whether the digital control loop has started one cycle. If yes, proceed to step S404; otherwise, continue waiting.

[0083] In the technical solution disclosed in the embodiments of this application, it is determined whether the digital control loop has started 1 cycle, that is, whether the ADC sampling device has performed 1 cycle of sampling. Only after the ADC sampling device has sampled 1 cycle will subsequent steps be executed; otherwise, the process continues to wait until the ADC sampling device has started 1 cycle.

[0084] Step S404: Perform digital loop calculation on the stored sampling results based on the principle of first-to-store and first-to-calculate, and calculate only one sampling result in each cycle.

[0085] When performing digital loop calculations on ADC sampling results, the calculation is based on the first-in, first-out principle. That is, when performing digital loop calculations, the earliest stored ADC calculation result is calculated first, and then the latest stored ADC calculation result is calculated. During digital loop calculations, ADC sampling is performed simultaneously, without waiting for the ADC sampling results before performing digital loop calculations, so that ADC sampling and digital loop calculations can be performed concurrently.

[0086] In the ADC sampling and loop calculation control method provided in this embodiment, when the device using this method is working, it first controls the ADC sampling results to sample the target object and stores the sampling results. When the acquisition cycle reaches one cycle, when the ADC sampling of the next cycle is started, digital loop calculation is performed on the stored sampling results of the previous cycle. While performing digital loop calculation, ADC sampling continues, which shortens the total time of ADC sampling and loop calculation by about half, thereby improving the data processing speed and efficiency of ADC sampling and loop calculation.

[0087] Corresponding to the above method, this application also discloses an ADC sampling and loop calculation control device. In this embodiment, for the specific working content of each unit in the device, please refer to the content of the above method embodiment. The ADC sampling and loop calculation control device provided by the embodiment of the present invention will be described below. The ADC sampling and loop calculation control device described below can be referred to in correspondence with the ADC sampling and loop calculation control method described above.

[0088] See Figure 5 ,include:

[0089] The ADC sampling device control unit 100 is used to control the ADC sampling device to sample the target signal and store the sampling results;

[0090] The digital loop calculation unit 200 is used to perform digital loop calculation on the stored sampling results after the ADC sampling device starts a preset period, so that ADC sampling and digital loop calculation can be performed simultaneously.

[0091] Corresponding to the above method, the ADC sampling device control unit, when storing the sampling results, is specifically used for:

[0092] The digital loop compensator controlling the MCU reads and stores the sampling results.

[0093] Corresponding to the above method, when the digital loop calculation unit performs digital loop calculation on the stored sampling results after the ADC sampling device starts a preset period, it is specifically used for:

[0094] After the ADC sampling device starts for at least one cycle, it performs digital loop calculation on the stored sampling results.

[0095] Corresponding to the above method, when the digital loop calculation unit performs digital loop calculation on the stored sampling results, it is specifically used for:

[0096] The stored sampling results are calculated using a digital loop based on the principle of first-to-store and first-to-calculate, and only one sampling result is calculated in each cycle.

[0097] Corresponding to the above-described device, this application also discloses an MCU processor, which can be equipped with the ADC sampling and loop calculation control device described in any one of the above-described embodiments.

[0098] Corresponding to the above-described device, this application also discloses an electronic device, which may include the aforementioned MCU processor, and the electronic device may be a digital power supply.

[0099] Taking a preset period of one cycle as an example, the actual effect of this solution is explained below. Figure 6 , Figure 6 This is a time consumption diagram for ADC sampling and loop calculation in the existing technology. Figure 7 For a time consumption diagram of ADC sampling and loop calculation disclosed in the embodiments of this application, see [link to relevant documentation]. Figure 6 and Figure 7 As can be seen, the technical solution provided in this embodiment can save nearly half the time for ADC sampling and loop calculation.

[0100] For ease of description, the above system is described by dividing it into various modules based on their functions. Of course, in implementing this invention, the functions of each module can be implemented in one or more software and / or hardware components.

[0101] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0102] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0103] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0104] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof 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 elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0105] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for ADC sampling and loop calculation control, characterized in that, Applied in a digital control loop, the digital control loop including an ADC sampling device and a digital loop calculation unit, the method includes: When the digital control loop is started, it controls the ADC sampling device to sample the target signal in each cycle and stores the sampling results; When the digital control loop starts a preset period, while the ADC sampling device samples the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results, so that ADC sampling and digital loop calculation are performed simultaneously. The step of controlling the digital loop calculation unit to perform digital loop calculation on the stored sampling results while the ADC sampling device samples the target signal includes: The ADC sampling device is controlled to sample the target signal using the periodic signal of the digital control loop as a trigger condition, while the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results. Alternatively, the periodic signal of the digital control loop can be used as a trigger condition to control the digital loop calculation unit to perform digital loop calculation on the stored sampling results. At the same time, the start signal of the digital loop calculation unit can be used as a trigger condition to control the ADC sampling device to sample the target signal.

2. The ADC sampling and loop calculation control method according to claim 1, characterized in that, After the digital control loop starts a preset period, while the ADC sampling device samples the target signal, the digital loop calculation unit is controlled to perform digital loop calculations on the stored sampling results, including: After the digital control loop has been started for at least one cycle, while the ADC sampling device is sampling the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results.

3. The ADC sampling and loop calculation control method according to claim 2, characterized in that, Perform digital loop calculations on the stored sampling results, including: The stored sampling results are processed using a digital loop based on the principle of first-to-store and first-to-compute, and only one stored sampling result is processed in each cycle.

4. An ADC sampling and loop calculation control device, characterized in that, Applied in a digital control loop, the digital control loop includes an ADC sampling device and a digital loop computing unit, and the device includes: An ADC sampling device control unit is used to control the ADC sampling device to sample the target signal in each cycle and store the sampling results when the digital control loop is started. The digital loop calculation unit is used to control the digital loop calculation unit to perform digital loop calculation on the stored sampling results while the ADC sampling device samples the target signal after the digital control loop starts a preset period, so that ADC sampling and digital loop calculation are performed simultaneously. Specifically, when the digital loop calculation unit controls the digital loop calculation unit to perform digital loop calculation on the stored sampling results while the ADC sampling device samples the target signal, it is used for: The ADC sampling device is controlled to sample the target signal using the periodic signal of the digital control loop as a trigger condition, while the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results. Alternatively, the periodic signal of the digital control loop can be used as a trigger condition to control the digital loop calculation unit to perform digital loop calculation on the stored sampling results. At the same time, the start signal of the digital loop calculation unit can be used as a trigger condition to control the ADC sampling device to sample the target signal.

5. The ADC sampling and loop calculation control device according to claim 4, characterized in that, When the digital control loop starts a preset period, the digital loop calculation unit controls the digital loop calculation program to perform digital loop calculations on the stored sampling results while the ADC sampling device samples the target signal. Specifically, it is used for: After the digital control loop has been started for at least one cycle, while the ADC sampling device is sampling the target signal, the digital loop calculation unit is controlled to perform digital loop calculation on the stored sampling results.

6. The ADC sampling and loop calculation control device according to claim 5, characterized in that, When performing digital loop calculations on the stored sampling results, the digital loop calculation unit is specifically used for: The stored sampling results are processed using a digital loop based on the principle of first-to-store and first-to-compute, and only one stored sampling result is processed in each cycle.

7. An MCU processor, characterized in that, The application has the ADC sampling and loop calculation control device as described in any one of claims 4-6.

8. An electronic device, characterized in that, The MCU processor as described in claim 7 should be present.

Citation Information

Patent Citations

  • Timing sequence compensation method and timing sequence compensation device of multichannel time interleaving ADC

    CN109639278A