STM32L071x8 consumed power when pin remains unconfigured.
Hello,
I would like to know, why unconfigured pin is consuming power when it is connected to 3.3 volt, while it is in analog input mode (reset mode as per to the data sheet).
here, what i have tested with three configurations.
with pin configuration(PA8 and PA11) in STM32CubMax
no configuration (Reset mode by itself) - 0.8W (unused pin connected to 3.3)
input mode configuration -0.5W (unused pin connected to 3.3)
input analog configuration -0.5W (unused pin connected to 3.3)
so what makes change in no configuration from STM32CubMAx and analog input(GPIO_MODE_ANALOG) and input(GPIO_MODE_INPUT)
what other parameter internally changes by doing
1.no config (no init code in sw)
2.
GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_11;;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);3.
GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_11;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);reset by itselt configuration
0x0000000050000000 69EBFFAB «ÿëi
0x0000000050000004 00000000 ....
0x0000000050000008 0C3C00F0 ð.<.
0x000000005000000C 24100000 ...$
0x0000000050000010 0000760C .v..
0x0000000050000014 00001000 ....
0x0000000050000018 00000000 ....
0x000000005000001C 00000000 ....
0x0000000050000020 00004420 D..
0x0000000050000024 00000440 @...
0x0000000050000028 00000000 ....
configuration as input
0x0000000050000000 6928FFAB «ÿ(i
0x0000000050000004 00000000 ....
0x0000000050000008 0C3C00F0 ð.<.
0x000000005000000C 24100000 ...$
0x0000000050000010 00007F0C ....
0x0000000050000014 00001000 ....
0x0000000050000018 00000000 ....
0x000000005000001C 00000000 ....
0x0000000050000020 00004420 D..
0x0000000050000024 00000440 @...
0x0000000050000028 00000000 ....
configuration as analog input
0x0000000050000000 69EBFFAB «ÿëi
0x0000000050000004 00000000 ....
0x0000000050000008 0C3C00F0 ð.<.
0x000000005000000C 24100000 ...$
0x0000000050000010 0000760C .v..
0x0000000050000014 00001000 ....
0x0000000050000018 00000000 ....
0x000000005000001C 00000000 ....
0x0000000050000020 00004420 D..
0x0000000050000024 00000440 @...
0x0000000050000028 00000000 ....
-- input configured 1 10 10 01 00 10 10 00 11 11 11 11 10 10 10 11
-- reset and input analog 1 10 10 01 11 10 10 11 11 11 11 11 10 10 10 11
please share you input, what could be the reason behind change in behavior by making change only in configuration.
Thank you