Configuration system for register parameters
Through the division of labor between client and parameter processing equipment, the lengthy and high load problems of client CPU when determining the ePWM register requirements and configuration parameters are solved, and more efficient register parameter configuration is achieved, extending the service life of the CPU, and improving the performance of the control system.
Patent Information
- Application Number
- CN202411786025.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-01
AI Technical Summary
When determining the ePWM register requirements and configuration parameters, the client's CPU is verbose and has a large computing power consumption, resulting in high CPU load, reducing the ePWM preprocessing speed and efficiency, and shortening the CPU service life.
Design a register parameter configuration system. Through the division of labor between the client and the parameter processing device, the client only needs to determine the register requirement parameters and send them to the parameter processing device. The parameter processing device is responsible for determining the target parameters and configuring multiple channels to the pulse width modulation register.
It reduces the computing power consumption of the client CPU, reduces the CPU load, extends the service life of the CPU, improves the speed and efficiency of the wave transmitting control system to determine the required parameters of the register, reduces the control response delay of the real-time control system, and increases the control bandwidth.
Smart Images

Figure CN119739510A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of enhanced pulse width modulation, and in particular to a register parameter configuration system. Background Art
[0002] The preprocessing process of the enhanced pulse width modulator (ePWM) is as follows: the client first determines the register requirement parameters of the ePWM according to the circuit requirement parameters of the topology circuit, then determines the register configuration parameters of the ePWM according to the register requirement parameters of the ePWM, and finally configures the register configuration parameters of the ePWM to multiple channels of the ePWM register.
[0003] In the above-mentioned ePWM preprocessing process, the client must participate in both the process of determining the register requirement parameters and the process of determining the register configuration parameters, that is, the client's ePWM preprocessing process is relatively complicated, and the process of the client's central processing unit (CPU) determining the register requirement parameters and the register configuration parameters is lengthy and consumes a lot of computing power, resulting in a high CPU load on the client, thereby reducing the ePWM preprocessing speed and efficiency; in addition, if the number of circuit requirement parameters of the topological circuit is large, the number of register requirement parameters and register configuration parameters determined according to the circuit requirement parameters will also be large, and the time required for the client to perform ePWM preprocessing is long, and the client's CPU will be in a high-load state for a long time, which will shorten the service life of the client's CPU. Summary of the invention
[0004] The present invention provides a register parameter configuration system, which can solve the problem that the process of determining register requirement parameters and register configuration parameters by the client's CPU is lengthy and the computing power consumption is large, resulting in a high CPU load on the client, thereby reducing the preprocessing speed and efficiency of ePWM; and the problem that the service life of the client's CPU is shortened due to the client's CPU being in a high load state for a long time, thereby reducing the client's CPU computing power consumption, reducing the client's CPU load, extending the service life of the client's CPU, and improving the speed and efficiency of the client's wave control system (such as ePWM, etc.) to determine the register requirement parameters. In addition, it can also effectively reduce the control response delay of the real-time control system and improve the control bandwidth. For complex topology circuits, when the number of control requirement parameters is large, this configuration system with preprocessing function can greatly improve the control frequency and switching frequency, and better adapt to the control requirements of third-generation power semiconductor devices such as silicon carbide (SiC) and gallium nitride (GaN).
[0005] An embodiment of the present invention provides a register parameter configuration system, the system comprising a client and a parameter processing device, wherein:
[0006] The client is used to determine the register requirement parameters according to the circuit requirement parameters of the topology circuit, and send the register requirement parameters to the parameter processing device;
[0007] The parameter processing device is used to obtain the register requirement parameter, determine the target parameter according to the register requirement parameter, and configure the target parameter to multiple channels of the pulse width modulation register.
[0008] In the above embodiment, the client and the parameter processing device communicate with each other via a bus.
[0009] In the above embodiment, the parameter processing device includes a parameter conversion module and a parameter mapping module, the register requirement parameters include a parameter mapping channel identifier, physical requirement parameters and physical requirement information, and the parameter conversion module is used to determine the target parameters based on the physical requirement parameters and the physical requirement information, and send the parameter mapping channel identifier and the target parameters to the parameter mapping channel.
[0010] In the above embodiment, the parameter mapping module is used to receive the parameter mapping channel identifier and the target parameter, and configure the target parameter to the multiple channels of the pulse width modulation register according to the parameter mapping channel identifier.
[0011] In the above embodiment, the physical requirement information includes a counting direction and a counting mode, the target parameters include a period value, a first initial phase and a second initial phase, and the parameter conversion module is specifically used to determine the period value according to the counting mode and the physical requirement parameters, and to determine the initial phase according to the physical requirement parameters, the counting direction and the counting mode.
[0012] In the above embodiment, the physical demand parameters include a switching cycle, and the parameter conversion module is further specifically used to subtract the switching cycle and the first constant to obtain the cycle value when the counting mode is up counting / down counting, and to divide the switching cycle and the second constant to obtain the cycle value when the counting mode is up counting / down counting.
[0013] In the above embodiment, the physical demand parameter also includes a phase difference, and the parameter conversion module is further specifically used to determine zero as the first initial phase when the counting mode is up counting / the counting mode is up-down counting and the counting direction is up, and to determine the switching period as the first initial phase when the counting mode is down counting / the counting mode is up-down counting and the counting direction is down;
[0014] When the counting mode is upward counting, the phase difference and the switching period are substituted into formula (1) to calculate the second initial phase:
[0015] C ini_lag =(2π-δ phase )*T period / 2π (1)
[0016] Among them, C ini_lag represents the second initial phase, δ phase Represents the phase difference, T period represents the switching cycle;
[0017] When the counting mode is down counting, the switching period is determined as the first initial phase, and the phase difference and the switching period are substituted into formula (2) to calculate the second initial phase:
[0018] C ini_lag =δ phase *T period / 2π (2)
[0019] When the counting mode is up-down counting, the counting direction is downward and the phase difference is greater than π, the phase difference and the switching period are substituted into formula (1) to calculate the second initial phase; when the counting mode is up-down counting, the counting direction is upward and the phase difference is not greater than π, the phase difference and the switching period are substituted into formula (2) to calculate the second initial phase.
[0020] In the above embodiment, the physical requirement information also includes dead zone information, the target parameter also includes a comparator preset value, and the parameter conversion module is further used to determine the comparator preset value according to the physical requirement parameter and the dead zone information.
[0021] In the above embodiment, the comparator preset value includes the comparator A preset value of the upper tube of the leading bridge arm, the comparator A preset value of the lower tube of the leading bridge arm, the comparator A preset value of the upper tube of the lagging bridge arm, the comparator A preset value of the lower tube of the lagging bridge arm, the comparator B preset value of the upper tube of the leading bridge arm, the comparator B preset value of the lower tube of the leading bridge arm, the comparator B preset value of the upper tube of the lagging bridge arm, and the comparator B preset value of the lower tube of the lagging bridge arm. The physical demand parameter also includes a duty cycle. The parameter conversion module is further specifically used to substitute the duty cycle and the switching period into formula (3) to calculate the comparator A preset value of the upper tube of the leading bridge arm when the dead zone information does not consider the dead zone time:
[0022] Q CMP_A11 =T period *(1-D cycle) / twenty three)
[0023] Among them, Q CMP_A11 Indicates the preset value of comparator A on the leading bridge arm, D cycle Indicates duty cycle;
[0024] Determine the preset value of the comparator A of the upper tube of the leading bridge arm as the preset value of the comparator A of the lower tube of the leading bridge arm, the preset value of the comparator A of the upper tube of the lagging bridge arm, and the preset value of the comparator A of the lower tube of the lagging bridge arm;
[0025] Substitute the duty cycle and the switching period into formula (4) to calculate the preset value of the comparator B of the lower tube of the leading bridge arm:
[0026] Q CMP_B11 =T period *(1+D cycle ) / twenty four)
[0027] Among them, Q CMP_B11 Indicates the preset value of comparator B of the lower tube of the leading bridge arm;
[0028] The preset value of comparator B of the lower tube of the leading bridge arm is determined as the preset value of comparator B of the lower tube of the leading bridge arm, the preset value of comparator B of the upper tube of the lagging bridge arm, and the preset value of comparator B of the lower tube of the lagging bridge arm.
[0029] In the above embodiment, the physical demand parameters also include the first leading bridge arm upper tube, the second leading bridge arm upper tube, the first leading bridge arm lower tube, the second leading bridge arm lower tube, the first lagging bridge arm upper tube, the second lagging bridge arm upper tube, the first lagging bridge arm lower tube, and the second lagging bridge arm lower tube. The dead zone information includes dead zone time information and dead zone mode. The parameter conversion module is also specifically used to substitute the switching period, the duty cycle and the first leading bridge arm upper tube into formula (5) to calculate the preset value of the comparator A of the leading bridge arm upper tube when the dead zone time information is the dead zone time considered and the dead zone mode is the high level effective mode or the high level mode:
[0030]
[0031] Among them, Q CMP_A11 Indicates the preset value of comparator A on the leading bridge arm, D cycle Represents the duty cycle, T period represents the switching period, T red11 Indicates the upper tube of the first leading bridge arm;
[0032] Substitute the switching period, the duty cycle and the second leading bridge arm upper tube into formula (6) to calculate the preset value of the comparator A of the leading bridge arm lower tube:
[0033]
[0034] Among them, Q CMP_A12 Indicates the preset value of comparator A of the lower tube of the leading bridge arm, T fed12 Indicates the upper tube of the second leading bridge arm;
[0035] Substitute the switching period, the duty cycle and the first leading bridge arm lower tube into formula (7) to calculate the preset value of the comparator A of the lagging bridge arm upper tube:
[0036]
[0037] Among them, Q CMP_A13 Indicates the preset value of comparator A on the lagging bridge arm, T red21 Indicates the lower tube of the first leading bridge arm;
[0038] Substitute the switching period, the duty cycle and the second leading bridge arm lower tube into formula (8) to calculate the preset value of the comparator A of the lagging bridge arm lower tube:
[0039]
[0040] Among them, Q CMP_A14 Indicates the preset value of comparator A of the lower tube of the lagging bridge arm, T fed22 Indicates the lower tube of the second leading bridge arm;
[0041] Substitute the switching period, the duty cycle and the first lagging bridge arm upper tube into formula (9) to calculate the preset value of the comparator B of the leading bridge arm upper tube:
[0042]
[0043] Among them, Q CMP_B11 Indicates the preset value of comparator B on the leading bridge arm, T fed11 Indicates the upper tube of the first lagging bridge arm;
[0044] Substitute the switching period, the duty cycle and the second lagging bridge arm upper tube into formula (10) to calculate the preset value of the comparator B of the leading bridge arm lower tube:
[0045]
[0046] Among them, Q CMP_B12 Indicates the preset value of comparator B of the lower tube of the leading bridge arm, T red12 Indicates the upper tube of the second lagging bridge arm;
[0047] Substitute the switching period, the duty cycle and the first lagging bridge arm lower tube into formula (11) to calculate the preset value of the comparator B of the lagging bridge arm upper tube:
[0048]
[0049] Among them, Q CMP_B13 Indicates the preset value of comparator B on the lagging bridge arm, T fed21 Indicates the lower tube of the first lagging bridge arm;
[0050] Substitute the switching period, the duty cycle and the second lagging bridge arm lower tube into formula (12) to calculate the preset value of the comparator B of the lagging bridge arm lower tube:
[0051]
[0052] Among them, Q CMP_B14 Indicates the preset value of comparator B of the lower tube of the lagging bridge arm, T red22 It represents the lower tube of the second lagging bridge arm;
[0053] When the dead time information is the dead time considered and the dead time mode is the low level effective mode or the low level mode, the switching period, the duty cycle and the first leading bridge arm upper tube are substituted into formula (13) to calculate the preset value of the comparator A of the leading bridge arm upper tube:
[0054]
[0055] Substitute the switching period, the duty cycle and the second leading bridge arm upper tube into formula (14) to calculate the preset value of the comparator A of the leading bridge arm lower tube:
[0056]
[0057] Substitute the switching period, the duty cycle and the first leading bridge arm lower tube into formula (15) to calculate the preset value of the comparator A of the lagging bridge arm upper tube:
[0058]
[0059] Substitute the switching period, the duty cycle and the second leading bridge arm lower tube into formula (16) to calculate the preset value of the comparator A of the lagging bridge arm lower tube:
[0060]
[0061] Substitute the switching period, the duty cycle and the first lagging bridge arm upper tube into formula (17) to calculate the preset value of the comparator B of the leading bridge arm upper tube:
[0062]
[0063] Substitute the switching period, the duty cycle and the second lagging bridge arm upper tube into formula (18) to calculate the preset value of the comparator B of the leading bridge arm lower tube:
[0064]
[0065] Substitute the switching period, the duty cycle and the first lagging bridge arm lower tube into formula (19) to calculate the preset value of the comparator B of the lagging bridge arm upper tube:
[0066]
[0067] Substitute the switching period, the duty cycle and the second lagging bridge arm lower tube into formula (20) to calculate the preset value of the comparator B of the lagging bridge arm lower tube:
[0068]
[0069] The register parameter configuration system provided by an embodiment of the present invention includes a client and a parameter processing device, wherein the client is used to determine the register requirement parameters according to the circuit requirement parameters of the topology circuit, and send the register requirement parameters to the parameter processing device; the parameter processing device is used to obtain the register requirement parameters, determine the target parameters according to the register requirement parameters, and configure the target parameters to multiple channels of the pulse width modulation register. Therefore, compared with the prior art, the register parameter configuration system provided by the present invention is used by the client to determine the register requirement parameters (register requirement parameters of ePWM) according to the circuit requirement parameters of the topological circuit, and send the register requirement parameters to the parameter processing device, that is, to transfer part of the ePWM preprocessing process to the parameter processing device, thereby reducing the ePWM preprocessing process of the client, the parameter processing device obtains the register requirement parameters, determines the target parameters (register configuration parameters of ePWM) according to the register requirement parameters, and configures the target parameters to multiple channels of the pulse width modulation register, that is, the client only needs to determine the register requirement parameters, and does not need to participate in the determination process of the register configuration parameters of the ePWM, thereby reducing the CPU computing power consumption of the client, reducing the CPU load of the client, extending the service life of the CPU of the client, and improving the speed and efficiency of the client's wave control system (such as ePWM, etc.) in determining the register requirement parameters; and effectively reducing the control response delay of the real-time control system and improving the control bandwidth; for complex topological circuits, when the number of control requirement parameters is large, this configuration system with preprocessing function can greatly improve the control frequency and switching frequency, and better adapt to the control requirements of third-generation power semiconductor devices such as silicon carbide (SiC) and gallium nitride (GaN). BRIEF DESCRIPTION OF THE DRAWINGS
[0070] 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.
[0071] Figure 1 It is a structural diagram of a register parameter configuration system provided by an embodiment of the present invention;
[0072] Figure 2 It is a structural schematic diagram of a parameter processing device in a register parameter configuration system provided by an embodiment of the present invention;
[0073] Figure 3 It is a schematic diagram of determining target parameters by a parameter processing device in a register parameter configuration system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0075] The terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.
[0076] At present, the preprocessing of ePWM is mainly performed by the client determining the register requirement parameters of ePWM according to the circuit requirement parameters of the topology circuit, and then the client determines the register configuration parameters of ePWM according to the register requirement parameters of ePWM, and finally the client configures the register configuration parameters of ePWM to multiple channels of the ePWM register.
[0077] However, in the entire process of the above-mentioned ePWM preprocessing, the client must participate in the process of determining the register requirement parameters and the process of determining the register configuration parameters, and is also responsible for configuring the register configuration parameters to multiple channels of the ePWM register, that is, the client is responsible for completing the entire ePWM preprocessing task, so that the process of the client's CPU determining the register requirement parameters and the register configuration parameters is lengthy and consumes a lot of computing power, resulting in the client's CPU being in a high-load state for a long time, which has a certain impact on the processing performance of the client's CPU, and then the client's CPU processing speed will be slowed down, that is, the client's parameter determination speed and efficiency are reduced, and then the ePWM preprocessing speed and efficiency are reduced. In addition, if the number of circuit requirement parameters of the topological circuit is large, the number of register requirement parameters and register configuration parameters determined according to the circuit requirement parameters will also be large, and the parameter determination process involved in the entire ePWM preprocessing process is more lengthy and complicated, and the client's CPU needs to complete the ePWM preprocessing for a longer time, which means that when the number of circuit requirement parameters is large, the client's CPU will be in a high-load state for a long time, shortening the service life of the client's CPU.
[0078] In view of the above problems, the present invention provides a register parameter configuration system, which divides ePWM preprocessing into two processes: 1. Determine the register requirement parameters according to the circuit requirement parameters of the topological circuit, and send the register requirement parameters to the parameter processing device; 2. Obtain the register requirement parameters, determine the target parameters according to the register requirement parameters, and configure the target parameters to multiple channels of the pulse width modulation register. The two processes are completed by the client and the parameter processing device respectively, that is, the client is responsible for process 1, and the parameter processing device is responsible for process 2. The client only needs to determine the register requirement parameters and does not need to participate in the determination process of the register configuration parameters of the ePWM, that is, part of the ePWM preprocessing process is transferred to the parameter processing device, reducing the ePWM preprocessing process of the client, the parameter processing device obtains the register requirement parameters, determines the target parameters (register configuration parameters of the ePWM) according to the register requirement parameters, and configures the target parameters to multiple channels of the pulse width modulation register, which can reduce the CPU computing power consumption of the client, reduce the CPU load of the client, extend the service life of the CPU of the client, and improve the speed and efficiency of the client's wave control system (such as ePWM, etc.) to determine the register requirement parameters; and effectively reduce the control response delay of the real-time control system and improve the control bandwidth. For complex topology circuits with a large number of control parameters, this configuration system with preprocessing function can greatly improve the control frequency and switching frequency, and better adapt to the control requirements of third-generation power semiconductor devices such as silicon carbide (SiC) and gallium nitride (GaN).
[0079] The register parameter configuration system provided by the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0080] Figure 1 FIG. 1 is a schematic diagram of a configuration system for register parameters provided by an embodiment of the present invention. Figure 1 As shown, the register parameter configuration system provided by the present invention includes a client 1 and a parameter processing device 2, wherein the client 1 is used to determine the register requirement parameters according to the circuit requirement parameters of the topology circuit, and send the register requirement parameters to the parameter processing device 2; the parameter processing device 2 is used to obtain the register requirement parameters, determine the target parameters according to the register requirement parameters, and configure the target parameters to multiple channels of the pulse width modulation register.
[0081] Among them, the circuit requirement parameters can be understood as the parameters of the topological circuit structure; the register requirement parameters can be understood as the parameters calculated according to the circuit requirement parameters; the target parameters can be understood as the parameters required to configure several registers in each channel of the ePWM, that is, the register configuration parameters of the ePWM. The client 1 can be a computer or a server, and the parameter processing device 2 can be a server connected to the ePWM.
[0082] In an optional implementation, the client 1 may be a user's terminal device (computer), and the parameter processing device 2 may be a server connected to the ePWM; the terminal device may obtain circuit requirement parameters of the topology circuit, determine register requirement parameters based on the circuit requirement parameters of the topology circuit, and send the register requirement parameters to the server connected to the ePWM; the server connected to the ePWM obtains the register requirement parameters, determines the target parameters based on the register requirement parameters, and configures the target parameters to multiple channels of the pulse width modulation register.
[0083] For example, the circuit requirement parameters are a, b, c, and the terminal device can obtain the circuit requirement parameters a, b, c of the topology circuit, determine the register requirement parameters A1, B2, C3 according to the circuit requirement parameters of the topology circuit, and send the register requirement parameters to the server connected to the ePWM; the server connected to the ePWM obtains the register requirement parameters, determines the target parameters A1', B2', C3' according to the register requirement parameters, and configures the target parameters to multiple channels of the pulse width modulation register.
[0084] In a specific embodiment of the present invention, the client 1 and the parameter processing device 2 communicate via a bus, which can increase the transmission speed of the register requirement parameters of the client 1 to the parameter processing device 2, and the data transmission of the entire register requirement parameters is more stable; in addition, there will be no communication problems between the client 1 and the parameter processing device 2 due to system differences and device differences, which better ensures the stability of the data transmission of the register requirement parameters.
[0085] In a specific embodiment of the present invention, Figure 2 As shown, the parameter processing device 2 includes a parameter conversion module 21 and a parameter mapping module 22. The register requirement parameters include a parameter mapping channel identifier, physical requirement parameters and physical requirement information. The parameter conversion module 21 is used to determine the target parameters based on the physical requirement parameters and the physical requirement information, and send the parameter mapping channel identifier and the target parameters to the parameter mapping channel.
[0086] Among them, the parameter mapping channel identifier can be understood as the channel identifier of the ePWM channel carried by each register requirement parameter, so that in the process of target parameter mapping, the channel of the target parameter to be configured can be determined according to the parameter mapping channel identifier; the parameter conversion module 21 can be used to determine the target parameter according to the physical requirement parameter, and send the parameter mapping channel identifier and the target parameter to the parameter mapping channel; the physical requirement parameter can be understood as the state parameters and configuration parameters of the register required to calculate the target parameter; the state parameters may include switching cycle, phase difference, the first leading bridge arm upper tube, the second leading bridge arm upper tube, the first leading bridge arm lower tube, the second leading bridge arm lower tube, the first lagging bridge arm upper tube, the second lagging bridge arm upper tube, the first lagging bridge arm lower tube, and the second lagging bridge arm lower tube; the configuration parameters may include counting direction and counting mode; the parameter mapping channel can be used to configure the target parameter to multiple channels of the pulse width modulation register according to the parameter mapping channel identifier.
[0087] In an optional implementation, the parameter conversion module 21 may mark the parameter mapping channel identifier on the parameter subscript of the target parameter so that the target parameter carries the parameter mapping channel identifier of the register requirement parameter, and then sends the target parameter carrying the parameter mapping channel identifier to the parameter mapping module 22.
[0088] For example, Figure 3As shown, the parameter conversion module 21 can obtain physical demand parameters, physical demand information and parameter mapping channel identifiers, determine target parameters (A1', B2', C3') according to the physical demand parameters and the physical demand information, and send the parameter mapping channel identifier and the target parameters to the parameter mapping channel; the parameter mapping module 22 is used to receive the parameter mapping channel identifier and the target parameter, and configure A1' to channel 1 of the pulse width modulation register according to the parameter mapping channel identifier of A1', configure A1' to channel 2 of the pulse width modulation register according to the parameter mapping channel identifier of B2', and configure A1' to channel 3 of the pulse width modulation register according to the parameter mapping channel identifier of C3'. In this way, the target parameter (register configuration parameter) determination process can be completed by the parameter processing device 2, and the client 1 does not need to participate in the determination process of the register configuration parameters of the ePWM, which reduces the CPU computing power consumption of the client 1, reduces the CPU load of the client 1, prolongs the service life of the CPU of the client 1, and improves the speed and efficiency of the wave control system (such as ePWM, etc.) of the client 1 to determine the register demand parameters; and effectively reduces the control response delay of the real-time control system and improves the control bandwidth. For complex topology circuits with a large number of control parameters, this configuration system with preprocessing function can greatly improve the control frequency and switching frequency, and better adapt to the control requirements of third-generation power semiconductor devices such as silicon carbide (SiC) and gallium nitride (GaN).
[0089] In some embodiments, the model of the CPU of the client 1 is the same as the model of the CPU of the parameter processing device 2. Before the parameter processing device 2 receives the register requirement parameters, the CPU of the parameter processing device 2 is in a low-load state. The processing performance of the CPU of the parameter processing device 2 in the low-load state is significantly better than the processing performance of the CPU of the client 1 in the high-load state after determining the register requirement parameters and the register configuration parameters in the prior art. Compared with the speed at which the client 1 continues to determine the register configuration parameters after determining the register requirement parameters, the parameter processing device 2 determines the target parameters according to the register requirement parameters faster and more efficiently. In this way, the register parameter configuration system provided by the present invention not only improves the determination speed and efficiency of the register requirement parameters, but also improves the determination speed and efficiency of the target parameters (register configuration parameters), thereby improving the speed and efficiency of ePWM preprocessing.
[0090] In a specific embodiment of the present invention, the parameter mapping module 22 is used to receive the parameter mapping channel identifier and the target parameter, and configure the target parameter to multiple channels of the pulse width modulation register according to the parameter mapping channel identifier.
[0091] In an optional implementation, the parameter mapping channel may determine the target channel to which the target parameter needs to be mapped according to the parameter mapping channel identifier, and then configure the target parameter to multiple channels of the pulse width modulation register.
[0092] For example, the parameter mapping channel can determine that the target channel to which the target parameter needs to be mapped is channel 1 based on the parameter mapping channel identifier carried by the target parameter (A1'), and then configure the target parameter to channel 1 of the pulse width modulation register. In this way, the configuration process of the (target parameter) register configuration parameters can be completed through the parameter processing device 2, and the client 1 does not need to participate in the configuration process of the register configuration parameters of the ePWM, thereby reducing the processing resource consumption of the CPU of the client 1, reducing the load of the CPU of the client 1, and improving the speed and efficiency of the CPU of the client 1 in determining the register requirement parameters, thereby improving the speed and efficiency of the ePWM preprocessing.
[0093] In a specific embodiment of the present invention, the physical requirement information may include a counting direction and a counting mode, the target parameters include a period value, a first initial phase and a second initial phase, and the parameter conversion module 21 is specifically used to determine the period value according to the counting mode and the physical requirement parameters, and determine the initial phase according to the physical requirement parameters, the counting direction and the counting mode.
[0094] The counting modes may include upward counting, downward counting, and upward and downward counting, and the counting directions may include upward and downward.
[0095] In a specific embodiment of the present invention, the physical demand parameters may include a switching cycle, and the parameter conversion module 21 is also specifically used to subtract the switching cycle and the first constant to obtain a cycle value when the counting mode is up counting / down counting, and to divide the switching cycle and the second constant to obtain a cycle value when the counting mode is up counting / down counting.
[0096] For example, the period value is represented by T PRD , the switching period is represented by T period , when the counting mode is up and down counting, T PRD =T period -1.
[0097] In a specific embodiment of the present invention, the physical demand parameter may further include a phase difference, and the parameter conversion module 21 is further specifically used to determine zero as the first initial phase when the counting mode is up counting / the counting mode is up-down counting and the counting direction is up, and to determine the switching period as the first initial phase when the counting mode is down counting / the counting mode is up-down counting and the counting direction is down;
[0098] When the counting mode is up counting, the phase difference and the switching period are substituted into formula (1) to calculate the second initial phase:
[0099] C ini_lag =(2π-δ phase )*T period / 2π (1)
[0100] Among them, C ini_lag represents the second initial phase, δ phase Represents the phase difference, T period represents the switching cycle;
[0101] When the counting mode is down counting, the switching period is determined as the first initial phase, and the phase difference and the switching period are substituted into formula (2) to calculate the second initial phase:
[0102] C ini_lag =δ phase *T period / 2π (2)
[0103] When the counting mode is up-down counting, the counting direction is downward and the phase difference is greater than π, the phase difference and the switching period are substituted into formula (1) to calculate the second initial phase. When the counting mode is up-down counting, the counting direction is upward and the phase difference is not greater than π, the phase difference and the switching period are substituted into formula (2) to calculate the second initial phase.
[0104] In a specific embodiment of the present invention, the physical requirement information may further include dead zone information, the target parameter may further include a comparator preset value, and the parameter conversion module 21 may further be used to determine the comparator preset value according to the physical requirement parameter and the dead zone information.
[0105] The dead zone information may include a considered dead zone time and a not considered dead zone time.
[0106] In a specific embodiment of the present invention, the comparator preset value may include a comparator A preset value of the upper tube of the leading bridge arm, a comparator A preset value of the lower tube of the leading bridge arm, a comparator A preset value of the upper tube of the lagging bridge arm, a comparator A preset value of the lower tube of the lagging bridge arm, a comparator B preset value of the upper tube of the leading bridge arm, a comparator B preset value of the lower tube of the leading bridge arm, a comparator B preset value of the upper tube of the lagging bridge arm, and a comparator B preset value of the lower tube of the lagging bridge arm. The physical demand parameter also includes a duty cycle. The parameter conversion module 21 is also specifically used to substitute the duty cycle and the switching period into formula (3) to calculate the comparator A preset value of the upper tube of the leading bridge arm when the dead zone information does not consider the dead zone time:
[0107] Q CMP_A11 =T period *(1-D cycle ) / twenty three)
[0108] Among them, Q CMP_A11Indicates the preset value of comparator A on the leading bridge arm, D cycle Indicates duty cycle;
[0109] The preset value of comparator A of the upper tube of the leading bridge arm is determined as the preset value of comparator A of the lower tube of the leading bridge arm, the preset value of comparator A of the upper tube of the lagging bridge arm, and the preset value of comparator A of the lower tube of the lagging bridge arm;
[0110] Substitute the duty cycle and switching period into formula (4) to calculate the preset value of comparator B of the leading bridge arm lower tube:
[0111] Q CMP_B11 =T period *(1+D cycle ) / twenty four)
[0112] Among them, Q CMP_B11 Indicates the preset value of comparator B of the lower tube of the leading bridge arm;
[0113] The preset value of comparator B of the lower tube of the leading bridge arm is determined as the preset value of comparator B of the lower tube of the leading bridge arm, the preset value of comparator B of the upper tube of the lagging bridge arm, and the preset value of comparator B of the lower tube of the lagging bridge arm.
[0114] In a specific embodiment of the present invention, the physical demand parameter also includes a first leading bridge arm upper tube, a second leading bridge arm upper tube, a first leading bridge arm lower tube, a second leading bridge arm lower tube, a first lagging bridge arm upper tube, a second lagging bridge arm upper tube, a first lagging bridge arm lower tube, and a second lagging bridge arm lower tube. The dead zone information includes dead zone time information and a dead zone mode. The parameter conversion module is further specifically used to substitute the switching period, the duty cycle and the first leading bridge arm upper tube into formula (5) to calculate the preset value of the comparator A of the leading bridge arm upper tube when the dead zone time information is a dead zone time consideration and the dead zone mode is a high level effective mode or a high level mode:
[0115]
[0116] Among them, Q CMP_A11 Indicates the preset value of comparator A on the leading bridge arm, D cycle Represents the duty cycle, T period represents the switching period, T red11 Indicates the upper tube of the first leading bridge arm;
[0117] Substitute the switching period, the duty cycle and the second leading bridge arm upper tube into formula (6) to calculate the preset value of the comparator A of the leading bridge arm lower tube:
[0118]
[0119] Among them, Q CMP_A12 Indicates the preset value of comparator A of the lower tube of the leading bridge arm, Tfed12 Indicates the upper tube of the second leading bridge arm;
[0120] Substitute the switching period, the duty cycle and the first leading bridge arm lower tube into formula (7) to calculate the preset value of the comparator A of the lagging bridge arm upper tube:
[0121]
[0122] Among them, Q CMP_A13 Indicates the preset value of comparator A on the lagging bridge arm, T red21 Indicates the lower tube of the first leading bridge arm;
[0123] Substitute the switching period, the duty cycle and the second leading bridge arm lower tube into formula (8) to calculate the preset value of the comparator A of the lagging bridge arm lower tube:
[0124]
[0125] Among them, Q CMP_A14 Indicates the preset value of comparator A of the lower tube of the lagging bridge arm, T fed22 Indicates the lower tube of the second leading bridge arm;
[0126] Substitute the switching period, the duty cycle and the first lagging bridge arm upper tube into formula (9) to calculate the preset value of the comparator B of the leading bridge arm upper tube:
[0127]
[0128] Among them, Q CMP_B11 Indicates the preset value of comparator B on the leading bridge arm, T fed11 Indicates the upper tube of the first lagging bridge arm;
[0129] Substitute the switching period, the duty cycle and the second lagging bridge arm upper tube into formula (10) to calculate the preset value of the comparator B of the leading bridge arm lower tube:
[0130]
[0131] Among them, Q CMP_B12 Indicates the preset value of comparator B of the lower tube of the leading bridge arm, T red12 Indicates the upper tube of the second lagging bridge arm;
[0132] Substitute the switching period, the duty cycle and the first lagging bridge arm lower tube into formula (11) to calculate the preset value of the comparator B of the lagging bridge arm upper tube:
[0133]
[0134] Among them, Q CMP_B13 Indicates the preset value of comparator B on the lagging bridge arm, Tfed21 Indicates the lower tube of the first lagging bridge arm;
[0135] Substitute the switching period, the duty cycle and the second lagging bridge arm lower tube into formula (12) to calculate the preset value of the comparator B of the lagging bridge arm lower tube:
[0136]
[0137] Among them, Q CMP_B14 Indicates the preset value of comparator B of the lower tube of the lagging bridge arm, T red22 It represents the lower tube of the second lagging bridge arm;
[0138] When the dead time information is the dead time considered and the dead time mode is the low level effective mode or the low level mode, the switching period, the duty cycle and the first leading bridge arm upper tube are substituted into formula (13) to calculate the preset value of the comparator A of the leading bridge arm upper tube:
[0139]
[0140] Substitute the switching period, the duty cycle and the second leading bridge arm upper tube into formula (14) to calculate the preset value of the comparator A of the leading bridge arm lower tube:
[0141]
[0142] Substitute the switching period, the duty cycle and the first leading bridge arm lower tube into formula (15) to calculate the preset value of the comparator A of the lagging bridge arm upper tube:
[0143]
[0144] Substitute the switching period, the duty cycle and the second leading bridge arm lower tube into formula (16) to calculate the preset value of the comparator A of the lagging bridge arm lower tube:
[0145]
[0146] Substitute the switching period, the duty cycle and the first lagging bridge arm upper tube into formula (17) to calculate the preset value of the comparator B of the leading bridge arm upper tube:
[0147]
[0148] Substitute the switching period, the duty cycle and the second lagging bridge arm upper tube into formula (18) to calculate the preset value of the comparator B of the leading bridge arm lower tube:
[0149]
[0150] Substitute the switching period, the duty cycle and the first lagging bridge arm lower tube into formula (19) to calculate the preset value of the comparator B of the lagging bridge arm upper tube:
[0151]
[0152] Substitute the switching period, the duty cycle and the second lagging bridge arm lower tube into formula (20) to calculate the preset value of the comparator B of the lagging bridge arm lower tube:
[0153]
[0154] The register parameter configuration system provided by an embodiment of the present invention includes a client 1 and a parameter processing device 2, wherein the client 1 is used to determine the register requirement parameters according to the circuit requirement parameters of the topology circuit, and send the register requirement parameters to the parameter processing device 2; the parameter processing device 2 is used to obtain the register requirement parameters, determine the target parameters according to the register requirement parameters, and configure the target parameters to multiple channels of the pulse width modulation register. Therefore, compared with the prior art, the register parameter configuration system provided by the present invention is used for client 1 to determine the register requirement parameters (register requirement parameters of ePWM) according to the circuit requirement parameters of the topological circuit, and send the register requirement parameters to the parameter processing device 2, that is, to transfer part of the ePWM preprocessing process to the parameter processing device 2, thereby reducing the ePWM preprocessing process of client 1, and the parameter processing device 2 obtains the register requirement parameters, determines the target parameters (register configuration parameters of ePWM) according to the register requirement parameters, and configures the target parameters to multiple channels of the pulse width modulation register, that is, client 1 only needs to determine the register requirement parameters, and does not need to participate in the determination process of the register configuration parameters of ePWM, thereby reducing the CPU computing power consumption of client 1, reducing the CPU load of client 1, extending the service life of the CPU of client 1, and improving the speed and efficiency of the wave control system (such as ePWM, etc.) of client 1 in determining the register requirement parameters; and effectively reducing the control response delay of the real-time control system and improving the control bandwidth. For complex topology circuits with a large number of control parameters, this configuration system with preprocessing function can greatly improve the control frequency and switching frequency, and better adapt to the control requirements of third-generation power semiconductor devices such as silicon carbide (SiC) and gallium nitride (GaN).
[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A register parameter configuration system, characterized in that: The system includes a client and a parameter processing device, wherein: The client is used to determine the register requirement parameters according to the circuit requirement parameters of the topology circuit, and send the register requirement parameters to the parameter processing device; The parameter processing device is used to obtain the register requirement parameter, determine the target parameter according to the register requirement parameter, and configure the target parameter to multiple channels of the pulse width modulation register.
2. The system according to claim 1, characterized in that The client and the parameter processing device communicate with each other via a bus.
3. The system according to claim 1, characterized in that The parameter processing device includes a parameter conversion module and a parameter mapping module. The register requirement parameters include a parameter mapping channel identifier, physical requirement parameters and physical requirement information. The parameter conversion module is used to determine the target parameters based on the physical requirement parameters and the physical requirement information, and send the parameter mapping channel identifier and the target parameters to the parameter mapping channel.
4. The system according to claim 3, characterized in that The parameter mapping module is used to receive the parameter mapping channel identifier and the target parameter, and configure the target parameter to multiple channels of the pulse width modulation register according to the parameter mapping channel identifier.
5. The system according to claim 3, characterized in that The physical requirement information includes a counting direction and a counting mode, the target parameters include a period value, a first initial phase and a second initial phase, and the parameter conversion module is specifically used to determine the period value according to the counting mode and the physical requirement parameters, and to determine the initial phase according to the physical requirement parameters, the counting direction and the counting mode.
6. The system according to claim 5, characterized in that The physical requirement parameters also include a switching cycle, and the parameter conversion module is specifically used to subtract the switching cycle and a first constant to obtain the cycle value when the counting mode is up counting / down counting, and to divide the switching cycle and a second constant to obtain the cycle value when the counting mode is up counting / down counting.
7. The system according to claim 6, characterized in that The physical demand parameter also includes a phase difference, and the parameter conversion module is further specifically used to determine zero as the first initial phase when the counting mode is upward counting / the counting mode is upward and downward counting and the counting direction is upward, and to determine the switching period as the first initial phase when the counting mode is downward counting / the counting mode is upward and downward counting and the counting direction is downward; When the counting mode is upward counting, the phase difference and the switching period are substituted into formula (1) to calculate the second initial phase: C ini_lag =(2π-δ phase )*T period / 2π (1) Among them, C ini_lag represents the second initial phase, δ phase Represents the phase difference, T period represents the switching cycle; When the counting mode is down counting, the switching period is determined as the first initial phase, and the phase difference and the switching period are substituted into formula (2) to calculate the second initial phase: C ini_lag =d phase *T period / 2π (2) When the counting mode is up-down counting, the counting direction is downward and the phase difference is greater than π, the phase difference and the switching period are substituted into formula (1) to calculate the second initial phase; when the counting mode is up-down counting, the counting direction is upward and the phase difference is not greater than π, the phase difference and the switching period are substituted into formula (2) to calculate the second initial phase.
8. The system according to claim 6, characterized in that The physical requirement information also includes dead zone information, the target parameter also includes a comparator preset value, and the parameter conversion module is further used to determine the comparator preset value according to the physical requirement parameter and the dead zone information.
9. The system according to claim 8, characterized in that The comparator preset value includes the comparator A preset value of the upper tube of the leading bridge arm, the comparator A preset value of the lower tube of the leading bridge arm, the comparator A preset value of the upper tube of the lagging bridge arm, the comparator A preset value of the lower tube of the lagging bridge arm, the comparator B preset value of the upper tube of the leading bridge arm, the comparator B preset value of the lower tube of the leading bridge arm, the comparator B preset value of the upper tube of the lagging bridge arm, and the comparator B preset value of the lower tube of the lagging bridge arm. The physical demand parameter also includes a duty cycle. The parameter conversion module is further specifically used to substitute the duty cycle and the switching period into formula (3) to calculate the comparator A preset value of the upper tube of the leading bridge arm when the dead zone information does not consider the dead zone time: Q CMP_A11 =T period *(1-D cycle ) / 2 (3) Among them, Q CMP_A11 Indicates the preset value of comparator A on the leading bridge arm, D cycle Indicates duty cycle; Determine the preset value of the comparator A of the upper tube of the leading bridge arm as the preset value of the comparator A of the lower tube of the leading bridge arm, the preset value of the comparator A of the upper tube of the lagging bridge arm, and the preset value of the comparator A of the lower tube of the lagging bridge arm; Substitute the duty cycle and the switching period into formula (4) to calculate the preset value of the comparator B of the lower tube of the leading bridge arm: Q CMP_B11 =T period *(1+D cycle ) / 2 (4) Among them, Q CMP_B11 Indicates the preset value of comparator B of the lower tube of the leading bridge arm; The preset value of comparator B of the lower tube of the leading bridge arm is determined as the preset value of comparator B of the lower tube of the leading bridge arm, the preset value of comparator B of the upper tube of the lagging bridge arm, and the preset value of comparator B of the lower tube of the lagging bridge arm.
10. The system according to claim 9, characterized in that The physical requirement parameters also include a first leading bridge arm upper tube, a second leading bridge arm upper tube, a first leading bridge arm lower tube, a second leading bridge arm lower tube, a first lagging bridge arm upper tube, a second lagging bridge arm upper tube, a first lagging bridge arm lower tube, and a second lagging bridge arm lower tube. The dead zone information includes dead zone time information and a dead zone mode. The parameter conversion module is further specifically used to substitute the switching period, the duty cycle and the first leading bridge arm upper tube into formula (5) to calculate the preset value of the comparator A of the leading bridge arm upper tube when the dead zone time information is a dead zone time consideration and the dead zone mode is a high level effective mode or a high level mode: Among them, Q CMP_A11 Indicates the preset value of comparator A on the leading bridge arm, D cycle Represents the duty cycle, T period represents the switching period, T red11 Indicates the upper tube of the first leading bridge arm; Substitute the switching period, the duty cycle and the second leading bridge arm upper tube into formula (6) to calculate the preset value of the comparator A of the leading bridge arm lower tube: Among them, Q CMP_A12 Indicates the preset value of comparator A of the lower tube of the leading bridge arm, T fed12 Indicates the upper tube of the second leading bridge arm; Substitute the switching period, the duty cycle and the first leading bridge arm lower tube into formula (7) to calculate the preset value of the comparator A of the lagging bridge arm upper tube: Among them, Q CMP_A13 Indicates the preset value of comparator A on the lagging bridge arm, T red21 Indicates the lower tube of the first leading bridge arm; Substitute the switching period, the duty cycle and the second leading bridge arm lower tube into formula (8) to calculate the preset value of the comparator A of the lagging bridge arm lower tube: Among them, Q CMP_A14 Indicates the preset value of comparator A of the lower tube of the lagging bridge arm, T fed22 Indicates the lower tube of the second leading bridge arm; Substitute the switching period, the duty cycle and the first lagging bridge arm upper tube into formula (9) to calculate the preset value of the comparator B of the leading bridge arm upper tube: Among them, Q CMP_B11 Indicates the preset value of comparator B on the leading bridge arm, T fed11 Indicates the upper tube of the first lagging bridge arm; Substitute the switching period, the duty cycle and the second lagging bridge arm upper tube into formula (10) to calculate the preset value of the comparator B of the leading bridge arm lower tube: Among them, Q CMP_B12 Indicates the preset value of comparator B of the lower tube of the leading bridge arm, T red12 Indicates the upper tube of the second lagging bridge arm; Substitute the switching period, the duty cycle and the first lagging bridge arm lower tube into formula (11) to calculate the preset value of the comparator B of the lagging bridge arm upper tube: Among them, Q CMP_B13 Indicates the preset value of comparator B on the lagging bridge arm, T fed21 Indicates the lower tube of the first lagging bridge arm; Substitute the switching period, the duty cycle and the second lagging bridge arm lower tube into formula (12) to calculate the preset value of the comparator B of the lagging bridge arm lower tube: Among them, Q CMP_B14 Indicates the preset value of comparator B of the lower tube of the lagging bridge arm, T red22 It represents the lower tube of the second lagging bridge arm; When the dead time information is the dead time considered and the dead time mode is the low level effective mode or the low level mode, the switching period, the duty cycle and the first leading bridge arm upper tube are substituted into formula (13) to calculate the preset value of the comparator A of the leading bridge arm upper tube: Substitute the switching period, the duty cycle and the second leading bridge arm upper tube into formula (14) to calculate the preset value of the comparator A of the leading bridge arm lower tube: Substitute the switching period, the duty cycle and the first leading bridge arm lower tube into formula (15) to calculate the preset value of the comparator A of the lagging bridge arm upper tube: Substitute the switching period, the duty cycle and the second leading bridge arm lower tube into formula (16) to calculate the preset value of the comparator A of the lagging bridge arm lower tube: Substitute the switching period, the duty cycle and the first lagging bridge arm upper tube into formula (17) to calculate the preset value of the comparator B of the leading bridge arm upper tube: Substitute the switching period, the duty cycle and the second lagging bridge arm upper tube into formula (18) to calculate the preset value of the comparator B of the leading bridge arm lower tube: Substitute the switching period, the duty cycle and the first lagging bridge arm lower tube into formula (19) to calculate the preset value of the comparator B of the lagging bridge arm upper tube: Substitute the switching period, the duty cycle and the second lagging bridge arm lower tube into formula (20) to calculate the preset value of the comparator B of the lagging bridge arm lower tube: