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

Microcomputer Applications - Final Exam | EEL 4744, Exams of Microprocessors

Material Type: Exam; Class: MICROPROCESSOR APPLIC; Subject: ENGINEERING: ELECTRICAL; University: University of Florida; Term: Spring 1996;

Typology: Exams

Pre 2010

Uploaded on 09/17/2009

koofers-user-laf
koofers-user-laf 🇺🇸

10 documents

1 / 7

Toggle sidebar

Related documents


Partial preview of the text

Download Microcomputer Applications - Final Exam | EEL 4744 and more Exams Microprocessors in PDF only on Docsity! UNIVERSITY OF FLORIDA April 29, 1996 PAGE 1 of 6 DEPT. ECE, EEL 4744C FINAL EXAM Antonio A. Arroyo, Keith L. Doty NAME_________________________________________________________ SS#_________________________________________________________ UNIVERSITY OF FLORIDA DEPARTMENT OF ELECTRICAL ENGINEERING EEL4744C: MICROCOMPUTER APPLICATIONS Final Exam Instructions: Closed book, except for the 6811 Programming Reference Guide. No calculators. Answer all questions on the exam. If you need to use the back of the exam sheets indicate when doing so. For programming problems do not define the register equates. 15% 1. Answer the following laboratory related questions. 5% a) A PWM wave generated on OC3 of the 68HC11 drives a 12 volt DC motor after passing through the circuit below. OC3 drives pin 1 of a 7406. The output on pin 2 drives the DC motor controller which, in turn, drives the motor. Draw the output waveform produced on pin 2. Label all axes. Use Word 6.0c or later to view Macintosh picture. 4% b) Compute the duty cycle D of the input square wave. D = ________________________. Use Word 6.0c or later to view Macintosh picture. UNIVERSITY OF FLORIDA April 29, 1996 PAGE 2 of 6 DEPT. ECE, EEL 4744C FINAL EXAM Antonio A. Arroyo, Keith L. Doty NAME_________________________________________________________ SS#_________________________________________________________ 6% c) Tachometer voltage of a DC motor equals Vin = 12 sin(2f t) for the circuit below. The zener is rated at 5 volts and [increases, limits] the voltage at the input of the 7406 inverter. The input 1K ohm resistor [increases, limits] the [current through, voltage across] the zener in order to protect it. Assume that no current flows through the input resistor until the zener conducts and that the inverter switches to ground when the input voltage is ≥ 2.4 volts and switches back to 5 volts when the input drops below 1 volt. If at t=0.1 seconds, the output just switches to ground, what is the period T of the output? Express T as a function of . (Hint: sin  ≈  for small ). Show your work below. T = ______________________ 24% 2. A FHP trooper places a mechanical speed trap on one side of a two lane highway. Two pressure hoses, lain across the road and separated by fixed, known distance d , generate a 10 ms pulse when depressed and will not generate another pulse until after the pressure is released. The hoses drive IC1 and IC2 as shown in the figure. 4% a) If a car passing over the speed trap has speed s and the IC2 leading edge occurs T seconds after the IC1 leading edge, derive a symbolic expression for s in terms of known parameters. s = __________________. 4%b) How many E-clock cycles E_VIOL does it take a car traveling at speed s = 120 kilometers/ hour to move 1 meter? Assume an 8 MHz crystal. E_VIOL = ______________________. 16% c) The highway is restricted to two axle cars d = 1 meter and s ≥ 120 kilometers/hour constitutes a speeding violation. Write an interrupt driven program that computes the speed of the currently passing car in E_SPEED (2 bytes) and its wheel base E_Axle (distance between axles) (2 bytes) of cars that passes over the hoses. These two variables can be expressed in E-clock counts. The constant E_VIOL in b) determines the maximum E-clock count that still indicates speeding. Your program also keeps a violation counter VCNT that accumulates the number of speeders. VCNT is cleared by a RESET. Data storage starts at Use Word 6.0c or later to view Macintosh picture. Use Word 6.0c or later to view Macintosh picture. UNIVERSITY OF FLORIDA April 29, 1996 PAGE 5 of 6 DEPT. ECE, EEL 4744C FINAL EXAM Antonio A. Arroyo, Keith L. Doty NAME_________________________________________________________ SS#_________________________________________________________ _____________________________________________________________________________ 4% c) The SCI system is double buffered on transmit and receive. Explain how double buffering on the SCI works. Double Buffering on Transmit: Double Buffering on Receive: 6% d) In an SPI transfer between two MC68HC11’s with CPHA = 1 and POL = 0, a fixed Master is attached to only one slave. Draw the required connections between the machines and/or tie lines to appropriate voltage levels. Use Word 6.0c or later to view Macintosh picture. 3% e) A student wrote a correct program segment to clear RTIF in TFLG2. The student ran the program on SIM11 and then examined the TFLG2 register after terminating the program and discovered that RTIF was not cleared! Explain what caused this behavior. 25% 5. A psychologist places a lever in a chimpanzee’s cage and seeks to measure how fast the chimpanzee looses interest in pressing the lever to obtain a banana reward. To condition the chimp, each of the first 4 lever presses releases a banana piece into the cage. Thereafter, the number of lever presses required to release a banana piece increases by a factor of two after each successive group of 4 presses. Hence, after four successes at 1 press/reward, the system UNIVERSITY OF FLORIDA April 29, 1996 PAGE 6 of 6 DEPT. ECE, EEL 4744C FINAL EXAM Antonio A. Arroyo, Keith L. Doty NAME_________________________________________________________ SS#_________________________________________________________ moves to 2 presses/reward. After 4 successes at 2 presses/reward, the system moves to 4 presses/reward. After 4 successes at 4 presses/reward, the system moves to 8 oppresses/reward, etc., all the way up to 256 presses/reward. After 4 successes at 256 presses/reward the system stops and awaits reset by the psychologist. The pulse accumulator will count the lever presses. A low-to-high transition on PD5 releases the banana piece. To eliminate the possibility of randomness, the lever presses required for the reward must not take longer than 4n seconds for the n - presses/reward level. No reward is dispensed if this condition is not met. A 3 byte variable called TIME automatically holds the time of day: /hour/minute/second/. Each time a reward level changes, the program records that time of day into the next 3 byte block entry of the table TRW. (At the end of the day the psychologist reads the values in TRW and resets the computer...you do not do this part.) 8% a) Draw a flow chart depicting your approach to solving this problem. 17% b) Write an MC68HC11 program to realize the psychologist’s data collection requirements as specified above. Be sure to declare all variables, constants, etc.; perform required initializations, etc. Label Mnemonic Arguments Comments UNIVERSITY OF FLORIDA April 29, 1996 PAGE 7 of 6 DEPT. ECE, EEL 4744C FINAL EXAM Antonio A. Arroyo, Keith L. Doty NAME_________________________________________________________ SS#_________________________________________________________
Docsity logo



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