Question: Use timer 2 and Timer 3 to setup interrupt calls. Use the 8 LEDs connected to pins RA 0 through RA 7 of the PIC

Use timer 2 and Timer 3 to setup interrupt calls. Use the 8 LEDs connected to pins RA0 through RA7 of the PIC32 MCU.PushButton1 is connected to RD6 and PushButton2 is connected to RD7. When pushButton1 is pressed, Timer2 interrupt is called , and Timer 2 ISR run in which LED0 to LED7 are blinking and moving left. When pushButton2 is pressed, Timer3 interrupt is called , and Timer 3 ISR run in which LED7 to LED0 are blinking and moving right. Assume the: PBCLK of the MCU is set at 40 Mhz. The delay in the timing of the program in between the change of state of the LEDS should be 250 ms. Timer 2 and Timer 3 pre-scale settings is 1:256. Priority for interrupts is

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 Programming Questions!