how to calc. the period/freq. from array

Status
Not open for further replies.

ahmed osama

Full Member level 6
Joined
Jul 18, 2004
Messages
352
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,296
Location
Cairo, Egypt, Egypt
Activity points
2,652
how to calc. the period/freq. from array

i have an array of samples taken for square wave and i need to calc the period from this array

any tips?
 

I think FFT is more precise
 

I think FFT is more precise
That really depends on the number of samples, sample rate, etc..

Looking at zero-crossings takes less resources. It all depends on what is really required. If this is being done on a computer, then use an FFT; if it's being done in an FPGA, then maybe a different approach makes more sense.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…