Question: Q 3 a . [ 3 . 5 marks ] Write a program using an Interrupt Service Routine that does the following : Waits for
Qa marks Write a program using an Interrupt Service Routine that does the following :
Waits for a Single High Pulse of on Pin OC When the High Pulse goes from High to
low, it turns ON the LED at Port A RA and the LED then stays on
You will use the Output Compare OC Dual Compare mode with a Single High Pulse OCM
You will use Timer for the OC with a prescale value of You need to setup OCRS
and such that
We need to convert into Timer Clock Cycles. We have Timer with a fpb is
and a Precale of :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
