- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, im new to embeded systmes, im trying to interface a mechanical rotary encoder with the MIMXRT 1020 EVK, can anyone tell me if there are speciphic module/peripherals to do this ? i'm currently trying with interrups pins.
thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on your usage and the frequency of your rotary encoder: Because mechanical, you will need to debounce the signals imho. And the signal frequency is probably so low that using interrupts does not make much sense. What I use for such things are normal GPIO pins (polled) with a debounce state machine. That has the advantage that you don't need precious interrupts and you don't run into a 'death-by-interrupt' situation.
I hope this helps,
Erich


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Irv95G ,
RT1020 has QTMR and ENC. QTMR can deal with quadrature mode and increase/decrease mode. ENC is enhanced quadrature encoder/decoder module.
Regards,
Jing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on your usage and the frequency of your rotary encoder: Because mechanical, you will need to debounce the signals imho. And the signal frequency is probably so low that using interrupts does not make much sense. What I use for such things are normal GPIO pins (polled) with a debounce state machine. That has the advantage that you don't need precious interrupts and you don't run into a 'death-by-interrupt' situation.
I hope this helps,
Erich
- 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
Thanks for the information ErichS
