2013-05-20 04:04 AM
Hi,
I need
to put my
card
STM32
-
P103standby
I
test the
consumption of all
the
card
I see that
it
uses up to
19mA
but
the literature indicates that
standby power
consumption must
be
to
some
uA
.here is my code
: #include ''stm32f10x.h'' #include ''stm32f10x_gpio.h'' #include ''stm32f10x_rcc.h'' #define LED_PORT GPIOC GPIO_InitTypeDef GPIO_InitStructure; ErrorStatus HSEStartUpStatus; void RCC_Configuration(void); void GPIO_Configuration(void); void main(void) { RCC_Configuration(); GPIO_Configuration(); PWR_EnterSTANDBYMode(); while (1) { } } void RCC_Configuration(void) { RCC_DeInit(); RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOC | RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOE | RCC_APB2Periph_AFIO, ENABLE); } void GPIO_Configuration(void) { GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN; GPIO_Init(GPIOA, &GPIO_InitStructure); GPIO_Init(GPIOB, &GPIO_InitStructure); GPIO_Init(GPIOC, &GPIO_InitStructure); GPIO_Init(GPIOD, &GPIO_InitStructure); RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOE, DISABLE); ADC_Cmd(ADC1, DISABLE); } and thank you for your help2013-05-20 05:08 AM
The specs are for the chip, not the board.
Are you measuring the current on the 3-3V3 supply for the chip itself, or prior to the regulator and for other chips (RS232 buffer, etc)?2013-05-20 05:40 AM
Thank you clive
I put
the meter
on the
map entry
that
are
to say,
I measure the
total
current
consumed
by the card and
I
find
that the
current
equal
to
19mA
in standby mode
I do not know
how to reduce
consumption
at the end of
some
uA
? and thank you2013-05-20 10:52 AM
Thank you clive
I put
the meter
on the
map entry
that
are
to say,
I measure the
total
current
consumed
by the card and
I
find
that the
current
equal
to
19mA
in standby mode
I do not know
how to reduce
consumption
at the end of
some
uA
? and thank you2013-05-20 11:04 AM
I'm not sure what you want me to do about this.
The current drawn by VBAT will be of most interest as the internal regulator should switch off in STANDBY. From my own F1 design I recall drawing 180 uA from my lithium battery (3.7V) in STANDBY, and in STOP it was below 1mA (800-900 uA). This was a board designed to be able to turn off and be low power, not some random board from the internet. You need to consider what else on your board is pulling current, and be able to break the supplies to the F1 itself to quantify what it is using vs the rest of the design. I'm not sure if the Olimex board was designed with that much consideration.2013-05-20 11:09 AM
I do not know
how to reduce
consumption
at the end of
some
uA
? Start removing extraneous parts drawing current.2013-05-20 12:53 PM
thank you
very much for
your answer
, but Idid not understand
I am
newbie
to the field
thank you
explained
to
me
DETAILED
and thank you2013-05-20 01:18 PM
explained
to
me
DETAILED
That's getting a bit beyond my level of participation. You need to be measuring the current of the STM32 at the solder bridges on the board that break the supply feeds to the part. You also want to be sure you're getting the part into STANDBY, and perhaps add code so you can identify that you RESET out of STANDBY successfully on the other side.2013-06-25 11:07 PM
Hi clive
My problem is same as above I am using STM32L microcontroller and I am putting microcontroller in sleep mode then the current consumption is about 1.1mA and when I used it into Stop mode its power consumption is about 300uA .why is the difference is there in stop mode and sleep mode .Thanks and regardsvirender singh2013-06-26 01:51 AM
why is the difference is there in stop mode and sleep mode .
It is expected to have this difference between sleep and stop modes as in Stop mode all clocks in the VCORE domain are stopped, the PLL, the MSI, the HSI and the HSE RC oscillators are disabled. Depending on your working conditions, you can compare the values you get with the ones in the datasheet to check if they are logic or not. You can refer to RM0038 to get tips how to reduce the power consumption. -Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.