Lecture_5 - Binary number system, electronically encoded...

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

View Full Document Right Arrow Icon
1 Binary number system, electronically encoded information CHM6158C - Lecture 5 Jan 20 • binary code • hexadecimal code • negative values • addition/substraction • transfer of data/storage of data
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Binary number system (base 2) Two states: “up” or “down” (1 or 0 = 5 V or 0 V) 8-bit bytes (bit = b inary dig it ) = byte 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 1 2 4 8 16 32 64 128 8 entries Most significant bit (MSB) Least significant bit (LSB) Value: What decimal number does this binary code number correspond to 0001 0011 2 ? 0001 0011 2 =……. 10 What is the maximum value that can be expressed with an 8-bit code? 0 signifies that value is not included; 1 signifies that value is included. Simple addition of values.
Background image of page 2
Hexadecimal code (base 16) Group bits in fours 2 4 possibilities = 16 0,1,2,3,4,5,6,7,8,9,A,B,C.D,E,F Value? ׀ 1 ׀ 0 ׀ 1 ׀ 0 ׀ 0 ׀ 1 ׀ 1 ׀ 0 ׀ 16 0 16 1 Multiplier 6 A 10 x 16 6 x 1 + = 166 Decimal code: Notation: A6 H Binary: Binary code is long, hexadecimal code is much more efficient. Use hexadecimal numbers for
Background image of page 3

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

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

Page1 / 10

Lecture_5 - Binary number system, electronically encoded...

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

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