

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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:
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.