4 Replies Latest reply on Feb 21, 2011 11:15 AM by giuseppe.ventura

    How do I count the number of high-level output of a comparator zero-crossing but only for 1 second?

    giuseppe.ventura

       my problem is:

         

      How do I count the number of high-level output of a comparator zero-crossing?

      I have to count how many zero-crossing exist in a second, therefore a counter must count for 1 second and give back the number of zero-crossing and put it in a global variable.

         

      any idea?

      thanks all!