Once the capture is triggered, the capture register cannot be overwritten until the Input edge flag is enabled again. This is provided in a different way depending on the Interrupt service settings and
OnCapture Event usage.
The following cases can occur:
- Interrupt service is disabled. Once a capture event occurs, no further updating of the capture register will occur until the method GetCaptureValue is used (the Input edge flag is enabled in this method).
- Interrupt service is enabled and event OnCapture is disabled. The Input edge flag is cleared immediately after the interrupt occurs. Content of the capture register can be updated immediately with any input active transition.
- Interrupt service is enabled and event OnCapture is enabled. It is recommended to use the method GetCaptureValuewithin OnCapture event. Content of the capture register is protected against the change until the end of OnCapture event only.