Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Problem d. Create a loop that will blink a Blue LED with cathode hooked to Port A pin 2 (RA2) 8 times and then leave

image text in transcribed
Problem d. Create a loop that will blink a Blue LED with cathode hooked to Port A pin 2 (RA2) 8 times and then leave the LED off and then go on to the rest of the code, whatever hat might be. You have allocated the variable XX in common RAM to be your loop counter in setup code written earlier, but you will need to pre-load it with the requred value o make the loop execute 8 times. Pin RA2 has been set as an output and was initialised to 1 (LED off. Use the label "Loop for your loop control. There is a subroutine called Delay1 that will give the desired 1 second delay. You don't have to write this subroutine, you just need to call it after each LED change in the loop. Since you were given this subroutine code and have not looked at it you must assume it may change the BSR. Assume the LED is hooked up with the Cathode connected to the RAZ Pinvia a 150 Ohm resistor. You can use a BRA or GOTO instruction for branching. Do you need to BANKSEL XX? Remember to use LATA and not PORTA For this output. On exit. leave LED off DITE PALTEN.EIN Mar Problem d. Create a loop that will blink a Blue LED with cathode hooked to Port A pin 2 (RA2) 8 times and then leave the LED off and then go on to the rest of the code, whatever hat might be. You have allocated the variable XX in common RAM to be your loop counter in setup code written earlier, but you will need to pre-load it with the requred value o make the loop execute 8 times. Pin RA2 has been set as an output and was initialised to 1 (LED off. Use the label "Loop for your loop control. There is a subroutine called Delay1 that will give the desired 1 second delay. You don't have to write this subroutine, you just need to call it after each LED change in the loop. Since you were given this subroutine code and have not looked at it you must assume it may change the BSR. Assume the LED is hooked up with the Cathode connected to the RAZ Pinvia a 150 Ohm resistor. You can use a BRA or GOTO instruction for branching. Do you need to BANKSEL XX? Remember to use LATA and not PORTA For this output. On exit. leave LED off DITE PALTEN.EIN Mar

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students explore these related Databases questions

Question

KEY QUESTION Refer to Figure 3.6, page

Answered: 3 weeks ago