Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - tachometer

 
Thread Tools Search this Thread
Old 01-18-2005, 09:11 AM   #1
Default tachometer


Hello,

I want to create a tachometer in VHDL. What possibilities of programming
are given?

I want only ideas , no code.

Thanks

Martin



Martin Kokelmann
  Reply With Quote
Old 01-18-2005, 11:35 AM   #2
charles.elias@wpafb.af.mil
 
Posts: n/a
Default Re: tachometer

Martin Kokelmann wrote:
> Hello,
>
> I want to create a tachometer in VHDL. What possibilities of

programming
> are given?
>
> I want only ideas , no code.
>
> Thanks
>
> Martin


Martin,

This is a "pulses per unit time" problem. You will be getting N pulses
per revolution from a sensor. Your problem (simplified) is to count
these pulses for a measured time period. You can then transfer this
count to a register that feeds a display and begin the count again. So
you will need a clock signal to determine the time that the counter is
enabled. A simple state machine can determine the enable time and then
load the display register, reset the counter to 0 and restart the
measurement cycle--you don't really need to use a state machine for
this purpose; this is my personal preference, but you will probably end
up with the same logic with or without the state machine and I think a
state machine makes for easier understanding of the logic. Since the
pulse input is not synchronous with the clock, you should use a 2-D
flip flop synchronizer on the pulse input (this of course assumes that
the sensor pulses are compatible with the logic family you are using).
Another issue is converting the displayed count to RPM. The conversion
factor depends on the number of pulses per revolution and the enable
time of the counter.

Best regards,

Charles



charles.elias@wpafb.af.mil
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46