Вы находитесь на странице: 1из 6

ANSWER FOR JANUARY 2012 DIGITAL SYSTEMS SECTION A Question 1: (a) What is decimal value represented if the number

r is stored as BCD 8421, BCD 5421 and BCD excess 4?

i.

1000 0111 BCD 8421 Decimal BCD 5421 Decimal BCD excess 4 Decimal 1000 0111

8
1000

7
0111

5
1000

7
0111

ii.

0011 0100 BCD 8421 Decimal BCD 5421 Decimal BCD excess 4 Decimal 0011 0100

3
0011

4
0100

3
0011

4
0100

iii.

1100 1001 BCD 8421 Decimal BCD 5421 Decimal BCD excess 4 Decimal 1100 1001

8
1100

7
1001

5
1100

7
1001

(b) Express UniKL in ASCII-7 by using even parity and insert the data in gray code based microcontroller.

WORD ASCII-7 Even Parity Gray Code

1010101 1101110 1101001 1001011 1001100 01010101 01101110 01101001 01001011 01001100

Question 2: (a) Circuit Diagram,

A B C F

i.

Write function (F) of the circuit. Gate 1: A Gate 2: A + B Gate 3: (A + B) = A + B Gate 4: (A + B) . B = AB + BB Gate 5: ((A + B) . B) = A B + BB Gate 6: ((A + B) . B) . C = ABC + BBC Gate 7: (((A + B) . B) . C) + B = ABC + BBC + B

The answer is,

F = (((A + B) . B) . C) + B

ii.

Calculate Minterm of F: Truth Table B C

0 0 0 0 1 1 1 1

0 0 1 1 0 0 1 1

0 1 0 1 0 1 0 1

0 1 1 1 0 1 1 1

F = ABC + ABC + ABC + ABC + ABC + ABC


iii. Minimize circuit by using Karnaugh Maps (K-Maps):

BC A

00 0 0

01 1 1

11 1 1

10 1 1

0 1

*Group of 4 minterms of K-Maps,

F = ABC + ABC + ABC + ABC F = (A + A) BC + (A + A) BC F = (1) BC + (1) BC F = BC + BC F = (B + B) C F = (1) C F=C


*Group of 2 minterms of K-Maps.

F = ABC + ABC F = (A + A) BC F = (1) BC F = BC


**The minimized function of F is BC + C.

iv.

Draw the minimize circuit:

B C F

Question 3: Calculate the following by using 2s Complement. Convert the decimal value into binary first. Justify your answer by converting 2s Complement result in decimal.

i. -10 -7 1010 = 10102 1010 Binary (1010) 0101 1s Complement (-1010)


1

0110 2s Complement 710 = 01112 0111 Binary (710) 1000 1s Complement (-710) 1 1001 2s Complement ii. -3 -5 310 = 00112 0011 Binary (310) 1100 1s Complement (-310) 1 1101 2s Complement 510 = 01012 0101 Binary (510) 1010 1s Complement (-510) 1 1011 2s Complement

iii. -47 -3 4710 = 2F16 = 00111112


Pad to 8-bits binary of 00111112 = 000111112

00011111 Binary (2F16) 11100000 1s Complement (-2F16) 1 11100001 2s Complement

310 = 00112 0011 Binary (310) 1100 1s Complement (-310) 1 1101 2s Complement

iv. -14 -10

1410 = 11102 1110 Binary (1410) 0001 1s Complement (-1410) 1 0010 2s Complement 1010 = 10102 1010 Binary (1010) 0101 1s Complement (-1010) 1 0110 2s Complement

Question 4: The following English expression describes the way a logic circuit needs to operate in order to drive a seatbelt warning indicator in a car. If the driver is present and the driver is not buckled up and the ignition

switch is on. Then turn on the warning light.


Describe the circuit using Boolean algebra, schematic diagram with logic symbols, truth table and the timing diagram. **The answer still in,

K.I.V

Вам также может понравиться