Hello Jesus,
Thanks for your reply.
That would probably not work for my use case, as I use both Capture Trigger 0 and 1. According to errata for XMC45 (CCU4_AI.001), "CCU4 period interrupt is not generated in capture mode" in that case. Both Capture Triggers are used because I want to get different interrupts for falling and rising edges.
I solved the problem using a software approach. In the ISR, a timestamp was retrieved by other means. The hardware timestamp was not used.
Thanks again for your reply, which should still be useful if only Capture 0 is used.
Best regards,
Fredrik
Thanks for your reply.
That would probably not work for my use case, as I use both Capture Trigger 0 and 1. According to errata for XMC45 (CCU4_AI.001), "CCU4 period interrupt is not generated in capture mode" in that case. Both Capture Triggers are used because I want to get different interrupts for falling and rising edges.
I solved the problem using a software approach. In the ISR, a timestamp was retrieved by other means. The hardware timestamp was not used.
Thanks again for your reply, which should still be useful if only Capture 0 is used.
Best regards,
Fredrik