Project: Please read Chapter 3 of your textbook for writing subroutines and Chapter 4 of your tex
Project: Please read Chapter 3 of your textbook for writing subroutines and Chapter 4 of your textbook; then, write assembly programs to do the following:
- The clock frequency is Dragon 12 board 24MHz.
Flash all LEDs in one Hz frequency when running your program. - You must complete the given delay subroutine using LOOP to time approximately one second.
You need to turn on all the LEDs, then, call this subroutine, turn off all LEDs, and then, call this subroutine.Note:
NOP consumes 1 Clk Cycle
DEC consumes 4 Clk Cycles
BNE consumes 3 Clk CyclesDelay subroutine template
L2 LDAA #240
STAA R1
L1 NOP ;1 Clk Cycle
NOP ;1 Clk Cycle
NOP ;1 Clk Cycle
DEC R1 ;4 Clk Cycles
BNE L1 ;3 Clk Cycles
Total number clock is that 10 Clk x 240 times = 2400 Clk = 0.1ms
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.