Forum Discussion
Altera_Forum
Honored Contributor
9 years ago0-15 counter
Hi Guys, Can anyone help me i am nee to altera programming. Can anyone help me i am trying to write an up and down counter that counts from 0-15 with 2 bushbuttons and 2 7 segments display ...
Altera_Forum
Honored Contributor
9 years agoSo what step would you like next? How about generating a count on your hex display?
Create a counter that divides your 50MHz clock by "enough bits" that the MSBs change slow enough that you can read them when connected to the hex display. If you dig around the github repo you'll see examples for some Xilinx boards. If you tell me what Altera board you are using, I probably have it too, and will post code to that repo. Cheers, Dave