Problems 1 (Chapter1&2)
Problems 1 (Chapter1&2)
10
0 t (µ s)
0 1 2 3 4
Figure 1
2. A pulse waveform with a frequency of 20 kHz is applied to the input of a counter. During 40 ms,
how many pulses are counted?
3. Consider a register that can store eight bits. Assume that it has been reset so that it contains zeros
in all positions. If you transfer four alternating bits (0101) serially into the register, beginning with a 1
and shifting to the right, what will the total content of the register be as soon as the fourth bit is stored?
4. Label the pin numbers on the packages in Figure 2. Top views are shown.
Figure 2
Binary Numbers
5. Convert the following binary numbers to decimal:
(a) 001 (b) 010 (c) 101 (d) 110
(e) 1010 (f) 1011 (g) 1110 (h) 1111
6. Convert the following binary numbers into decimal:
(a) 100001 (b) 100111 (c) 101010 (d) 111001
(e) 1100000 (f) 11111101 (g) 11110010 (h)
11111111
7. Convert each binary number to decimal:
(a) 110011.11 (b) 101010.01 (c) 1000001.111
(d) 1111000.101 (e) 1011100.10101 (f) 1110001.0001
(g) 1011010.1010 (h) 1111111.11111
8. What is the highest decimal number that can be represented by each of the following numbers of
binary digits (bits)?
(a) two (b) three (c) four (d) five (e) six (f) seven (g) eight
(h) nine (i) ten (j) eleven
9. How many bits are required to represent the following decimal numbers?
Digital Electronics, Chapters 1 & 2
(a) 5 (b) 10 (c) 15 (d) 20 (e) 100 (f) 120 (g) 140 (h) 160
10. Generate the binary sequence for each decimal sequence:
(a) 0 through 7 (b) 8 through 15 (c) 16 through
31
(d) 32 through 63 (e) 64 through 75
Decimal-to-Binary Conversion
11. Convert each decimal number to binary by using the sum-of-weights method:
(a) 12 (b) 15 (c) 25 (d) 50 (e) 65 (f) 97 (g) 127 (h) 198
12. Convert each decimal fraction to binary using the sum-of-weights method:
(a) 0.26 (b) 0.762 (c) 0.0975
13. Convert each decimal number to binary using repeated division by 2:
(a) 13 (b) 17 (c) 23 (d) 30 (e) 35 (f) 40 (g) 49 (h) 60
14. Convert each decimal fraction to binary using repeated multiplication by 2:
(a) 0.76 (b) 0.456 (c) 0.8732
Binary Arithmetic
15. Add the binary numbers:
10 + 10 (b) 10 + 11
(a) (c) 100 + 11 (d) 111 + 101 (e) 1111 + 111 (f) 1111 + 1111
16. Use direct subtraction on the following binary numbers:
(a) 10 - 1 (b) 100 - 11 (c) 110 – 100
(d) 1111 - 11 (e) 1101 - 101 (f) 110000 -
17. Perform the following binary multiplications: 1111
(a) 11 * 10 (b) 101 * 11 (c) 111 * 110
(d) 1100 * 101 (e) 1110 * 1110 (f) 1111 * 1100
18. Divide the binary numbers as indicated:
(a) 110 / 11 (b) 1010 / 10 (c) 1111 / 101
Signed Numbers
23. Express each decimal number in binary as an 8-bit sign-magnitude number:
+12
(a) (b) 268 (c) +101 (d) 2125
26. Determine the decimal value of each signed binary number in the sign-magnitude form:
10011001
(a) (b) 01110100 (c) 10111111
27. Determine the decimal value of each signed binary number in the 1’s complement form:
(a) 10011001 (b) 01110100 (c) 10111111
28. Determine the decimal value of each signed binary number in the 2’s complement form:
(a) 10011001 (b) 01110100 (c) 10111111
29. Express each of the following sign-magnitude binary numbers in single-precision floating point
format:
0111110000101011
(a) (b) 100110000011000
30. Determine the values of the following single-precision floating-point numbers:
(a) 1 10000001 01001001110001000000000
(b) 0 11001100 10000111110100100000000
Hexadecimal Numbers
37. 36. Convert each hexadecimal number to binary:
(a) 4616 (b) 5416 (c) B416 (e) FA16 (d) 1A316
(f) ABC16
37. Convert each binary number to hexadecimal:
(a) 1111 (b) 1011 (c) 11111
(d) 10101010 (e) 10101100 (f) 10111011
38.Convert each hexadecimal number to decimal:
(a) 4216 (b) 6416 (c) 2B16 (d) 4D16
Digital Electronics, Chapters 1 & 2
(e) FF16 (f) BC16 (g) 6F116 (h) ABC16
39. Convert each decimal number to hexadecimal:
(a) 10 (b) 15 (c) 32 (d) 54
(e) 365 (f) 3652 (g) 7825 (h) 8925
40. Perform the following additions:
(a) 2516 + 3316 (b) 4316 + 6216 (c) A416 + F516 (d) FC16 + AE16
41. Perform the following subtractions:
(a) 6016 ─ 3916 (b) A516 ─ 9816 (c) F116 ─ A616 (d) AC16 ─ 1016
Octal Numbers
42. Convert each octal number to decimal:
(a) 148 (b) 538 (c) 678 (d) 1748
43. Convert each decimal number to octal by repeated division by 8:
(e) 124 (f) 156 (g) 654
A
B X
C
D
Fig.3
54. For the set of input waveforms in Figure 4, determine the output for the gate shown and draw the timing diagram.
Digital Electronics, Chapters 1 & 2
A
B B X
C
B A
B X
C
C D
D
A
A X
B
B
A
X
B
A
B
C
Figure 4
56. Determine tPLH and tPHL from the oscilloscope display in Figure 5. The readings indicate volts/div and sec/div for each
channel.
Input
Output
Ch12 V Ch22 V 5 ns
Figure 5
57. Examine the conditions indicated in Figure 6, and identify the faulty gates.
Figure 6
58. Determine the faulty gates in Figure 7 by analyzing the timing diagrams.
Digital Electronics, Chapters 1 & 2
Figure 7
59. Using an oscilloscope, you make the observations indicated in Figure 8. For each
observation determine the most likely gate failure.
Figure 8