This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: EE331 – Term 1, 2009-10 Page 1 of 4 Name: Midterm Student No.: • Time: 120 Minutes; Total Marks: 40 • Closed book exam (PIC instruction set is allowed) Q1. What is handshake signaling? Why is it important to bus arbitration? (1+1=2 marks) Q2. Suppose a cache (special memory) is 10 times faster than the main memory. If the cache is used 90% of the time, how much speedup can be gained by using the cache? (2 marks) Q3. Consider the circuit shown below using PIC16F84. It uses TMR0 with a prescaler ratio of 1:16. Write a code fragment to initialize appropriate ports and special functional registers? (a) What would be the problem of such configuration (no external pull-up resistors)? (b) Show how to enable internal pull-up resistors for RB0. (3+1+1=5 marks) EE331 – Term 1, 2009-10 Page 2 of 4 Name: Midterm Student No.: Q4. Given is an assembly code. Assume that the timer (TMR0) is running by the internal Q4 clock ( f osc /4) and the prescaler is OFF. At the end of the program execution: (a) What is the final content in w? (b) What is the final content in prescaler is OFF....
View Full Document
- Fall '10
- Assembly Language, Port B