Question: Q 3 a . [ 3 . 5 marks ] Write a program using an Interrupt Service Routine that does the following : Waits for

Q3a.[3.5 marks] Write a program using an Interrupt Service Routine that does the following :
Waits for a Single High Pulse of 250ms on Pin OC3. When the High Pulse goes from High to low , it turns ON the LED at Port A, RA3 and the LED then stays on.
You will use the Output Compare OC1, Dual Compare mode with a Single High Pulse 004). You will use Timer 3 for the OC with a pre-scale value of 256. You need to setup OC3RS and OC3R such that OC3RS -OC3R=200ms.
We need to convert 200ms into Timer Clock Cycles. We have Timer 3 with a fpb is 10Mhz and a Precale of 1:64.
 Q3a.[3.5 marks] Write a program using an Interrupt Service Routine that

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