Sample - Introductory Microcomputer Interfacing - Exam, Exams of Microcomputers

Main points of this exam paper are: Sample and Hold Amplifier, Transparent Latch, Differential Linearity, Relative Accuracy Error, Frequency Aliasing, Spectral Leakage, Successive Approximation

Typology: Exams

2012/2013

Uploaded on 03/22/2013

sasthi
sasthi 🇮🇳

4.5

(51)

169 documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
NAME (please print)
STUDENT (SID) NUMBER
UNIVERSITY OF CALIFORNIA
College of Engineering
Electrical Engineering and Computer Science Department
Berkeley
EECS 145M: Microcomputer Interfacing Lab
LAB REPORTS:
1 ____________ (100 max) 8 _____________ (100 max) 21 ____________ (100 max)
2 ____________ (100 max) 9 _____________ (100 max) 22 ____________ (100 max)
3 ____________ (100 max) 10 ____________ (100 max) 23 ____________ (100 max)
HIGHEST 8 LAB GRADES x7/8 _________________ (700 max)
MID-TERM ___________________ (100 max)
FINAL EXAM _________________ (200 max)
TOTAL COURSE GRADE _________ (1000 max)
COURSE LETTER
GRADE
Spring 1990 FINAL EXAM
May 17, 1990
Answer the questions on the following pages completely, but as concisely as possible. The exam
is to be taken closed book. Although the exam was designed to be completed in two hours, you
can use the full three hour assigned period. Use the reverse side of the exam sheets if you need
more space. Calculators are OK but not needed. Total 200 points. In answering the prob-
lems, you are not limited by the particular equipment you used in the laboratory
exercises. Many formulae from the course have been provided for you on the last page.
FINAL EXAM GRADE :
1 __________ (42 max) 3 __________ (38 max) 5 _________ (30 max)
2 __________ (30 max) 4 __________ (60 max)
TOTAL __________ (200 max)
Spring 1990 EECS 145M Final Exam page 1 S. Derenzo
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Sample - Introductory Microcomputer Interfacing - Exam and more Exams Microcomputers in PDF only on Docsity!

NAME (please print)

STUDENT (SID) NUMBER

UNIVERSITY OF CALIFORNIA

College of Engineering Electrical Engineering and Computer Science Department Berkeley

EECS 145M: Microcomputer Interfacing Lab

LAB REPORTS:

1 ____________ (100 max) 8 _____________ (100 max) 21 ____________ (100 max)

2 ____________ (100 max) 9 _____________ (100 max) 22 ____________ (100 max)

3 ____________ (100 max) 10 ____________ (100 max) 23 ____________ (100 max)

HIGHEST 8 LAB GRADES x7/8 _________________ (700 max)

MID-TERM ___________________ (100 max)

FINAL EXAM _________________ (200 max)

TOTAL COURSE GRADE _________ (1000 max)

COURSE LETTER

GRADE

Spring 1990 FINAL EXAM

May 17, 1990

Answer the questions on the following pages completely, but as concisely as possible. The exam is to be taken closed book. Although the exam was designed to be completed in two hours, you can use the full three hour assigned period. Use the reverse side of the exam sheets if you need more space. Calculators are OK but not needed. Total 200 points. In answering the prob- lems, you are not limited by the particular equipment you used in the laboratory exercises. Many formulae from the course have been provided for you on the last page.

FINAL EXAM GRADE :

1 __________ (42 max) 3 __________ (38 max) 5 _________ (30 max)

2 __________ (30 max) 4 __________ (60 max)

TOTAL __________ (200 max)

Problem 1 (total 42 points):

Define the following terms (30 words or less)

A) (7 points) Sample and Hold Amplifier

B) (7 points) Transition Voltages (of an A/D converter)

C) (7 points) Frequency Aliasing

Problem 2 (total 30 points):

Briefly describe the operation of the following A/D converters. Be sure to include the number of sequential “steps” need for a typical conversion.

A) (10 points) Successive Approximation

B) (10 points) Flash

C) (10 points) Tracking

Problem 3 (38 total points):

As a new electrical engineer at the Dynamic Data Devices Corporation, you are asked to design an automated (i.e. computer controlled) system for the assembly line testing of a new type of 12-bit A/D converter. The A/D converter requires a “start conversion” signal and after conversion provides a “data ready” signal that is reset by the next “start conversion”.

You are provided with (1) a microcomputer equipped with 16-bit parallel I/O ports similar to those you used in the laboratory exercises and (2) a 16-bit D/A converter with 1/2 LSB absolute accuracy.

A) (18 points) Draw a block diagram of the major components of the system, including an A/D circuit being tested. Show and label all important data and control lines.

Problem 4 (total 60 points):

Design a microcomputer-based system for the high-fidelity sampling and digital storage of music (like the compact audio disk or digital audio tape). The design requirements are as follows:

  • The signal frequency range is from 10 Hz to 20,000 Hz.
  • Only consider music that is detected with microphones, such as classical or opera.
  • The maximum microphone output signal is 10 mV peak to peak (p-p).
  • The microphones and amplifiers produce white noise (constant noise power in each frequency band) from 0 Hz to 100 kHz.
  • The A/D converter you are using has a –5 V to +5 V input range.
  • The digital resolution must be < 0.002% (2 × 10 –5) of the full A/D range.
  • Your design will include a device for storing large quantities of digital data. (In the recording industry, magnetic tape is used to store the digital master recordings).
  • The time interval between samples must be constant to one part in 10^6.
  • You have rejected commercially available data acquisition circuits as being too slow, too inac- curate, or too costly and have decided to design your own using parallel I/O ports and counter/timer circuits similar to those in the laboratory exercises.

A) (30 points) Draw a block diagram of your design, starting from one of the microphones and showing all necessary components and interconnections.

Problem 4 (continued):

B) (5 points) According to the Nyquist theorem, what is the minimum sampling frequency neces- sary for subsequent recovery of the signal?

C) (5 points) Practically, what would be a good design value for the sampling frequency of the system? Explain your reasoning.

D) (5 points) Describe the A/D requirements in terms of number of bits and conversion time.

Problem 5 (total 30 points):

To measure the harmonic distortion of a high fidelity audio amplifier, you use a pure sinewave input of exactly 100 Hz and sample the amplifier output for exactly 2 seconds at a sampling frequency of 32,768 Hz. You then take the Fast Fourier Transform of the digital data. Assume that the Fourier coefficients are defined as in the laboratory exercises.

A) (6 points) To what frequencies (in Hz) do the first and second Fourier coefficients (F 0 and F 1 ) correspond?

B) (6 points) What Fourier coefficient corresponds to the highest frequency that can be reliably sampled and what is that frequency?

C) (6 points) Assuming that the amplifier can amplify the 100 Hz tone perfectly with no distortion, which Fourier coefficients would be non-zero?

D) (6 points) Assuming that the amplifier introduces some distortion that causes the output to be a distorted sinewave described by both even and odd harmonics, which Fourier coefficients would be non-zero? (Note: the even harmonics are zero only for symmetric waveforms such as the square or triangle waves you used in the laboratory exercises.)

E) (6 points) If (1) the audio tone were changed to 100.25 Hz, (2) you do not multiply the data by a windowing function, and (3) the amplifier has no distortion, what would the Fourier Trans- form look like? (Describe large, small, and zero components.)

Equations, some of which you might find useful:

V(n) = Vref^ −^ + n

Vref^ +^ − Vref^ − 2 N

 =^ Vmin +^ n^

Vmax − Vmin 2 N^ − 1

n =

V − Vref^ − ∆V

INTEGER

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

Vref^ +^ − Vref^ − 2 N^ − 1

a =

st − rq ms − r^2

and b =

mq − rt ms − r^2

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

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

G(a) =

exp −

a − μ σ

^2

2 πσ^2

μ ≈ a = (^) m^1 ai i= 1

m

σ^2 = Var(a) =

m − 1

 (^) Ri^2 i= 1

m

∑ =^

m − 1

 (^) ( ai − a)^2 i = 1

m

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

Fn = fke−i2^ πnk/N k= 0

N− 1

∑ fk =^

Fn N

e+i2^ πnk/N n= 0

N− 1

∑ Fn =^ Re(Fn)

(^2) + Im(F n )

2

For fk = a (^) j cos(2πjk / N) + bj sin(2πjk / N) F 0 = Na 0 Fn = (N / 2)(a (^) n − ibn ) j= 0

N− 1

fmax = fs/2 T = 1/fs S = NT ∆f = 1/S

yi = A 1 xi − 1 + A 2 xi − 2 +... + AM xi −M + B 1 yi − 1 +... + BNyi− N

t =

Var(∆)

a − b Var(a ) + Var(b )

a − b Var(a) / ma + Var(b)/ mb

t =

d Var(d )

d 1 m

m − 1

 ( ∑di^2 − m d 2 )

fmax =

2 N+^1 πT e

iθ (^) = cosθ + i sinθ

Have a pleasant summer!