CN112787637A - Modulation parameter loading method and device, processor and electronic equipment - Google Patents

Modulation parameter loading method and device, processor and electronic equipment Download PDF

Info

Publication number
CN112787637A
CN112787637A CN202110004959.2A CN202110004959A CN112787637A CN 112787637 A CN112787637 A CN 112787637A CN 202110004959 A CN202110004959 A CN 202110004959A CN 112787637 A CN112787637 A CN 112787637A
Authority
CN
China
Prior art keywords
modulation
loading
time
type
modulation signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110004959.2A
Other languages
Chinese (zh)
Inventor
崔雨晴
庄园
庄富帅
庄加才
徐君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sungrow Power Supply Co Ltd
Original Assignee
Sungrow Power Supply Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sungrow Power Supply Co Ltd filed Critical Sungrow Power Supply Co Ltd
Priority to CN202110004959.2A priority Critical patent/CN112787637A/en
Publication of CN112787637A publication Critical patent/CN112787637A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K7/00Modulating pulses with a continuously-variable modulating signal
    • H03K7/06Frequency or rate modulation, i.e. PFM or PRM
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K7/00Modulating pulses with a continuously-variable modulating signal
    • H03K7/08Duration or width modulation ; Duty cycle modulation

Landscapes

  • Dc-Dc Converters (AREA)

Abstract

The invention discloses a modulation parameter loading method and device, a processor and electronic equipment. Wherein, the method comprises the following steps: determining modulation parameters to be updated and preset loading time of all modulation signals output by the controller, wherein the modulation parameters to be updated are the modulation parameters to be updated of all modulation signals, and the preset loading time is the preset loading time for loading the modulation parameters to be updated; dividing all modulation signals into a first type of modulation signals and a second type of modulation signals according to a preset loading moment, wherein the first type of modulation signals are modulation signals with the same preset loading moment, and the second type of modulation signals are modulation signals with different preset loading moments; and controlling the first type of modulation signal and the second type of modulation signal to respectively execute loading operation. The invention solves the technical problem that in the prior art, the output result is deviated from the expected result due to deviation of the time sequence of the updated modulation parameter in the execution process of the switching period.

Description

Modulation parameter loading method and device, processor and electronic equipment
Technical Field
The invention relates to the technical field of modulation, in particular to a method and a device for loading modulation parameters, a processor and electronic equipment.
Background
Pulse Width Modulation (PWM) and Pulse Frequency Modulation (PFM) are two Modulation methods commonly used in the field of power electronics, and in order to make the current switching period completely execute, the Modulation signal generation module is usually configured in a SHADOW (SHADOW) mode, that is: when the modulation parameter changes, the modulation signal generation module needs to wait until a set loading point to LOAD (LOAD) a new parameter so as to generate a new modulation signal. Under normal conditions, each modulation signal with the same and unique loading point updates parameters at the unique loading point in the same period; however, for a serial processor such as a DSP, the program execution is sequential, and the modulation signal generation module that updates the parameter later may lag behind the modulation signal generation module that updates the parameter earlier by one cycle or more before loading the new modulation parameter, thereby causing the overall output of the system to deviate from expectations.
As shown in fig. 1a and fig. 1b, taking PWM modulation and PFM modulation as examples, respectively, when the actual load points of two paths of modulation signal generation modules with the same set load point and the same unique modulation signal generation module differ by one period, the generated modulation signal synthesis result is shown as a waveform in a dashed line box in fig. 1a, and due to the inconsistency of load points in PWM modulation, there is an abnormal synthesis output in the switching transition process; as shown by the waveforms in the dashed box of fig. 1b, there is an anomaly in the synthesized output consistently not matching the expectation since the switching transition process was started at the time of PFM modulation due to load point inconsistency.
Disclosure of Invention
The embodiment of the invention provides a modulation parameter loading method and device, a processor and electronic equipment, which at least solve the technical problem that in the prior art, an output result is deviated from an expected result due to deviation of a modulation parameter updating time sequence in the execution process of a switching period.
According to an aspect of the embodiments of the present invention, there is provided a method for loading modulation parameters, including: determining modulation parameters to be updated and preset loading time of all modulation signals output by a controller, wherein the modulation parameters to be updated are the modulation parameters to be updated of all the modulation signals, and the preset loading time is preset loading time for loading the modulation parameters to be updated; dividing all the modulation signals into a first type modulation signal and a second type modulation signal according to the preset loading time, wherein the first type modulation signal is a modulation signal with the same preset loading time, and the second type modulation signal is a modulation signal with different preset loading times; and controlling the first type modulation signal and the second type modulation signal to respectively execute a loading operation, wherein the loading operation is used for loading the modulation parameter to be updated.
Optionally, dividing all the modulation signals into a first modulation signal and a second modulation signal according to the preset loading time includes: determining the preset loading time of each path of modulation signal in all the modulation signals in a modulation period; comparing whether the preset loading moments of all the modulation signals are the same or not; and dividing all the modulation signals into the first type modulation signals and the second type modulation signals according to the comparison result.
Optionally, the controlling the first type of modulation signal to perform a loading operation includes: acquiring the update completion time of each first type modulation signal, wherein the update completion time is the time for updating the modulation parameters to be updated; judging whether the updating completion time and the preset loading time are in the same loading period; if so, comparing the updating completion time with the preset loading time in the current period to obtain a comparison result; and if the updating completion time is before the preset loading time, controlling each first type modulation signal to immediately execute updating when receiving the modulation parameter to be updated, and executing the loading operation at the preset loading time.
Optionally, the method further includes: acquiring the required time length for each path of modulation signal in the second type of modulation signal to update the modulation parameter to be updated; and summing the required time lengths of all the second-class modulation signals to obtain the updating time length of the second-class modulation signal.
Optionally, the controlling the second type modulation signal to perform a loading operation includes: determining a preset loading time corresponding to each path of modulation signal in the second type of modulation signal and an update completion time of each path of modulation signal, wherein the update completion time is a time for updating the modulation parameter to be updated; judging whether the time difference between the updating completion time and the preset loading time of each path of modulation signal in the second type of modulation signal is less than the updating duration; if so, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at a loading time after the preset loading time; and if not, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at the preset loading moment.
According to another aspect of the embodiments of the present invention, there is also provided a modulation parameter loading apparatus, including: the device comprises a determining module, a loading module and a processing module, wherein the determining module is used for determining modulation parameters to be updated and preset loading time of all modulation signals output by a controller, the modulation parameters to be updated are all modulation parameters to be updated of the modulation signals, and the preset loading time is preset loading time for loading the modulation parameters to be updated; a dividing module, configured to divide all the modulation signals into a first type of modulation signal and a second type of modulation signal according to the preset loading time, where the first type of modulation signal is a modulation signal with the same preset loading time, and the second type of modulation signal is a modulation signal with different preset loading times; and a loading module, configured to control the first type of modulation signal and the second type of modulation signal to perform a loading operation, respectively, where the loading operation is used to load the modulation parameter to be updated.
Optionally, the dividing module includes: a first determining unit, configured to determine the preset loading time of each path of modulation signal in all the modulation signals in a modulation cycle; a comparison unit, configured to compare whether the preset loading moments of all the modulation signals are the same; and the dividing unit is used for dividing all the modulation signals into the first type modulation signals and the second type modulation signals according to the comparison result.
Optionally, the loading module includes: an obtaining unit, configured to obtain an update completion time of each of the first-type modulation signals, where the update completion time is a time for updating the modulation parameter to be updated; a first judging unit, configured to judge whether the update completion time and the preset loading time are in the same loading period; a comparison unit, configured to compare the update completion time with the preset loading time in the current cycle if the update completion time is the preset loading time, so as to obtain a comparison result; a first loading unit, configured to, if the update completion time is before the preset loading time, immediately perform an update when receiving the modulation parameter to be updated, and perform the loading operation at the preset loading time.
Optionally, the apparatus further comprises: an obtaining module, configured to obtain a required time for each modulation signal in the second type of modulation signal to update the modulation parameter to be updated; and the calculating module is used for summing the required time lengths of all the second type modulation signals to obtain the updating time length of the second type modulation signals.
Optionally, the loading module includes: a second determining unit, configured to determine a preset loading time corresponding to each modulation signal in the second type of modulation signal, and an update completion time of each modulation signal, where the update completion time is a time for updating the modulation parameter to be updated; a second determining unit, configured to determine whether a time difference between the update completion time and the preset loading time of each of the second type of modulation signals is smaller than the update duration; a second loading unit, configured to control each path of modulation signal in the second type of modulation signal to perform the loading operation at a loading time after the preset loading time if the path of modulation signal is the preset modulation signal; and if not, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at the preset loading moment.
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium, which stores a plurality of instructions, the instructions being adapted to be loaded by a processor and to execute any one of the above-mentioned modulation parameter loading methods.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program is configured to execute any one of the above loading methods of modulation parameters when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform any one of the above-mentioned methods for loading modulation parameters.
In the embodiment of the invention, modulation parameters to be updated and preset loading time of all modulation signals output by a controller are determined, wherein the modulation parameters to be updated are the modulation parameters to be updated of all the modulation signals, and the preset loading time is the preset loading time for loading the modulation parameters to be updated; dividing all the modulation signals into a first type of modulation signals and a second type of modulation signals according to the preset loading time, wherein the first type of modulation signals are modulation signals with the same preset loading time, and the second type of modulation signals are modulation signals with different preset loading times; and controlling the first type modulation signal and the second type modulation signal to respectively execute loading operation, wherein the loading operation is used for loading the modulation parameter to be updated, so that the aim of avoiding the error of updating the modulation parameter in the execution process of the switching period is fulfilled, the technical effect of ensuring that the output result of the switching period is in accordance with the expectation is realized, and the technical problem that the output result is deviated from the expectation due to the deviation of the time sequence of the updated modulation parameter in the execution process of the switching period in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1a is a schematic diagram of a modulation signal result generated by a PWM modulation scheme according to the prior art;
FIG. 1b is a diagram of the modulation signal result generated by a PFM modulation scheme according to the prior art;
FIG. 2 is a schematic diagram of an alternative counting scheme according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for loading modulation parameters according to an embodiment of the present invention;
FIG. 4 is a flow chart of an alternative modulation parameter loading method according to an embodiment of the present invention;
FIG. 5a is a schematic diagram of the modulation signal result generated by an alternative PWM modulation scheme according to an embodiment of the present invention;
FIG. 5b is a schematic diagram of a modulation signal result generated by an alternative PFM modulation scheme according to an embodiment of the present invention;
FIG. 6a is a diagram of an alternative execution load operation 1 according to an embodiment of the present invention;
FIG. 6b is a diagram of an alternative execution load operation 2, according to an embodiment of the invention;
FIG. 6c is a schematic diagram of an alternative execution load operation 1 and execution load operation 2, according to an embodiment of the invention;
fig. 7 is a schematic structural diagram of a parameter modulation loading apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, in order to facilitate understanding of the embodiments of the present invention, some terms or nouns referred to in the present invention will be explained below:
modulation signal: in the process of converting the electrical signal, the a signal changes some characteristic values (such as phase, frequency, amplitude, etc.) of the B signal, which causes these characteristic values of the B signal to change regularly, and the rule is determined by the rule of the a signal itself, i.e. the B signal carries the relevant information of the a signal, then the a signal is a modulated signal, and the B signal is a modulated signal.
A modulation signal generation module: is a module for generating a modulated signal, typically comprising a counting module and a comparing module, which updates the modulated signal output when the value of the counting module (count value) matches the value of the comparing module (i.e. comparison value). The counting module may have different counting manners, for example, including count up, count down, count up and count down, etc. as shown in fig. 2, the maximum value counted by the counting module is generally defined as a period value, and the minimum value is defined as a zero point.
Shadow mode: after the modulation parameters are updated, the modulation parameters are loaded until the set loading point, and the modulation parameters are loaded immediately corresponding to the set loading point; the shadow mode is that after the modulation parameters of each modulation signal are updated, new modulation parameters are loaded until a set loading point, and typical loading points comprise a zero point, a comparison value point and a period value point.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for loading modulation parameters, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that illustrated herein.
Fig. 3 is a flowchart of a method for loading modulation parameters according to an embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step S102, determining modulation parameters to be updated and preset loading time of all modulation signals output by a controller, wherein the modulation parameters to be updated are the modulation parameters to be updated of all the modulation signals, and the preset loading time is preset loading time for loading the modulation parameters to be updated;
step S104, dividing all the modulation signals into a first type modulation signal and a second type modulation signal according to the preset loading time, wherein the first type modulation signal is a modulation signal with the same preset loading time, and the second type modulation signal is a modulation signal with different preset loading times;
step S106, controlling the first type modulation signal and the second type modulation signal to respectively execute a loading operation, where the loading operation is used to load the modulation parameter to be updated.
In the embodiment of the invention, modulation parameters to be updated and preset loading time of all modulation signals output by a controller are determined, wherein the modulation parameters to be updated are the modulation parameters to be updated of all the modulation signals, and the preset loading time is the preset loading time for loading the modulation parameters to be updated; dividing all the modulation signals into a first type of modulation signals and a second type of modulation signals according to the preset loading time, wherein the first type of modulation signals are modulation signals with the same preset loading time, and the second type of modulation signals are modulation signals with different preset loading times; and controlling the first type modulation signal and the second type modulation signal to respectively execute loading operation, wherein the loading operation is used for loading the modulation parameter to be updated, so that the aim of avoiding the error of updating the modulation parameter in the execution process of the switching period is fulfilled, the technical effect of ensuring that the output result of the switching period is in accordance with the expectation is realized, and the technical problem that the output result is deviated from the expectation due to the deviation of the time sequence of the updated modulation parameter in the execution process of the switching period in the prior art is solved.
Optionally, the loading method of the modulation parameter may be applied, but not limited to, in the field of power electronic modulation technology, for example, pulse width modulation FWM and pulse frequency modulation PFM, where during PWM modulation, the switching frequency of the power electronic device is fixed and the ratio of the conducting time in the switching period varies according to the control requirement; during PFM modulation, the switching frequency of the power electronic device is changed according to the control requirement, and the conducting time ratio in the switching period is fixed.
Optionally, the modulation parameters to be updated are modulation parameters to be updated of all the modulation signals, and the preset loading time is a preset loading time for loading the modulation parameters to be updated. The first type of modulation signals are modulation signals with the same preset loading time, and the second type of modulation signals are modulation signals with different preset loading times.
It should be noted that, when the two modulation schemes are implemented by using a digital controller such as a DSP, the PWM modulation scheme and the PFM modulation scheme respectively correspond to changes of a comparison Value (CMP) and a Period Value (PRD) of a modulation signal, and the comparison Value and the Period Value are collectively referred to as a modulation parameter (for example, a modulation parameter to be updated) in the embodiment of the present application.
The modulation parameter loading method provided by the embodiment of the application can be applied to more and more complex application scenes due to the fact that abnormal output types caused by inconsistent loading points are increased along with the increase of the number of modulation signal paths, and the modulation parameter updating position of the modulation signals is limited, so that the modulation signals with the same set loading points all load the modulation parameters at the set loading points in the same period, and therefore adverse effects on system output or system performance are avoided.
For convenience of description, the time when the modulation parameter to be updated is given to each modulation signal is referred to as modulation parameter update time, and the time when the update operation is completed is referred to as update completion time.
It should be noted that, unlike the modulation parameter loading point, the modulation parameters of the respective modulation signals are limited by the sequence of program execution and are difficult to update at the same time. Through the shadow mode, all modulation signals with the same set loading point in one controller module can load modulation parameters at the same loading point.
In an optional embodiment, dividing all the modulation signals into a first type modulation signal and a second type modulation signal according to the preset loading time includes:
step S202, determining the preset loading time of each path of modulation signal in all the modulation signals in a modulation period;
step S204, comparing whether the preset loading moments of all the modulation signals are the same or not;
step S206, dividing all the modulation signals into the first type modulation signals and the second type modulation signals according to the comparison result.
In the above optional embodiment, the preset loading time of all modulation signals is obtained by determining the preset loading time of each modulation signal in the modulation period, and the comparison result is obtained by comparing whether the preset loading times of all modulation signals are the same, so that the modulation signals with the same preset loading time at the preset loading time are divided into the first type of modulation signals, and the modulation signals with different preset loading times at the preset loading time are divided into the second type of modulation signals.
As an optional implementation manner, an implementation flow of another optional modulation parameter loading method is shown in fig. 4, and implementation steps are specifically described as follows:
step S601, acquiring the time required for completing the updating of the modulation parameters of all the modulation signals.
Specifically, assuming that a certain controller outputs 8 modulation signals, the 8 modulation signals sequentially update the modulation parameters, and the set loading points of the 8 modulation signals are the same, the time required from the start of updating the modulation parameter of the 1 st modulation signal to the end of updating the modulation parameter of the 8 th modulation signal needs to be estimated in advance.
Step S602, obtaining modulation parameters to be updated and preset loading time of all modulation signals.
In particular, the modulation parameters may be updated online according to the system control feedback signal.
Step S603, judging whether the time difference between the parameter updating time and the preset loading time is less than the time required by the completion of the parameter updating of the modulation signal, if so, skipping to step S604; if not, go to step S605.
Specifically, after the modulation parameter to be updated (the latest modulation parameter) is obtained, it is first determined whether a corresponding time difference between a time count value at which the 1 st-path modulation signal starts to be updated and a preset loading time count value is less than the time required for updating the 8-path modulation parameter, and if so, the process goes to step S604; if not, go to step S605.
Step S604, after waiting for the preset loading time, updating the modulation parameters for each modulation signal.
Specifically, after the count value exceeds the preset loading time, the modulation parameter of each modulation signal is updated to the latest modulation parameter.
In step S605, the modulation parameters are immediately updated for each modulated signal.
Specifically, the modulation parameter of each modulated signal is immediately updated to the latest modulation parameter.
In step S606, the modulation signals with the same loading point load the latest modulation parameters at the same loading point in the same cycle.
Specifically, after the modulation parameters of each modulation signal are updated to the latest modulation parameters, the modulation signals with the same load point will load the latest modulation parameters at the same load point in the same cycle. Unlike the prior art shown in fig. 1a and fig. 1b, under PWM modulation and PFM modulation, a possible synthesized output result is obtained when the actual load points of the two modulation signals shown in fig. 5a and fig. 5b are the same.
In an alternative embodiment, the controlling the first type of modulation signal to perform a loading operation includes:
step S302, obtaining the update completion time of each first type modulation signal, wherein the update completion time is the time for updating the modulation parameters to be updated;
step S304, judging whether the updating completion time and the preset loading time are in the same loading period;
step S306, if yes, the updating completion time and the preset loading time are compared in the current period to obtain a comparison result;
step S308, if the update completion time is before the preset loading time, immediately performing the update when receiving the modulation parameter to be updated, and performing the loading operation at the preset loading time.
Controlling the first type modulation signals to execute loading operation, namely acquiring the update completion time of each first type modulation signal, wherein the update completion time is the time for updating the modulation parameters to be updated; judging whether the updating completion time and the preset loading time are in the same loading period or not; if so, comparing the updating completion time with the preset loading time in the current period to obtain a comparison result; and if the updating completion time is before the preset loading time, immediately executing updating when the modulation parameters to be updated are received, and executing the loading operation at the preset loading time.
For the first type modulation signals with the same preset loading time, if the updating completion time of the first type modulation parameters spans the preset loading time, namely the updating completion time is behind the preset loading time, updating the modulation parameters to be updated after the preset loading time; and if the updating completion time of the first type modulation parameters is completed before the preset loading time, immediately updating when the modulation parameters to be updated are received, and executing the loading operation at the preset loading time.
As shown in fig. 6a, there is a preset loading time in the current cycle and also a preset loading time in the next cycle, if the update completion time 1 is in the same cycle as the preset loading time, for example, the current cycle, the update completion time 1 and the preset loading time are compared in the current cycle, and if the update completion time 1 is before the preset loading time, each modulation signal parameter is immediately updated, and the loading operation 1 is performed at the preset loading time.
In an optional embodiment, the method further includes:
step S402, acquiring the time length required for each path of modulation signal in the second type of modulation signal to update the modulation parameter to be updated;
step S404, summing up the required durations of all the second type modulation signals to obtain an updated duration of the second type modulation signal.
In the above alternative embodiment, steps S402 to S404 provide a method for determining whether the modulation signal parameter update crosses the preset loading time (loading point): and judging whether the time difference between the parameter updating starting moment and the preset loading moment is less than the updating duration of all the modulation signals (namely the time required for completing the updating of the parameters of the modulation signals), if so, determining that the parameter updating of the modulation signals needs to cross the preset loading moment.
Therefore, it is necessary to obtain in advance a required time length for each modulation signal in the second type of modulation signal to update the modulation parameter to be updated, and sum the required time lengths of each modulation signal in the second type of modulation signal to obtain an update time length of each modulation signal in the second type of modulation signal.
In an alternative embodiment, the controlling the second type modulation signal to perform a loading operation includes:
step S502, determining a preset loading time corresponding to each modulation signal in the second type of modulation signal, and an update completion time of each modulation signal, where the update completion time is a time for updating the modulation parameter to be updated;
step S504, determining whether a time difference between the update completion time and the preset loading time of each path of modulation signal in the second type of modulation signal is less than the update duration;
step S506, if yes, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at a loading time after the preset loading time; and if not, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at the preset loading moment.
Since the second-type modulation signals are modulation signals with different preset loading moments, it is necessary to determine a preset loading moment corresponding to each modulation signal in the second-type modulation signals and an update completion moment of each modulation signal, and determine whether a time difference between the update completion moment and the preset loading moment of each modulation signal in the second-type modulation signals is less than the update duration; if so, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at a loading time after the preset loading time; and if not, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at the preset loading moment.
As shown in fig. 6b, there is a preset loading time in the current cycle and also a preset loading time in the next cycle, but the update completion time 2 is not in the same cycle as the preset loading time, but spans two cycles or more cycles not shown in the figure, i.e. it needs to delay updating, for example, if the updating operation lasts from the current cycle to the next cycle, the loading operation 2 is not executed at the preset loading time of the current cycle, but the update completion time 2 and the preset loading time of the next cycle are compared in the next cycle (the last cycle where the update completion time 2 is located if it spans multiple cycles), if the update completion time 2 is before the preset loading time of the next cycle, each modulation signal delays to the preset loading time of the current cycle before updating, and performs a load operation 2 at a preset load time of the next period.
It should be noted that, if the update completion time 2 is completed from the current cycle across a plurality of cycles, the load operation 2 is performed at the preset load time of the last cycle at which the update completion time 2 is completed, and the update operation is performed after the preset load time of the cycle previous to the last cycle.
Specifically, for the second type of modulation signals with different preset loading moments, the parameter updating moment needs to be considered before or after the respective preset loading moments, and specifically depends on whether the parameter updating completion moment is before the preset loading moment or crosses the preset loading moment.
It should be noted that, if a path of modulation signal has multiple load points in one period, each load point should be updated after or before determining whether crossing is needed.
In the embodiment of the present application, the updating time of the modulation parameters of each modulation signal is optimized as much as possible, for example, in the embodiment of the present application, a parallel processor may also be used to update the modulation parameters of each modulation signal in parallel, so as to achieve the technical effect of reducing the waiting probability or delay for updating the modulation parameters.
Fig. 6c is a diagram obtained by combining two alternatives of fig. 6a and 6b, and since in actual operation, not only either one of fig. 6a or fig. 6b exists, but both cases may occur simultaneously or separately, the embodiment of the present application further provides a schematic diagram of combining two alternatives of fig. 6a and 6b as shown in fig. 6 c.
By the embodiment of the application, each path of modulation signals with the same loading point can load the latest modulation parameter at the set loading point in the same period; and each path of modulation signal can be in accordance with the expectation, so that the system output/performance is in accordance with the expectation.
It should be noted that, in the embodiment of the present application, the various modulated signals may belong to the same processor, or may belong to different processors. The latest modulation parameter can be sourced from the processor of the user or from other processors, and the embodiment of the application is not limited; when the source of the processor is from another processor, the source may be transmitted through a communication method, or may be transmitted through another writing method, which is not limited in the embodiment of the present application.
Example 2
According to an embodiment of the present invention, an embodiment of an apparatus for implementing the method for loading modulation parameters is further provided, and fig. 7 is a schematic structural diagram of an apparatus for loading modulation parameters according to an embodiment of the present invention, and as shown in fig. 7, the apparatus for loading modulation parameters includes: a determination module 600, a partitioning module 602, and a loading module 604, wherein:
a determining module 600, configured to determine modulation parameters to be updated and preset loading time of all modulation signals output by a controller, where the modulation parameters to be updated are modulation parameters to be updated of all the modulation signals, and the preset loading time is preset loading time for executing loading of the modulation parameters to be updated; a dividing module 602, configured to divide all the modulation signals into a first type modulation signal and a second type modulation signal according to the preset loading time, where the first type modulation signal is a modulation signal with the same preset loading time, and the second type modulation signal is a modulation signal with different preset loading times; a loading module 604, configured to control the first type of modulation signal and the second type of modulation signal to perform a loading operation, respectively, where the loading operation is used to load the modulation parameter to be updated.
It should be noted here that the determining module 600, the dividing module 602, and the loading module 604 correspond to steps S102 to S106 in embodiment 1, and the modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in embodiment 1. It should be noted that the modules described above may be implemented in a computer terminal as part of an apparatus.
In an optional embodiment, the dividing module includes: a first determining unit, configured to determine the preset loading time of each path of modulation signal in all the modulation signals in a modulation cycle; a comparison unit, configured to compare whether the preset loading moments of all the modulation signals are the same; and the dividing unit is used for dividing all the modulation signals into the first type modulation signals and the second type modulation signals according to the comparison result.
In an optional embodiment, the loading module includes: an obtaining unit, configured to obtain an update completion time of each of the first-type modulation signals, where the update completion time is a time for updating the modulation parameter to be updated; a first judging unit, configured to judge whether the update completion time and the preset loading time are in the same loading period; the comparison unit is used for comparing the updating completion time with the preset loading time in the current period if the updating completion time is the preset loading time, and obtaining a comparison result; and the first loading unit is used for immediately executing updating when the modulation parameter to be updated is received and executing the loading operation at the preset loading time if the updating completion time is before the preset loading time.
In an optional embodiment, the apparatus further comprises: an obtaining module, configured to obtain a required time for each modulation signal in the second type of modulation signal to update the modulation parameter to be updated; and the calculating module is used for summing the required time lengths of all the second type modulation signals to obtain the updating time length of the second type modulation signals.
In an optional embodiment, the loading module includes: a second determining unit, configured to determine a preset loading time corresponding to each modulation signal in the second type of modulation signal, and an update completion time of each modulation signal, where the update completion time is a time for updating the modulation parameter to be updated; a second determining unit, configured to determine whether a time difference between the update completion time and the preset loading time of each path of modulation signals in the second type of modulation signals is smaller than the update duration; a second loading unit, configured to control each path of the modulation signal in the second type of modulation signal to perform the loading operation at a loading time after the preset loading time if the predetermined loading time is reached; if not, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at the preset loading time.
In an optional embodiment, the apparatus is further configured to give the modulation parameter to be updated to a generation module of each corresponding modulation signal; if the completion time of sending the modulation parameters to be updated to the generating module is detected to be earlier than the preset loading time, executing the operation of sending the modulation parameters to the generating module; and if the completion time of sending the modulation parameters to be updated to the generating module is detected to be later than the preset loading time, sending the modulation parameters to be updated to the generating module after the preset loading time.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; alternatively, the modules may be located in different processors in any combination.
It should be noted that, reference may be made to the relevant description in embodiment 1 for alternative or preferred embodiments of this embodiment, and details are not described here.
The above-mentioned modulation parameter loading apparatus may further include a processor and a memory, and the determining module 600, the dividing module 602, the loading module 604, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory, wherein one or more than one kernel can be arranged. The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to an embodiment of the present application, there is also provided an embodiment of a non-volatile storage medium. Optionally, in this embodiment, the nonvolatile storage medium includes a stored program, and when the program runs, the apparatus where the nonvolatile storage medium is located is controlled to execute the loading method of any modulation parameter.
Optionally, in this embodiment, the nonvolatile storage medium may be located in any one of a group of computer terminals in a computer network or any one of a group of mobile terminals, and the nonvolatile storage medium includes a stored program.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: determining modulation parameters to be updated and preset loading time of all modulation signals output by a controller, wherein the modulation parameters to be updated are the modulation parameters to be updated of all the modulation signals, and the preset loading time is preset loading time for loading the modulation parameters to be updated; dividing all the modulation signals into a first type modulation signal and a second type modulation signal according to the preset loading time, wherein the first type modulation signal is a modulation signal with the same preset loading time, and the second type modulation signal is a modulation signal with different preset loading times; and controlling the first type of modulation signal and the second type of modulation signal to respectively execute a loading operation, wherein the loading operation is used for loading the modulation parameters to be updated.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: determining the preset loading time of each path of modulation signal in all the modulation signals in a modulation period; comparing whether the preset loading moments of all the modulation signals are the same or not; and dividing all the modulation signals into the first type modulation signals and the second type modulation signals according to the comparison result.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: acquiring the update completion time of each first-type modulation signal, wherein the update completion time is the time for updating the modulation parameters to be updated; judging whether the updating completion time and the preset loading time are in the same loading period; if so, comparing the updating completion time with the preset loading time in the current period to obtain a comparison result; and if the updating completion time is before the preset loading time, controlling each first type modulation signal to immediately execute updating when receiving the modulation parameter to be updated, and executing the loading operation at the preset loading time.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: acquiring the required time length for each path of modulation signal in the second type of modulation signal to update the modulation parameter to be updated; and summing the required time lengths of all the second-class modulation signals to obtain the updating time length of the second-class modulation signal.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: determining a preset loading time corresponding to each path of modulation signal in the second type of modulation signal and an update completion time of each path of modulation signal, wherein the update completion time is a time for updating the modulation parameter to be updated; judging whether the time difference between the updating completion time and the preset loading time of each path of modulation signal in the second type of modulation signal is less than the updating duration; if so, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at a loading time after the preset loading time; and if not, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at the preset loading moment.
According to an embodiment of the present application, there is also provided an embodiment of a processor. Optionally, in this embodiment, the processor is configured to execute a program, where the program executes a method for loading any one of the modulation parameters.
According to an embodiment of the present application, there is further provided an embodiment of an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform any one of the above-mentioned methods for loading modulation parameters.
There is further provided, according to an embodiment of the present application, an embodiment of a computer program product, which, when being executed on a data processing device, is adapted to execute a program for initializing the loading method steps with any of the above-mentioned modulation parameters.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable non-volatile storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a non-volatile storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned nonvolatile storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.

Claims (13)

1. A method for loading modulation parameters is characterized by comprising the following steps:
determining modulation parameters to be updated and preset loading time of all modulation signals output by a controller, wherein the modulation parameters to be updated are the modulation parameters to be updated of all the modulation signals, and the preset loading time is preset loading time for loading the modulation parameters to be updated;
dividing all the modulation signals into a first type of modulation signals and a second type of modulation signals according to the preset loading time, wherein the first type of modulation signals are modulation signals with the same preset loading time, and the second type of modulation signals are modulation signals with different preset loading times;
and controlling the first type of modulation signal and the second type of modulation signal to respectively execute a loading operation, wherein the loading operation is used for loading the modulation parameters to be updated.
2. The method of claim 1, wherein dividing all the modulation signals into a first type modulation signal and a second type modulation signal according to the preset loading time comprises:
determining the preset loading time of each path of modulation signal in all the modulation signals in a modulation period;
comparing whether the preset loading moments of all the modulation signals are the same or not;
and dividing all the modulation signals into the first type modulation signals and the second type modulation signals according to the comparison result.
3. The method of claim 1, wherein controlling the first type of modulation signal to perform a loading operation comprises:
acquiring the updating completion time of each first-type modulation signal, wherein the updating completion time is the time for updating the modulation parameters to be updated;
judging whether the updating completion time and the preset loading time are in the same loading period;
if so, comparing the updating completion time with the preset loading time in the current period to obtain a comparison result;
and if the updating completion time is before the preset loading time, controlling each first-class modulation signal to immediately execute updating when receiving the modulation parameter to be updated, and executing the loading operation at the preset loading time.
4. The method of claim 1, further comprising:
acquiring the required time length for each path of modulation signal in the second type of modulation signal to update the modulation parameter to be updated;
and summing the required time lengths of all the second-class modulation signals to obtain the update time length of the second-class modulation signal.
5. The method of claim 4, wherein controlling the second type of modulation signal to perform a loading operation comprises:
determining a preset loading time corresponding to each path of modulation signal in the second type of modulation signal and an update completion time of each path of modulation signal, wherein the update completion time is a time for updating the modulation parameter to be updated;
judging whether the time difference between the updating completion time and the preset loading time of each path of modulation signal in the second type of modulation signal is smaller than the updating duration;
if so, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at a loading moment after the preset loading moment; and if not, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at the preset loading moment.
6. A modulation parameter loading apparatus, comprising:
the device comprises a determining module, a loading module and a processing module, wherein the determining module is used for determining modulation parameters to be updated and preset loading time of all modulation signals output by a controller, the modulation parameters to be updated are all modulation parameters to be updated of the modulation signals, and the preset loading time is preset loading time for loading the modulation parameters to be updated;
the dividing module is used for dividing all the modulation signals into a first type of modulation signals and a second type of modulation signals according to the preset loading time, wherein the first type of modulation signals are modulation signals with the same preset loading time, and the second type of modulation signals are modulation signals with different preset loading times;
and the loading module is used for controlling the first type of modulation signal and the second type of modulation signal to respectively execute loading operation, wherein the loading operation is used for loading the modulation parameters to be updated.
7. The apparatus of claim 6, wherein the partitioning module comprises:
the first determining unit is used for determining the preset loading time of each path of modulation signal in all the modulation signals in a modulation period;
the comparison unit is used for comparing whether the preset loading moments of all the modulation signals are the same or not;
and the dividing unit is used for dividing all the modulation signals into the first type modulation signals and the second type modulation signals according to the comparison result.
8. The apparatus of claim 6, wherein the load module comprises:
an obtaining unit, configured to obtain an update completion time of each first-type modulation signal, where the update completion time is a time when the modulation parameter to be updated is updated;
the first judging unit is used for judging whether the updating completion time and the preset loading time are in the same loading period;
the comparison unit is used for comparing the updating completion time with the preset loading time in the current period if the updating completion time is the preset loading time, and obtaining a comparison result;
and the first loading unit is used for controlling each first type modulation signal to immediately execute updating when receiving the modulation parameter to be updated and executing the loading operation at the preset loading time if the updating completion time is before the preset loading time.
9. The apparatus of claim 6, further comprising:
an obtaining module, configured to obtain a required time for each modulation signal in the second type of modulation signal to perform updating of the modulation parameter to be updated;
and the calculating module is used for summing the required time lengths of all the second type modulation signals to obtain the update time length of the second type modulation signals.
10. The apparatus of claim 9, wherein the load module comprises:
a second determining unit, configured to determine a preset loading time corresponding to each modulation signal in the second type of modulation signal, and an update completion time of each modulation signal, where the update completion time is a time for updating the modulation parameter to be updated;
a second determining unit, configured to determine whether a time difference between the update completion time and the preset loading time of each path of modulation signals in the second type of modulation signals is smaller than the update duration;
a second loading unit, configured to control each path of modulation signal in the second type of modulation signal to execute the loading operation at a loading time after the preset loading time if the path of modulation signal is the preset modulation signal; and if not, controlling each path of modulation signal in the second type of modulation signal to execute the loading operation at the preset loading moment.
11. A non-volatile storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method of loading modulation parameters according to any one of claims 1 to 5.
12. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to perform the method of loading modulation parameters according to any one of claims 1 to 6 when running.
13. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the method of loading modulation parameters according to any one of claims 1 to 5.
CN202110004959.2A 2021-01-04 2021-01-04 Modulation parameter loading method and device, processor and electronic equipment Pending CN112787637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110004959.2A CN112787637A (en) 2021-01-04 2021-01-04 Modulation parameter loading method and device, processor and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110004959.2A CN112787637A (en) 2021-01-04 2021-01-04 Modulation parameter loading method and device, processor and electronic equipment

Publications (1)

Publication Number Publication Date
CN112787637A true CN112787637A (en) 2021-05-11

Family

ID=75755206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110004959.2A Pending CN112787637A (en) 2021-01-04 2021-01-04 Modulation parameter loading method and device, processor and electronic equipment

Country Status (1)

Country Link
CN (1) CN112787637A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5584100A (en) * 1978-12-21 1980-06-24 Toshiba Corp Memory control system
US6108252A (en) * 1998-02-06 2000-08-22 Samsung Electronics Co., Ltd. Integrated circuit memory devices having self-test circuits therein and method of testing same
JP2007036310A (en) * 2005-07-22 2007-02-08 Calsonic Kansei Corp Pulse output unit
CN101997524A (en) * 2010-09-26 2011-03-30 中南林业科技大学 Method and digital chip for generating multi-path SPWM signals
WO2011058703A1 (en) * 2009-11-16 2011-05-19 パナソニック株式会社 Semiconductor device for inverter control, motor drive device, and air-conditioning equipment
CN105827164A (en) * 2015-01-28 2016-08-03 美蓓亚株式会社 Motor current controller and method for controlling motor current
CN107204711A (en) * 2017-07-04 2017-09-26 北京千驷驭电气有限公司 Current prediction method and device based on extension z-transform
US20170364305A1 (en) * 2016-06-16 2017-12-21 Oracle International Corporation Clock-skew-tolerant memory updating
CN107834817A (en) * 2017-11-10 2018-03-23 阳光电源股份有限公司 A kind of current transformer parallel operation control method and control system
US20180197471A1 (en) * 2017-01-10 2018-07-12 X-Celeprint Limited Digital-drive pulse-width-modulated output system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5584100A (en) * 1978-12-21 1980-06-24 Toshiba Corp Memory control system
US6108252A (en) * 1998-02-06 2000-08-22 Samsung Electronics Co., Ltd. Integrated circuit memory devices having self-test circuits therein and method of testing same
JP2007036310A (en) * 2005-07-22 2007-02-08 Calsonic Kansei Corp Pulse output unit
WO2011058703A1 (en) * 2009-11-16 2011-05-19 パナソニック株式会社 Semiconductor device for inverter control, motor drive device, and air-conditioning equipment
CN101997524A (en) * 2010-09-26 2011-03-30 中南林业科技大学 Method and digital chip for generating multi-path SPWM signals
CN105827164A (en) * 2015-01-28 2016-08-03 美蓓亚株式会社 Motor current controller and method for controlling motor current
US20170364305A1 (en) * 2016-06-16 2017-12-21 Oracle International Corporation Clock-skew-tolerant memory updating
US20180197471A1 (en) * 2017-01-10 2018-07-12 X-Celeprint Limited Digital-drive pulse-width-modulated output system
CN107204711A (en) * 2017-07-04 2017-09-26 北京千驷驭电气有限公司 Current prediction method and device based on extension z-transform
CN107834817A (en) * 2017-11-10 2018-03-23 阳光电源股份有限公司 A kind of current transformer parallel operation control method and control system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
J. PIRAGATEESH, D. ANBUMANI, K. MOHANASUNDARAM,K. K. PRABHAKARAN: "A comparison of PWM control and digital control strategy for asymmetric DC-AC cascaded H-bridge multilevel inverter with R and motor load", 《2013 INTERNATIONAL CONFERENCE ON CIRCUITS》, pages 187 - 192 *
唐永建,李浩亮,冀学美,何乐年,严晓浪: "数字微镜器件的优化设计", 《浙江大学学报(工学版)》, pages 896 - 900 *

Similar Documents

Publication Publication Date Title
CN112487492B (en) Data verification method, system and equipment
CN107766393A (en) Information processing method, client and server based on database
US11188115B2 (en) Sequence signal generator and sequence signal generation method
CN109861869B (en) Configuration file generation method and device
CN112787637A (en) Modulation parameter loading method and device, processor and electronic equipment
CN110457062A (en) The method, apparatus and computer readable storage medium of screen parameter configuration
CN115964984B (en) Method and device for balanced winding of digital chip layout
CN111984623A (en) Database cluster automatic deployment method, device, medium and electronic equipment
CN109586912A (en) A kind of generation method, system, equipment and the medium of SM2 digital signature
CN113140953B (en) Laser signal control method and device, laser and readable storage medium
CN115660957A (en) Resampling method, device, equipment and medium for waveform data
CN115097207A (en) Resonance detection method and device for AC/DC hybrid micro-grid
CN114971204A (en) Budget control method, budget control system, storage medium and electronic equipment
CN114185557A (en) Software product deployment method, device, medium and electronic equipment
CN111293022B (en) Impedance matching method and device for pulsed radio frequency plasma
CN115756996B (en) Chip testing method, device and equipment and readable storage medium
CN110597700A (en) Server testing method and device
CN114741281B (en) Batch software testing system and method based on operating system
CN115561665B (en) Power supply detection method, device, equipment, medium and circuit
CN114936300B (en) List generation method and system for laser pipe cutter electrical design auxiliary system
CN113867829B (en) Method, device, equipment and storage medium for switching Bios option schemes
US11813805B2 (en) Tool for optimal part consolidation selection for additive manufacturing
EP4293901A1 (en) Current limiting apparatus for driving a loudspeaker
CN113986335A (en) Version package verification stage distribution method and device
CN115883173A (en) Method and device for switching software system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination