Measure PWM Dutycycle

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
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
0 Likes
5 Replies
User12775
Level 5
Level 5
First solution authored First like received
CCU4, CCU8 are designed for such function.
Dave has built-in examples to show how to use these modules.
0 Likes
Andi_H
Employee
Employee
First solution authored First like received
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
0 Likes
Not applicable
Hello,

I started from scratch and all worked as it should.

Kind regard
Kurt
0 Likes
Not applicable
Would you, please, be willing to share your PWM measurement code?

Thanks,
Steve.
0 Likes
Not applicable
0 Likes