No Interrupts with timer encoder function? Nucleo G431KBT6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-04 1:17 PM
I tried to make an interrupt work with encoder input on timer 1. It does not fire interrupts.
Interrupts are activated (the code is reached).
Are there simply no interrupts possible, or is it another problem that i have to figure out?
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-04 4:56 PM
Did you start the timer?
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-04 3:54 PM
Interrupts can happen when using a timer in encoder mode, but they're not particularly useful. What are you trying to achieve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-04 4:56 PM
Did you start the timer?
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-04 5:17 PM - edited ‎2023-12-04 5:19 PM
No, i never thought, that i have to start the "counter", since i was counting from the outside. Also did not start it as interrupt.
Its quite a bit confusing, that cubeMX integrates functions and code, but in other parts it doesnt, which is not so obvious, if you dont know this stuff well. I have to get used to it.
