

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: Embedded Microcomputer Systems; Subject: (Electrical and Comp Engr); University: University of Houston; Term: Spring 2003;
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Embedded Microcomputer Systems Final Exam – Spring 2003
Open book, closed notes. You may have a single page that you have made up summarizing information contained in your textbook. Answer on these pages only, using the back of the page if necessary. Show all of your calculations (timing derivations, circuit values, etc.); don’t make me guess how you arrived at your answer. Read the entire exam before proceeding.
You are to design an “ECG arrhythmia detector” as illustrated below:
ECG input: This is a very low-level analog signal in the range +/-1.5 mV. In general, it consists of a series of “QRS complex” patterns that repeat at the heart rate, as illustrated below (this is not real data):
Filtered ECG Data
-0.
0
1
1000 2000 3000 4000 5000 6000 7000 8000 9000
time (ms)
R-waves (^) premature beat
QRS
The R-wave is the prominent sharp positive spike in the middle of the QRS. Detect the R-wave by: a. using threshold detection at 0.5 mV, and b. confirming that the width of the wave at the 0.5 mV level is between 10 and 40 ms (either narrower or wider would mean it is some other kind of wave).
An R-wave that occurs at least 150 ms sooner than expected would indicate a “premature beat”. More specifically, if an interval between two consecutive R-waves (R-R interval) is found to be at least 150 ms less than the average of the three previous R-R intervals, the early R-wave is considered premature.
You are to design the hardware and software of an arrhythmia detector that detects premature beats. The detector should be built around the 6812 microcontroller, plus additional electronics as necessary. The algorithm you should use for the detection is:
Page 1 of 2
Embedded Microcomputer Systems Final Exam – Spring 2003
Software : Write the software to implement the detector. Organize your software in the way you have learned in your labs.
Hardware : Design the appropriate signal conditioning interface between the ECG and the 6812. Do not use the ADC input; instead, use the 6812’s input capture facility.
Questions : (1) What is the resolution in your measurement of the R-wave width? (2) What is the resolution in your measurement of the R-R interval?
You do not have to provide HW or SW for either the alarm or the Silence button.
Useful textbook references: Chapters 4, 6, and 11.
Page 2 of 2