Measure time period of PWM pulse

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

cross mob
Anonymous
Not applicable

Hello everyone.

   

I am a newbie at using the PSoC.
I need to measure the time period of an external PWM signal using PSoC5, but I am finding it hard how to use the counter. How to i configure the counter, and how do I connect the ports on the counter? 
The PWM signal varies from 500Hz to 5kHz, and I want to find the time period from rising edge on first pulse to rising edge on second pulse.

   

Example projects would be much appreciate 🙂

Regards
Frodi

0 Likes
5 Replies
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

This program should help you with this issue.

0 Likes
Anonymous
Not applicable

Thanks.

But i do not have a LCD for my PSoC. I have the CY8CKIT-059.
 

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

That is a extra component that reads out the data you could use a UART.

0 Likes
lock attach
Attachments are accessible only for community members.
RiLi_333781
Level 2
Level 2

Attached one project you can use, the output signal at CY8CKIT_059 P12.0.

   

You can use PsoC creator change the timing.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I just posted my trial to the following thread.

PSoC 5LP Duty Cycle

moto

0 Likes