Question: Write a Program in cthat does the following: [ g Marks ] Use timer 2 and fimer' 3 to setup Interrupt talls. Use the 8

Write a Program in cthat does the following:
[g Marks]
Use timer 2 and fimer'3 to setup Interrupt talls.
Use the 81 LDs comeded to pins RAO through RA7 of the PCS2MCu.PushButten is
connected to RB5 and PushButtonz is connected to RB7.
When pusiButten1 is pressed, Timer 2 interrupt iscalled, and Timer 2158 run in which LEDD.
to LED 7 are bilinking and moving left. When pushiButtonz is pressed, Timer3 intenupt is called
and Timer 3 ISR nun is which LEDT to LEDO are blinking and moving right:
Assuine thes
PBCL of the MCU is setat 40Mhz.
The delay lo the timing of the programin betwech the diange of state of the levs shoutd
be 250ms.
Timer z and Timer 3 pie-sitale setings is 1256.
Priority for interrupts is 6 :
Write a Program in cthat does the following: [ g

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!