Docsity

4 Problems for Midterm Exam 2 - Fall 2001 | ECE 447, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 447
Midterm exam 2
December 5, 2001
INSTRUCTIONS: Please solve selected 3 out of 4 problems. Clearly cross
out the problem you do not want to be graded. Failure to do that will result
in grading first four problems.
HONOR CODE PLEDGE: “On my honor I have neither given nor received
aid on this exam”
Your first and last name (printed): …………………….
Your signature …………………….
Failure to sign the pledge may result in receiving no credit for the exam.
pf2

Partial preview of the text

Download 4 Problems for Midterm Exam 2 - Fall 2001 | ECE 447 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

ECE 447

Midterm exam 2

December 5, 2001

INSTRUCTIONS: Please solve selected 3 out of 4 problems. Clearly cross out the problem you do not want to be graded. Failure to do that will result in grading first four problems.

HONOR CODE PLEDGE: “On my honor I have neither given nor received aid on this exam”

Your first and last name (printed): …………………….

Your signature …………………….

Failure to sign the pledge may result in receiving no credit for the exam.

Problem 1 (5 points) Design an address decoding circuit for the following 68HC11 system:

  • 8 KB of EPROM starting at address $E
  • 16 KB of RAM starting at address $
  • 256 bytes of RAM starting at $
  • I/O chip with 16 internal registers with addresses starting at $B Assume that this is a complete system, and minimize the amount of resources necessary to implement decoding.

Problem 2 (5 points) Write a program in C that scans a 4x3 matrix keypad and displays each pressed character to the monitor using putchar(). Draw the circuit diagram showing how the keypad is connected to 68HC11.

Problem 3 (5 points) Write a program in C that generates a negative-going pulse of the length 12 ms at the output PA5 of 68HC11.

Problem 4 (5 points) A keyboard unit and an external 8-bit A/D converter are both connected to port E of 68HC11 using an 8-bit data bus. When a key is pressed on the keyboard, a short negative pulse is generated on the keyboard unit control output KEYSTROBE, while the data is sent to the data bus. When the A/D converter is ready with the new data, a short positive pulse is generated at its output READY and the data is sent to the data bus. Draw a circuit and write a polling routine in C that stores data obtained from the keypad in buffer1 and data obtained from the A/D converter in buffer2.