Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 5, 3 & 1

ansac_3800691
Level 1
Level 1

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
Level 4
First like received
Level 4

Hi Andrei,

Is your input signal digital or analog?

-Kenny

0 Likes
ansac_3800691
Level 1
Level 1

Hi Kenny,

The input signal is analog.

Thanks!

0 Likes
kemic_264446
Level 4
First like received
Level 4

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
Level 1
Level 1

I did this and still 0 remains.

0 Likes
SampathS_11
Moderator
Moderator 5 questions asked First question asked 500 replies posted
Moderator

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

0 Likes