Quad decoder | Cypress Semiconductor
I am trying to use the quad decoder as a simple up/down counter. I have a question on how the triggercommand should be configered.
I have tried the example and it works. I do have a encoder hooked up and have verified the both signals A & B are correct as in phase, amplitude, etc.
I am not using the interrupt but trying to read the counter with QuadDec_ReadCounter();. But it is not changing.
I have set the decoder as below.
EncoderCount = QuadDec_ReadCounter();
printf("Encoder Couunter = %lu\r\n",EncoderCount);