Altera_Forum
Honored Contributor
13 years agoUsing LPM_COUNTER carry out to stop wraparound
I need to stop and up/down counter (implemented using LPM_COUNTER) from overflowing. The documentation doesn't really describe the behaviour of the carry out port, so can anyone tell me if ANDing the carry out in to the cnt_en input will do this for me? I'm worried that it will lock up at max or zero even when I change direction to count away from the overflow.