Write an assembly program to reads dip switches


Problem

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:

• 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

• 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.

• 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.

The response should include a reference list. Using double-space, Times New Roman 12 pnt font, one-inch margins, and APA style of writing and citations.

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: Write an assembly program to reads dip switches
Reference No:- TGS03111965

Expected delivery within 24 Hours