EENG484 Midterm Sample
EENG484 Midterm Sample
Time: 75 minutes
There are seven questions in the booklet each has several parts, please answer all parts of the seven
questions to the best of your ability.
Marking Scheme
1. This booklet contains 9 pages including this one. Make sure all these pages are attached.
2. Closed book examination.
3. Do not take the staple out. The exam booklet must remain intact.
4. Cheating penalty will be an “F” grade on the exam.
5. Programmable calculators are allowed.
6. Mobile phones/devices are to be turned off and stowed away. Good Work!
1/9
QUESTION I (10 points)
Mark the right answer for the following questions:
1- The following circuit represent a ………………..with cut off frequency of …………..:
2- According to the following LED characteristics; how much should be the series resistor when the
supply voltage is 9 VDC?
a. 340 Ω.
b. 330 Ω.
c. 2.8 kΩ.
d. 2 kΩ.
3- The “ address and data buses” are of different sizes and can be accessed simultaneously in the PIC16
microcontroller of:
a. Harvard architecture
b. Von Neumann architecture
c. Both architectures
d. None of the above
4- The “ROM” is a non-volatile memory type in which the data is stored temporally while the power is
ON.
a. True
b. False
2/9
QUESTION II (20 points: 5 points each)
1- In a data acquisition system, the following circuit is placed before the ADC. What is the role of this
circuit?
2- List 4 functions that can be a part of the signal conditioning circuit design?
3- What is the main difference between “Digital ramp ADC” and “Successive Approximation ADC”?
List the electronic components in each ADC (without drawing).
4- The audible sound is known to be between [20 Hz-20 kHz]. If you are recording a song on a digital
audio CD. What should be the sampling rate of the audio CD?
3/9
QUESTION III: (15 points) Microcontroller
3- What is the stack memory? How many registers are in the stack memory of the PIC16
microcontroller?
4- Write a 2 line code that set port A as follows (assume that you are working in Bank1):
RA0 INPUT
RA1 OUTPUT
RA2 OUTPUT
RA3 OUTPUT
RA4 OUTPUT
RA5 OUTPUT
RA6 OUTPUT
RA7 OUTPUT
bcf TEMP, 5
bsf TEMP, 7
4/9
QUESTION IV (10 points)
5/9
QUESTION V (10 points)
You were asked to design a device that records an electromyography EMG signal from the muscle
and drive a prosthetic hand. The significant EMG activity happens between 5 Hz and 450 Hz. The
EMG signal is in mV and need to be amplified. Also, as shown in the figure the EMG signal needs
rectification before being converted to digital for further processing. Note that the fingers move by
specific analog motors. Design an antialiasing filter (specify a cutoff frequency range) and sampling
rate range.
EMG signal
6/9
QUESTION VI (15 points)
The analog input channel voltage range for a PIC16 Microcontroller is limited to the positive range
0-Vref. Many situations require a digitized mapping from bipolar analog signals to unipolar signals.
Design a simple resistive network to translate a bipolar voltage range of ±10V to a unipolar range of
0 - 3 V, assuming Vref is +3 V.
7/9
QUESTION IV (20 points)
The “Bourdon tube” is an analog pressure gauge with a full scale of 100 psi.
a) Design a flash 4-bit analog to digital converter whose range is between 0 and 5V (full range = 5 v)
that can be connected to this pressure gauge. (Identify all components in the circuit and state how
many are needed).
b) For how many divisions the input signal can be divided?
c) What is the smallest detectable voltage (code width Vcw)?
d) Write the input output table of the designed ADC.
8/9
9/9