CN203859711U - Engine rotating speed sampling and controlling circuit - Google Patents
Engine rotating speed sampling and controlling circuit Download PDFInfo
- Publication number
- CN203859711U CN203859711U CN201420289434.3U CN201420289434U CN203859711U CN 203859711 U CN203859711 U CN 203859711U CN 201420289434 U CN201420289434 U CN 201420289434U CN 203859711 U CN203859711 U CN 203859711U
- Authority
- CN
- China
- Prior art keywords
- counter
- rotating speed
- controller
- signal
- register
- 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.)
- Expired - Lifetime
Links
- 238000005070 sampling Methods 0.000 title claims abstract description 21
- 238000005096 rolling process Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 5
- 230000000630 rising effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Control Of Electric Motors In General (AREA)
- Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
- Combined Controls Of Internal Combustion Engines (AREA)
Abstract
The utility model discloses an engine rotating speed sampling and controlling circuit. The engine rotating speed sampling and controlling circuit comprises a first counter, a second counter, a register, a combinational logic circuit and a controller. The first counter is electrically connected with the second counter, the register and the controller. The second counter is electrically connected with the register, the combinational logic circuit and the controller. The controller is electrically connected with the register and the combinational logic circuit. According to the engine rotating speed sampling and controlling circuit, the value of the engine rotating speed can be calculated, and whether the rotating speed is in a normal range, that is to say whether the rotating speed is between the maximum rotating speed and the minimum rotating speed, can also be directly determined; and two paths of sampling signals are compared by the controller, two pulse width modulation signals with different duty ratios are generated, an external motor can be controlled to accelerate and decelerate without CPU, and rotating speed precision can be ensured.
Description
Technical field
The utility model relates to engine speed Sampling techniques field, relates in particular to a kind of engine speed sampling and control circuit.
Background technology
Rotating speed is one of important parameter of engine, and the acquisition and processing of tach signal is an important process of engine.But, the tach signal that tradition rotating speed sample mode is just returned to sampling calculates, the size of pure calculating rotating speed, also cannot ensure the precision of the rotating speed calculating, only after rotating speed size, could judge that current rotating speed is whether in the normal range of speeds of engine calculating, speed is slow, and in the time finding that rotating speed is improper, be all often to control external motor acceleration or deceleration by central processing unit (CPU), implementation procedure is comparatively complicated.
Utility model content
The purpose of this utility model is to sample and control circuit by a kind of engine speed, solves the problem that above background technology part is mentioned.
For reaching this object, the utility model by the following technical solutions:
A kind of engine speed sampling and control circuit, it comprises the first counter, the second counter, register, combinational logic circuit and controller; Wherein, described the first counter and the second counter, register, controller are electrically connected, and for the first tach signal, second tach signal of input are sampled, obtain the first sampled signal; Described the second counter and register, combinational logic circuit, controller are electrically connected, and for to the first tach signal, second tach signal of input are sampled, obtain the second sampled signal; Described controller and register, combinational logic circuit are electrically connected, and for the count value of the first counter and the second counter is compared, produce the pulse-width signal of two different duty ratios, control external motor and accelerate, slow down.
The sampling of engine speed that the utility model provides and control circuit can not only calculation engine rotating speed size, can also directly judge that rotating speed is whether in a normal interval, whether between maximum (top) speed and minimum speed, and by controller, two-way sampled signal is compared, produce pulse-width modulation (PWM) signal of two different duty ratios, can control external motor without CPU and accelerate, slow down, ensure rotary speed precision.
Brief description of the drawings
Engine speed sampling and control circuit structure chart that Fig. 1 provides for the utility model embodiment;
The first counter works flow chart that Fig. 2 provides for the utility model embodiment;
The second counter works flow chart that Fig. 3 provides for the utility model embodiment;
The oscillogram of the first sampled signal under the rated speed that Fig. 4 a provides for the utility model embodiment;
The oscillogram of the second sampled signal under the rated speed that Fig. 4 b provides for the utility model embodiment;
The oscillogram of the second sampled signal higher than maximum (top) speed that Fig. 4 c provides for the utility model embodiment.
Embodiment
Below in conjunction with drawings and Examples, the utility model is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the utility model, but not to restriction of the present utility model.It also should be noted that, for convenience of description, in accompanying drawing, only show the part relevant to the utility model but not full content.
Please refer to shown in Fig. 1 engine speed sampling and control circuit structure chart that Fig. 1 provides for the utility model embodiment.
In the present embodiment, engine speed sampling and control circuit specifically comprise the first counter, the second counter, register, combinational logic circuit and controller.
Described the first counter and the second counter, register, controller are electrically connected, and for the first tach signal, second tach signal of input are sampled, obtain the first sampled signal.The first sampled signal is that the first tach signal and the second tach signal are sampled, and the process of sampling completes by the first counter and combinational logic circuit.
As shown in Figure 2, the first counter works flow process is as follows: the first counter starts as reset mode, initial value is Min, the D end of first sampled signal of now holding as trigger Q is 1, and the second tach signal is as the clock of the first sampled signal, so after the second tach signal rising edge comes, the first sampled signal is sampled.After the first sampled signal is height, the first counter reset signal removes, and starts counting, and when the first counter meter is to Max (maximum), now the D of the first sampled signal end is 0.After the rising edge of the first tach signal comes, the D end of the first sampled signal becomes 1, then wait until the rising edge of the second tach signal, the first sampled signal starts again sampling, the time of sampling is (Max-Min) * T, Max is the maximum of the first rolling counters forward, and Min is the minimum value of the first rolling counters forward, the cycle that T is clock signal.In the present embodiment, the bit wide of the first counter is X, and initial value is Min, and count range is Min-Max, and count frequency determines by clock signal, and the count cycle is above-mentioned (Max-Min) * T.The size of bit wide X can arrange flexibly according to different requirements.
Described the second counter and register, combinational logic circuit, controller are electrically connected, and for to the first tach signal, second tach signal of input are sampled, obtain the second sampled signal.The second sampled signal is also that the first tach signal and the second tach signal are sampled, and difference is that it is mainly that a certain section of tach signal is located to sample.
As shown in Figure 3, under the workflow diagram of the second counter: after system reset, the second counter is initial state Max, now counting enables invalidly, and the second counter keeps initial value always.When the first rolling counters forward is to Max, the second counter is cleared, and counting enables effectively simultaneously, and the second counter starts counting, and now the second sampled signal is output as high level.When the second rolling counters forward is during to Max, it is invalid that the second rolling counters forward enables, and stops counting.In the second rolling counters forward course of work, the second sampled signal is high level always, only has in the time that the second counter can not count up to Max, and the second sampled signal is output low level.In the present embodiment, the bit wide of the second counter is Y, and initial value is Max, and count range is Min-Max, and count frequency determines by clock signal, and the count cycle is above-mentioned (Max-Min) * T.The size of bit wide Y can arrange flexibly according to different requirements.
Described controller and register, combinational logic circuit are electrically connected, and for the count value of the first counter and the second counter is compared, produce the pulse-width signal of two different duty ratios, control external motor and accelerate, slow down.
The utility model can complete the sampling to the first tach signal and the second tach signal, obtains the first sampled signal, and the tach signal sampling is processed again, obtains the second sampled signal.The second sampled signal is the in the situation that of different rotating speeds, waveform only has a low level in one-period, when exceeding after certain rotating speed, waveform there will be plural low level in one-period, and lower than after certain rotating speed, waveform does not have low level in one-period, so reading after sampled signal, need not calculate the size of rotating speed, according to low level number, just can directly judge that whether it is in the normal range of speeds of engine, very fast.Controller compares two-way sampled signal, produce pulse-width modulation (PWM) signal of two different duty ratios, can directly control external motor without CPU, when engine is during higher than the fastest rotating speed or lower than low-rotate speed, pwm signal control external motor, realizes and slows down and accelerate.In addition, by adjusting the bit wide of the first counter and the second counter, can change this interval of maximum (top) speed and minimum speed, meet different demands.
After engine speed sampling and control circuit design, carry out emulation by ModelSim (emulation tool), the oscillogram obtaining by emulation is carried out the effect of proof scheme design, and Fig. 4 a is the oscillogram of the first sampled signal under rated speed; Fig. 4 b is the oscillogram of the second sampled signal under rated speed; Fig. 4 c is the oscillogram higher than the second sampled signal of maximum (top) speed.
Note, above are only preferred embodiment of the present utility model and institute's application technology principle.Skilled person in the art will appreciate that the utility model is not limited to specific embodiment described here, can carry out for a person skilled in the art various obvious variations, readjust and substitute and can not depart from protection range of the present utility model.Therefore, although the utility model is described in further detail by above embodiment, but the utility model is not limited only to above embodiment, in the situation that not departing from the utility model design, can also comprise more other equivalent embodiment, and scope of the present utility model is determined by appended claim scope.
Claims (1)
1. engine speed sampling and a control circuit, is characterized in that, comprises the first counter, the second counter, register, combinational logic circuit and controller; Wherein, described the first counter and the second counter, register, controller are electrically connected, and for the first tach signal, second tach signal of input are sampled, obtain the first sampled signal; Described the second counter and register, combinational logic circuit, controller are electrically connected, and for to the first tach signal, second tach signal of input are sampled, obtain the second sampled signal; Described controller and register, combinational logic circuit are electrically connected, and for the count value of the first counter and the second counter is compared, produce the pulse-width signal of two different duty ratios, control external motor and accelerate, slow down.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201420289434.3U CN203859711U (en) | 2014-05-30 | 2014-05-30 | Engine rotating speed sampling and controlling circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201420289434.3U CN203859711U (en) | 2014-05-30 | 2014-05-30 | Engine rotating speed sampling and controlling circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN203859711U true CN203859711U (en) | 2014-10-01 |
Family
ID=51609557
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201420289434.3U Expired - Lifetime CN203859711U (en) | 2014-05-30 | 2014-05-30 | Engine rotating speed sampling and controlling circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN203859711U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113422549A (en) * | 2021-06-29 | 2021-09-21 | 四川中微芯成科技有限公司 | PWM wave processing method of motor, motor control panel, motor and motor system |
-
2014
- 2014-05-30 CN CN201420289434.3U patent/CN203859711U/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113422549A (en) * | 2021-06-29 | 2021-09-21 | 四川中微芯成科技有限公司 | PWM wave processing method of motor, motor control panel, motor and motor system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100550631C (en) | Pulse width modulation device | |
US11791813B2 (en) | PWM generation circuit, processing circuit and chip | |
CN109412582B (en) | PWM signal sampling detection circuit, processing circuit and chip | |
CN104317253A (en) | System method for servo motor position control | |
CN105699738B (en) | A kind of AC signal effective value measurement method based on PWM | |
CN209170340U (en) | Pwm signal sample detecting circuit, processing circuit and chip | |
CN103033640A (en) | Vehicle speed real-time detection method with field programmable gate array (FPGA) | |
CN203859711U (en) | Engine rotating speed sampling and controlling circuit | |
CN112629570B (en) | Encoder filtering algorithm based on FPGA | |
CN209231361U (en) | Speed detector, processing circuit and chip based on pwm signal | |
CN103631161A (en) | Filtering method based on state machine | |
CN103869155B (en) | Method and device for electric generator frequency measurement based on PLC high-speed input | |
CN109391247B (en) | Filter, processing circuit and chip based on PWM signal | |
CN209233806U (en) | Filter, processing circuit and chip based on pwm signal | |
CN109580975A (en) | A kind of speed detector based on pwm signal, processing circuit and chip | |
CN109967894B (en) | Four-axis PEG and laser clock synchronous board card | |
CN203872095U (en) | Stepper motor control circuit in 3D printing | |
CN106559013B (en) | Brushless DC motor control system current sample method | |
CN104678122B (en) | A kind of high tooth recognition methods of rotating speed based on multiple spot bubbling method | |
CN205139221U (en) | Motor stator looks voltage detection device | |
CN209170328U (en) | PWM generative circuit, processing circuit and chip | |
CN106253763B (en) | The filtering method and device of encoder | |
CN204631519U (en) | A kind of microcontroller for Electric Machine Control | |
CN105429524A (en) | FPGA-based brushless direct current motor speed regulating system | |
CN103633996A (en) | Frequency division method for accumulating counter capable of generating optional-frequency square wave |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CX01 | Expiry of patent term |
Granted publication date: 20141001 |
|
CX01 | Expiry of patent term |