| Electronic Components Datasheet Search |
|
AN2629 Datasheet(PDF) 32 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2629 Datasheet(HTML) 32 Page - STMicroelectronics |
|
32 / 43 page ![]() Optimizing power consumption in your application AN2629 32/43 Doc ID 13922 Rev 2 The .eww file, used to launch the project with the EWARM toolchain, is in the EWARM folder. ● Configure HyperTerminal on the PC – Word length = 8 bits – One Stop bit – No parity – Baud rate = 115200 baud – flow control: none ● Configure the firmware In the header file (main.h) several #define can be selected to parameterize the example. Using a #define, the user can measure by themselves the consumption values provided in Table 9. –#define for APB1 and APB2 prescaler configuration: #define ABP1_DIV4 #define ABP2_DIV2 #define ABP1_DIV8 #define ABP2_DIV8 –#define for peripheral selection (clock gating): #define ALL_PERIPHERIALS_ENABLE #define USART_ONLY –#define for frequency selection: #define HCLK_FREQ_72MHz /* Only with external oscillator */ #define HCLK_FREQ_8MHz –#define for Prefetch Buffer or Half Cycle feature using: #define PREFETCH_ON #define HALF_CYCLE_ON –#define for switching to Sleep mode while the application is waiting for the RTC interrupt: #define WFI_ON –#define for External or Internal oscillator selection #define HSI_ENABLE /* Use internal oscillator */ #define HSE_ENABLE /*Use external oscillator */ Caution: To reload the Flash memory after launching the low-power example, the boot pin configuration must be changed from BOOT FLASH to BOOT RAM, and the reset button must be pressed. This is because the debugger cannot take the hand when the STM32F10xxx is in low-power mode. Once this has been done, the boot pin must be configured back to BOOT FLASH. Measurement is then started by disconnecting and reconnecting the power supply. The power off/ power on reset sequence is necessary to avoid internal debug module overconsumption. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |