EE101Lecture3

EE101Lecture3 - Lecture 3 Slides Negative Numbers (Signed...

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

View Full Document Right Arrow Icon
© Mark Redekopp, All rights reserved Lecture 3 Slides Negative Numbers (Signed Magnitude, 2’s Complement) Radix Complement
Background image of page 1

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

View Full DocumentRight Arrow Icon
© Mark Redekopp, All rights reserved Binary Representation Systems • Integer Systems – Unsigned • Unsigned (Normal) binary –S i g n e d • Signed Magnitude • 2’s complement 1’s complement* Excess-N* • Floating Point – For very large and small (fractional) numbers • Codes –T e x t • ASCII / Unicode – Decimal Codes • Weighted Codes – BCD (Binary Coded Decimal) / (8421 Code) 2421 Code* – 84-2-1 Code • Non-weighted Codes – Excess-3 * = Not covered in this class
Background image of page 2
© Mark Redekopp, All rights reserved Interpreting Binary Strings • Given a string of 1’s and 0’s, you need to know the representation system being used, before you can understand the value of those 1’s and 0’s. • Information (value) = Bits + Context (System) 01000001 = ? 01000001 = ? 65 10 ‘A’ ASCII 41 BCD Unsigned Binary system ASCII system BCD System
Background image of page 3

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

View Full DocumentRight Arrow Icon
© Mark Redekopp, All rights reserved BCD & 7-Segment Displays a b c d e f g a b c d e f g 4-bit BCD digit BCD-to-7 segment decoder 0 0 0 1 0 1 0 1 0 1 1 1 7-Segment Displays for outputting decimal numbers
Background image of page 4
© Mark Redekopp, All rights reserved ASCII Code • Used for representing text characters • Originally 7-bits but usually stored as 8-bits in a computer • Example: – printf(“Hello\n”); – Each character is converted to ASCII equivalent • ‘H’ = 0x48, ‘e’ = 0x65, … • \n = newline character – CR = carriage return character (moves cursor to start of current line) – LF = line feed (moves cursor down a line)
Background image of page 5

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

View Full DocumentRight Arrow Icon
© Mark Redekopp, All rights reserved Binary Representation Systems • Integer Systems – Unsigned • Unsigned (Normal) binary –S i g n e d • Signed Magnitude • 2’s complement 1’s complement* Excess-N* • Floating Point – For very large and small (fractional) numbers • Codes –T e x t • ASCII / Unicode – Decimal Codes • Weighted Codes – BCD (Binary Coded Decimal) / (8421 Code) 2421 Code* – 84-2-1 Code • Non-weighted Codes – Excess-3 * = Not covered in this class
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 25

EE101Lecture3 - Lecture 3 Slides Negative Numbers (Signed...

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

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