SN74LV393A: Request to suggest a hardware counter circuit that counts both positive and negative edges of a signal.

Part Number: SN74LV393A
Other Parts Discussed in Thread: TIDA-00580, SN74AHC123A, SN74LVC1G32, SN74LVC1G58

Tool/software:

Hi there,

I'm looking for a hardware counter circuit that counts both positive and negative edges of a signal. The circuit will be used with a "PEC11D" encoder. I'm currently using a decoder design recommended by Texas (TIDA-00580 reference design | TI.com), but I'm encountering an issue with the pulse count. The encoder I have has 30 detents for 15 pulses, so when I follow Texas's design for 2 detents, I only get one count. I'm seeking suggestions for an alternative approach that can handle both positive and negative edges. If you have any other better idea that would also be very helpful. Your input would be greatly appreciated.

Link: TIDA-00580 reference design | TI.com

Thank you