ECE 178 - Embedded Systems Assignment Four – Input/Output Programming and Polling Technique for I/O Communication Introduction In this experiment, you will practice the essential polling I/O...

need to use altera monitor program and DE2-115 board and nios II processor


ECE 178 - Embedded Systems Assignment Four – Input/Output Programming and Polling Technique for I/O Communication Introduction In this experiment, you will practice the essential polling I/O communication technique on using the HEX displays and buttons of the DE2 115 board. The Polling I/O is a technique to monitor an I/O port and to trigger an appropriate action when a change is detected. For example, with the polling technique, the edge capture register is checked to determine if a falling edge of one of the pushbuttons has been detected. At the time you configured the PIO in Qsys, you should have specified the edge transition of the external signals. Part One Memory Mapped I/O Communication 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. Part Two – Scrolling Message Write an assembly program that scrolls “Hello ECE 178 ” across the HEX display of the board from left to right across the HEX display. Part Three– Scrolling Message using the Push Buttons Modify your program to scroll the “Hello ECE 178” pattern. The display pattern should be based on the pushbutton switch 1 or 2. When pushbutton one pressed, the pattern should start scrolling from left to right across the HEX display. If the pushbutton two pressed, the display should change the direction of the scroll from right to left. Introduction Part One Memory Mapped I/O Communication Part Two – Scrolling Message Part Three– Scrolling Message using the Push Buttons
Mar 09, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here