Академический Документы
Профессиональный Документы
Культура Документы
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.
1010101 1101110 1101001 1001011 1001100 01010101 01101110 01101001 01001011 01001100
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
F = (((A + B) . B) . C) + B
ii.
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
BC A
00 0 0
01 1 1
11 1 1
10 1 1
0 1
iv.
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.
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
310 = 00112 0011 Binary (310) 1100 1s Complement (-310) 1 1101 2s Complement
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
K.I.V