Announcements
IMPORTANT: Cypress Developer Community currently doesn’t allow sign-in to prepare for the upcoming transition. To learn more, check out our announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

Anonymous
Not applicable

Can i count square wave?

0 Likes
1 Solution
Bob_Marlowe
Expert II

First you will have to decide what you want to count: The number of pulses, the pulse width or the pulse frequency. For number or frequency you just need one or two counters (one to gate the time measure frequency).

   

For pulse width you will need to count a clock with known frequency while thi input is high.

   

 

   

Bob

View solution in original post

0 Likes
3 Replies
Bob_Marlowe
Expert II

First you will have to decide what you want to count: The number of pulses, the pulse width or the pulse frequency. For number or frequency you just need one or two counters (one to gate the time measure frequency).

   

For pulse width you will need to count a clock with known frequency while thi input is high.

   

 

   

Bob

View solution in original post

0 Likes
Anonymous
Not applicable

if use counter to count the number of pulses,how to get the number of pulse.

0 Likes
Bob_Marlowe
Expert II

Read the counter with an API. Read datasheets for counters.

   

 

   

Bob

0 Likes