Cpr E 488 Laboratory

Lab 2: Software/Hardware Interfacing


Lab Description

In this lab, you will be given some hardware cores that you must add to your design.  First, an interrupt controller will be added to the design and connected to the push-buttons available on the board.  You will then write a program that calls an interrupt handler when the button is pressed.  This will introduce you to the interrupt structure used in our hardware.

Prelab

Please make sure you are familiar with sections 3.2.4 and 4.4.1 of the book, as many concepts from this section will be used in the lab.

 

Read through the lab and any necessary documentation. Look over the given system.c so you have a reference as to what functions will be used. Write down which functions you will be using and a short description of each in your lab notebook. Try to determine ahead of time which values you will be passing to each function, especially the arguments that are defined constants.

 

Also, several questions are posed in the lab. Try to answer the ones you can before lab and place the answers in your lab notebook. Final answers to the questions can be turned in once the lab is complete, but make sure you have at least some of the questions answered before coming to lab.

Lab Files

The following files are necessary for doing this lab.

File

Description

CPRE488_LAB02.pdf

Lab 2 Instructions

eval_form_lab_2.pdf

Lab 2 Evaluation Form

system.c

C Code for Lab 2