Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Practice Quiz 2 - First-Year Interest Group Seminar | N 1, Quizzes of Health sciences

Material Type: Quiz; Class: FIRST-YEAR INTEREST GROUP SMNR; Subject: Nursing; University: University of Texas - Austin; Term: Spring 2002;

Typology: Quizzes

Pre 2010

Uploaded on 08/26/2009

koofers-user-f6l-1
koofers-user-f6l-1 🇺🇸

10 documents

1 / 3

Toggle sidebar

Related documents


Partial preview of the text

Download Practice Quiz 2 - First-Year Interest Group Seminar | N 1 and more Quizzes Health sciences in PDF only on Docsity! EE345M Spring 2002 Quiz 2 Page 1 of 3 Jonathan W. Valvano First:_________________ Last:_____________________ April 10, 2002, 9:00 to 9:50 am This is an open book, open notes exam. You must put your answers on these pages only. You can use the back. You have 50 minutes, so please allocate your time accordingly. Please read the entire quiz before starting. (30) Question 1. The following is a simple IIR digital filter. y(n) = 0.70x(n) -0.65x(n-1) +0.15x(n-2) -0.5y(n-1) +0.25y(n-2) The unsigned 8-bit input data (from A2D(0)) is bounded between 0 and 255. You may assume the filter gain is less than one, so the y(n) values are also bounded between 0 and 255. No floating-point calculations are allowed. For full credit you must implement the filter without approximation. Be careful to specify whether you use 16 or 32-bit integer math. Assume TMSK2 contains its initial value of 0. Specify the CONSTANT required for 1000 Hz sampling. unsigned char x[3],y[3]; // 8-bit unsigned numbers, 0 to 255 #pragma interrupt_handler TC5Handler() #define CONSTANT // fill in the value here to make fs equal to 1000Hz void TC5Handler(void){ TFLG1 = 0x20; // ack interrupt TC5 = TC5+CONSTANT; // fs=1000Hz // add code here to shift the MACQ x[0] = A2D(0); // new 8-bit data, 0 to 255 // add code here to execute the filter } #pragma abs_address: // fill in the vector here void (*OC5_vector[])() = { TC5Handler}; #pragma end_abs_address EE345M Spring 2002 Quiz 2 Page 2 of 3 (30) Question 2. Design an analog circuit that has the transfer function Vout = 4 V1 – 10 V2 + 5. V1 and V2 are analog inputs, and Vout is the analog output. You do not need to worry about input or output impedance. Your circuit will operate on a ±12 V supply using REF02 references and OP07 op amp(s). The REF02 creates a +5.00 reference voltage. Full credit will be given to proper solutions using one REF02 and one OP07 op amp. Show the analog circuit. Label all resistor values. You do not need to show the power supply connections for the OP07 and REF02.
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved