Write an Assembly program to do the following.
Your program should define three arrays such that Array1 has eight values: $01, $02, $03, $04, $05, $06, $07, $08 and Array2 has eight values: $11, $12, $13, $14, $15, $16, $17, $18, and Array3 has eight bytes reserved. The program reads DIP switches, then, does the followings:
1. If the readings are %00001001 = $09, then, copy the data from Array1 to Array3 and display '1to3' on 7segment units sequentially (a letter at a time) 3 times.
The interval between the letters is 0.6sec. You should use TIMER to time exactly 0.6sec. After displaying the letters, your program is done. Note: CPU speed is 24MHz
2. If the readings are %10010000 = $90, then, copy the data from Array2 to Array3 and display '2to3' on 7segment units all at once 3 times.
The interval between the letters is 1msec. You should use TIMER to time exactly 1msec. After displaying the letters, your program is done.
3. If the readings are neither$09 nor $90, then, turn on all LEDs, and go back to the beginning of the program to read DIP switches repeatedly.
5 years ago
20
- surahsign
- I need this in 48 hours - Project Managment
- Discussion Topic- Serious inquiries only and price is firm
- a
- apa format
- Political thought Extra credit paper
- HRM 530 Assignment 3 Dismissal Meeting
- QNT 275 Week 4 Business Decision Making Project Part 2
- Complete a Social History of George from the interview that you conducted. Use the headers outlined in Chapter 16 of your Summers textbook (pg. 298 Figure 16.1).
- U2LC: Contemporary Issues in Healthcare