

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Lab 9 of the ece3120 spring 2004 course, focusing on using parallel ports to interface with simple devices, subroutines, and dbug12 monitor functions. Students are required to build an i/o circuit, write a program, and debug it. The program must read switch activations, display values on seven-segment led digits, and control leds based on switch modes.
Typology: Lab Reports
1 / 3
This page cannot be seen from the preview
Don't miss anything!


The purpose of this lab is to learn the use of the parallel ports to interface to simple devices, plus further practice in using subroutines and the Dbug12 monitor functions for terminal input-output, as applied to a program that counts and displays switch activations.
Prepare pseudocode, the first draft of the program, and a schematic of your I/O interface circuit. Also draw graphical representations of the stack addresses and contents, as they should exist during each subroutine execution. This must be completed before coming to the lab and shown to the lab instructor at the start of the lab session.
_Approved: Lab TA _____________________ Date _____________
You will build, test, and demo this system in the Mechatronics Lab (BN326). Use your breadboard and components from your EE labs to build the circuit required. The lab TA will loan you the switches and 7-segment displays for use in the lab, which must be returned. Wire your breadboard to the HC12 interface adapter board. Be very careful to use the correct connections! Do NOT use any kind of 7-segment decoder IC. This system must implement the following functionality: