1 / 13

Numbers and number systems

Numbers and number systems. Lecture 2. Some material from the last lecture. Electronic computers represent information as voltage levels. To make the computer hardware simple and reliable, computers represent information in binary form.

Download Presentation

Numbers and number systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Numbers and number systems Lecture 2

  2. Some material from the last lecture • Electronic computers represent information as voltage levels. • To make the computer hardware simple and reliable, computers represent information in binary form. • example: voltages greater than 3V are interpreted as representing one value (called “1”), voltages less than 2V are interpreted as representing another value (called “0”). • In principle, could use more voltage levels. • example: 0 to .75V represents “0”, 1 to 1.75V represents “1”, 2 to 2.75V represents “2”, and so forth. • In practice, this is rarely done. • requires more complex circuits • circuits are more susceptible to noise, hence less reliable

  3. 5v 4v 3v 2v 1v 0v Undefined High Undefined High Low Low noise margin 3 V noise margin 1 V Some material from the last lecture • Computers, like all electronic systems, are affected by noise. • noise has various sources (nearby signal changes, thermal vibrations of molecules in semiconductor materials, . . . ) • in computers, noise can cause binary signals to be misinterpreted • The noise margin is the amountof noise that a system cantolerate and still correctlyidentify a logic high or low.

  4. Radix number systems • Some number of positions and some number of symbols • The number of positions varies by context • The number of symbols is a property of the number system • Decimal -- 10 symbols • Binary -- 2 symbols • Octal -- 8 symbols • Hexadecimal -- 16 symbols

  5. Start with whole numbers • Each position has a value • Each symbol has a value • Multiply the value of the symbol by the value of the position, then add • In decimal, 3874 means • 3 times 1,000 • plus 8 time 100 • plus 7 times 10 • plus 4 times 1

  6. Decimal, binary, octal, hex • In decimal there are 10 symbols (0..9) and the value of each position is a power of 10. • 100 = 1 = value of the units position • 101 = 10 = value of next position to the left • etc. • In binary, there are 2 symbols, 0 and 1, and the value of each position is a power of 2. • In octal, 8 symbols, and powers of 8 • In hexadecimal, 16 symbols, and powers of 16

  7. Most Significant digit Decimal Number: 378.4 Least Significant digit . is called the radix point 3 is the MSD 4 is the LSD

  8. Least Significant bit Most Significant bit 110010012 = 127+ 126 + 123 + 120 = 201 Least Significant bit Most Significant bit 110010.012 = 125+ 124 + 121 + 12-2 = 50.25

  9. K, M and G • 210 is referred as K (kilo) • 220 is referred as M (mega) • 230 is referred as G (giga)

  10. Trinary Numbers Trinary number : 110010023 110010013 = 137+ 136 + 133 + 230 = 2945

  11. Octal Numbers Octal number : 127.48 110010013 = 182+ 281 + 780 + 48-1 = 87.5

  12. Hexadecimal Numbers Hexadecimal number :FA9H FA9H = 15162 + 10161 + 9160 = 4009

  13. Things to do • Review from your class notes what we discussed today. • Conversions between Number Systems • Binary, octal and hexadecimal • Solve 1-6 before coming to the class

More Related