VHDL PULSE COUNTER - PLS HELP

C

crazy_kuts

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.
 
D

Dave Pollum

crazy_kuts said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top