CN108646048A - A kind of speed detector based on FPGA - Google Patents

A kind of speed detector based on FPGA Download PDF

Info

Publication number
CN108646048A
CN108646048A CN201810534183.3A CN201810534183A CN108646048A CN 108646048 A CN108646048 A CN 108646048A CN 201810534183 A CN201810534183 A CN 201810534183A CN 108646048 A CN108646048 A CN 108646048A
Authority
CN
China
Prior art keywords
module
tachometer
counter
buffer
fpga
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.)
Pending
Application number
CN201810534183.3A
Other languages
Chinese (zh)
Inventor
廖赐洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Dizhou Automation Science & Technology Co Ltd
Original Assignee
Ningbo Dizhou Automation Science & Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ningbo Dizhou Automation Science & Technology Co Ltd filed Critical Ningbo Dizhou Automation Science & Technology Co Ltd
Priority to CN201810534183.3A priority Critical patent/CN108646048A/en
Publication of CN108646048A publication Critical patent/CN108646048A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/48Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage
    • G01P3/481Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals

Abstract

The present invention relates to a kind of speed detectors based on FPGA, are realized using fpga chip, wherein enabled module works for starting counter module;Buffer module is used to be arranged the number of teeth of tachometer;Channel selecting buffer module is used to select a channel as calculating rotating speed from multiple input point;Counter module is used to calculate the rotary speed of current object automatically according to the pulse wave of input;The high bit memory module of tachometer is used for the calculated high bit Data of memory counter module;The tachometer low level member memory module is used for memory counter module calculated ground bit Data.The present invention can simulate the function of multiplexer and rotating speed calculator.

Description

A kind of speed detector based on FPGA
Technical field
The present invention relates to Rotating speed measring technical fields, more particularly to a kind of speed detector based on FPGA.
Background technology
8254 counter of generally use collocation multiplexer realizes rotary test speed function in the prior art, is counted using 8254 The rotating speed (RPM) of target object is converted into pulse wave input, when object rotary speed is faster by the function of device by electrical signal When, generated pulse number is more, otherwise sample rate can be slack-off when slowing, and defect is:When object to be calculated Rotary speed, need to accumulate enough pulse numbers, therefore response speed is slower.
Invention content
Technical problem to be solved by the invention is to provide a kind of speed detectors based on FPGA, can simulate more The function of work device and rotating speed calculator.
The technical solution adopted by the present invention to solve the technical problems is:A kind of Rotating speed measring dress based on FPGA is provided It sets, is realized using fpga chip, including following functions module:Buffer module, channel selecting buffer module, counter mould Block, enabled module, the high bit memory module of tachometer and tachometer low level member memory module;The output end of the enabled module with The Enable Pin of counter module is connected, and works for starting the counter module;The output end of the buffer module It is connected with the ends TC of counter module, the number of teeth for tachometer to be arranged;The output end of the channel selecting buffer module with The input terminal of counter module is connected, for selecting a channel as calculating rotating speed from multiple input point;The counting The output end of device module is connected with the high bit memory module of tachometer and tachometer low level member memory module respectively, for according to defeated The pulse wave entered calculates the rotary speed of current object automatically;The high bit memory module of tachometer is used for memory counter The calculated high bit Data of module;The tachometer low level member memory module is used for the calculated status of memory counter module Metadata.
The buffer module is 8 bit buffer modules, for the number of teeth that sets as 1~255.
The channel selecting buffer module is the channel selecting buffer of eight bits, and the part that can be selected is 0~255, Wherein 0~31 is channel selecting, and 32~255 be reserved function parameter at present.
Advantageous effect
Due to the adoption of the above technical solution, compared with prior art, the present invention having the following advantages that and actively imitating Fruit:The present invention simulates the function of multiplexer and rotating speed calculator using FPGA, saves PCB space, is not required to complicated circuit and sets Meter, realization method is simple, and extendibility is more preferable.
Description of the drawings
Fig. 1 is the block diagram of the present invention;
Fig. 2 is the measuring principle figure of the present invention.
Specific implementation mode
Present invention will be further explained below with reference to specific examples.It should be understood that these embodiments are merely to illustrate the present invention Rather than it limits the scope of the invention.In addition, it should also be understood that, after reading the content taught by the present invention, people in the art Member can make various changes or modifications the present invention, and such equivalent forms equally fall within the application the appended claims and limited Range.
Embodiments of the present invention are related to a kind of speed detector based on FPGA, as shown in Figure 1, using fpga chip It realizes, goes out multiple function modules, including following functions module using VERILOG languages:Buffer module, channel selecting are temporary Buffer module, counter module, enabled module, the high bit memory module of tachometer and tachometer low level member memory module;It is described The output end of enabled module is connected with the Enable Pin of counter module, works for starting the counter module;It is described The output end of buffer module is connected with the ends TC of counter module, the number of teeth for tachometer to be arranged;The channel selecting is temporary The output end of buffer module is connected with the input terminal of counter module, for selecting one to turn as calculating from multiple input point The channel of speed;The output end of the counter module stores mould with the high bit memory module of tachometer and tachometer low level member respectively Block is connected, the rotary speed for calculating current object automatically according to the pulse wave of input;The high bit storage of tachometer Module is used for the calculated high bit Data of memory counter module;The tachometer low level member memory module is counted for storing Device module calculated ground bit Data.
The workflow of the present invention is as follows:
The number of teeth of this tachometer must be first set first, and the connotation expressed by the number of teeth is that target object rotates a circle and can generate The pulse wave of how much quantity, such as the number of teeth are 60 teeth, when this object rotates a circle, it will generate 60 pulse waves.
Step 1, upper control unit is by its data write registers module RPM_TC_LATCH.
Buffer module RPM_TC_LATCH is 8 bit buffers, and the number of teeth that can be set is 1~255, because 0 is not to be inconsistent Close the state of actual use.
Step 2 sets the channel selecting of multiplexer.
Channel selecting buffer module RPM1_CH_SEL_U is the channel selecting buffer of eight bits in present embodiment, It can select any of which that can be selected as the channel for calculating rotating speed because being thus eight bit buffers from 32 input points It is 0~255 to select part, wherein 0~31 is channel selecting, 32~255 be at present reserved function parameter, sets this buffer, Complete the setting of multichannel multiplexer.
Step 3, enable start RPM tachometers.
By enabled module PRM1_EN_U, this eight bits buffer sets the change of value parameter,
When the BIT1=0 of enabled module PRM1_EN_U is then expressed as not starting;
When the BIT1=1 of enabled module PRM1_EN_U is then expressed as starting state.
As long as therefore by this bit set being " 1 ", at this time counter module RPM1_U the pulse wave of input will be counted automatically The rotary speed for calculating current object is deposited in data in the buffer of 16 bits.
The measure theory of counter module RPM1_U is as follows:
As shown in Fig. 2, starting timing when first time rising edge, edge is risen until next time.
After calculating this time parameter, you can find out the rotating speed of object.
Such as:The number of teeth is 60 teeth, and every revolution will will produce 60 pulse waves, if the calculated time is assumed to be 1ms,
1ms*60 (number of teeth)=60ms per Rev ... ... ... (the time required to every turn)
By its inverted 1/60ms (rev/sec)
It is converted into a minute rev/min
60s=1min
1/60ms*1000=1000/60s RPM=1000
Dynamic PRM numerical value at present is can be obtained according to this calculation, and calculated data is deposited in into rotating speed It counts in high bit memory module RPM1_HB_DATA and tachometer low level member memory module RPM1_LB_DATA, wherein tachometer High bit memory module RPM1_HB_DATA is for storing the high bit data of tachometer, tachometer low level member memory module RPM1_ LB_DATA is for storing the low bit data of tachometer.When upper control unit this data of reading in need, you can directly by this Data is read, and is applied to relevant control.

Claims (3)

1. a kind of speed detector based on FPGA, which is characterized in that realized using fpga chip, including following functions mould Block:Buffer module, counter module, enables module, the high bit memory module of tachometer and turns channel selecting buffer module Speed meter low level member memory module;The output end of the enabled module is connected with the Enable Pin of counter module, described for starting Counter module works;The output end of the buffer module is connected with the ends TC of counter module, for rotating speed to be arranged The number of teeth of meter;The output end of the channel selecting buffer module is connected with the input terminal of counter module, is used for from multiple defeated A channel as calculating rotating speed is selected in access point;The output end of the counter module is stored with the high bit of tachometer respectively Module is connected with tachometer low level member memory module, the rotation speed for calculating current object automatically according to the pulse wave of input Degree;The high bit memory module of tachometer is used for the calculated high bit Data of memory counter module;The tachometer is low Bit memory module is used for memory counter module calculated ground bit Data.
2. the speed detector according to claim 1 based on FPGA, which is characterized in that the buffer module is 8 Bit buffer module, for the number of teeth that sets as 1~255.
3. the speed detector according to claim 1 based on FPGA, which is characterized in that the channel selecting buffer Module be eight bits channel selecting buffer, the part that can be selected is 0~255, wherein 0~31 be channel selecting, 32~255 It is reserved function parameter at present.
CN201810534183.3A 2018-05-29 2018-05-29 A kind of speed detector based on FPGA Pending CN108646048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810534183.3A CN108646048A (en) 2018-05-29 2018-05-29 A kind of speed detector based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810534183.3A CN108646048A (en) 2018-05-29 2018-05-29 A kind of speed detector based on FPGA

Publications (1)

Publication Number Publication Date
CN108646048A true CN108646048A (en) 2018-10-12

Family

ID=63758798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810534183.3A Pending CN108646048A (en) 2018-05-29 2018-05-29 A kind of speed detector based on FPGA

Country Status (1)

Country Link
CN (1) CN108646048A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1844930A (en) * 2006-05-23 2006-10-11 北京航空航天大学 Apparatus for detecting rotation speed and direction of rotor of magnetic levitation reacted flywheel
CN102004167A (en) * 2010-10-19 2011-04-06 国电南京自动化股份有限公司 Measuring method for rotate speed of turbine
CN103018474A (en) * 2011-09-27 2013-04-03 上海航天控制工程研究所 FPGA (Field Programmable Gata Array)-based motor speed and rotating direction detecting device
CN203069611U (en) * 2012-12-17 2013-07-17 武汉理工大学 FPGA (Field Programmable Gate Array) based instantaneous rotating speed online monitoring device for ship diesel engine
CN103455002A (en) * 2013-08-30 2013-12-18 天津大学 FPGA ultra high-speed industrial control system based on Verilog HDL

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1844930A (en) * 2006-05-23 2006-10-11 北京航空航天大学 Apparatus for detecting rotation speed and direction of rotor of magnetic levitation reacted flywheel
CN102004167A (en) * 2010-10-19 2011-04-06 国电南京自动化股份有限公司 Measuring method for rotate speed of turbine
CN103018474A (en) * 2011-09-27 2013-04-03 上海航天控制工程研究所 FPGA (Field Programmable Gata Array)-based motor speed and rotating direction detecting device
CN203069611U (en) * 2012-12-17 2013-07-17 武汉理工大学 FPGA (Field Programmable Gate Array) based instantaneous rotating speed online monitoring device for ship diesel engine
CN103455002A (en) * 2013-08-30 2013-12-18 天津大学 FPGA ultra high-speed industrial control system based on Verilog HDL

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
何必威 等: ""基于FPGA的转速光电传感测量系统"", 《科学技术与工程》 *
文常保 等: ""基于FPGA的轴转物体转速测量系统设计"", 《计算机工程与设计》 *
陈峻 等: "《船舶动力装置测试技术》", 31 December 2015 *

Similar Documents

Publication Publication Date Title
CN101710136B (en) Sequence waveform generator
CN102928677A (en) Nano pulse signal acquiring method
CN106528323B (en) A kind of Nand flash data calibration method and system
CN104714129A (en) Novel electrical parameter test and experiment system based on DSP
CN106908659A (en) A kind of signal source stability measurement system and method
CN102539864B (en) Digital oscilloscope and signal measurement method
CN109283354A (en) A kind of change M/T speed-measuring method based on incremental optical-electricity encoder
CN108519521A (en) Capacitance measurement system, method and apparatus
CN104123966B (en) A kind of reading speed measuring circuit based on automatically periodicity read operation
CN109283833A (en) A kind of time statistical system and method
CN201331680Y (en) Time interval measuring instrument based on FPGA
CN206993091U (en) A kind of clock data recovery device
CN108646048A (en) A kind of speed detector based on FPGA
US10680792B1 (en) Systems and methods for timing a signal
CN111769822A (en) Frequency measuring device
CN111092611A (en) Signal processing device and method with small edge slope
CN109030934A (en) A method of improving peak power measurement speed
CN107621570A (en) A kind of digital frequency meter
CN104793539B (en) Multinode gating monitoring system based on pulse
CN107945834A (en) Memorizer test device and test method
CN106814248A (en) A kind of data processing method and device in digital Frequency Measuring
CN207690508U (en) Memorizer test device
CN107543602A (en) It is a kind of to be designed based on the virtual oscilloscope of Labview and sound card
CN101561455B (en) SoC instantaneous waveform recorder
CN201278026Y (en) Ground magnetic nuclear resonance signal source

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181012