Unformatted text preview:

EE345M Quiz 1A Fall 2005 Page 1 of 3 Jonathan W. Valvano Jonathan W. Valvano First Name: _______________ Last Name:____________________ October 5, 2005, 1 to 1:50pm This is an open book, open notes exam. You may put answers on the backs of the pages, but please don’t turn in any extra sheets. (20) Question 1. In this question the input parameter is the temperature, TC, which is a 16-bit signed binary fixed-point number with a resolution of 1/8 ºC. The integer portion of this parameter is stored in memory as the variable Ic. The output of this function will be the temperature, TF, which is a 16-bit signed binary fixed-point number with a resolution of 1/8 ºF. The integer portion of this parameter is stored in memory as the variable If. Write C code that implements the conversion from ºC to ºF using fixed-point math. In particular, calculate TF =1.8*TC +32º. short Ic,If; void Convert(void){ // convert Ic to If } (15) Question 2. A, external device will be interfaced to the 6812 using SPI. There are three signals that will be outputs of the 6812 and inputs to the device (Enable, Clock, and Data). The timing of the external device is shown below. Enable InClock InData In7 6543210setuphold Part a) What CPHA, CPOL mode should you use? Put your answers in the boxes. CPHA CPOL Part b) Should the 6812 be a master or slave? Part c) Which 6812 pins should be connected to Enable, Clock, and Data? EnableClockDataExternalDeviceEE345M Quiz 1A Fall 2005 Page 2 of 3 Jonathan W. Valvano (10) Question 3. Assume the TCNT is running at 1.5 MHz, and channel 5 is armed as an output compare interrupt. The goal of the real-time data acquisition system is to accurately sample the ADC every 1ms using an output compare 5 interrupt. Consider the two implementations below. Draw a circle around the ISR that is more accurate, and why? If they are equally accurate, then explain why. interrupt 13 void TC5han(void){ TFLG1 = 0x20; // ack TC5 = TC5+1500; // rate Fifo_Put(ADC_In(0)); // sample } interrupt 13 void TC5han(void){ TFLG1 = 0x20; // ack TC5 = TCNT+1500; // rate Fifo_Put(ADC_In(0)); // sample } (20) Question 4. The sampling rate of a real-time data acquisition system is 1000 Hz. Assume there are large amplitude noise components above 1000 Hz. There is also a large amplitude noise component at 125 Hz. Part a) Without changing the sampling rate, how do you remove aliasing? Put as much detail into the space provided. Part b) Show pole-zero plot for the design of a high-Q 125-Hz digital reject filter. Just draw the positions of the poles and zeros. You do not have to calculate the H(z) or show the filter equation. (5) Question 5. Did the solid state disk in Lab 25 have internal fragmentation? Explain.EE345M Quiz 1A Fall 2005 Page 3 of 3 Jonathan W. Valvano (30) Question 6. The objective of this question is to design the analog electronics to interface a transducer to the 0 to +5V built-in ADC of the 6812. The transducer output, Vt, is a single voltage (relative to ground, not differential), with a range of 0.5 to 1 volts. VAD = 10Vt - 5 Part a) Build this interface with one op amp and a REF03 2.50V analog reference. You do not need to show the power connections. You do not need to include an analog low pass filter. transducerREF032.50V6812ADinVtVAD Part b) What is the voltage resolution, referred to input Vt, of the system if the ADC has 10


View Full Document

UT EE 345 - Study Notes

Download Study Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Study Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?