Tutorial 2 Solution - Question 6 Decimal 4-bit...

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

View Full Document Right Arrow Icon
EE 2000 Logic Circuit Design, Semester A, 2007/08 Tutorial 2 Level 1 Question 1: Bit Representation No. of bit used Binary 1101 0111 8 bits 8421 Code 0010 0001 0101 12 bits 2421 Code 0010 0001 1011 12 bits Exess-3 Code 0101 0100 1000 12 bits 2 of 5 Code 10010 10100 01010 15 bits ASCII 0110010 0110001 0110101 21 bits Question 2: Gray Code (a) gray = 1011101 (b) binary = 10001000101 (c) binary = 111011100, gray = 100110010 Question 3: 1 0 1 1 0 0 0 0 0 1 1 1 1 1 1 1 0 1 1 0 1 0 0 0 0 0 1 1 1 0 1 1 0 0 1 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Level 2 Question 4: (a) 142631045 (b) for error detection (to detect single digit error), using mod10 algorithm Question 5: (a) Decimal BCD (8, 4, -2, -1) Code 0 0000 1 0111 2 0110 3 0101 4 0100 5 1011 6 1010 7 1001 8 1000 9 1111 (b) self-complementing, the bits 0 and 1 are equal in frequency
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Question 6: Decimal 4-bit Unit-Distance Code 0000 1 0001 2 0011 3 0010 4 0110 5 0111 6 0101 7 0100 1 Frame bar Frame bar Check sum digit 4 2 6 3 1 4 0 4 5 8 1100 9 1000 Question 7: (a), (b) ↓ 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 0 1 ← 0 0 1 1 1 1 1 0 1 0 1 0 0 0 1 0 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 0 1 (c) Yes, possible. Some examples of three bits error: ↓ ↓ ↓ 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 ← 0 1 0 0 1 1 0 1 ← 0 1 0 0 1 1 0 1 ← 0 0 1 1 1 1 1 0 0 0 1 1 1 1 1 0 0 0 1 1 1 1 1 0 1 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 1 0 0 1 1 0 1 1 1 0 0 1 1 0 1 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 1 1 1 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1 0 1...
View Full Document

This note was uploaded on 01/11/2011 for the course EE 2000 taught by Professor Vancwting during the Fall '07 term at City University of Hong Kong.

Page1 / 3

Tutorial 2 Solution - Question 6 Decimal 4-bit...

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

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