2025-03-20 11:53 PM - last edited on 2025-03-21 2:10 AM by Andrew Neil
I am using STM32F100. I wrote a very long code for my timer interrupt. If the processing time of this code exceeds the interrupt duration, can a pin I SET be RESET?
2025-03-21 1:42 AM
How can I see how many milliseconds it takes for the MCU to complete the code I wrote in the timer interrupt routine?
2025-03-21 1:48 AM
You want to keep handling interrupts as short as possible. If it takes too long you need to break it up in multiple steps.
2025-03-21 2:04 AM
As @unsigned_char_array said, please give some more details - see: How to write your question to maximize your chances to find a solution.
@XooM wrote:I wrote a very long code for my timer interrupt.
That's generally a poor practice - so why did you do that?
Rather than try to bodge the problems that it causes, why not adopt a better approach instead?
@XooM wrote:can a pin I SET be RESET?
Pardon?
@XooM wrote:How can I see how many milliseconds it takes for the MCU to complete the code