| поискавой системы для электроныых деталей |
|
AN4365 датащи(PDF) 19 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4365 датащи(HTML) 19 Page - STMicroelectronics |
|
19 / 35 page ![]() DocID025303 Rev 2 19/35 AN4365 STM32F4 current consumption measuring 34 2.1.3 How to use the current consumption firmware This part provides guidelines on how to use the firmware to achieve the required measurements. By default, all modes and sub-modes of each device are defined to be measured at power switching menu runtime. The user should just load the required code into the device’s Flash memory and start measuring mode by mode. To customize the firmware, proceed as follows: • Define Power mode As a first step, the user checks the defined power mode in file “main.h” and excludes any undesirable power mode from the measurement process by commenting the corresponding macros. In this example, we comment the RUN and SLEEP mode macros in order to measure only the Stop and Standby modes. /* Uncomment the corresponding line to select power mode(s) that will be measured */ //#define RUN_MODE //#define SLEEP_MODE #define STOP_MODE #define STANDBY_MODE To debug code, the user should uncomment the DEBUG macro in “main.h”. • Define Power sub-modes “pwr.modes.h” contains all the power sub-mode macros for all STM32F4 devices. By default, all available sub-modes are defined to be measured. If the user wants to customize his switching menu and measure specific sub-modes, he needs to comment macros of those he will not measure. This way, the firmware will execute only the defined power sub- modes one by one. Only for Standby mode, we can define and measure one only sub-mode because the device will reset at the moment of waking-up. The following is an example for Stop mode, performed while measuring current consumption for an STM32F429x/439x device. We want to measure only Stop modes with low-power regulator, so we should keep both selected sub-modes, and comment the other ones: //#define StopMainRegFlashStop_enter //#define StopMainRegFlashPwrDown_enter #define StopLowPwrRegFlashStop_enter #define StopLowPwrRegFlashPwrDown_enter //#define StopMainRegUnderDriveFlashPwrDown_enter //#define StopLowPwrRegUnderDriveFlashPwrDown_enter After defining the modes and sub-modes, some parameters can be customized, i.e. the ART accelerator status and the supply voltage value. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |