This document is intended for touch sensing application designers who require an overview
of low power modes in the STM8TL53xx devices. It describeshow to use the general
features of these devices in low power modes by explaining the differences between the
various modes. It focuses on how to reduce consumption when using the ProxSense
peripheral and demonstrates how this is managed by the STM8TL5x Touch Sensing Library
in addition to giving some code examples.
This application noteis not intended to replace the STM8TL53xx datasheet. All values given
in this document are for guidance only. For guaranteed values, please refer to the
STM8TL53xxdatasheet.
The STM8TL53xx microcontrollers are digital logic devices using the complementary metal
oxide semiconductor (CMOS) technology. In these type of devices, power consumption is a
sum of:
●Static power (mainly caused by transistor polarization and leakage)
●Dynamic power which depends on the supply voltage and the clock frequency
Dynamic power is calculated using Equation 1.
Equation 1
where:
●C is the CMOS load capacitance
●V is the supply voltage
●f is the clock frequency
Static consumption is negligible compared to dynamic consumption when the clock is
running. In some low power modes, when no clock is running, static consumption is the
main consumption source.
Total consumption is a sum of static and dynamic consumption as given by Equation 2.
Equation 2
where:
●I
●I
●I
is the supply current
DD
DynamicRun
Static
is the current consumption dependent on the CPU frequency
is the current consumption independent on the CPU frequency
4/30Doc ID 018847 Rev 2
AN3404Power consumption factors
Consequently, power consumption depends on:
●The microcontroller unit (MCU) chip size
This includes the technology used, the number of transistors, and the analog
features/peripherals embedded and used in the application.
●The MCU supply voltage
The amount of current used in CMOS logic is directly proportional to the square of the
power supply voltage (V²). Thus, power consumption may be reduced by lowering the
MCU supply voltage. This is less critical for STM8TL53xx devices than for other
microcontrollers, as an internal voltage regulator is used. However, the MCU supply
voltage could have an impact on the remaining components on the board.
●The clock frequency
Power consumption may be reduced by decreasing the clock frequency when fast
processing is not required by the application.
●The number of active peripherals or MCU features used (such as timers,
communication peripherals, watchdogs, ProxSense, etc.)
The greater the number of active peripherals or features, the greater the amount of
power consumed.
●The operating mode
Power consumption depends on which mode a particular application is running
(example: central processing unit (CPU) on/off, oscillator on/off). For an application
powered by a battery, the consumption is very important. Usually, the average
consumption should be below a certain target value to ensure an optimum battery
lifetime. This means that an application can consume more for short periods of time
and keep its average current consumption below the target value.
Doc ID 018847 Rev 25/30
Power supplyAN3404
6DOMAI N
083?62%'
6
$$ )/
6
$$
6
33 ) /
6
33
N&
6
$$
&
6
$$
&
N&
AI
!NALOGBLOCKS
6OLTAGEREGULATOR
MAINVOLTAGEREGULATOR-62
LOWPOWERVOLTAGEREGULATOR,062
-(Z2#OSCILLATOR(3)
K(Z2#OSCILLATOR,3)
,INEARVOLTAGEREGULATOR
$IGITALBLOCKS
)/S
34--#5CORE
#05
2!-
&LASHPROGRAMMEMORY
$ATA%%02/-
4IMERS
#OMMUNICATION
PERIPHERALS
0ROX3ENSEINTERFACE
4RANSMIT)/S
2ECEIVE)/S
!NALOG0ROX3ENSESYSTEM
6
#/2%
2 Power supply
The STM8TL53xx family embeds two regulators which provide a supply voltage (V
the core and internal peripherals.
Figure 1.Power supply overview
CORE
) for
1. If V
is lower than 1.8 V, the 1.8 V domain is supplied by the voltage on the VDD input. For low power
DD
modes where the low power voltage regulator (LPVR)is used, this domain is supplied by a 1.55 V voltage.
The main voltage regulator (MVR) provides a 1.8 V supply voltage. It has a high current
capability, as it can deliver up to 25 mA. However, the consumption of this regulator is higher
than the consumption of the LPVR. Consequently, the MVR is used during a standard
operation only.
The consumption of the LPVR is very low as required for low power modes. The LPVR can
deliver up to 200 µA, providing 1.55 V to the digital part of the MCU.
After reset, the MVR provides a supply voltage (V
microcontroller. Depending on the functional mode, the MVR can be switched off. In this
case, the LPVR continues to provide the V
the power-on reset/power-down reset (POR/PDR). This system ensures a proper startup
and reset of the MCU, while V
V
falls below the PDR threshold.
DD
6/30Doc ID 018847 Rev 2
DD
CORE
risesabove the POR threshold. It resets the MCU when
) to the internal digital parts of the
CORE
voltage. The power supply is monitored by
AN3404Power supply
2.1 Internal supply structure
STM8TL53xx devices operate from 1.65 V up to 3.6 V, when connected to one pair of supply
pins. There are no dedicated supply pins for the analog voltage domain. It is recommended
to use a decoupling ceramic capacitor placed close to the supply pins.
●In Run and Wait modes, both MVR and LPVR provide the V
●
In Halt/Active-halt modes, the LPVR is automatically used while the MVR is switched
off by the system in order to reduce current consumption.
CORE
Doc ID 018847 Rev 27/30
Clock managementAN3404
I
DD(STM8TL53xx)
f150×μA()MHz⁄[]215 μA[]+=
3 Clock management
3.1 Clock system overview
The 16 MHz high-speed internal RC oscillator (HSI) is the only clock source that can be
used to drive the system clock. The 38 kHz low-speed internal RC oscillator (LSI) is only
used to supply the auto-wakeup unit (AWU) and watchdog.
Each peripheral clock can be switched on or off independently, in order to optimize power
consumption when the peripheral is not used. This is done by using the peripheral clock
gating (PCG) feature. See the “Clock control (CLK)” section of the STM8TL53xx
microcontroller family reference manual (RM0312) for more details.
3.2 Default clock source
The default clock source after reset is HSI/8. The user can then switch the clock to different
frequencies by choosing the prescaler (/1, /2, /4 or /8) for the internal RC 16 MHz (HSI)
clock through the HSIDIV[1:0] bits in the Clock divider(CLK_CKDIVR) register.
3.3 Clock configuration and power management
In addition to the flexibility of the clock sources, different complementary clock
configurations and features are available to optimize the power consumption of the device:
●Each peripheral clock can be switched on/off through the Peripheral clock gating
registers 1 and 2 (CLK_PCKENRx).
●System clock dividers from 1 to 8 (HSIDIV[1:0] bits in the CLK_CKDIVR register) are
available.
Note:System clocks are used to supply both CPU and peripherals.
The STM8TL53xx is focused on low consumption. This is why all peripheral clocks are
gated by default. Before accessing any peripheral register, it is mandatory to enable the
clock for the given peripheral.
3.4 Clock selection versus power consumption
The selected clock type and speed is one of the major factors influencing power
consumption of the MCU (see Section 1: Power consumption factors). Total consumption for
the STM8TL53xx devices is given by Equation 3.
Equation 3
Note:The values given inEquation 3 are measured with all peripherals disabled.
8/30Doc ID 018847 Rev 2
AN3404Clock management
Slowing down the clock decreases the immediate consumption but, often this is not the ideal
solution. By slowing down the clock, the CPU performance is also reduced and a longer
time is required to perform an action or computation. If we consider the average
consumption, it might be better to use the highest available clock speed to perform the
required operation, and then force the MCU into one of the low power modes (like Activehalt mode) for the remaining time frame. This should be taken into account during the
design of application flowcharts.
Doc ID 018847 Rev 29/30
Loading...
+ 21 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.