ECE
ECE 1574 Week 2 Data Types.docx

ECE 1574 Week 2 Data Types.docx - ECE1574 Problem Solving...

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

ECE1574 – Problem Solving for Engineers With C++ Page 1 of 3 Week 2 – Lecture Notes Data Representation Computers store and execute instructions using binary representations for data and instructions. It is important for you to understand how computers store data. The smallest unit is a bit, represented by a binary number (0 or 1). Values of the bit, 1 or 0, may correspond to voltage levels. For example, “high” voltage may be interpreted as “1” and “low” voltage as “0”. In a 5-volt system, “high” voltage may be 3.5 to 5 V, and “low” voltage may be 0 to 1.5V. That way, there is no ambiguity in the value of the bit. Eight bits bundled together create a byte. 0 1 1 0 0 1 0 1 What is the largest number that can be represented in a byte? Each bit is weighted according to its position. LSB has 2 0 weight (or 1) (LSB = least significant bit, the bit with the smallest weight and rightmost position) Next bit to the left has 2 1 weight Next bit to the left has 2 2 weight . . . MSB has 2 7 weight (or 128) (MSB = most significant bit, the bit with the highest weight and leftmost position) If all bits have a value of 1, the number is 255. This is the largest number that can be stored with 8 bits.
Image of page 1

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

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '08
  • RPBroadwater

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern