Forum Discussion
Altera_Forum
Honored Contributor
11 years agohow to make lpm_counter count just once
Hello,
I have a project I have to make in block diagram. I have to count 50 us and do some action after. I am using the lpm_counter with the good modulus and then lpm_compare to compare the result with a constant and see when I arrive at 50us. This is working, the problem is lpm_counter starts over and over again once it arrived at its maximum value (modulus). How can I make the lpm_counter stop after the first count? Thanks2 Replies
- Altera_Forum
Honored Contributor
create a clock enable - turn it off when it reaches the max value
- Altera_Forum
Honored Contributor
Thank you for your fast response, I spent 1 day trying to figure it out, I imagined it has to be something easy like that.