STM32F767 (probably not important) LPTIM1 encoder mode.
What I want to do is generate an interrupt whenever the count changes which seems typical enough that it ought to have been made easy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-12-18 10:23 AM
Current scheme involves trying to fence the current count by knowing the direction with CMP to trigger at the next position. Direction-change interrupts to alter which side CMP is placed with ARR match to handle the starting case where we don't really know the direction.
However, that is a bigger mess than seems reasonable because the desire to be notified whenever the count changes is just about the first thing people would want to do and should have been designed in. Does anyone have a clue?
- Labels:
-
LPTIM
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-12-19 12:53 AM
No, you haven't overlooked anything.
Wouldn't using "normal" timer rather than LPTIM be more suitable in this case?
JW
