FX3 inputs as a counter

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
        I have configured an input to be a counter. So each time I get a toggle of the input pin the counter counts up. I want to be able to reset the count every so often. is there a way to do this? Thanks Jon   
0 Likes
2 Replies
RaN_283461
Level 2
Level 2
        Can you be more specific whether you need to reset the GPIF state machine counter or some counter variable that you are internally using in your program ? Thanks Rags   
0 Likes
Anonymous
Not applicable

 Hi,

   

 

   

You can configure a FX3 GPIO as an input with an interrupt triggered on various events (falling edge, rising edge etc.).

   

Take a look at gpiocomplexapp example project from the FX3 SDK.

   

 

   

-Shashank

0 Likes