12 Replies Latest reply on Jul 1, 2016 9:52 AM by user_242978793

    PSOC 5LP measuring analog frequency using Comparator and Counter

    nguyentuananh394_1702341

      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.