cancel
Showing results for 
Search instead for 
Did you mean: 

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.

jeffl.kelley9
Associate II

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?

1 REPLY 1

No, you haven't overlooked anything.

Wouldn't using "normal" timer rather than LPTIM be more suitable in this case?

JW