Your program should define three arrays such that Array1 has eight values: $01, $02, $03, $04, $05, $06
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →
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.
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds