EE101Lecture3

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

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

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

View Full Document
© 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
© 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

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

View Full Document
© 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
© 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)

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

View Full Document
© 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
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online