22.4.3.2 Time-Stamp Capture on Events or I/Os

This feature is enabled when the Capture Time Stamp (STAMP) Event Action is selected in Event Control register (EVCTRL.EVACT). The counter TOP value must be smaller than MAX.

When a capture event is detected, the COUNT value is copied into the corresponding Channel x Compare/Capture Value (CC[n]) register. In the event of an overflow, the MAX value is copied into the corresponding CC[n] register.

When a valid captured value is present in the capture channel register, the corresponding Capture Channel n Interrupt Flag (INTFLAG.MCn) is set.

The TC can detect capture overflow of the input capture channels: When a new capture event is detected while the Capture Channel interrupt flag (INTFLAG.MCn) is still set, the new timestamp will not be stored, and INTFLAG.ERR will be set.

Figure 22-15. Time-Stamp