Question: 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
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
Get step-by-step solutions from verified subject matter experts
