Forum Discussion
Altera_Forum
Honored Contributor
15 years agoYou are using the push button for clk ?
Is the led hanging on the most significant BCD (counts 10 , 20 , 30 , ...) or the least significant BCD (counts 1 , 2 , 3 , ... , 9) ? in this case (every 31 counts) u need to hang it on the least significnat BCD (in your image the lower one). In the other one LED will be left open. What happens is : The lower one counts every time u push the button. When it reaches 9 the uppen one goes one up. So the upper one counts every 10 times. If u place "if (count_counter=2) then ... " in the upper one, it will remain high for 10 times or from 20 to 29.