13 Replies Latest reply on Apr 8, 2015 8:38 PM by rolando.moraga.mora

    Quadrature 32 bit size counter Problem

    rolando.moraga.mora

       Hello everyone,

      Thanks in advance for any help, I'm a student which needs to use a QuadDec with 32 bit size counter, so I created a long int variable to storage it's value, because I need to send it through the UART interface as string to capture the quadrature information, the thing here is that even though I do select the counter with 32 bits, the data I'm receiving can't go up to -32 768 and +32 768 just as it was a 16 bits counter.

         

      I read in the Component Data Sheet this:

         

       

         

      "The 32-bit counter implements the lower 16 bits in the hardware counter and the upper 16 bits in software to reduce hardware resource use. For this target, an additional ISR is used. To work properly with the 32-bit counter, interrupts must be enabled. You can add ISR code to source files as needed; see the Interrupt Component datasheet for more details."

         

       

         

      I'm not really sure to fully get what it means but as far as I can understand that it seems that it really never creates a 32 bit counter. 

         

      How can I fix this?

      Thanks again.