Question: In assembly code, with Nios II processor. Count how many times the push button has been pressed and show the number on the 7-segment displays
Count how many times the pushbutton has been pressed and show the number on the 7-segment displays in Hexadecimal representation. Whenever it counts to the number which exceeds 0xFF (256), the counter will be set to '1' (Ox01) and counts all over again. To notice that, the scheme for counting is supposed to be positively edge-triggered. That is to say, it only counts once when the KEY1 changed from unpressed condition to pressed condition. KEY1 cnt++ Cnt++ Cnt+ cnt+t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
