Write a Nios II assembly program that displays a decimal digit on the green lights LED3-0 on the…

Write a Nios II assembly program that displays a decimal digit on the green lights LED3-0 on the
DE2-115 board. The other lights LED7 4 should be off. You are using memory-mapped direct
memory addresses to develop your code. If KEY2 pressed on the DE2-115 board, you should set
the number displayed on the LEDs to 0. If KEY3 pressed and SW0 is high, then increment the
displayed number to a maximum of 9. If KEY3 pressed and SW0 is low, then decrement the
number to a minimum of 0. In your program, use polled I/O to read the data registers of
the KEY and SW ports to check the status of the buttons and switches. When you are not pressing
any KEY, the Data register provides 0. When you press KEYi, the Data register provides the
value 1 in bit position i. Once a button-press is detected, be sure that your program waits until the
button is released.

 

Looking for a Similar Assignment? Let us take care of your classwork while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today!