Binary-to Decimal Exercise
[Pages:2]Binary-to Decimal Exercise
1. Build an 8-element control array on the front panel. Think of this as an 8-bit register which will contain a binary number (i. e. 1s and 0s). Label the array as binary. The binary number, that you put in the array, will have some decimal equivalent ? depending on the representation used, there are several possibilities. In this exercise we will produce vi's to form the decimal equivalents for the unsigned "integer representation" (0-255) and the "unsigned fractional representation" (0-1).
2. Place a numeric indicator on the front panel, and label it decimal. A. First wire the block diagram to produce the "integer representation" of your binary string (We are most familiar with this representation from Digital Fundamentals.) Save your vi. B. Make the alterations necessary to produce the "fractional representation". This representation is quite valuable in data acquisition: A max voltage is often known from the outset. Preemptively, divide the data samples by Vmax. The data then lies between 1 and 0, and you are attaining maximum resolution with your eight bits. Save this as a separate vi.
Binary-to-Decimal ****** Part 2
For a given binary number, B, you can produce either of two decimal equivalents: ? You can produce the tried and true integer representation, IR, or ? You can produce the fractional representation, FR. (If you haven't completed this one, note that FR = IR / 2N. )
Use techniques from previous exercises to combine IR and FR in the following useful VIs: (a) Give user the option to produce either IR or FR
(b) Let the user specify a general 16 bit binary number (integer + fraction) and show the complete decimal equivalent (IR + FR)
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- binary decimal hexadecimal conversion exercises http
- binary numbers lesson plan colorado school of mines
- cs302 digital logic design lecture 1 45
- decimal to binary binary to decimal
- converting binary to decimal a math drills
- conversion of binary octal and hexadecimal numbers
- decimals worksheets cnm
- binary decimal conversion exercises harding university
- binary decimal conversion practice
- lesson plan menifee