You are here

How to measure the duration of PWM | Cypress Semiconductor

How to measure the duration of PWM

Summary: 1 Reply, Latest post by danaaknight on 16 Aug 2014 02:27 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
alex934's picture
37 posts

Hey everyone,

I know that there are lot of topic about it, but I didn't find a good one which works. I would like to measure the signal PWM from a receiver R/C. The high pulse duration is between 1ms-2ms with a frequency of 60Hz

I try to use a timer but I don't achieve to get a good value.

I put a timer in UDB but I don't understand what should I use.

I want to start the timer when I have a rising edge, and go to an interrupt when I have a falling edge, after in my interrup I read the timer, obtain the duration and reset the timer

But there are too much pins and I don't know what to choose and connect:


Thank you


user_14586677's picture
7646 posts

Attached a project you can consider.


Regards, Dana.

Log in to post new comments.