background image

Overview

STM8L15LPBOARD

6/9

Doc ID 16160 Rev 2

2.7 

MCU consumption auto-measurement circuit (JP1)

For IDD measurement the circuit below is implemented on the STM8L15LPBOARD. This 
circuit requires jumper JP1 to be connected between pins 2 and 3.

Figure 4.

IDD measurement circuit

         

In Run mode, IDD current is measured by MAX9 (U1) connected to the 2 ohm 
shunt resistor. In this case ICC_CNT_EN remains high during measurement.

In Halt mode, the operational amplifier MAX9 (U1) is connected to the 2 Kohm 
shunt resistor. To measure a current corresponding to the Halt mode the procedure is:

1.

Configure ADC to measure voltage on the ICC_measurement pin.

2. 

Configure ICC_WAKEUP as interrupt input on rising edge.

3. 

Enter in Halt or Active Halt mode with ICC_CNT_EN low.

4. 

ICC_WAKEUP rising edge wakeup the MCU after 300 ms.

5. 

start ADC conversion as soon as possible after wakeup in order to measure the voltage 
corresponding to Halt mode on 1 uF capacitor C1.

6. 

Reset the counter by programming ICC_CNT_EN High to avoid 2 Kohm to be 
connected later on VDD_MCU.

In Halt mode, the 2 K resistor is connected when T3 goes off after entering Halt mode. 
The Q12 counter output allows connection of the 2 K resistor when the current ICC 
becomes very low. 

The Halt mode measurement procedure can be used in Low power modes if the IDD current 
does not exceed 12 uA; otherwise the Run measurement procedure must be used up to 
12 mA. 

Table 3.

IDD measurement circuit pinout

Signal

Pin

ICC_Measurement

PF0

ICC_WAKEUP (on rising edge)

PA3

ICC_CNT_EN (active low)

PA2

www.BDTIC.com/ST

Содержание STM8L15LPBOARD

Страница 1: ...low power demonstration board demonstrates all the STM8L15x low power modes and permits the user to take consumption measurements in all modes Features SWIM debug support MCU consumption auto measure...

Страница 2: ...Doc ID 16160 Rev 2 1 Hardware layout Figure 2 STM8L15LPBOARD board layout top view 0 9 7XH XJ 8QWLWOHG Function button Wakeup button ICC auto_measurement Supply jumper JP3 SWIM connector CN3 Connecto...

Страница 3: ...STM8L15LPBOARD Hardware layout Doc ID 16160 Rev 2 3 9 Figure 3 STM8L15LPBOARD board layout bottom view R26 www BDTIC com ST...

Страница 4: ...nternal booster usage 2 3 SWIM connector CN3 A SWIM connector CN3 is available for programming and debugging 2 4 Buttons PC0 PC1 Two buttons with wakeup interrupt capability are available 2 5 External...

Страница 5: ...r CN1 The CN1 connector provides access to VDD GND RESET and 8 STM8L15LPBOARD I Os The table below gives the CN1 I O pIn connections Table 2 I O connections Pin I O 1 VDD 2 PA1 RESET 3 PD6 4 PD7 5 PC2...

Страница 6: ...interrupt input on rising edge 3 Enter in Halt or Active Halt mode with ICC_CNT_EN low 4 ICC_WAKEUP rising edge wakeup the MCU after 300 ms 5 start ADC conversion as soon as possible after wakeup in o...

Страница 7: ...umption measurement 1 The first question on the LCD screen is AUTO for auto measurement circuit a If Wakeup is pressed the auto measurement circuit is not used b If Function is pressed this mode is ch...

Страница 8: ...un Mode 4 Low power Wait Mode 5 Active halt with LCD a message is displayed on the LCD Mode 6 Active halt without LCD Mode 7 Halt no RTC nor LCD Rev 2 in this mode the RTC is disabled Power on is nece...

Страница 9: ...IES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXP...

Отзывы: