Homework 15 - ELEC 2220 Computer Systems Homework #15 Due:...

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

View Full Document Right Arrow Icon
ELEC 2220 Computer Systems Homework #15 Due: Monday, July 12 In this exercise, you will practice with “program-controlled input/output”. As discussed in class, some devices provide a “ready” signal to indicate that some action should be taken (read a byte from the device, send a byte to the device, etc.) In this exercise, push-button 4, connected to Port T, will simulate such a signal. The “action” to be taken is to write a two-digit number to a seven- segment display. A one-byte BCD number is to be created, and initialized to 00. The program is to continuously increment the BCD number once per second (00-01-02-…-98-99-00-01…) The one-second delay, which does not have to be exact, should be a simple “do nothing” loop. You should consider using the “decimal adjust” instruction, following an “adda #1” instruction for your BCD counter. While the counting process is taking place, the program should periodically check the state of push-button 4. Any time the button is pressed, the current value of the BCD number should be
Background image of page 1

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

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

This note was uploaded on 09/23/2011 for the course ELEC 2220 taught by Professor Staff during the Summer '08 term at Auburn University.

Page1 / 2

Homework 15 - ELEC 2220 Computer Systems Homework #15 Due:...

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