You are required to use the rti to generate the required


RTI Interrupts and LED flashing. Write a C (or assembly) program to flash the LEDs on your demo board with the following patterns:

1. Turn on all LEDs for about 0.4 s and turn them off also for about 0.4 s.

2. Repeat step 1 three more times.

3. Turn on one LED at a time from left to right with each LED turned on for about 0.4 s.

4. Repeat step 3 three more times.

5. Turn on one LED at a time from right to left with each LED turned on for about 0.4 s.

6. Repeat step 5 three more times.

7. Turn LEDs driven by pins RB7 and RB0 on and off four times. The on-time and off-time are each about 0.4 s.

8. Turn LEDs driven by pins RB6 and RB1 on and off four times. The on-time and off-time are each about 0.4 s.

9. Turn LEDs driven by pins RB5 and RB2 on and off four times. The on-time and off-time are each about 0.4 s.

10. Turn LEDs driven by pins RB4 and RB3 on and off four times. The on-time and off-time are each about 0.4 s.

11. Turn LEDs driven by pins RB3 and RB4 on and off four times. The on-time and off-time are each about 0.4 s.

12. Turn LEDs driven by pins RB2 and RB5 on and off four times. The on-time and off-time are each about 0.4 s.

13. Turn LEDs driven by pins RB1 and RB6 on and off four times. The on-time and off-time are each about 0.4 s.

14. Turn LEDs driven by pins RB0 and RB7 on and off four times. The on-time and off-time are each about 0.4 s.

15. Go to step 1 and repeat.

You are required to use the RTI to generate the required delay and trigger the change of LED patterns.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: You are required to use the rti to generate the required
Reference No:- TGS01465566

Expected delivery within 24 Hours