LAB_5_Exercises - Lab 5 Exercises Exercise 1 A binary digital byte is an eight-object logic gate For example let's create an eight LED byte

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 5 Exercises Exercise 1: A binary digital byte is an eight-object logic gate. For example, let's create an eight LED byte organized as shown on the figure below: With the word “binary” it is meant that this logic gate takes logic arguments that comply with the binary system of numbers: 2 0 =1, 2 1 =2, 2 2 =4, 2 3 =8, 2 4 =16, 2 5 =32, 2 6 =64, 2 7 =128. For example, if we write a 1 (which is 00000001 in binary language) to the binary byte, then LED number 0 will light up. If we write 32 (which is 00100000 in binary language) to the binary byte, then LED number 5 will light up. If we want LED’s number 3 and 6 to light up, we must write 8+64=72 (which is 01001000 in binary language). If we want all the LED’s to light up, we must write 255 (which is 11111111 in binary language) to the binary gate. There are two ways to light up the LED's that we want. In the first one, we send an array of Booleans made up of 8 Booleans with each Boolean corresponding to one of the LED’s. In the second method, we send a number to the digital byte (the method explained above). Create a VI that contains the LED arrangement shown above. Light up the LED’s 0,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/07/2011 for the course MECH 430 taught by Professor Najibmetni during the Summer '08 term at American University of Beirut.

Page1 / 2

LAB_5_Exercises - Lab 5 Exercises Exercise 1 A binary digital byte is an eight-object logic gate For example let's create an eight LED byte

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online