cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

Anonymous
Not applicable

Hello, I want to read a PWM signal output from a sensor. I am feeding this continuous PWM signal to P1_5. I tried many examples from here. But I always have a false trigger on the pin, even if I remove the sensor from the pin. Can you please guide me how to measure PWM signal properly?

0 Likes
1 Solution
Roy_Liu
Moderator
Moderator

The content in the links below could be helpful:

PWM measurement

Frequency Measurement

Time Period Measurement

Roy Liu

View solution in original post

0 Likes
3 Replies
LinglingG_46
Moderator
Moderator

Hi,

Can you describe the details about the false trigger?

What chip do you use?

Have you try to use the Oscilloscope to test the signal?

Thanks

0 Likes
Anonymous
Not applicable

I am using CY8CKIT with CY8C5888LTI-LP097 microcontroller on it. I tried the oscilloscope too. A signal is perfect PWM changing duty cycle according to physical change. I just want to read duty cycle and frequency of a signal. It would be great if you can provide me any code for this. I tried with PWM, counter and UART to read out values. PWM_MEAS.PNGMeas_2.PNG

0 Likes
Roy_Liu
Moderator
Moderator

The content in the links below could be helpful:

PWM measurement

Frequency Measurement

Time Period Measurement

Roy Liu

View solution in original post

0 Likes