Skip to main content
Associate
September 12, 2023
Solved

Why do it immediately exit halt mode with in about 10us?

  • September 12, 2023
  • 2 replies
  • 2535 views

Hello guys :)
I am programming with stm8s105k4
it immediately exit halt mode with in about 10us When It enter the Halt mode.
What is it?
I knew the exit condition from halt mode is only EXT INT, But I naver enable any EXT INT.
What happend with my MCU.
There are not any Interrupts(include comm int.) and no reset.

I don,t know What is it.

    This topic has been closed for replies.
    Best answer by Issamos

    Hello @Wonjeong 

    To wake-up from halt mode the reason can be a reset, an EXTI activation, an end of transfer in spi, an I2C interruption or a wwdg reset on halt if WWDG_HALT is set to 1.

    Then I suggest you to verify each and every peripheral activation in halt mode(using a deep debug and an oscilloscope to visualise some values).

    Best regards.

    II

    2 replies

    Issamos
    IssamosBest answer
    Super User
    September 12, 2023

    Hello @Wonjeong 

    To wake-up from halt mode the reason can be a reset, an EXTI activation, an end of transfer in spi, an I2C interruption or a wwdg reset on halt if WWDG_HALT is set to 1.

    Then I suggest you to verify each and every peripheral activation in halt mode(using a deep debug and an oscilloscope to visualise some values).

    Best regards.

    II

    WonjeongAuthor
    Associate
    September 12, 2023

    Thank you so much your help. I will check as you told that.