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 3
GPTM Timer - Input Capture
Answer 3a -3e using the following information.
Suppose Timer 2A is configured for 16-bit, count-down, edge-time, capture mode and uses the 16 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 0xCCC6, G = count value 0x7FFD, and H = count value 0x5FFB.
timer-graph.png
Question 3d
Provide mask values to complete the following lines of code. These lines of code appear at the beginning of the interrupt handler for Timer 2A to process a capture event interrupt (in input edge-time 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, e.g.,0x01 should be written as 0x1.
if ((TIMER2_MIS_R & mask1)
{
TIMER2_ICR_R |= mask2;
...}
mask1(in hex):
mask2(in hex):

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!