CN111120121B - Frequency drive control method, frequency drive control device, engine controller and storage medium - Google Patents
Frequency drive control method, frequency drive control device, engine controller and storage medium Download PDFInfo
- Publication number
- CN111120121B CN111120121B CN201911359387.9A CN201911359387A CN111120121B CN 111120121 B CN111120121 B CN 111120121B CN 201911359387 A CN201911359387 A CN 201911359387A CN 111120121 B CN111120121 B CN 111120121B
- Authority
- CN
- China
- Prior art keywords
- frequency
- division factor
- waveform
- factor value
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F02—COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
- F02D—CONTROLLING COMBUSTION ENGINES
- F02D28/00—Programme-control of engines
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Combined Controls Of Internal Combustion Engines (AREA)
Abstract
The application discloses a frequency driving control method, a frequency driving control device, an engine controller and a storage medium, wherein the method comprises the following steps: acquiring the frequency of a control waveform input by a load; judging a frequency division factor value corresponding to the control waveform frequency; and controlling the frequency of the output waveform according to the frequency division factor value. Compared with the method for fixing the frequency division factors which is mostly adopted at present, the method for dynamically managing the frequency division factors can cover the control precision requirement in high frequency by adopting the frequency division factor values which are correspondingly arranged according to different control waveform frequencies, thereby ensuring the high precision and wide-range waveform frequency regulation in high frequency.
Description
Technical Field
The present disclosure relates to engine control, and more particularly, to a frequency driving control method and apparatus, an engine controller, and a storage medium.
Background
The control waveform frequency requirements of the engine load are different, the waveform frequency range of part of the engine load requirements is large, and the precision requirement is high.
Aiming at an engine controller with a fixed system clock and a fixed frequency division factor, the problem of contradiction exists between the frequency adjustable range and the precision of an output PWM (Pulse Width Modulation) waveform, namely when the frequency adjustable range is large, the precision of the output PWM waveform at high frequency cannot be ensured. For example, the number of bits of the counter in the controller is 16, the waveform frequency is converted into the waveform period, and when the resolution of the waveform period is fixed to 20 microseconds, the output waveform has an adjustable range of 20 microseconds to 1310 milliseconds, although the adjustable range is large, the waveform period with the period below 20 microseconds cannot be covered, and the precision of the PWM waveform output at high frequency cannot be guaranteed.
Therefore, when the adjustable range of the required frequency of the engine load is large, the frequency control error is large at a high frequency due to the adoption of the fixed system clock and the fixed frequency division factor, and the requirement of high precision cannot be met.
Disclosure of Invention
An object of the present application is to provide a frequency drive control method, apparatus, engine controller, and storage medium that can ensure high accuracy and wide-range waveform frequency adjustment at a high frequency (small period).
In a first aspect, an embodiment of the present application provides a frequency driving control method, including:
acquiring the frequency of a control waveform input by a load;
judging a frequency division factor value corresponding to the control waveform frequency;
and controlling the frequency of the output waveform according to the frequency division factor value.
In some embodiments of the present application, the determining a division factor value corresponding to the control waveform frequency includes:
judging the frequency range of the control waveform frequency;
and determining the frequency division factor value corresponding to the frequency range according to the corresponding relation between the preset frequency range and the frequency division factor value.
In some embodiments of the present application, before obtaining the frequency of the control waveform input by the load, the method further includes:
and setting the corresponding relation between the frequency range and the frequency division factor value according to the frequency range of the control waveform input by the load history.
In some embodiments of the present application, the division factor value comprises a waveform resolution.
In a second aspect, an embodiment of the present application provides a frequency driving control apparatus, including:
the acquisition module is used for acquiring the control waveform frequency input by the load;
the judging module is used for judging a frequency division factor value corresponding to the control waveform frequency;
and the control module is used for carrying out frequency control on the output waveform according to the frequency division factor value.
In some embodiments of the present application, the determining module is specifically configured to:
judging the frequency range of the control waveform frequency;
and determining the frequency division factor value corresponding to the frequency range according to the corresponding relation between the preset frequency range and the frequency division factor value.
In some embodiments of the present application, the apparatus further comprises:
and the setting module is used for setting the corresponding relation between the frequency range and the frequency division factor value according to the frequency range of the control waveform input by the load history before the acquisition module acquires the control waveform frequency input by the load.
In some embodiments of the present application, the division factor value comprises a waveform resolution.
In a third aspect, an embodiment of the present application provides an engine controller, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps of the frequency drive control method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the frequency driving control method according to the first aspect are implemented.
The frequency driving control method, the frequency driving control device, the engine controller and the storage medium obtain the control waveform frequency input by a load; judging a frequency division factor value corresponding to the control waveform frequency; and controlling the frequency of the output waveform according to the frequency division factor value. Compared with the method of fixing the frequency division factors which is mostly adopted at present, the method dynamically manages the frequency division factors, adopts the frequency division factor values which are correspondingly arranged through different control waveform frequencies, and can cover the control precision requirement in high frequency, thereby ensuring the high-precision and wide-range waveform frequency regulation in high frequency (small period).
Drawings
Fig. 1 is a flow chart of a frequency driving control method according to some embodiments of the present application;
FIG. 2 is a flow chart of a frequency-division factor management provided in some embodiments of the present application;
fig. 3 is a schematic diagram of a frequency driving control apparatus according to some embodiments of the present disclosure.
Detailed Description
The following detailed description of embodiments of the present application is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present application is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
In addition, the terms "first" and "second", etc. are used to distinguish different objects, rather than to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The application provides a frequency driving control method and device, an engine controller and a computer readable storage medium.
Referring to fig. 1, which illustrates a flowchart of a frequency driving control method provided in some embodiments of the present application, as shown, the frequency driving control method may include the following steps:
step S101: and acquiring the control waveform frequency input by the load.
For example, the demanded frequency of the engine load, i.e., the control waveform frequency of the load input, is obtained.
Step S102: judging a frequency division factor value corresponding to the control waveform frequency;
in this embodiment, the determining the frequency division factor value corresponding to the control waveform frequency may specifically be implemented as:
judging the frequency range of the control waveform frequency;
and determining the frequency division factor value corresponding to the frequency range according to the corresponding relation between the preset frequency range and the frequency division factor value.
Specifically, in the embodiment of the present application, before the control waveform frequency input by the load is obtained, the corresponding relationship between the frequency range and the frequency division factor value may be set according to the control waveform frequency range input by the load history.
Specifically, take the SPC564B chip of the PowerPC architecture as an example, the chip has a division factor value of 4. The clock after the frequency division of the EMIOS module is set to be 0.2MHz, the frequency division factor is judged and dynamically managed according to the input control frequency range of figure 2, and the frequency range of the output waveform can be 0.76 Hz-200 kHz. The EMIOS is an enhanced modular input-output system, is integrated in a vehicle processor, and provides strong processing capability of multi-channel time events. The counter in the chip is 16 bits, the counting range is 1 to 65535, and when the wave form resolution is different, the resolved wave form period range is different.
As shown in fig. 2, the values of the division factor of 4 steps are:
1 st gear: resolution 5 mus, period range (5 mus-327.7 ms);
the 2 nd gear: resolution 10 mus, period range (10 mus-655.35 ms);
3, gear: resolution 15 mus, cycle range (15 mus-983.02 ms);
4, 4 th gear: resolution 20 μ s, cycle range (20 μ s-1310 ms);
wherein, the waveform resolution is the numerical value of the frequency division factor. As shown in the figure, the frequency range to which the control waveform frequency of the load input belongs is divided into: the period t is less than 300ms and corresponds to the numerical value of the 1 st-level frequency division factor; the period t is more than 300ms and less than 600ms and corresponds to the 2 nd-level frequency division factor value; the period t is more than 600ms and less than 900ms and corresponds to the 3 rd-grade frequency division factor value; the period of 900ms < t < 1s corresponds to the 4 th division factor value.
Based on the division factor management scheme shown in fig. 2, when the input frequency control range according to the engine load demand is 1Hz-5kHz (200 μ s to 1s), the maximum error of the dynamically managed division factor is 2.5% (the ratio of the minimum resolution 5 μ s to 200 μ s), and the maximum error of the fixed division factor (the fixed resolution 20 μ s) is 10% (the ratio of the fixed resolution 20 μ s to 200 μ s), it can be seen that the frequency control accuracy is significantly improved by dynamically managing the division factor.
In the embodiment, the dynamic frequency division factor is adopted, so that the high precision is kept and the frequency adjustable range can be improved through different resolutions.
Of course, in practical applications, different numbers of gears and different waveform resolutions may be set according to different requirements and different types of counters (e.g. 16-bit counters, 24-bit counters, etc.), and the present application is not limited herein.
Step S103: and controlling the frequency of the output waveform according to the frequency division factor value.
Specifically, the frequency of the output waveform is controlled according to the frequency division factor value determined in the above step.
Compared with the prior art, the frequency driving control method provided by the embodiment of the application obtains the control waveform frequency input by the load; judging a frequency division factor value corresponding to the control waveform frequency; and controlling the frequency of the output waveform according to the frequency division factor value. Compared with the method of fixing the frequency division factors which is mostly adopted at present, the method dynamically manages the frequency division factors, adopts the frequency division factor values which are correspondingly arranged through different control waveform frequencies, and can cover the control precision requirement in high frequency, thereby ensuring the high-precision and wide-range waveform frequency regulation in high frequency (small period).
In the foregoing embodiment, a frequency driving control method is provided, and correspondingly, the present application further provides a frequency driving control apparatus. The frequency driving control device provided in the embodiment of the present application may implement the frequency driving control method, and the frequency driving control device may be implemented by software, hardware, or a combination of software and hardware. For example, the frequency drive control means may comprise integrated or separate functional modules or units to perform the corresponding steps of the above-described methods. Please refer to fig. 3, which illustrates a schematic diagram of a frequency driving control apparatus according to some embodiments of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
As shown in fig. 3, the frequency drive control device 10 may include:
an obtaining module 101, configured to obtain a control waveform frequency input by a load;
a judging module 102, configured to judge a frequency division factor value corresponding to the control waveform frequency;
and the control module 103 is configured to perform frequency control on the output waveform according to the division factor value.
In a possible implementation manner, in the apparatus provided in this embodiment of the present application, the determining module 102 is specifically configured to:
judging the frequency range of the control waveform frequency;
and determining the frequency division factor value corresponding to the frequency range according to the corresponding relation between the preset frequency range and the frequency division factor value.
In a possible implementation manner, in the foregoing apparatus provided in an embodiment of the present application, the apparatus further includes:
and the setting module is used for setting the corresponding relation between the frequency range and the frequency division factor value according to the frequency range of the control waveform input by the load history before the acquisition module acquires the control waveform frequency input by the load.
In one possible implementation manner, in the foregoing apparatus provided in this embodiment of the present application, the division factor value includes a waveform resolution.
Compared with the prior art, the frequency driving control device provided by the embodiment of the application comprises an acquisition module, a judgment module and a control module. Obtaining the frequency of a control waveform input by a load; judging a frequency division factor value corresponding to the control waveform frequency; and controlling the frequency of the output waveform according to the frequency division factor value. Compared with the method of fixing the frequency division factors which is mostly adopted at present, the method dynamically manages the frequency division factors, adopts the frequency division factor values which are correspondingly arranged through different control waveform frequencies, and can cover the control precision requirement in high frequency, thereby ensuring the high-precision and wide-range waveform frequency regulation in high frequency (small period).
The embodiment of the present application further provides an engine controller corresponding to the frequency driving control method provided in the foregoing embodiment, and the engine controller includes a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps of the frequency driving control method of the foregoing embodiment when executing the computer program.
The engine controller provided by the embodiment of the application and the frequency driving control method provided by the embodiment of the application have the same beneficial effects as the method adopted, operated or realized by the engine controller.
The present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the frequency driving control method according to the foregoing embodiment are implemented.
The computer-readable storage medium provided by the embodiment of the present application and the frequency driving control method provided by the embodiment of the present application have the same beneficial effects as the method adopted, operated or realized by the computer-readable storage medium.
It should be noted that the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present disclosure, and the present disclosure should be construed as being covered by the claims and the specification.
Claims (8)
1. A frequency drive control method, comprising:
acquiring the frequency of a control waveform input by a load;
judging the frequency range of the control waveform frequency;
determining a frequency division factor value corresponding to a preset frequency range according to the corresponding relation between the frequency range and the frequency division factor value;
and controlling the frequency of the output waveform according to the frequency division factor value.
2. The method of claim 1, wherein before obtaining the frequency of the control waveform input by the load, further comprising:
and setting the corresponding relation between the frequency range and the frequency division factor value according to the frequency range of the control waveform input by the load history.
3. The method of claim 2, wherein the division factor value comprises a waveform resolution.
4. A frequency drive control apparatus, comprising:
the acquisition module is used for acquiring the control waveform frequency input by the load;
the judging module is used for judging the frequency range of the control waveform frequency; determining a frequency division factor value corresponding to a preset frequency range according to the corresponding relation between the frequency range and the frequency division factor value;
and the control module is used for carrying out frequency control on the output waveform according to the frequency division factor value.
5. The apparatus of claim 4, further comprising:
and the setting module is used for setting the corresponding relation between the frequency range and the frequency division factor value according to the frequency range of the control waveform input by the load history before the acquisition module acquires the control waveform frequency input by the load.
6. The apparatus of claim 5, wherein the division factor value comprises a waveform resolution.
7. An engine controller comprising a memory and a processor, the memory having stored therein a computer program operable on the processor, the processor implementing the steps of the frequency drive control method according to any one of claims 1 to 3 when executing the computer program.
8. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the frequency drive control method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911359387.9A CN111120121B (en) | 2019-12-25 | 2019-12-25 | Frequency drive control method, frequency drive control device, engine controller and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911359387.9A CN111120121B (en) | 2019-12-25 | 2019-12-25 | Frequency drive control method, frequency drive control device, engine controller and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111120121A CN111120121A (en) | 2020-05-08 |
CN111120121B true CN111120121B (en) | 2022-04-05 |
Family
ID=70502447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911359387.9A Active CN111120121B (en) | 2019-12-25 | 2019-12-25 | Frequency drive control method, frequency drive control device, engine controller and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111120121B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2024546A (en) * | 1978-05-26 | 1980-01-09 | Racal Group Services Ltd | Frequency Synthesisers |
JPH11299222A (en) * | 1998-04-08 | 1999-10-29 | Fuji Electric Co Ltd | Carrier generating circuit of pulse width modulation control power converter |
JP2006203984A (en) * | 2005-01-19 | 2006-08-03 | Nissan Motor Co Ltd | Load drive device and load driving method |
CN1916661A (en) * | 2006-09-01 | 2007-02-21 | 中南大学 | Multifunctional sender and controller for electrical surveying signal |
CN101883273A (en) * | 2010-06-12 | 2010-11-10 | 北京国科环宇空间技术有限公司 | Synchronization method when decomposing digital signal |
CN102882520A (en) * | 2012-09-28 | 2013-01-16 | 兆讯恒达微电子技术(北京)有限公司 | Device and method for clock frequency division based on sigma-delta phase locked loop |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3267260B2 (en) * | 1999-01-18 | 2002-03-18 | 日本電気株式会社 | Phase locked loop circuit and frequency modulation method using the same |
US10263515B2 (en) * | 2016-04-14 | 2019-04-16 | Licon Technology Corporation | Quasi-analog digital pulse-width modulation control |
-
2019
- 2019-12-25 CN CN201911359387.9A patent/CN111120121B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2024546A (en) * | 1978-05-26 | 1980-01-09 | Racal Group Services Ltd | Frequency Synthesisers |
JPH11299222A (en) * | 1998-04-08 | 1999-10-29 | Fuji Electric Co Ltd | Carrier generating circuit of pulse width modulation control power converter |
JP2006203984A (en) * | 2005-01-19 | 2006-08-03 | Nissan Motor Co Ltd | Load drive device and load driving method |
CN1916661A (en) * | 2006-09-01 | 2007-02-21 | 中南大学 | Multifunctional sender and controller for electrical surveying signal |
CN101883273A (en) * | 2010-06-12 | 2010-11-10 | 北京国科环宇空间技术有限公司 | Synchronization method when decomposing digital signal |
CN102882520A (en) * | 2012-09-28 | 2013-01-16 | 兆讯恒达微电子技术(北京)有限公司 | Device and method for clock frequency division based on sigma-delta phase locked loop |
Also Published As
Publication number | Publication date |
---|---|
CN111120121A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109005125B (en) | Dynamic current limiting method, device and system | |
CN103678408A (en) | Method and device for inquiring data | |
CN102279816A (en) | LCD (liquid crystal display) automatic identification method and device | |
US20150171880A1 (en) | Electric signal conversion | |
CN102879641A (en) | Frequency measurement method and system | |
CN111120121B (en) | Frequency drive control method, frequency drive control device, engine controller and storage medium | |
GB2466557A (en) | Measuring deviation of a clock frequency | |
CN103838183B (en) | A kind of digital control system and output control method thereof | |
CN101783676B (en) | Method and device for clock division | |
CN103425058A (en) | Timing method, central processing unit and electronic device | |
CN113411268B (en) | Data transmission method, data transmission device and electronic equipment | |
CN110649801B (en) | Bus voltage sampling method, PFC control circuit and power conversion circuit | |
CN112054741B (en) | Motor control method and device, terminal equipment and storage medium | |
CN103973297A (en) | Method And Evaluation Device For A Plausibility Check Of An Incremental Meter | |
CN110895125B (en) | Method for calibrating internal clock of electronic detonator chip | |
EP3783317B1 (en) | Sensor device with synchronisation of a sensor signal with an interrogation signal | |
CN113304967A (en) | Method, device and equipment for automatic compensation and pressurization of dispensing and storage medium thereof | |
CN111865156A (en) | Servo system arbitrary frequency division and frequency multiplication method and system and programmable device | |
CN113119117A (en) | Robot control method, controller, robot and control system | |
CN104779936B (en) | The method that position pulse is exported by PLC | |
CN112003459B (en) | Current control method and system of staggered parallel topology | |
CN111813719B (en) | Data polling method and device and terminal equipment | |
CN106227085B (en) | Method, system, single-chip microcontroller and the photovoltaic DC-to-AC converter of single-chip data sampling processing | |
CN115864914B (en) | Arbitrary orthogonal pulse frequency division output method, system, device and storage medium | |
CN108762372B (en) | Driving signal generation system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |