lab8 - store the values from the keyboard and to put them...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Purpose The purpose of this lab was to create a test for an interrupt service routine. This was supposed to be done through an interrupt generated through the ACIA. The interrupt was to come from the Keyboard, which when pressed was to enter a character. This lab also allows for a deeper understanding of the queue routines that were developed in the week seven lab. Procedure The first thing needed is the developed queue routine from the lab the week before. Next the programmer must add in the value to set up the ACIA in a interrupt mode, which is new for this weeks lab. After this the ISR must be created, the ISR must determine what type of interrupt is occurring, whether it be a transmit or receive interrupt once it determines which type it is, the ISR must pick the appropriate subroutine, either the put_char routine if it’s a transmit interrupt or a get_char routine if it’s a receive interrupt. From there it functions much like the lab from week 7, it uses the queues to
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: store the values from the keyboard, and to put them out to the screen. The queues are used to tell when to turn off the interrupt for the transmit queue and turn it back one as well as when to return from the transmitting to the main program. Conclusion This lab was very effective in explaining how interrupts work. By building upon the material and code from the week before the ins and outs of interrupts are easily demonstrated. The importance of disabling the transmit interrupts when handling a receive interrupt is clearly demonstrated as well as why it is important to wait until the transmit interrupts are all handled before returning to the main program to reduce the loss of data being printed to the screen. It also shows clearly how the program works through the testing because it prints out the last character that you typed to the screen. Overall this lab is a useful lab, because it teaches interrupts through showing....
View Full Document

This note was uploaded on 04/17/2008 for the course CE 0306-250-0 taught by Professor Melton during the Fall '07 term at RIT.

Page1 / 2

lab8 - store the values from the keyboard and to put them...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online