- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am working on CY8CKIT-043. I needed at least 32-bit for a quadrature decoder in my project, however, TCPWM only offers16-bit of counter width.
I wanted to extend the 16-bit to 32-bit, but, the only interrupt source available are "terminal_count" and "compare".
I believe I will need at least an overflow and underflow flag for me to get this to work.
I know I can't use non-TCPWM QuadDec because it consumes all of the UDBs.
Any tips?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check if this QuadDecoder implementation works for you:
Quad Decoder with Button Switch component for rotary shaft encoders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check if this QuadDecoder implementation works for you:
Quad Decoder with Button Switch component for rotary shaft encoders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Whoa, thank you!
I was actually trying to get around it by using this schematic to set a direction-flag in my TC interrupt:
Found here (by RÖB): Encoders Spin Us Right Round | Hackaday
I will try the software version later.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check also this hardware implementation for rotation direction
Quadrature decoding with Llogic Gates (No UDBs or TCPWMs use - Hackster.io
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for both of the links, they are super helpful!
You give me a hard time for selecting the best answer.