Glitch - Microcomputer Interfacing Laboratory - Exam, Exams of Microcomputers

Main points of this exam paper are: Glitch, Converter, Handshaking, Sender, Receiver-, Frequency Aliasing, Sample

Typology: Exams

2012/2013

Uploaded on 04/01/2013

saji
saji 🇮🇳

4.5

(2)

54 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 Sciences
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)
* two lowest grades dropped 25 ____________ (100 max)
HIGHEST 8 LAB GRADES ×7/8
MID-TERM
FINAL EXAM
TOTAL COURSE GRADE
_______________ (700 max)
_______________ (100 max)
_______________ (200 max)
_______________ (1000 max)
COURSE LETTER
GRADE
Spring 1991 FINAL EXAM
May 20, 1991
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. In answering the problems, 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.
Partial credit can only be given if you show your work.
FINAL EXAM GRADE :
1 __________ (42 max) 3 __________ (30 max) 5 _________ (30 max)
2 __________ (48 max) 4 __________ (50 max) TOTAL __________ (200 max)
Spring 1991 EECS 145M Final Exam page 1 S. Derenzo/L. Bushnell
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Glitch - Microcomputer Interfacing Laboratory - 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 Sciences 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)

  • two lowest grades dropped 25 ____________ (100 max)

HIGHEST 8 LAB GRADES ×7/

MID-TERM

FINAL EXAM

TOTAL COURSE GRADE

_______________ (700 max) _______________ (100 max) _______________ (200 max) _______________ (1000 max)

COURSE LETTER

GRADE

Spring 1991 FINAL EXAM

May 20, 1991

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. In answering the problems, 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.

Partial credit can only be given if you show your work.

FINAL EXAM GRADE :

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

2 __________ (48 max) 4 __________ (50 max) TOTAL __________ (200 max)

Problem 1 (total 42 points):

Define the following terms (30 words or less)

a. (6 points) Glitch (of a D/A converter)

b. (6 points) Handshaking (between any sender and receiver- either could be the computer)

c. (6 points) Frequency Aliasing

Problem 2 (48 points)

Design a microcomputer-based data acquisition system that contains a microcomputer and a number of external circuits. Your design must satisfy the requirements given below:

The microcomputer:

  • Has a disk drive, keyboard, screen, and a binary I/O port with 16 input and 16 output lines.
  • Has an internal timer board with a 9513 counter/timer chip (like the one you used in labs 2 and 3). Assume a clock speed of 1 MHz.
  • You can call a function setup_go (T,N) that does the following:

(i) Sets up the timer board to use two 16-bit cascaded counters (numbers 0 and 1) for control- ling the time interval T between output pulses. Assume that it counts down to zero, produces an output pulse on an external line, reloads, and then resumes counting down. (ii) Sets up the timer board to use two 16-bit counters (numbers 2 and 3) to control the number of pulses N. Assume that it counts down for every output pulse and stops at zero. (iii) Starts the counters.

  • You have another function counter(M) that returns the contents of counters M and M+1 as a packed 32-bit integer.
  • Your program should ask the user for the number of samples, the time interval between samples, and the name of the output data file.
  • Your program should wait until the requested number of samples has been taken, read the sample values, and write them to the output data file.

A/D converter:

  • Has a successive approximation 16-bit A/D converter with 10 μs conversion time and 0– volt input range. Your design must insure that the A/D input is constant during the 10 μs conversion time. Conversion is initiated by the low-to-high edge of a “start conversion” pulse. The A/D produces a low-high-low output pulse when conversion is complete and the 16 data bits are stable.

Adder:

  • Has two input lines and 20 output lines. A low-to-high edge on one input line causes the adder to be set to zero and a low-to-high edge on the other input line causes the number to be incremented (increased) by one. The number is always present on the 20 output lines.

Memory:

  • Has 2^20 16-bit storage locations. There are 20 address lines (input) and 16 data lines (input and output). An additional input line (R / W ) is used to determine whether the address on the memory chip is being written to or read from. The low-to-high edge of another input line (CS) clocks data between memory and the external data lines. If R / W is high, a low-to-high edge of CS reads data from memory to the data lines. If R / W is low, a low-to-high edge of CS writes data from the data lines into memory. The memory location is always that specified by the address lines.

Anti-aliasing filter:

  • You have instructed the user of your data acquisition system to use an anti-aliasing filter, whose design depends on the desired sampling frequency and the frequency content of the signal.

Problem 2 (continued):

Note:

  • Unlike Laboratory Exercise 9 (A/D Conversion and Periodic Sampling), the computer is not used to take the individual samples - only to provide the user interface, to set up and start the sampling, and to retrieve the sampled values after they have been taken.
  • Other circuits may be needed in your design to satisfy the requirements.

Do the following:

a. (14 points) Draw the block diagram for the microcomputer, external circuits, and the lines that connect them. Label every essential item, control line, and data line.

b. (14 points) Describe in step-by-step sequence how your program and external circuit works. (There is no need to write detailed C code- just a flow chart in list form)

Problem 3 (total 30 points):

Briefly describe the following processes. Be sure to include all necessary steps (pretend that you are writing a detailed procedure for an inexperienced young colleague).

a. (10 points) Digital Filtering of a Sampled Waveform with Analog Output

b. (10 points) Sampling, Digital Storage, and Playback of the Human Voice

c. (10 points) Measuring the Time Required for the FFT Function to Compute a 4096 element FFT

Problem 4 (total 50 points):

You are asked to design a system for using the FFT to analyze the harmonic content of certain musical instruments. The requirements are:

  • The instruments have a fundamental frequency (first harmonic) ranging from 20 Hz to 2 kHz.
  • The system must measure harmonic amplitudes from the 1st to the 25th harmonic with an accuracy of 0.025% of the A/D full scale. Note: higher harmonics may be present.
  • Neighboring Fourier coefficients correspond to frequencies differing by 0.1 Hz.

Answer the following questions about these design requirements:

a. (5 points) What is the minimum sampling frequency required?

b. (5 points) What is the minimum time needed to take all the samples required?

c. (5 points) What is the minimum number of samples required?

d. (5 points) How many bits of A/D accuracy are required?

e. (5 points) How does your design avoid aliasing? Give details.

Problem 5 (total 30 points):

In Laboratory Exercises 21 and 22, you took 512 samples, stored them in memory, called the FFT function to generate 512 complex Fourier coefficients, and computed 512 modulus values. Design a system using digital filtering to do these same tasks continuously, rather than in “batch” mode. Assume that you have available a large number of low-cost processors suitable for digital filtering.

a. (13 points) Give the formula for your digital filter. Is it FIR or IIR?

b. (13 points) Draw a representative section of the block diagram, showing components and interconnections.

c. (4 points) How many processors are needed in all?

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!