Thursday, October 17, 2019
Hardware Systems & Design Assignment Example | Topics and Well Written Essays - 2000 words
Hardware Systems & Design - Assignment Example Direct Input and Output mechanism is still a requirement during the process of interfacing the measurement devices to the computer, which consist of an indicator light, buttons the binary sensing unit and the switches. A typical SRF05 ultrasonic ranger is shown below. The program is implemented as a C language program and its execution takes place in Altera Nios 2 IDE. This requires the terminal closed for a start of a new one to change the register (Null and Lobur 2006, p53). The Altera development environment is then started as shown in figure 2 below. The next step is to import the code into the workspace, by browsing to find the directory. The Projects window is now able to show the selected program code as well as all the header files as shown in figure 3 below. By clicking on the arrow next to the name of the code inside the project explorer and double clicking the program name of the C program source code. The C file opens inside the code editor as shown below. The requisite step is to ensure that the DE0 board and the USB port are connected on the computer and the power is turned on through the big red button. After powering, the NIOS board show NIOS on the 7 segment display. The lit LED will be on and off at intervals. In the eighth line 8: the LED value is set to 0x4, which essentially lights one LED. Lines 16 and 19: tests for the LED value, but does not alter it. In this case, the LED value needs to be reset to 0x2AA, whose binary equivalent is (0000-0010-1010-1010). The next step is to click on the ââ¬Å"Runâ⬠command to compile and download the program to the DE0 board. The change in delay is created by modifying the while loop and altering the value 200000 to 2000. The speed at which the light flashes on the LED increased upon saving and running the program with the updates. The results of the program are displayed in the 7
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.