2013-11-11 03:34 AM
Hi
We are developing with STM8L152C6 microcontroller and debugging using the discovery board.
Our application uses a battery when there is no power. In this case, we need only two I/O interrupts and the LCD to be working.
We decided to run the microcontroller in the halt mode when we do not need to use the LCD and in active halt mode when it is required to use the LCD.
We are using stm8l libraries version 1.6.1 (released on 28-June-2013). To run the microcontroller in the halt mode we called the HALT instruction by calling the library function halt().
The question is
: how to configure the microcontroller to run in the active halt mode?Thanks in advance
#stm8l-active-halt2013-11-11 07:01 AM
Hello,
It is the same command to enter in active-halt or halt mode.From my point of view the ''halt'' mode is an ''active-halt'' mode without peripheral running. It is not the same behavior as LPM3 or LPM4 in MSP430.You have to manually disable the module like rtc/lcd/lse/... to disable them in ''halt'' mode.2013-11-12 03:20 AM
Hi,
Thank you very much for your reply.I'll try to do that2014-11-21 03:23 AM
Active halt like the halt mode but it operate with RTC peripheral.