EE319K_FINAL_2010 - EE319K Spring 2010 Final Exam Version B...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
EE319K Spring 2010 Final Exam Version B Page 1 of 12 Jonathan Valvano May 17, 2010 First:________________ Last:____________________ This is a closed book exam. You must put your answers in the space provided. You have 3 hours, so allocate your time accordingly. Please read the entire exam before starting. Please read and affirm our honor code: “The core values of The University of Texas at Austin are learning, discovery, freedom, leadership, individual opportunity, and responsibility. Each member of the university is expected to uphold these values through integrity, honesty, trust, fairness, and respect toward peers and community.” (5) Question 1. What is the voltage at V? Show your work. V +3.3V 10 k Ω 10 k Ω 10 k Ω (5) Question 2. The PLL is not active, and the E clock frequency is 8 MHz. The TCNT timer is active with TSCR2 equal to 2. The ADC is active with ATD0CTR4=$03 , so that the ADC clock is 1 MHz. The SCI1 baud rate is 9600 bits/sec. Output compare 7 is used to sample the 10-bit ADC once every interrupt. The data is stored in a buffer. The following code occurs in the output compare 7 ISR TC7 = TC7 + 100; (3) Part a) What is the time period between output compare 7 interrupts? (2) Part b) What is the largest frequency component faithfully represented in the data in the buffer?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
EE319K Spring 2010 Final Exam Version B Page 2 of 12 Jonathan Valvano May 17, 2010 (10) Question 3. Initialize PTT so that PT1 is an input and PT0 is an output. Write a C program that issues a short pulse on the PT0 output after every other each rising edge of the PT1 input. PT1 PT0 Include all the software for this system. You may use the standard port names, such as PTT . Interrupts and the timer are not needed. It does not matter how long the pulse width is on PT0.
Background image of page 2
EE319K Spring 2010 Final Exam Version B Page 3 of 12 Jonathan Valvano May 17, 2010 (20) Question 4. You can solve this problem in assembly or in C, your choice. This is a simplex communication channel; there is SCI1 output, but no SCI1 input. In C, the user will call your function by reference. In assembly, the user calls your function by reference using Reg D void user(void){ SCI1_Output( Hello ); } Msg fcb Hello ,0 User ldd #Msg jsr SCI1_Output rts Your SCI1_Output includes SCI1 initialization and output. The data is null-terminated. You may assume the E clock is 8 MHz. The desired baud rate is 5000 Hz. You are allowed to add additional RAM-based variables. Write the SCI1_Output function, the SCI1 interrupt service routine, and the code to set the SCI1 interrupt vector. Disarm SCI1 interrupts after the last character is sent. You do not have to transmit the null character. For full credit you must implement the SCI1 output using interrupt synchronization. For a possible 5 points out of 20, you solve this problem with busy-wait.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
EE319K Spring 2010 Final Exam Version B Page 4 of 12 Jonathan Valvano May 17, 2010 (6) Question 5. Your embedded system uses a 12-bit ADC to sample the fluid flow through an oil
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 12

EE319K_FINAL_2010 - EE319K Spring 2010 Final Exam Version B...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online