Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   VHDL (http://www.velocityreviews.com/forums/f18-vhdl.html)
-   -   VHDL PULSE COUNTER - PLS HELP (http://www.velocityreviews.com/forums/t57417-vhdl-pulse-counter-pls-help.html)

crazy_kuts 03-29-2006 11:35 PM

VHDL PULSE COUNTER - PLS HELP
 
Hi all,

I would appreciate any help anyone can provide. I am sending a random
number to a CPLD pin from another device. I need to write VHDL code to
count how many pulses are coming through in a space of 1 second. I also
need to send this number of pulses out of one of the CPLD pins somehow. I
would GREATLY appreciate any help,code, tutorial referal....from
anyone...thnx in advance.


Dave Pollum 03-30-2006 06:50 PM

Re: VHDL PULSE COUNTER - PLS HELP
 

crazy_kuts wrote:
> Hi all,
>
> I would appreciate any help anyone can provide. I am sending a random
> number to a CPLD pin from another device. I need to write VHDL code to
> count how many pulses are coming through in a space of 1 second. I also
> need to send this number of pulses out of one of the CPLD pins somehow. I
> would GREATLY appreciate any help,code, tutorial referal....from
> anyone...thnx in advance.


This should get you started: Create a 1-second timer. When you start
this timer, its output is HI. When the timer expires, its output is
LO. Feed this output into the enable pin of your counter that counts
pulses. This ensures that your pulse counter only runs during that
1-second period.
-Dave Pollum



All times are GMT. The time now is 08:26 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.