Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

How to handle CCU timer wraparound in Capture mode?

$
0
0
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

Viewing all articles
Browse latest Browse all 9892


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>