Question: Program a code in Assembly Language to realize the following consecutive actions 1 ) write number 0 x 0 0 to data memory location 0

Program a code in Assembly Language to realize the following consecutive actions
1) write number 0x00 to data memory location 0x0025 and wait for 1 second
2) write number 0xFF to data memory location 0x0025 and wait for 2 seconds
3) repeat the cycle (1-2) for 5 times
You can assume a crystal frequency of 16 MHz.
You will need to program at least one subroutine to realize the time delay (wait) function. Please
simulate the program on MicroChip studio and complete the following:
Question 1
(A) Provide a copy of the code in Assembly Language
(B) Provide calculation procedures for the time delay in subroutine
Question 2
Submit a screen shot of the data memory window (PDF or JPEG), showing the contents of 0x0025
during step (1) and step (2).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!