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

CCU4: Measure PWM duty cycle and period

$
0
0
Hello everybody!

I would like to measure the PWM duty cycle and the time of the pulse of an external signal. In this respect, I used the CCU4_SLICE_CONFIG App of Dave4, changed the Mode to "Capture" and set Event0, Event1 as rising and falling edge events. An Interrupt is created at Event1. But now I dont know how to go on.

I already read AP32287 - XMC1000, XMC4000 - Capture Compare Unit 4 (CCU4) and had a look at the example of the help page of the app in Dave 4. But in the PDF the code is written without using APPs and in the example a PWM is just generated but not read out.
Does anybody can help and tell me how the timervalue of the pulse is read out?

Board: XMC4500 Relax Kit

Best regards

Viewing all articles
Browse latest Browse all 9892

Trending Articles



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