Power supply device output control method, electronic device, power supply device and device
By using a one-way linked list structure and search strategy in the MCU of the power supply device, the problem of power supply device outputting multiple waveforms in multiple working steps is solved, and efficient waveform output is achieved.
Patent Information
- Application Number
- CN202411654382.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-11-19
AI Technical Summary
Due to the limited RAM space of the MCU, it is difficult to output multiple waveforms of multiple steps.
Using a one-way linked list structure, multiple nodes are inserted into the linked list. Each node contains pointers, waveform parameters and preset waveform running time, and outputs waveform signals through searching strategies.
Without storing step description data for each data point information of multiple waveforms, multiple waveforms of multiple steps can be fitted and outputted in sequence, effectively utilizing the RAM space of the MCU.
Smart Images

Figure CN119165807B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power supply equipment, and in particular to a power supply equipment output control method, electronic equipment, power supply equipment and apparatus. Background Art
[0002] Power supply equipment usually uses a sequence method to plot points on a waveform. When outputting waveforms in a sequence method, it is necessary to describe the process step for each data point of the waveform, such as output value, duration, etc. If you want to output multiple waveforms of multiple process steps, you need to store multiple sequence step description data. However, the random access memory (RAM) of the microcontroller unit (MCU) is limited, making it difficult to output multiple waveforms of multiple process steps. Summary of the invention
[0003] The present application aims to propose a power supply device output control method, electronic device, power supply device and apparatus, which can output multiple waveforms of multiple working steps.
[0004] In a first aspect, an embodiment of the present application provides a method for controlling output of a power supply device, which is applied to an MCU of a power supply device, and the method includes:
[0005] Generate a singly linked list;
[0006] Inserting a plurality of nodes into the one-way linked list in sequence, wherein the plurality of nodes correspond to a plurality of working steps of the power supply device, the plurality of working steps output different types of waveforms, each of the nodes comprises a pointer, a waveform parameter corresponding to the working step and a preset waveform running time corresponding to the working step, and the pointer of each node is used to point to the address of the next node;
[0007] Outputting waveform signals in sequence according to the waveform parameters of the plurality of nodes and the preset waveform running time.
[0008] According to some embodiments of the present application, outputting a waveform signal according to the waveform parameters of the plurality of nodes and the preset waveform running time in sequence includes:
[0009] According to a preset time interval, obtaining the real-time waveform running time of the power supply device;
[0010] Starting from the first node of the one-way linked list, using the real-time waveform running time as the running reference time, executing a search strategy on the node to confirm the target node, the search strategy comprising: obtaining the preset waveform running time of the node; comparing the running reference time with the preset waveform running time of the node, and if the running reference time is less than the preset waveform running time of the node, confirming the node as the target node;
[0011] The waveform signal is output according to the waveform parameter of the target node and the running reference time.
[0012] According to some embodiments of the present application, the search strategy further includes: if the running reference time is greater than or equal to the preset waveform running time of the node, subtracting the preset waveform running time of the node from the running reference time to obtain a new running reference time;
[0013] According to the new running reference time, the search strategy is executed on the next node of the node until the target node is confirmed.
[0014] According to some embodiments of the present application, before sequentially inserting multiple nodes into the one-way linked list, the method further includes:
[0015] Inserting a head node into the singly linked list, wherein the head node includes a loop count;
[0016] The step of outputting a waveform signal according to the waveform parameters of the plurality of nodes and the preset waveform running time in sequence comprises:
[0017] Obtaining the number of cycles;
[0018] Based on the number of cycles, the waveform signal is cyclically output according to the waveform parameters of the plurality of nodes and the preset waveform running time.
[0019] According to some embodiments of the present application,
[0020] The waveform parameters include waveform type, amplitude, offset, phase angle and frequency.
[0021] According to some embodiments of the present application, when there is a target step among the multiple steps, the target step is the step of outputting an arbitrary waveform, and the method further includes:
[0022] Setting up data buffers in Synchronous Dynamic Random Access Memory (SDRAM);
[0023] Acquire multiple data point information of the arbitrary waveform;
[0024] Storing multiple data point information in the data buffer;
[0025] The waveform parameter of the node corresponding to the target process step also includes address information of the data point information in the data buffer.
[0026] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0027] at least one processor;
[0028] at least one memory for storing at least one program;
[0029] When at least one of the programs is executed by at least one of the processors, the power supply device output control method as described above is implemented.
[0030] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a program executable by a processor, and the program executable by the processor is used to implement the power supply device output control method as described above when executed by the processor.
[0031] In a fourth aspect, an embodiment of the present application provides a power supply device, including an MCU, which, when executed, is used to implement the power supply device output control method as described above.
[0032] In a fifth aspect, an embodiment of the present application provides a power supply device output control device, comprising:
[0033] Link list generation module, used to generate a one-way linked list;
[0034] A node insertion module, used for sequentially inserting a plurality of nodes into the one-way linked list, wherein the plurality of nodes correspond to a plurality of working steps of the power supply device, the plurality of working steps output different types of waveforms, each of the nodes comprises a pointer, a waveform parameter corresponding to the working step and a preset waveform running time corresponding to the working step, and the pointer of each node is used to point to the address of the next node;
[0035] The waveform output module is used to output waveform signals in sequence according to the waveform parameters of the plurality of nodes and the preset waveform running time.
[0036] In the embodiment of the present application, the waveform of the corresponding step can be fitted according to the waveform parameters of the node and the preset waveform running time, without storing the step description data of each data point information of multiple waveforms. The waveform parameters and preset waveform running time of multiple nodes in the one-way linked list are read in sequence, and multiple waveforms of multiple steps can be fitted and output in sequence.
[0037] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:
[0039] Figure 1 A flowchart of an embodiment of a power supply device output control method provided in the present application;
[0040] Figure 2 A schematic diagram of a one-way linked list of an embodiment of a power supply device output control method provided in the present application;
[0041] Figure 3 A schematic diagram of an electronic device embodiment provided by the present application;
[0042] Figure 4 A schematic diagram of an embodiment of a power supply device output control device provided in the present application;
[0043] Figure 5 This is a functional block diagram of the power supply device provided in this application.
[0044] Reference numerals:
[0045] Electronic device 100, processor 110, memory 120, power supply device output control device 200, linked list generation module 210, node insertion module 220, waveform output module 230, MCU300, FPGA310, SDRAM320, output channel 330. DETAILED DESCRIPTION
[0046] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0047] In the description of the present application, it should be understood that the descriptions involving orientation, such as the orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0048] In the description of this application, "a plurality" means more than two. If there is a description of "first" or "second", it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0049] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.
[0050] Refer to the following Figures 1 to 5 A power supply device output control method, electronic device, power supply device and apparatus according to an embodiment of the present application are described.
[0051] The present application embodiment provides a power supply device output control method, which is applied to the MCU300 of the power supply device, such as Figure 1 to Figure 2 As shown, the method includes:
[0052] Step S100: Generate a one-way linked list;
[0053] Step S200: inserting multiple nodes into the one-way linked list in sequence, the multiple nodes corresponding to multiple working steps of the power supply device, the waveform types output by the multiple working steps are different, each node includes a pointer, a waveform parameter corresponding to the working step and a preset waveform running time corresponding to the working step, and the pointer of each node is used to point to the address of the next node;
[0054] Step S300: outputting waveform signals according to the waveform parameters of multiple nodes and the preset waveform running time.
[0055] In the embodiment of the present application, the waveform of the corresponding step can be fitted according to the waveform parameters of the node and the preset waveform running time, without storing the step description data of each data point information of multiple waveforms. The waveform parameters and preset waveform running time of multiple nodes in the one-way linked list are read in sequence, and multiple waveforms of multiple steps can be fitted and output in sequence.
[0056] In the above step S200, the preset waveform running time indicates the output duration of the waveform corresponding to the node. The waveform parameters of the node can be determined according to the waveform output by the corresponding step, for example, the waveform parameters include waveform type, amplitude, offset, phase angle and frequency, etc. According to the waveform parameters, the waveform can be fitted by the algorithm to obtain the output waveform signal, and then the waveform signal is continuously output based on the preset waveform running time.
[0057] In some embodiments of the present application, the waveform types include sine wave, triangle wave, pulse wave and arbitrary waveform. When the waveform output by the process step is a sine wave, the waveform parameters include waveform type, amplitude, offset, phase angle and frequency. When the waveform output by the process step is a triangle wave and a pulse wave, the waveform parameters include waveform type, amplitude, offset, phase angle, frequency and duty cycle.
[0058] Some implementation methods of the present application, such as Figure 5 As shown, the MCU300 of the power supply device is connected to a Field Programmable Gate Array (FPGA), and the FPGA310 is connected to multiple output channels 330. The MAC is connected to the SDRAM320. The MCU300 is used to execute the power supply device output control method. The SDRAM320 is used to expand the RAM, provide cache, and cache data. The FPGA310 is responsible for forwarding the communication data between the MCU300 and the output channel 330, and synchronously forwards the voltage value or current value configured by the MCU300 to the multiple output channels 330 after receiving it, and performs output synchronization control between the output channels 330 at the same time. After receiving the voltage value or current value, the output channel 330 actually outputs and outputs a waveform signal.
[0059] In one embodiment of the present application, the step S300 of “outputting waveform signals according to waveform parameters of multiple nodes and preset waveform running time in sequence” is further described. The step S300 includes:
[0060] Step S310: acquiring the real-time waveform operation time of the power supply device according to a preset time interval;
[0061] Step S320: Starting from the first node of the one-way linked list, using the real-time waveform running time as the running reference time, executing a search strategy on the node to confirm the target node, the search strategy includes: obtaining the preset waveform running time of the node; comparing the running reference time with the preset waveform running time of the node, if the running reference time is less than the preset waveform running time of the node, confirming the node as the target node;
[0062] Step S330: Output a waveform signal according to the waveform parameters of the target node and the running reference time.
[0063] In this embodiment, the real-time waveform running time of the power supply device is obtained once every preset time interval, and the real-time waveform running time indicates the cumulative time that the power supply device has continuously output the waveform signal. Since the one-way linked list can only read the data of each node in turn, and fit the waveform corresponding to each node in turn for output, based on the real-time waveform running time, by comparing the preset waveform running time of each node, it is possible to find which node the power supply device is outputting the waveform signal corresponding to, thereby determining the target node. The target node is the node that is outputting the waveform.
[0064] In some implementations of the present application, the search strategy further includes:
[0065] Step S321: if the running reference time is greater than or equal to the preset waveform running time of the node, subtract the preset waveform running time of the node from the running reference time to obtain a new running reference time;
[0066] Step S322: According to the new running reference time, the search strategy is executed on the next node of the node until the target node is confirmed.
[0067] In this embodiment, when the running reference time is greater than or equal to the preset waveform running time of the node, it indicates that the waveform of the current node has been outputted, so the running reference time is subtracted from the preset waveform running time of the node to obtain a new running reference time. The new running reference time is used to determine whether the waveform of the next node has been outputted, until the target node is found.
[0068] The running reference time corresponding to the target node actually indicates the length of time the waveform of the target node has been output. Based on the waveform parameters of the target node and the corresponding running reference time, the waveform point of the waveform signal currently output by the power supply device can be determined, and then the waveform signal of the target node can be fitted and output from this waveform point.
[0069] In some implementations of the present application, before "inserting multiple nodes into the one-way linked list in sequence" in step S200, the following steps are also included:
[0070] Step S210: inserting a head node into the one-way linked list, where the head node includes the number of loops;
[0071] The step S300 of “outputting waveform signals according to the waveform parameters of the plurality of nodes and the preset waveform running time in sequence” includes:
[0072] Step S310: Obtain the number of cycles;
[0073] Step S320: Based on the number of cycles, based on the number of cycles, the waveform signals are cyclically output according to the waveform parameters of the multiple nodes and the preset waveform running time.
[0074] In this embodiment, by inserting a head node in the one-way linked list and setting the number of loops of the head node, the number of operations of the one-way linked list is set. For example, if the number of loops in the head node is 3, the one-way linked list is read three times in a loop, and the waveform signals of multiple nodes in the one-way linked list are output three times in a loop.
[0075] In some implementation modes of the present application, the head node also includes the number of nodes in the one-way linked list and output attributes, and the output attributes are used to indicate whether the output waveform is a voltage or a current.
[0076] In one embodiment of the present application, when there is a target step among the multiple steps, the target step is a step of outputting an arbitrary waveform, and the method further includes:
[0077] Step S400: Setting a data buffer in SDRAM 320;
[0078] Step S500: obtaining information of multiple data points of an arbitrary waveform;
[0079] Step S600: storing information of a plurality of data points into a data buffer;
[0080] The waveform parameters of the node corresponding to the target process step also include the address information of the data point information in the data buffer.
[0081] In this embodiment, since the arbitrary waveform cannot be fitted by an algorithm, it is necessary to store multiple data point information of the arbitrary waveform in the data buffer. When the node corresponding to the target step is the target node, by running the reference time and frequency, it is possible to determine which data point of the arbitrary waveform is output, find its address information in the data buffer, find the data point signal of the corresponding address according to the address information, and output the waveform signal according to the data point signal.
[0082] The following describes an algorithm for outputting waveform signals based on waveform parameters and operating reference time.
[0083] 1. Sine wave algorithm:
[0084] 1. Calculate the phase using the following formula:
[0085] phase = (phase_deg / 360) * 2*π,
[0086] Among them, phase is the phase, phase_deg is the phase angle;
[0087] 2. Calculate the period with the following formula, accurate to microseconds:
[0088] period_us = ((1.0 / freq)*1000000),
[0089] Among them, period_us is the period, freq is the frequency;
[0090] 3. Perform the remainder operation on the cycle using the following formula to calculate the running time of the current running cycle:
[0091] Currtime2_us = currtime1_us % period_us,
[0092] Among them, % represents the remainder operator, currtime1_us is the running reference time, and currtime2_us is the running time of the current running cycle;
[0093] 4. Calculate the waveform output:
[0094] value = amp * sin(((2*π) / period_us) * currtime2_us + phase) +shift,
[0095] Among them, value is the waveform output, amp is the amplitude, currtime2_us is the running time of the current running cycle, and shift is the offset.
[0096] 2. Triangle wave algorithm:
[0097] 1. Calculate the period to the nearest microsecond using the following formula:
[0098] period_us = ((1.0 / freq)*1000000),
[0099] Among them, period_us is the period, freq is the frequency;
[0100] 2. Calculate the phase shift time using the following formula:
[0101] phase_time_us = ((phase_deg / 360) * period_us),
[0102] Among them, phase_time_us is the phase offset time, period_us is the period, and phase_deg is the phase angle;
[0103] 3. Calculate the running time of the current running cycle using the following formula:
[0104] Currtime2_us = (currtime1_us + phase_time_us) % period_us,
[0105] Among them, currtime1_us is the running reference time, currtime2_us is the running time of the current running cycle, phase_time_us is the phase offset time, and period_us is the period;
[0106] 4. Calculate the rising phase time within a cycle using the following formula:
[0107] rise_time_us = (period_us * (percent / 100.0));
[0108] Among them, rise_time_us is the rising phase time, and percent / 100.0 is the duty cycle;
[0109] 5. Calculate the descent phase time using the following formula:
[0110] fall_time_us = period_us - rise_time_us,
[0111] Among them, fall_time_us is the falling phase time, period_us is the period, and rise_time_us is the rising phase time;
[0112] 6. If currtime2_us is less than or equal to the rising phase time, the waveform output is calculated using the following formula:
[0113] Value = (amp / rise_time_us)*currtime_us + shift,
[0114] Among them, Value is the waveform output, amp is the amplitude, currtime_us is the running reference time, and shift is the offset;
[0115] 7. If currtime2_us is greater than the rising phase time, the waveform output is calculated using the following formula:
[0116] value = (-(amp / fall_time_us)) * currtime_us + ((amp / fall_time_us)*period_us) + shift.
[0117] 3. Pulse wave algorithm:
[0118] 1. Calculate the period to the nearest microsecond using the following formula:
[0119] period_us = ((1.0 / freq)*1000000),
[0120] Among them, period_us is the period, freq is the frequency;
[0121] 2. Calculate the phase shift time using the following formula:
[0122] phase_time_us = ((phase_deg / 360) * period_us),
[0123] Among them, phase_time_us is the phase offset time, phase_deg is the phase angle, and period_us is the period;
[0124] 3. Calculate the running time of the current running cycle:
[0125] Currtime2_us = (currtime1_us + phase_time_us) % period_us,
[0126] Among them, currtime1_us is the running reference time, and currtime2_us is the running time of the current running cycle;
[0127] 4. Calculate the rising phase time within a cycle using the following formula:
[0128] rise_time_us = (period_us * (percent / 100.0)),
[0129] The rising phase time is rise_time_us, and percent / 100.0 is the duty cycle;
[0130] 5. If currtime2_us is less than or equal to the rising phase time, the waveform output is calculated using the following formula:
[0131] Value = amp + shift,
[0132] Among them, Value is the waveform output, amp is the amplitude, and shift is the offset;
[0133] 6. If currtime2_us is greater than the rising phase time, the waveform output is calculated using the following formula:
[0134] Value = shift.
[0135] 4. Arbitrary Wave Algorithm:
[0136] Use 4096 signed 16-bit data to represent the data point information of 4096 waveform data points. 0~32767 represents 0 to positive amplitude, and -32767~0 represents negative amplitude to 0:
[0137] 1. Calculate the period with the following formula, accurate to microseconds:
[0138] period_us = ((1.0 / freq)*1000000),
[0139] Among them, period_us is the period, freq is the frequency;
[0140] 2. Calculate the phase shift time using the following formula:
[0141] phase_time_us = ((phase_deg / 360) * period_us),
[0142] Among them, phase_time_us is the phase offset time, phase_deg is the phase angle;
[0143] 3. Calculate the running time of the current running cycle by the following formula:
[0144] Currtime2_us = (currtime1_us + phase_time_us)% period_us,
[0145] Among them, currtime1_us is the running reference time, and currtime2_us is the running time of the current running cycle;
[0146] 4. Calculate the index using the following formula:
[0147] ix = (int)(4096 * ((currtime2_us / period_us))),
[0148] Among them, int means rounding the result, ix is the index, and currtime2_us is the running time of the current running cycle;
[0149] 5. Take out the corresponding data point information from the data buffer according to the index;
[0150] 6. Calculate waveform output:
[0151] value = (data / 32767) * amp + shift,
[0152] Among them, value is the waveform output, data is the data point information, amp is the amplitude, and shift is the offset.
[0153] In addition, the present application embodiment provides an electronic device 100, such as Figure 3 As shown, including:
[0154] at least one processor 110;
[0155] At least one memory 120, used to store at least one program;
[0156] When at least one program is executed by at least one processor 110 , the power supply device output control method as described above is implemented.
[0157] The electronic device 100 provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same beneficial effects. To avoid repetition, it will not be described again here.
[0158] In addition, an embodiment of the present application provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the power supply device output control method as described above.
[0159] The computer-readable storage medium provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0160] In addition, an embodiment of the present application provides a power supply device, including an MCU300, and when the MCU300 is executed, it is used to implement the power supply device output control method as described above.
[0161] The power supply device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0162] In addition, the present application embodiment provides a power supply device output control device 200, such as Figure 4 As shown, including:
[0163] A linked list generation module 210, used to generate a one-way linked list;
[0164] The node insertion module 220 is used to sequentially insert multiple nodes into the one-way linked list, wherein the multiple nodes correspond to multiple working steps of the power supply device, and the waveform types output by the multiple working steps are different. Each node includes a pointer, a waveform parameter corresponding to the working step, and a preset waveform running time corresponding to the working step. The pointer of each node is used to point to the address of the next node;
[0165] The waveform output module 230 is used to output waveform signals in sequence according to the waveform parameters of multiple nodes and the preset waveform running time.
[0166] The power supply device output control device 200 provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0167] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0168] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.
Claims
1. A method for controlling output of a power supply device, characterized in that: An MCU applied to a power supply device, the method comprising: Generate a singly linked list; Inserting a plurality of nodes into the one-way linked list in sequence, wherein the plurality of nodes correspond to a plurality of working steps of the power supply device, the plurality of working steps output different types of waveforms, each of the nodes comprises a pointer, a waveform parameter corresponding to the working step and a preset waveform running time corresponding to the working step, and the pointer of each node is used to point to the address of the next node; By using the pointers of the plurality of nodes, waveform signals are outputted according to the waveform parameters of the plurality of nodes and the preset waveform running time in sequence, The step of outputting a waveform signal according to the waveform parameters of the plurality of nodes and the preset waveform running time in sequence includes: According to a preset time interval, obtaining the real-time waveform running time of the power supply device; Starting from the first node of the one-way linked list, using the real-time waveform running time as the running reference time, executing a search strategy on the node to confirm the target node, the search strategy comprising: obtaining the preset waveform running time of the node; comparing the running reference time with the preset waveform running time of the node, and if the running reference time is less than the preset waveform running time of the node, confirming the node as the target node; The waveform signal is output according to the waveform parameter of the target node and the running reference time.
2. The power supply device output control method according to claim 1, characterized in that: The search strategy further includes: if the running reference time is greater than or equal to the preset waveform running time of the node, subtracting the preset waveform running time of the node from the running reference time to obtain a new running reference time; According to the new running reference time, the search strategy is executed on the next node of the node until the target node is confirmed.
3. The power supply device output control method according to claim 1, characterized in that: Before sequentially inserting a plurality of nodes into the one-way linked list, the method further includes: Inserting a head node into the singly linked list, wherein the head node includes a loop count; The step of outputting a waveform signal according to the waveform parameters of the plurality of nodes and the preset waveform running time in sequence comprises: Obtaining the number of cycles; Based on the number of cycles, the waveform signal is cyclically output according to the waveform parameters of the plurality of nodes and the preset waveform running time.
4. The power supply device output control method according to claim 1, characterized in that: The waveform parameters include waveform type, amplitude, offset, phase angle and frequency.
5. The power supply device output control method according to claim 4, characterized in that: When there is a target step among the plurality of steps, the target step is the step of outputting an arbitrary waveform, and the method further includes: Set up data buffer in SDRAM; Acquire multiple data point information of the arbitrary waveform; Storing multiple data point information in the data buffer; The waveform parameter of the node corresponding to the target process step also includes address information of the data point information in the data buffer.
6. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the power supply device output control method according to any one of claims 1 to 5 is implemented.
7. A computer-readable storage medium, characterized in that: A processor-executable program is stored therein, and when the processor-executable program is executed by the processor, it is used to implement the power supply device output control method as described in any one of claims 1 to 5.
8. A power supply device, characterized in that: It includes an MCU, which is used to implement the power supply device output control method as claimed in any one of claims 1 to 5 when executed.
9. A power supply device output control device, characterized in that: include: Link list generation module, used to generate a one-way linked list; A node insertion module, used for sequentially inserting a plurality of nodes into the one-way linked list, wherein the plurality of nodes correspond to a plurality of working steps of the power supply device, the plurality of working steps output different types of waveforms, each of the nodes comprises a pointer, a waveform parameter corresponding to the working step and a preset waveform running time corresponding to the working step, and the pointer of each node is used to point to the address of the next node; A waveform output module, used to use the pointers of the plurality of nodes to output waveform signals in sequence according to the waveform parameters of the plurality of nodes and the preset waveform running time, wherein the waveform signals are output in sequence according to the waveform parameters of the plurality of nodes and the preset waveform running time, including: According to a preset time interval, obtaining the real-time waveform running time of the power supply device; Starting from the first node of the one-way linked list, using the real-time waveform running time as the running reference time, executing a search strategy on the node to confirm the target node, the search strategy comprising: obtaining the preset waveform running time of the node; comparing the running reference time with the preset waveform running time of the node, and if the running reference time is less than the preset waveform running time of the node, confirming the node as the target node; The waveform signal is output according to the waveform parameter of the target node and the running reference time.
Citation Information
Patent Citations
Method for decomposing waveforms synthesized by random waveforms on hardware
CN103631760A