PDA

View Full Version : Measure PWM Dutycycle



Kurt
Apr 14th, 2017, 12:43 PM
Hello

I like to measure the duty cycle of an external PWM signal continously. Read out of the result should be done by an interupt. How should I start with Dave 4? Is any sample out?

Kind regards
Kurt

aurixuser
Apr 15th, 2017, 07:36 AM
CCU4, CCU8 are designed for such function.
Dave has built-in examples to show how to use these modules.

Andi_H
Apr 17th, 2017, 12:11 AM
Hey kurt,

The easiest way is to use the capture app in dave 4. Look at the help section of this app and you will understand how its work.

Best regards

Kurt
Apr 18th, 2017, 09:36 AM
Hello,

I started from scratch and all worked as it should.

Kind regard
Kurt

smays
Apr 20th, 2017, 12:10 PM
Would you, please, be willing to share your PWM measurement code?

Thanks,
Steve.

Kurt
Apr 22nd, 2017, 09:13 AM
Hello Steve

just follow https://www.infineonforums.com/threads/4409-CCU4-Measure-PWM-duty-cycle-and-period

Kind regards Kurt