Question: Question 3 GPTM Timer - Input Capture Answer 3 a - 3 e using the following information. Suppose Timer 2 A is configured for 1
Question
GPTM Timer Input Capture
Answer a e using the following information.
Suppose Timer A is configured for bit, countdown, edgetime, capture mode and uses the MHz system clock.
Below is a graph of the timer operation as it repeatedly counts down from the maximum count value.
Let F count value xCCC G count value xFFD and H count value xFFB
timergraph.png
Question d
Provide mask values to complete the following lines of code. These lines of code appear at the beginning of the interrupt handler for Timer A to process a capture event interrupt in input edgetime mode This code checks whether the expected interrupt occurred, and if so clears the interrupt status bits and executes other code. Use friendly code that preserves unused bits. Write your answer in hex. Do not include leading zeros, egx should be written as x
if TIMERMISR & mask
TIMERICRR mask;
maskin hex:
maskin hex:
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
