Table 22-17 lists the steps in detecting an event.
Table 22-17 Detect EventStep | Register/Bit Field/Programming Model | Value |
---|
Wait until event detected? | IRQSTATUS[2] TCAR_IT_FLAG | = 0x1 |
Read timer capture value. | TCAR1 and/or TCAR2 | |
Clear capture interrupt request. | IRQSTATUS[2] TCAR_IT_FLAG | 0x1 |