1 Reply Latest reply on Jul 27, 2015 5:28 AM by user_14586677

    best way to count the number of failing edges?

    aditya.karn

      Hi,

         

      I have configured the SPIM component with 11 bits of Manchester data. I want to count the number of falling edges of that Manchester data. Currently have configured the Counter to do so. Counter is configured as :

         

      -------------------------------------

         

      Capture Mode: Falling Edge

         

      Interrupt: On Capture 

         

      Compare mode: Less than or Equal

         

      Capture and count input: manchester

         

      Clock: sclk

         

      --------------------------------------

         

      In the ISR, I want to perform action on the particular falling edge.

         

      What is the best way to count the falling edges of the manchester data?