Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

how 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?

Thanks

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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.