PSOC 5LP measuring analog frequency using Comparator and Counter | Cypress Semiconductor
PSOC 5LP measuring analog frequency using Comparator and Counter
I am trying to measure frequency of an input analog signal using Comparator (to create digital signal) that feeds into a counter. I am also utilizing a window PWM as capture to the counter.
However, it doesn't show the correct frequency when I connect AC_in and AC_ref to a function generator that produces 50Hz sine wave. I am also using a limiting and biasing external circuit as shown in my Top Design.
It works well with only square wave. I have attached my project below.