-
We are working on a battery-operated application where the current consumption (especially during STOP mode) determines the success of the project. We are currently using Joulescope for our measurements. Yesterday my colleague who tested the He obtained the following measurements: Test 1: ADC is enabled, enabling/disabling
|
CONFIG_PM |
ADC AUTO_OFF |
Current(mA) |
---|---|---|
y | y | 0.25 |
y | n | 0.25 |
n | y | 6.65 |
n | n | 6.96 |
Test 2: Disable the ADC
CONFIG_PM |
LL_ADC_Disable |
Current(mA) |
---|---|---|
y | y | 0.25 |
y | n | 0.25 |
n | y | 6.65 |
n | n | 6.96 |
The tests showed that both LL_ADC_Disable
& AUTO_OFF
have no effect on the current consumption if the MCU enters STOP mode, but can have a 0.3mA reduction when the CPU is in RUN mode and the ADC is not converting.
He used the following code to perform the test, configuring AUTO_OFF
/ Disable the ADC at the end of ADC init function:
Digging further, I found this in the PWR chapter of the G0B1RE reference manual
I'm wondering if the ADC is disabled by hardware when the MCU entered STOP mode? If it does, that explains why there's no difference in current consumption when AUTO_OFF
is enabled or not.
And SPIs are same as the ADC (not available), if so it explains why I cant measure the difference in my previous PR using a multimeter #36681, and this PR is not necessary since ADC will be turned off automatically by hardware, same goes for #32544
But I'm not sure, and would love some comments.
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
@ycsin This is the case indeed |
Beta Was this translation helpful? Give feedback.
@ycsin This is the case indeed
In stop modes, peripheral clock gating is used to disable peripheral clocks. So most peripherals won't consume power in this state, unless specific configuration is done. Note that, in some configurations, ADC can still consume power in stop mode, but that is not the default case.
For more information, cf for instance RM0444, $4.3.6 "Stop 0 Mode".