EasyManua.ls Logo

ST STM8A-DISCOVERY - Figure 16. STM8 AL Board IDD Measurement Circuit

ST STM8A-DISCOVERY
48 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1574 Hardware and layout
Doc ID 023645 Rev 1 29/48
Figure 16. STM8AL board I
DD
measurement circuit
Run mode
In Run mode, I
DD
current is measured using the operational amplifier MAX9938FEUK+ (U8)
connected to the 2
shunt resistor (R23). In this case IDD_CNT_EN remains high during
measurement, so R24 remains in short-circuit during the measurement because of switch
U5 which remains ON permanently. The jumper JP2 must be connected between pins 2 and
3 of JP2. The measurement range in this case can be up to 30 mA.
Low power mode
In Low power modes (Halt or Active halt), I
DD
current is measured using the operational
amplifier MAX9938FEUK+ (U8) connected to the 2 K
shunt resistor (R24), controlled by
the switch STS4DPF20L (U5). In this case the counter 74HC4060 (U7) enabled by
IDD_CNT_EN manages the measurement timing according to Figure 17. The measurement
range in this case can be up to 30 µA.
Low power mode I
DD
measurement principle
The principle used to measure a current when the STM8AL3L68T is in Low power mode is:
1. Configure ADC to measure voltage on the IDD_Measurement pin.
2. Configure PE6 to serve as wakeup pin.
3. Enter Low power mode after setting IDD_CNT_EN (PC4) signal low.
4. IDD_WAKEUP rising edge wakes up the MCU after around 300 ms.
5. Start ADC conversion as soon as possible after wakeup in order to measure the
voltage corresponding to Low power mode on capacitor C14.
6. Reset the counter by programming IDD_CNT_EN high (in less than 70 ms after the
wakeup) to avoid the R24 2 K
resistor being connected later in Run mode.
AFT
R28
47K
2
3
4
5
U4
74LX1G04CTR
I/O
1
O/I
2
GND
3
C
4
VCC
5
U9
74H1G66STR
VDD
R23
2(1%)
R24
2K(1%)
Q12
1
Q13
2
Q14
3
Q6
4
Q5
5
Q7
6
Q4
7
GND
8
CO
9
CO
10
CI
11
CLR
12
Q9
13
Q8
14
Q10
15
VCC
16
U7
R26
10K
R25
10K
C1 4
1uF
1
2
3
JP2
C1 6
1nF
R29
15K
R27
30K
Oscillator frequency 30 KHz
R22
0
C1 5
100nF
SB6
SB 8
SB7
IDD Measure
ffono
4
5
2
3
1
U8
MAX9938FEUK+
S1
1
D1
8
G1
2
D1
7
S2
3
D2
6
G2
4
D2
5
U5
STS4 DPF20L
IDD_Measurement
IDD_CNT_EN
IDD_WAKEUP
PF0
PE6
PC4
3V3
3V3
3V3
3V3
3V3
MS31059V1
M74HC4060TTR

Table of Contents

Related product manuals