Tuesday, June 11, 2019
Hardware Systems & Design Assignment Example | Topics and Well Written Essays - 2000 words
Hardw ar Systems & Design - Assignment ExampleDirect Input and Output implement 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 broadcast 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 commandment 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 address of the code inside the project explorer and double clicking the program name of the C program source code. The C file o pens 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 part 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 weight 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 closed circuit 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.