Method for transmitting parallel operation synchronization parameters without time delay and digital power supply control device

By converting parallel parameters into PWM signals and transmitting them at high speed in programmable devices, the problem of low synchronization efficiency between the master and slave devices in digital power control systems is solved, achieving efficient and stable parallel parameter transmission and reducing system costs.

CN119002335APending Publication Date: 2024-11-22JND ELECTRONIC TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411002808.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In existing digital power control systems, the parallel parameter synchronization methods for master and slave devices suffer from low timeliness and instability. In particular, the response is lagging when the AC system fluctuates, and the zero-crossing signal synchronization scheme has detection lag and jitter problems.

Method used

The parallel synchronization parameters are transmitted without delay and are converted into PWM signals. These signals are then transmitted at high speed through programmable devices in the master and slave units. The high speed and stability of the programmable devices are utilized to update the synchronization parameters within one control cycle. The amplitude, frequency and phase of the AC voltage are independently controlled by I/O ports.

Benefits of technology

It achieves efficient updating of synchronization parameters within a control cycle, resulting in more stable transmission, low cost, and good applicability. It avoids dependence on AC signals and improves the flexibility and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002335A_ABST
    Figure CN119002335A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of digital power supply control systems, in particular to a method for transmitting parallel operation synchronization parameters without time delay and a digital power supply control device.Parallel operation parameters are converted into PWM signals, the PWM signals are adopted to transmit data, the characteristics of high speed and stability of a programmable device are fully utilized, and the reliability of the system is improved. The problem that data refreshing of the slave is not timely is effectively solved, synchronization parameters can be updated in a control period, and the timeliness is high; the transmitted parallel operation parameters do not depend on the alternating current signals, only key parameters of the alternating current signals are selected for propagation, the flexibility and reliability are high, and signal transmission is more stable; meanwhile, the method is almost consistent with the hardware design used by an AC zero-crossing signal synchronization scheme, and has the advantages of low cost and good applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital power supply control systems, and in particular to a method for transmitting parallel synchronization parameters without time delay and a digital power supply control device. Background Art

[0002] Digital power control systems are an important part of modern power electronic equipment and are widely used in various power electronic equipment, such as photovoltaic inverters, wind power inverters, uninterruptible power supplies, etc. These power products often adopt modular design solutions, which can flexibly configure a reasonable number of modular machines according to the user's installed power requirements to achieve the best cost-effectiveness. When multiple modules are connected in parallel to form a system, it is necessary to ensure that the output of all modules is synchronized, otherwise it will cause circulation between modules, reduce the efficiency of the whole machine, and even cause overcurrent shocks and system failures. Therefore, in order to ensure that the output voltage of each module is consistent, a variety of parallel synchronization technologies have been developed.

[0003] The parallel synchronization technology mainly refers to the synchronization of the output voltages of each module. In the inverter system, the output voltage is AC voltage, which requires the three elements of AC voltage to be consistent, namely amplitude, frequency and phase. In the parallel system, the master-slave synchronization method is mainly adopted, that is, one of the module machines is designated as the master, and the other module machines are slaves. The master provides the parallel parameters and the slaves operate according to the parallel parameters. The parallel parameters refer to the amplitude, frequency and phase of the AC voltage. In this way, it is particularly critical for the master to transmit the parallel parameters to the slaves in real time and stably. Commonly used methods are:

[0004] A. Communication synchronization: The master sends synchronization data to the slave through the parallel communication bus.

[0005] B. AC zero-crossing signal synchronization: The host first generates a continuous square wave signal according to the zero-crossing change of the AC signal. The positive zero crossing is a high level and the negative zero crossing is a low level. Then the generated synchronization signal is sent to the slave through isolation level conversion. After the slave receives the square wave signal, it can analyze the square wave signal to obtain the parallel parameters of the AC signal.

[0006] On the one hand, the communication method used in the prior art has low timeliness, and generally an interaction takes from tens to tens of milliseconds, while digital power supplies often use switch-by-switch control, and a switching cycle time is within one hundred microseconds. On the other hand, the premise of using the AC zero-crossing signal synchronization scheme is to assume that the frequency and phase changes between the two zero-crossing points are uniform. When the AC side system is stable, the implementation of this scheme is not a big problem, but when the AC system fluctuates, at least half a power frequency cycle is required to correct the synchronization signal, resulting in a response lag. In addition, this method also has problems such as zero-crossing jitter suppression and phase detection lag that need to be solved, which increases the difficulty of implementation of the method.

[0007] In view of this, overcoming the defects of the prior art is an urgent problem to be solved in the field of this technology. Summary of the invention

[0008] The technical problem to be solved by the present invention is how to solve the problems of low timeliness and low stability of the communication mode in the existing method for synchronizing the parallel parameters of the master and slave.

[0009] The present invention adopts the following technical solution:

[0010] In a first aspect, a method for transmitting parallel synchronization parameters without delay is provided, wherein a host and at least one slave are connected, wherein the host and the slave both include a connected master controller and a programmable device, and the method comprises:

[0011] The main controller in the host transmits the parallel parameters to the programmable device in the host;

[0012] The programmable device in the host converts the parallel machine parameters into a PWM signal, and transmits the PWM signal to the programmable device in the slave;

[0013] The programmable device in the slave converts the PWM signal into the parallel parameters and transmits the parallel parameters to the master controller in the slave.

[0014] Preferably, the parallel parameters include the amplitude of the AC voltage, the frequency of the AC voltage and the phase of the AC signal;

[0015] The method for transmitting parallel synchronization parameters without delay also includes:

[0016] A first IO port, a second IO port and a third IO port are defined on the programmable devices in the host and the slave;

[0017] The first IO port of the host is connected to the first IO port of at least one of the slaves, so that the host transmits the PWM signal corresponding to the amplitude to at least one of the slaves;

[0018] The second IO port of the host is connected to the second IO port of at least one of the slaves, so that the host transmits the PWM signal corresponding to the frequency to at least one of the slaves;

[0019] The third IO port of the host is connected to the third IO port of at least one of the slaves, so that the host transmits the PWM signal corresponding to the phase to at least one of the slaves.

[0020] Preferably, the main controller in the host transmits the parallel parameters to the programmable device in the host, including:

[0021] The main controller in the host transmits the parallel parameters to the programmable device in the host through a bus.

[0022] Preferably, the programmable device in the host converts the parallel machine parameter into a PWM signal, and transmits the PWM signal to the programmable device in the slave, including:

[0023] Convert each of the parallel parameters into an unsigned integer;

[0024] Convert the unsigned integer value into a high-level count value of a PWM signal;

[0025] A PWM signal corresponding to corresponding parameters is generated according to the operating frequency of the programmable device and the high-level count value.

[0026] Preferably, converting the unsigned integer value into a high-level count value of a PWM signal comprises:

[0027] Get the control cycle T of the control system to execute a round of algorithm s and the upper limit value Max of the unsigned integer, and divide the upper limit value Max by the control period T s Get the operating frequency f of the programmable device c ; Multiply the unsigned integer by the control period T s , divide the product by the upper limit value Max to get the pulse width T a ;

[0028] The pulse width T a Multiply the operating frequency f of the programmable device c Get the high level count value U count .

[0029] Preferably, generating a PWM signal corresponding to corresponding parameters according to the operating frequency of the programmable device and the high-level count value comprises:

[0030] In a control cycle T s At the end of the programmable device, the level is set high, and the operating frequency f c is the frequency count U count After that, the level is set low to obtain the PWM signal.

[0031] Preferably, the programmable device in the slave converts the PWM signal into the parallel machine parameter including:

[0032] In one cycle of the PWM signal, starting from the high level of the PWM signal, the operating frequency f cCount the frequency until the PWM signal is at a low level and stop counting. The number of counts obtained is the unsigned integer value of the parallel parameter.

[0033] The unsigned integer value of the parallel parameter is converted into the parallel parameter.

[0034] Preferably, the operating frequency f of the programmable device is c The range is 300MHz~800MHz.

[0035] In a second aspect, a digital power supply control device is provided. The method for delay-free transmission of parallel machine synchronization parameters as described in the first aspect is applicable to the digital power supply control device. The digital power supply control device includes a host and at least one slave, the host and the at least one slave are connected, and the host and the slave both include a connected main controller and a programmable device.

[0036] Preferably, the host and the slave further include a level conversion module, one end of the level conversion module in the host is connected to the programmable device in the host, and the other end of the level conversion module in the host is connected to one end of the level conversion module in the slave;

[0037] The other end of the level conversion module in the slave is connected to the programmable device in the slave.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] The present invention converts the parallel parameters into PWM signals and uses PWM signals to transmit data, thereby making full use of the high-speed and stable characteristics of programmable devices, effectively solving the problem of untimely data refresh in the slave machine, and being able to update the synchronization parameters within one control cycle with high timeliness; the transmitted parallel parameters do not rely on the AC signal itself, and only select the key parameters of the AC signal for transmission, thus having high flexibility and reliability, and more stable signal transmission; at the same time, the present invention is almost consistent with the hardware design used in the AC zero-crossing signal synchronization solution, and has the advantages of low cost and good applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 It is a flowchart of a method for transmitting parallel synchronization parameters without delay provided by an embodiment of the present invention;

[0042] Figure 2 is a flow chart of a method for generating a PWM signal provided by an embodiment of the present invention;

[0043] Figure 3 is a waveform diagram of a PWM signal provided by an embodiment of the present invention;

[0044] Figure 4 is another waveform schematic diagram of a PWM signal provided by an embodiment of the present invention;

[0045] Figure 5 is a structural schematic diagram of a digital power supply control device provided by an embodiment of the present invention;

[0046] Figure 6 is another structural schematic diagram of a digital power supply control device provided by an embodiment of the present invention;

[0047] Figure 7 It is a specific structural diagram of a digital power supply control device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0049] Unless the context requires otherwise, throughout the specification and claims, the term "including" is to be interpreted as open inclusion, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" and the like are intended to indicate that specific features, structures, materials or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials or characteristics may be included in any one or more embodiments or examples in any appropriate manner, that is, although they may be carried in the embodiments or examples of the above terms due to reasons such as the order and position of appearance, it is not limited to that they can be carried in combination by one embodiment or example.

[0050] In the description of the present invention, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, the meaning of "multiple" is two or more. In addition, for example, the same type of nouns may be described as two independent individuals by adding "A" and "B" at the end. In this case, the corresponding features defined as "A" and "B" are only used to distinguish the same type of individuals for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features.

[0051] When describing some embodiments, the expressions "coupling", "coupling" and "connection" and their derivatives may be used. For example, when describing some embodiments, the term "connection" may be used to indicate that two or more components are in direct physical or electrical contact with each other. For another example, when describing some embodiments, the term "coupling" may be used to indicate that two or more components are in direct physical or electrical contact. However, the terms "connection" or "coupling" may also refer to two or more components that are not in direct contact with each other, but still cooperate or interact with each other, such as "optical path coupling", "wireless connection", etc. The embodiments disclosed herein are not necessarily limited to the contents of the present invention.

[0052] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0053] Embodiment 1:

[0054] In the prior art, the host sends AC signal synchronization parameters to the slave through the parallel communication bus. Generally, the interaction takes from ten to dozens of milliseconds. The digital power control system generally adopts switch-by-switch control, and the switching cycle time is within one hundred microseconds, resulting in low synchronization efficiency. On the other hand, the link of the parallel communication bus also undertakes many other data interaction tasks, and a special communication module is required to process the synchronization data, which undoubtedly increases the equipment cost. At the same time, when the zero-crossing signal synchronization solution is adopted, when the AC system side fluctuates, the data synchronization will be unstable.

[0055] To solve the above problem, the present embodiment provides a method for transmitting parallel synchronization parameters without delay, connecting a host and at least one slave, wherein the host and the slave both include a connected main controller and a programmable device, and the method for transmitting parallel synchronization parameters without delay includes: the main controller in the host transmits the parallel parameters to the programmable device in the host; the programmable device in the host converts the parallel parameters into PWM signals, and transmits the PWM signals to the programmable device in the slave; the programmable device in the slave converts the PWM signals into the parallel parameters, and transmits the parallel parameters to the main controller in the slave.

[0056] The structures of the host and the slave are consistent, that is, the host and the slave are determined in two identical module machines by pre-set rules, and the pre-set rules will not be introduced in detail in this embodiment.

[0057] The host is used to receive signals from the outside to obtain parameter information of the AC voltage that the slave needs to execute, and the host is used to transmit the parameter information of the AC voltage that the slave needs to execute to the slave, and the slave controls the corresponding power supply device to output the AC voltage with corresponding parameters according to the parameter information of the AC voltage. The main controller can be a digital signal processing (Digital Signal Processing, abbreviated as DSP), and the programmable device can be a complex programmable logic device (Complex Programmable Logic Device, abbreviated as CPLD). The dual redundant control system is composed of DSP+CPLD, and the dual redundant control system is set in the host and the slave at the same time, which can effectively improve the reliability and stability of the overall system.

[0058] In one embodiment, the parallel parameters include the amplitude of the AC voltage, the frequency of the AC voltage, and the phase of the AC signal; the method for transmitting the parallel synchronization parameters without delay also includes: defining a first IO port, a second IO port, and a third IO port on the programmable devices in the host and the slave; the first IO port of the host is connected to the first IO port of at least one of the slaves, so that the host transmits a PWM signal corresponding to the amplitude to at least one of the slaves; the second IO port of the host is connected to the second IO port of at least one of the slaves, so that the host transmits a PWM signal corresponding to the frequency to at least one of the slaves; the third IO port of the host is connected to the third IO port of at least one of the slaves, so that the host transmits a PWM signal corresponding to the phase to at least one of the slaves.

[0059] By assigning specific functions to each IO port, independent control and measurement of different parameters of AC voltage can be achieved. Amplitude, frequency and phase are the three basic parameters of AC voltage, which together define the complete information of AC voltage. Among them, since the structure of the host and the slave is consistent, each module machine can be used as a host or a slave. Therefore, the IO ports configured in the programmable device in the host and the programmable device in the slave are the same. These three IO ports (the first IO port, the second IO port and the third IO port) are all configured as INOUT type (input and output type, that is, can be used as input or output, and the default high impedance state is waiting for input). When a module machine is used as a host, it outputs PWM signals to the outside, and waits to receive PWM signals when it is used as a slave.

[0060] Specifically, at the hardware level, the three IO ports can be implemented by configuring the general-purpose input / output (GPIO) pins of the main controller or programmable logic device; at the software level, it is necessary to write corresponding driver codes for each IO port so that the corresponding parameters can be read or set. Specifically, the specific method of defining the three IO ports will not be explained in detail in this embodiment.

[0061] Next, the method for transmitting the parallel synchronization parameters without delay will be described in detail. Figure 1 As shown, the method for transmitting parallel synchronization parameters without delay includes:

[0062] Step 101: The main controller in the host transmits the parallel parameters to the programmable device in the host.

[0063] The main controller in the host is responsible for coordinating and controlling the operation of the system, and is used to process the received parallel parameters (amplitude, frequency and phase) and transmit them to the programmable device for further processing or output. The main controller in the host transmits the parallel parameters to the programmable device in the host through the bus. The main controller can communicate with the programmable device through the internal bus or GPIO pins. For example, the main controller can read the voltage parameters converted by the analog-to-digital converter (ADC) and send these data to the programmable device through the serial peripheral interface (SPI) or the integrated circuit bus (ICB).

[0064] Step 102: The programmable device in the host converts the parallel parameters into a PWM signal, and transmits the PWM signal to the programmable device in the slave.

[0065] The programmable device contains a dedicated logic unit for executing an amplitude, frequency and phase conversion algorithm to generate a corresponding PWM signal, and transmits the corresponding PWM signal to the programmable device in the slave.

[0066] Specifically, refer to Figure 2 , the step 102 specifically includes:

[0067] Step 1021: Convert each of the parallel parameters into an unsigned integer.

[0068] The parallel parameters include amplitude, frequency and phase, and the programmable device in the host converts these parameters from the host controller into unsigned integers. For example, the amplitude in the parallel parameters is converted into a specific digital value (specifically an integer between 0 and 9999).

[0069] The range of unsigned integers is not determined by the sampling rate, but by the number of counts that the CPLD can complete within a PWM cycle. Since it is a count value, it is more convenient to use unsigned integers. Assuming that the operating frequency of the CPLD is 200MHz, to generate a 20kHz PWM signal, the cycle count value is 200e6 / 20e3=10000. After setting the cycle count value, the data conversion method can be set according to the accuracy requirements of the transmitted data. For example, when transmitting a frequency value of 40.00Hz~70.00Hz, it can be multiplied by 100 to convert it into an integer of 4000~7000 for transmission. After receiving the corresponding data, the programmable device in the slave divides it by 100 according to the agreement to obtain the required frequency value.

[0070] Step 1022: Convert the unsigned integer value into a high-level count value of a PWM signal.

[0071] The step 1022 specifically includes: obtaining a control period T of the control system executing a round of algorithm s and the upper limit value Max of the unsigned integer, and divide the upper limit value Max by the control period T s Get the operating frequency f of the programmable device c ; Multiply the unsigned integer by the control period T s , divide the product by the upper limit value Max to get the pulse width T a ; The pulse width T a Multiply the operating frequency f of the programmable device c Get the high level count value U count .

[0072] Wherein, the high level count value U of the PWM signalcount The calculation method is:

[0073]

[0074] Among them, f c is the operating frequency of the programmable device, Max is the upper limit of the unsigned integer, T s is the control period, T a is the pulse width of the PWM signal, U a The unsigned integer.

[0075] Step 1023: Generate a PWM signal corresponding to corresponding parameters according to the operating frequency of the programmable device and the high-level count value.

[0076] like Figure 3 As shown, in a control cycle T s At the end of the programmable device, the level is set high, and the operating frequency f c is the frequency count U count After that, the level is set low to obtain the PWM signal. Since the first cycle is the value assigned when the system is initialized, it is generally a low level, so a control cycle T is selected. s The level is set high at the end of the process.

[0077] In one embodiment, the selection of the upper limit value Max of the unsigned integer is related to the accuracy of the transmitted data and the operating frequency of the CPLD, and is generally an integer multiple of 10. The larger the upper limit value is within the allowable range of the CPLD operating frequency, the better, which helps to improve the accuracy of the transmitted data. In this embodiment, the value of Max is 10000. Generally speaking, the operating frequency f of the programmable device CPLD is c The range is 300MHz~800MHz, which can meet the usage requirements.

[0078] Control cycle T s Refers to the time required for the embedded system to execute a round of control algorithm, which is the same as the switching cycle time of the insulated gate bipolar transistor (IGBT). To achieve cycle-by-cycle control, the PWM signal in the embodiment must be converted into a digital value in each control cycle. Therefore, in this embodiment, the cycle time of the PWM signal must be less than or equal to the control cycle T s .

[0079] Based on the concept of duty cycle, the duty cycle is defined as the ratio of the high level time of the PWM signal to the entire PWM cycle time. The high level count value U count, is actually the number of clock cycles that maintain a high level state within the PWM cycle, thereby determining the proportion of the high level portion of the PWM signal, i.e., the duty cycle. In the calculation method of this embodiment, the duty cycle of the PWM signal is directly determined by the value of the unsigned integer, and the period of the PWM signal is determined by the operating frequency of the programmable device. This method is suitable for the generation of simple PWM signals, in which the duty cycle is linearly adjustable.

[0080] High level count value U count It is the number of clock cycles that maintain a high level in one PWM cycle. a Divide by the PWM signal period T s , we can get the time proportion of the high level state. Then, convert this proportion into the number of clock cycles, that is, multiply it by the operating frequency f of the programmable device. c The value corresponding to this number of clock cycles is the high-level count value of the PWM signal, which is used to determine the duration of the high level of the PWM signal, because each clock cycle represents a time unit.

[0081] In actual hardware, in a programmable device, the generation of a PWM signal usually involves setting a compare register and a counter. At the beginning of the PWM signal cycle, the counter is initialized. As the operating frequency f of the programmable device increases, the c The counter increments as the value of the counter equals the value of the compare register. The output signal is set high. The counter then continues to increment until it reaches the high level count value U count When the counter reaches U count When the output signal is set low, the counter is reset and the cycle starts again. In this way, a PWM signal with a specific duty cycle can be obtained. The size of the duty cycle is determined by the input unsigned integer U a Decision, U a The larger the value, the higher the duty cycle, and the longer the high level part of the PWM signal lasts.

[0082] In one embodiment, Figure 4 As shown, it is necessary to set the IO level high at the end of the PWM cycle, and then c Count U count After that, the IO level is set low to generate the required PWM signal. This method is suitable for the generation of simple PWM signals, in which the duty cycle corresponding to the PWM is directly determined by the value of the unsigned integer.

[0083] Step 103: The programmable device in the slave converts the PWM signal into the parallel parameters, and transmits the parallel parameters to the master controller in the slave.

[0084] The step 103 specifically includes: in one cycle of the PWM signal, starting from the high level of the PWM signal, the operating frequency f c The frequency is counted until the PWM signal is at a low level and the counting is stopped. The number of counts obtained is the unsigned integer value of the parallel parameter; and the unsigned integer value of the parallel parameter is converted into the parallel parameter.

[0085] In one embodiment, further referring to Figure 4 After the PWM signal is obtained in step 102, the programmable device in the host transmits the PWM signal to the programmable device in the slave. When the PWM signal is at a high level, the counter is set at the working frequency f of the programmable device. c Start counting. The count value of the counter will continue to increase until the PWM signal becomes low, at which time the counter stops counting. When the counter stops counting, its value reflects the duration of the PWM high level, which represents the number of clock cycles of the high level in the PWM signal. According to the above calculation method, the obtained count number can be interpreted as an unsigned integer representation. Finally, the programmable device in the slave converts this unsigned integer into the corresponding parallel parameter and transmits this parallel parameter to the master controller in the slave.

[0086] In this embodiment, no delay means that relative to the control period T s In terms of no delay, general digital communication needs to convert the data to be sent into binary numbers, and the high level is regarded as 1 and the low level is regarded as 0 when sending, and one binary is regarded as 1 bit. Assuming that three data are to be transmitted in a 16-bit shaping mode, 48 bits are required without considering the stop bit, function code and check code. To complete the transmission of 48 bits within 50us, a baud rate of 48 / (50e-6)=960k is required. Such a high communication rate is also required for long-distance transmission, usually using Universal Serial Bus (USB) or Ethernet communication, which will undoubtedly greatly increase the system cost and complexity. This embodiment realizes the "no delay" transmission of a small amount of data without adding additional hardware circuits, which is more cost-effective.

[0087] This embodiment converts the parallel parameters into PWM signals and uses PWM signals to transmit data, which fully utilizes the high-speed and stable characteristics of programmable devices, effectively solves the problem of untimely data refresh in the slave, and can update the synchronization parameters within one control cycle with high timeliness; the transmitted parallel parameters do not depend on the AC signal itself, and only select the key parameters of the AC signal for transmission, which has high flexibility and reliability and more stable signal transmission; at the same time, this embodiment is almost consistent with the hardware design used in the AC zero-crossing signal synchronization solution, and has the advantages of low cost and good applicability.

[0088] Embodiment 2:

[0089] In the first embodiment, a method for transmitting parallel synchronization parameters without delay is proposed. In the present embodiment, a digital power supply control device is proposed. Figure 5 and Figure 6 As shown, the digital power control device includes a host and at least one slave, the host and the at least one slave are connected, and the host and the slave both include a connected main controller (ie, DSP) and a programmable device (ie, CPLD).

[0090] The structures of the host and the slave are consistent, that is, the host and the slave are determined by set rules in two identical module machines. The host is used to receive signals from the outside to obtain the parameter information of the corresponding AC voltage that the slave needs to execute, and the host is used to transmit the parameter information of the AC voltage that the slave needs to execute to the slave, and the slave controls the corresponding device to output the corresponding AC voltage according to the parameter information of the AC voltage. The main controller can be a DSP, and the programmable device can be a CPLD. The dual redundant control system is composed of DSP+CPLD. The dual redundant control system is set in the host and the slave, which can effectively improve the reliability and stability of the overall system.

[0091] In one embodiment, Figure 7 As shown, the host and the slave also include a level conversion module, one end of the level conversion module in the host is connected to the programmable device in the host, and the other end of the level conversion module in the host is connected to one end of the level conversion module in the slave; the other end of the level conversion module in the slave is connected to the programmable device in the slave.

[0092] Among them, the level conversion module is used to convert a low voltage signal into a higher voltage signal (for example, converting 3.3V to 15V) to improve the signal's anti-interference ability; the level conversion module is also used to isolate the host and the slave or the slave and the slave. The purpose of isolation is to avoid the grounds of different devices (i.e., the host and the slave, the slave and the slave) from coupling with each other and causing mutual interference; the signal between the host and the slave is transmitted in isolation using a high-speed optical coupler, and the receiving end of the level conversion module is used to convert the electrical signal into an optical signal to irradiate the output end, and the output end then converts the optical signal into an electrical signal for output.

[0093] For the specific steps of the method for transmitting parallel synchronization parameters without delay, please refer to Example 1, which will not be repeated in this embodiment.

[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for transmitting parallel synchronization parameters without delay, characterized in that: A host is connected to at least one slave, wherein both the host and the slave include a connected main controller and a programmable device, and the method includes: The main controller in the host transmits the parallel parameters to the programmable device in the host; The programmable device in the host converts the parallel machine parameters into a PWM signal, and transmits the PWM signal to the programmable device in the slave; The programmable device in the slave converts the PWM signal into the parallel parameters and transmits the parallel parameters to the master controller in the slave.

2. The method for transmitting parallel synchronization parameters without delay according to claim 1, characterized in that: The parallel parameters include the amplitude of the AC voltage, the frequency of the AC voltage and the phase of the AC signal; The method for transmitting parallel synchronization parameters without delay also includes: A first IO port, a second IO port and a third IO port are defined on the programmable devices in the host and the slave; The first IO port of the host is connected to the first IO port of at least one of the slaves, so that the host transmits the PWM signal corresponding to the amplitude to at least one of the slaves; The second IO port of the host is connected to the second IO port of at least one of the slaves, so that the host transmits the PWM signal corresponding to the frequency to at least one of the slaves; The third IO port of the host is connected to the third IO port of at least one of the slaves, so that the host transmits the PWM signal corresponding to the phase to at least one of the slaves.

3. The method for transmitting parallel synchronization parameters without delay according to claim 1, characterized in that: The main controller in the host transmits the parallel parameters to the programmable device in the host, including: The main controller in the host transmits the parallel parameters to the programmable device in the host through a bus.

4. The method for transmitting parallel synchronization parameters without delay according to claim 1, characterized in that: The programmable device in the host converts the parallel machine parameters into a PWM signal, and transmits the PWM signal to the programmable device in the slave, including: Convert each of the parallel parameters into an unsigned integer; Convert the unsigned integer value into a high-level count value of a PWM signal; A PWM signal corresponding to corresponding parameters is generated according to the operating frequency of the programmable device and the high-level count value.

5. The method for transmitting parallel synchronization parameters without delay according to claim 4, characterized in that: The step of converting the unsigned integer value into a high-level count value of a PWM signal comprises: Get the control cycle T of the control system to execute a round of algorithm s and the upper limit value Max of the unsigned integer, and divide the upper limit value Max by the control period T s Get the operating frequency f of the programmable device c ; Multiply the unsigned integer by the control period T s , divide the product by the upper limit value Max to get the pulse width T a ; The pulse width T a Multiply the operating frequency f of the programmable device c Get the high level count value U count .

6. The method for transmitting parallel synchronization parameters without delay according to claim 5, characterized in that: The step of generating a PWM signal corresponding to a corresponding parameter according to the operating frequency of the programmable device and the high-level count value comprises: In a control cycle T s At the end of the programmable device, the level is set high, and the operating frequency f c is the frequency count U count After that, the level is set low to obtain the PWM signal.

7. The method for transmitting parallel synchronization parameters without delay according to claim 5, characterized in that: The programmable device in the slave converts the PWM signal into the parallel machine parameter including: In one cycle of the PWM signal, starting from the high level of the PWM signal, the operating frequency f c Count the frequency until the PWM signal is at a low level and stop counting. The number of counts obtained is the unsigned integer value of the parallel parameter. The unsigned integer value of the parallel parameter is converted into the parallel parameter.

8. The method for transmitting parallel synchronization parameters without delay according to claim 5, characterized in that: The operating frequency f of the programmable device c The range is 300MHz~800MHz.

9. A digital power supply control device, characterized in that: The method for delay-free transmission of parallel synchronization parameters as described in any one of claims 1 to 8 is applicable to the digital power control device, which includes a host and at least one slave, the host and at least one slave are connected, and the host and the slave both include a connected main controller and a programmable device.

10. The digital power control device according to claim 9, characterized in that: The host and the slave further include a level conversion module, one end of the level conversion module in the host is connected to the programmable device in the host, and the other end of the level conversion module in the host is connected to one end of the level conversion module in the slave; The other end of the level conversion module in the slave is connected to the programmable device in the slave.