Help me with frequency measurment CY8C27443-24PI

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

cross mob
lock attach
Attachments are accessible only for community members.
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
Level 4
First like received

Hi Andrei,

Is your input signal digital or analog?

-Kenny

0 Likes

Hi Kenny,

The input signal is analog.

Thanks!

0 Likes

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

I did this and still 0 remains.

0 Likes

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

0 Likes