{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

218L3F08a - ESE218 Lecture 3 Decimal codes Gray code Error...

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

View Full Document Right Arrow Icon
9/9/08 ESE218 Fall 2008 Lecture 3 1 Outline Decimal codes Binary-coded decimals (BCD) BCD addition Representation of negative numbers 10’s complements 9’s complements Self-complementing codes Excess-3 2421 Reflected Gray code Angular position encoder Summary ESE218 Lecture 3 Decimal codes. Gray code. Error detection
Background image of page 1

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

View Full Document Right Arrow Icon
9/9/08 ESE218 Fall 2008 Lecture 3 2 Binary coded decimals 0101 5 0100 4 0011 3 1000 8 0111 7 0110 6 0000 0 BCD Digits 0010 2 - 9 1 6 unused codes 1001 0001 17 10 = 0001 0111 BCD 25 10 = 0010 0101 BCD + 0011 1100 11 carry Result of a bit-by-bit addition is not a BCD number 0110 = +6 if sum > 9 + 0011 0010 1 1 carry 42 10 = 0100 0010 BCD Weighted code
Background image of page 2