Frequency Resolution - Microcomputer Interfacing Laboratory - Exam, Exams of Microcomputers

Main points of this exam paper are: Frequency Resolution, Maximum Frequency, Waveform Voltage Resolution, Minimal Spread of Spectral Leakage, Microphone, Instrumentation, Amplifier

Typology: Exams

2012/2013

Uploaded on 04/01/2013

saji
saji 🇮🇳

4.5

(2)

54 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Name (Last, First)
UNIVERSITY OF CALIFORNIA
College of Engineering
Electrical Engineering and Computer Sciences Department
EECS 145M: Microcomputer Interfacing Laboratory
Spring Midterm #2 (Closed book- calculators OK)
Monday, April 15, 1996
PROBLEM 1 (70 points)
Design a system for analyzing the harmonic content of musical instruments using the FFT. You
know that the sounds will have a fundamental frequency and higher harmonics of that frequency.
The requirements are:
Maximum frequency of interest 20 kHz (but higher frequencies may occur)
Frequency resolution 0.1 Hz (closest frequencies that can be clearly resolved in the FFT)
Waveform voltage resolution ±0.015% of full range
Minimal spread of spectral leakage
You have available the following:
A microphone and instrumentation amplifier capable of converting music to an analog
waveform with an amplitude of ±5 volts.
A microcomputer with a counter/timer, an digital input port, and FFT program code.
The digital input port has a “data available” status bit (input). The input port requires 1 µs to
read a byte of data or the status bit. You may assume that other computer operations take a
negligible amount of time.
An external successive approximation A/D converter chip with a “start conversion” input and a
“conversion complete” output. The input must be held constant during conversioon.
The counter/timer can be set up by the computer to generate external pulses with any width
and any time interval.
A 12-pole Butterworth low-pass filter with a gain = 0.99 at 20 kHz and 0.00002 at 50 kHz.
a. (4 points) What is the maximum allowable time period between samples?
b. (4 points) What is the minimum number of required A/D bits?
c. (4 points) What is the maximum allowable conversion time of the A/D?
EECS145M 1996 Midterm #2 Page 1 Derenzo
pf3
pf4
pf5

Partial preview of the text

Download Frequency Resolution - Microcomputer Interfacing Laboratory - Exam and more Exams Microcomputers in PDF only on Docsity!

UNIVERSITY OF CALIFORNIA

College of Engineering Electrical Engineering and Computer Sciences Department EECS 145M: Microcomputer Interfacing Laboratory Spring Midterm #2 (Closed book- calculators OK) Monday, April 15, 1996

PROBLEM 1 (70 points) Design a system for analyzing the harmonic content of musical instruments using the FFT. You know that the sounds will have a fundamental frequency and higher harmonics of that frequency. The requirements are:

  • Maximum frequency of interest 20 kHz (but higher frequencies may occur)
  • Frequency resolution 0.1 Hz (closest frequencies that can be clearly resolved in the FFT)
  • Waveform voltage resolution ±0.015% of full range
  • Minimal spread of spectral leakage You have available the following:
  • A microphone and instrumentation amplifier capable of converting music to an analog waveform with an amplitude of ±5 volts.
  • A microcomputer with a counter/timer, an digital input port, and FFT program code.
  • The digital input port has a “data available” status bit (input). The input port requires 1 μs to read a byte of data or the status bit. You may assume that other computer operations take a negligible amount of time.
  • An external successive approximation A/D converter chip with a “start conversion” input and a “conversion complete” output. The input must be held constant during conversioon.
  • The counter/timer can be set up by the computer to generate external pulses with any width and any time interval.
  • A 12-pole Butterworth low-pass filter with a gain = 0.99 at 20 kHz and 0.00002 at 50 kHz.

a. (4 points) What is the maximum allowable time period between samples?

b. (4 points) What is the minimum number of required A/D bits?

c. (4 points) What is the maximum allowable conversion time of the A/D?

d. (4 points) How long do you need to sample the waveform?

e. (4 points) What is the minimum number of samples required?

f. (20 points) Sketch your system design, showing and labeling all essential components and signal lines.

PROBLEM 2 (30 points) a. (10 points) Sketch the internal components of the successive approximation A/D converter

b. (10 points) List the necessary steps for the conversion of a analog input voltage by the succes- sive approximation A/D converter

c. (5 points) You need to convert voltages in the 0 to 5 volt range with an accuracy of ±0.25%. What type of A/D converter provides the highest possible speed for this situation?

d. (5 points) You need to convert voltages in the 0 to 5 volt range with an accuracy of ±0.001%. What type of A/D converter provides the highest possible speed for this situation?

Equations, some of which you might find useful:

V ( n ) = V ref^ −^ + n V ref

+ − V

ref

− 2 N

 =^ V min +^ n^

V max − V min 2 N^ − 1

^

^

V out V in

1 + ( f / fc )^2 n

n = V^ −^ V ref

− ∆ V

INTEGER

V ( n − 1, n ) = V ref^ −^ + ( n − 0.5)∆ VV = V ref

+ − V

ref

− 2 N^ − 1

G ( a ) = 1 2 πσ^2

exp − 1 2

a −μ σ

^

^2

 μ ≈^ a^ =^ m^1 ai i = 1

m

∑ rms^ =^ m^1 ∑ Ri^2 Ri =^ a^ +^ bni −^ Vi

a = st^ −^ rq msr^2

and b = mq^ −^ rt msr^2

where r = ∑ ni s = ∑ ni^2 q = ∑ niVi t = ∑ Vi

σ^2 = Var( a ) = 1 m − 1

^

^ Ri

2 i = 1

m

∑ =^

m − 1

^

^ ( a^ i^ −^ a )

2 i = 1

m

∑ Var( a^ )^ =^ Var( a )/^ m

H ( f ) = h ( t ) ej^2 π ft^ dt −∞

∫ If^ h ( t )^ =^

A for | t |≤ T 0 / 2 0 for | t |> T 0 /

, then H ( f ) = AT 0 sin(π T^0 f^ ) π T 0 f

If h ( t ) = 0 for t < 0; h ( t ) = Aet^ /^ τ^ for t ≥ 0 , then H ( f ) = A 1 + 4 π^2 f^2 τ^2

Hn = hke −^ j^2 π nk /^ M k = 0

M − 1

∑ hk =^

Hn M

e + j^2 π nk^ /^ M n = 0

M − 1

Fn = Hn = Re( Hn )^2 + Im( Hn )^2 tanφ n = Im( Hn ) Re( Hn )

For hk = ai cos(2π ik / M ) + bi sin(2π ik / M ) H 0 = Ma 0 Hn = ( M /2)( anjbn ) i = 0

M − 1

fmax = fs/2 ∆t = 1/fs S = M∆t ∆f = 1/S h(t) = 0.5 [1.0 – cos(2πt/S)]

yi = A 1 xi − 1 + A 2 xi − 2 +... + AM xiM + B 1 yi − 1 + ... + BN yiN

If a ( t ) = b ( t ') c ( tt ' ) dt ' −∞

+∞

∫ =^ b ( t )^ ∗ c ( t ), then FFT(a) = FFT(b) multiplied by FFT(c)

f max = 1 2 N +^1 π T

e j θ^ = cosθ+ j sinθ V ( t ) = V (0) et^ /^ RC

n =

ln [( G 1 −^2 − 1 ) ( G 2 −^2 − 1 )]

2ln [ f 1 f 2 ]

fc = f 1 ( G 1 −^2 − 1 )

−1/2 n

= f 2 ( G 2 −^2 − 1 )

−1/2 n

N = 8 9 10 11 12 13 14 15 16

2 N^ = 256 512 1,024^ 2,048^ 4,096^ 8,192^ 16,384^ 32,768^ 65,