2013-02-11 04:29 PM
What is the interrupt latency on STM8S MCUs? I am new to STM8 and the few docs I have read do not mention it.
2013-02-11 09:41 PM
PM0044 - STM8 CPU Programming Manual - contains the answer.
Figure 2 of Chapter 3 shows that an interrupt takes nine clock cycles to be serviced.2013-02-14 10:15 PM
It's correct but one can see a different time, much larger, due to a problem with ST FW library.
I work with STM8L151, EWSTM8. On entry to RTC wakeup ISR I put a pin toggling and connected oscilloscope probe. Another probe I connected to CCO, routing HSI. MCU is moving to Active Halt mode for a certain time and then - waking up. Looking at the both probes, I saw a difference of 7.5us between the wakeup and getting into RTC ISR, which is the interrupt latency, you're asking about. If the project is built with Cosmic or with IAR, but without ST lib, then, indeed, the mentioned 9 cycles are seen.2013-02-22 07:50 PM
Thanks for your replies.
I found my answer the next day, I guess I was looking in the wrong places :)2014-05-27 03:38 AM
Dear RobG,
Could you share your solution? I can't find my own. I'm not using ST FW lib at all except header files. Regards, Dmitry.