Frequency measurement can be done in PSoC in 2 ways:
1. Capture method for measuring the frequency works only for lower frequencies (< 50 KHz (depends on CPU clock)) because as the time-period of the signal becomes comparable to that of CPU clock , the program flow gets stuck in ISR routine due interrupt within an interrupt.
2. So, for measuring high frequencies use a timer of tick 1 sec and count the pulses using a counter.
This is a good ap note on the subject -
http://www.cypress.com/?rID=2671
And attached.
Regards, Dana.
This is a good ap note on the subject -
http://www.cypress.com/?rID=2671
And attached.
Regards, Dana.