cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 5, 3 & 1

ansac_3800691
New Contributor II

Hello,

I have implemented the proposed method on the AN2283 site and fail to measure the frequency of a perfect 2 kHz sinus.

I checked out the external variable: bDataAvailable, wSaveCountNum,  cSaveOverFlow , wSaveTickNum  and they have the value 0x0000 or 0xFFFF.

Here are some prints and program code attached.

54515683_1101883476866871_8757424027187806208_n.jpg

I appreciate your help

Best regards,

Andrei

0 Likes
5 Replies
kemic_264446
New Contributor II

Hi Andrei,

Is your input signal digital or analog?

-Kenny

0 Likes
ansac_3800691
New Contributor II

Hi Kenny,

The input signal is analog.

Thanks!

0 Likes
kemic_264446
New Contributor II

Yes I think that's the issue.

You may have to pass your signal through a comparator first, to make it a square wave, then use that as the input-signal.

0 Likes
ansac_3800691
New Contributor II

I did this and still 0 remains.

0 Likes
SampathS_11
Moderator
Moderator

Can you check if you can see the signal at the output of the comparator?

0 Likes