<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Digital Tachometer - VHDL' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Digital Tachometer - VHDL' posted on the 'Electronics development' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 16:40:30 -0700</pubDate>
    <lastBuildDate>Tue, 18 Jun 2013 16:40:30 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Digital Tachometer - VHDL</title>
      <link>http://www.programmersheaven.com/mb/electronics/427987/427987/digital-tachometer---vhdl/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have this project where I have to design a tachometer using VHDL. The thing is I m pretty new to the field of electronic projects and I m very new to VHDL.&lt;br /&gt;
The project asks me to count the Rotations/per Minute from a motor.&lt;br /&gt;
It has to be in the range 19-98 RPM, the measurement time is 1.1s, and the display resolution is 0.1 .&lt;br /&gt;
&lt;br /&gt;
The good part is that I dont have to create a system to get this rotations, they are given to me thru a generator. I just have to count the pulses and display the result.&lt;br /&gt;
&lt;a href="http://imageshack.us/photo/my-images/546/blockvk.jpg"&gt;http://imageshack.us/photo/my-images/546/blockvk.jpg&lt;/a&gt;&lt;br /&gt;
So, I tought I'll use an AND gate with the signal from the general as one input and the clock divided so I'll obtain the period of 1.1s .&lt;br /&gt;
&lt;a href="http://imageshack.us/photo/my-images/839/clockbg.jpg/"&gt;http://imageshack.us/photo/my-images/839/clockbg.jpg/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
What I have to do next is when i press a button it will count the pulses for 1.1s and then display the result. [During counting the display will be OFF].&lt;br /&gt;
&lt;br /&gt;
Sorry for the long post but the first problem resumes to this. How do i design a clock divider so I can get a period of 1.1s.&lt;br /&gt;
I have a basic clock divider code where i count the rising edges and then i change the state of clock. But how many edges i have to count?&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;ENTITY CLKDIV IS
PORT(
CLK: IN STD_LOGIC;
CLKOUT: OUT STD_LOGIC
);
END CLKDIV;

ARCHITECTURE DIV OF CLKDIV IS
BEGIN
PROCESS (CLK)
VARIABLE COUNT: INTEGER RANGE 0 TO ????  :=0;
VARIABLE STATE: STD_LOGIC := '1'; 
BEGIN
IF(RISING_EDGE (CLK)) THEN 
 IF(COUNT=  )THEN
COUNT:=0;
STATE:= '1';
ELSE
COUNT := COUNT+1;
END IF;
 IF(COUNT=)
STATE:= NOT STATE;
END IF;
END IF;
CLKOUT &amp;lt;= STATE; 
END PROCESS;
END DIV;
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/427987/427987/digital-tachometer---vhdl/</guid>
      <pubDate>Sun, 25 Mar 2012 01:21:31 -0700</pubDate>
      <category>Electronics development</category>
    </item>
  </channel>
</rss>