You are on page 1of 3

CORE1240 Homework 3 [20] Deadline: 10pm on 07 Apr (Fri)

Please submit ONE soft copy (pdf only) of your assignment to Canvas (Assignments)
before the deadline. NO LATE Submission! (Zero mark!)

1. [15] Consider the following analog signal. This signal is sampled at a sampling frequency
of 500 Hz and quantized using a 3-bit quantizer with amplitude range from -1 to 1 volt.

S2
1
0.9 X: 2
0.8 Answers
Y: 0.9789 S4
0.7
S6
0.6 S1 X: 6
0.5 X: 10
X: 0 Y: 0.7175 S5
0.4 Y: 0.6191
0.3 Y: 0.2 X: 8
0.2 Y: 0.4447
0.1 S3
0
-0.1 X: 4
-0.2 Y: 0.0606
-0.3
-0.4
-0.5
-0.6
-0.7
-0.8
-0.9
-1
0 1 2 3 4 5 6 7 8 9 10
Time(msec)

a) [3] Circle all the sample points in the graph above. Assume the first sample is at time = 0
second. Solution: samples are shown in the graph above.

1 of 3
b) [4] What are the quantization intervals (volt)? Fill the following “digital-to-analog”
conversion map.

Level Quantization intervals (volt) Digital word


7 0.75 ~ 1 111
6 0.5 ~ 0.75 110
5 0.25 ~ 0.5 101
4 0 ~ 0.25 100
3 -0.25 ~ 0 011
2 -0.5 ~ -0.25 010
1 -0.75 ~ -0.5 001
0 -1 ~ -0.75 000

c) [6] Assign a digital word to each sample point based on part b). Fill the following
table with all the samples.

Sample number Sample (time, amplitude) Digital word


1 (first sample) (0, 0.2) 100
2 (2, 0.9789) 111
3 (4, 0.0606) 100
4 (6, 0.7175) 110
5 (8, 0.4447) 101
6 (10, 0.6191) 110

d) [2] What is the resulting bit rate from this Analog to Digital converter?

𝑏𝑖𝑡𝑠
𝑏𝑖𝑡 𝑟𝑎𝑡𝑒 = 1500
𝑠𝑒𝑐𝑜𝑛𝑑

2 of 3
2. [5] Assume we have a course with 341 students and to each student we assign a grade
between A to F. The number of students obtaining each grade is shown in the figure
below:
140
120
120
108
Number of student

100

80
66
60

40

18 15
20 14

0
A B C D E F
Grade

a) [3] Find the minimum amount of bits required to record the grade of all the students.

We require 725 or 727 bits to record the grade of all the students (depending on how many
decimals you use in the calculation).

b) [2] How many bits are required to record the grades of all the students if the probability
that a student gets A or B or C or D or E or F is the same?

We require 882 or 884 or 887 bits 𝑡𝑜 𝑟𝑒𝑐𝑜𝑟𝑑 𝑡ℎ𝑒 𝑔𝑟𝑎𝑑𝑒 𝑜𝑓 𝑎𝑙𝑙 𝑡ℎ𝑒 𝑠𝑡𝑢𝑑𝑒𝑛𝑡𝑠

3 of 3

You might also like