AN2202 Application note

Similar documents
AN2667 Application note

AN3996 Application Note

STEVAL-SPBT4ATV3. USB dongle for the Bluetooth class 1 SPBT2632C1A.AT2 module. Features. Description

AN2676 Application note

AN3279 Application Note

STEVAL-PCC010V1. ST802RT1A Ethernet PHY demonstration board with STM32F107 controller add-on board. Features. Description

STEVAL-CCM002V1. TFT-LCD panel demonstration board based on the STM32 as LCD controller. Features. Description

AN4113 Application note

AN2672 Application note

AN2470 Application note TS4871 low voltage audio power amplifier Evaluation board user guidelines Features Description

AN2143 Application note

AN2361 Application note

AN2240 Application note

STA bit single chip baseband controller for GPS and telematic applications. Features

AN626 Application note

AN2474 Application note

AN2855 Application note

STM3210B-SK/KEIL STR91X-SK/KEI, STR7-SK/KEIL

UM0693 User manual. 1 Introduction. STM8L101-EVAL demonstration firmware

AN2825 Application Note

EVAL6235PD. L6235 three-phase brushless DC motor driver demonstration board. Features. Description

UM1572 User manual. STEVAL-IPE020V1: ST energy meter application based on the Android platform. Introduction

AN2261 APPLICATION NOTE

UM0792 User manual. Demonstration firmware for the DMX-512 communication protocol transmitter based on the STM32F103Zx.

EV-VNQ5E050AK VNQ5E050AK evaluation board

AN3965 Application note

STM8 I 2 C optimized examples

AN3354 Application note

STLC2500D. Bluetooth V2.1 "Lisbon" + EDR. Features. Description

STM32-MP3NL/DEC. STM32 audio engine MP3 decoder library. Description. Features

UM0401 User manual. User manual for eight bit port expander STMPE801 demonstration board. Introduction

AN2737 Application note Basic in-application programming example using the STM8 I 2 C and SPI peripherals Introduction

STTS V memory module temperature sensor. Features

AN3980 Application note

AN2592 Application note

ST19WR08 Dual Contactless Smartcard MCU With RF UART, IART & 8 Kbytes EEPROM Features Contactless specific features

STM32-SK/KEIL STR91X-SK/KEI, STR7-SK/KEIL

ST10F271B/E, ST10F272B/E Errata sheet

AN3001 Application note

AN2673 Application note

AN2408 Application note

EMIF01-SMIC01F2 IPAD. Single line EMI filter including ESD protection. Main application. Description. Benefits. Pin configuration (Bump side view)

AN3988 Application note

AN3362 Application note

ST33F1M. Smartcard MCU with 32-bit ARM SecurCore SC300 CPU and 1.25 Mbytes high-density Flash memory. Features. Hardware features.

STM3220G-SK/KEI. Keil starter kit for STM32F2 series microcontrollers (STM32F207IG MCU) Features. Description

AN2430 Application note

OSPlus USB Extension. OSPlus USB 2.0 extension. Description. Features. Application. TCP/IP stack NexGenOS NexGenIP VFS. FAT Ext2 LVM Device layer

AN2860 Application note

AN3250 Application note

UM1488 User manual. STPMC1 evaluation software. Introduction

AN3265 Application note

SOT23-6L ESDALCL6-2SC6

Description SPC564A-DISP. March 2014 DocID Rev 3 1/5

AN2557 Application note

Main components USB charging controller with integrated power switch

EMIF02-MIC01F2 2-line IPAD, EMI filter including ESD protection Features Application Description Complies with the standards:

Main components 1 A, high efficiency adjustable single inductor dual mode buckboost DC-DC converter

LD A very low drop adjustable positive voltage regulator. Description. Features

Obsolete Product(s) - Obsolete Product(s)

AN2734 Application note S-Touch design procedure Introduction

EMIF02-SPK02F2. 2-line IPAD, EMI filter and ESD protection. Features. Application. Description. Complies with the following standards

AN4321 Application note

SMP75. Trisil for telecom equipment protection. Features. Description. Applications. Benefits

AN4152 Application note

UM1084 User manual. CR95HF development software user guide. Introduction. Reference documents

STEVAL-IHM028V1. 2 kw 3-phase motor control demonstration board featuring the IGBT intelligent power module STGIPS20K60. Features.

EMIF03-SIM06F3. 3-line IPAD, EMI filter including ESD protection. Description. Features. Application. Complies with the following standards:

AN2781 Application note

ST19NP18-TPM-I2C Trusted Platform Module (TPM) with I²C Interface Features

AN3154 Application note

STICE CF/Stice_Connect AD/Stice_Connect AS/Stice_Connect

ST21NFCB. Near field communication controller. Features. RF communications. Hardware features. Communication interfaces. Electrical characteristics

AN2594 Application note

STM32 embedded target for MATLAB and Simulink release 3.1. Summary for STM32 embedded target for MATLAB and Simulink release 3.1:

STM32-SK/RAIS,STR91X-SK/RAI,STR7-SK/RAIS STM32-D/RAIS,STR9-D/RAIS,STR7-D/RAIS

AN3140 Application note

ST33F1M, ST33F1M0, ST33F896, ST33F768, ST33F640, ST33F512

RN0046 Release note. 1 Introduction. SimpleMAC library for STM32W108xx kits. About this release note

AN4308 Application note

AN4440 Application note

AN4274 Application note

TN0132 Technical note

AN2061 APPLICATION NOTE

AN3174 Application note

AN2792 Application note

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

STMicroelectronics. STxP70-4 assembler. User manual Rev A. October

Description of STM8 LIN software package (STSW-STM8A-LIN) release 4.1. Table 1. Release information. STM8 LIN package

L6460. SPI configurable stepper and DC multi motor driver. Features. Description

ECMF02-3F3. Common mode filter with ESD protection. Features. Description. Applications. Complies with the following standard:


SMP30. Trisil for telecom equipment protection. Features. Applications. Description. Benefits

UM1548 User manual. IR remote transmitter STEVAL-IHM037V1. Introduction

AN3099 Application note

AN2548 Application note

MEMS functional sensor: smart 3D orientation and click detection standalone device. FC30-40 to +85 LGA-14 Tray FC30TR -40 to +85 LGA-14 Tape and reel

AN2936 Application note

STM8-SK/RAIS STM8-D/RAIS ST7-SK/RAIS ST7-D/RAIS

TN0189 Technical note

Transcription:

Application note STR73x microcontroller power management Introduction This application note provides an overview of the STR73x power management features and gives some guidelines for using the low power modes to minimize the power consumption of the microcontroller. Example software is provided with this application note for implementing and showing the various low power modes. September 2006 Rev 2 1/12 www.st.com 12

Contents 1 Power supply................................................. 3 1.1 Power supply pins.............................................. 3 1.2 Internal regulators.............................................. 3 1.2.1 Low Power Voltage Regulator (LPVR)............................... 4 2 Clock management............................................ 5 2.1 Clock configuration & power management........................... 5 2.2 Disabling peripherals clocks...................................... 5 3 STR73x low power modes...................................... 6 3.1 Low power mode characteristics................................... 6 3.2 Guidelines for entering/exiting low power modes...................... 6 3.2.1 SLOW mode.................................................. 6 3.2.2 WFI mode.................................................... 7 3.2.3 LPWFI mode.................................................. 7 3.2.4 STOP mode................................................... 7 3.2.5 HALT mode................................................... 8 4 Example application........................................... 9 4.1 Example hardware............................................. 9 4.2 Example software.............................................. 9 4.3 Power consumption measurements............................... 10 5 Revision history.............................................. 11 2/12

1 Power supply 1 Power supply 1.1 Power supply pins The following figure indicates the recommended configuration for the power supply pins: Figure 1. STR73x power supply pins 5V STR73x V DD AV DD AV SS 100nF V 18 VSS VSS V SS V DD pin: is the 5V main power supply pin. V 18 pin: must be connected to a capacitor of at least 100nF (ceramic) in order to guarantee the stability of the 1.8V supply to the core. 1.2 Internal regulators The following figure provides a schematic view of the power management block of the STR73x. 3/12

1 Power supply AN2202 Figure 2. Power management block AV DD AV SS A/D converter V 18 V DD Memory and I/Os Main Voltage Regulator V18 Core and Peripherals Low Power Voltage Regulator Note* V18 Peripherals active in LPWFI mode Note: * Disconnected in LPWFI mode. Main Voltage Regulator (MVR) In normal operation, the Main Voltage Regulator (MVR) provides the 1.8V supply. The MVR can be switched off when entering a low power mode (refer to Section 3) When the MVR is switched off, the Low Power Voltage Regulator (LPVR) can provide a power supply of about 1.8V (+/- 10%). Note: 1 The MVR has a static power consumption of 3.97 ma typ at 25 C. 2 When the MVR is switched off, The PLL is automatically disabled (PLL off) and the maximum allowed operating frequency is 2 MHz, this is due to the limitation imposed by the LPVR which is not able to generate sufficient current to operate in run mode. 1.2.1 Low Power Voltage Regulator (LPVR) The Low Power Voltage Regulator (LPVR) is used when the MCU is in low-power mode and the main voltage regulator has been switched off. It has a different design from the main voltage regulator and generates a stabilized and thermally-compensated voltage in the range of 1.8V (+/- 10%), its output current is not generally sufficient for the device to run in normal operation. 4/12

2 Clock management 2 Clock management The following figure provides an overview of the clock management block of the STR73x: Figure 3. Clock management block XTAL1 XTAL2 Main Oscillator PRESCALER f EXT f Osc CMU V BIAS RC Back Up f RC fclk1 1/2 f CLK2 Oscillator 1/16 PLL f MCLK WAKE Up Timer PRCCU Legend: f MCLK = to CPU and peripherals f CLK1 = from CMU, to PRCCU f CLK2 = before PLL 2.1 Clock configuration & power management Different clock configurations are provided by the STR73x MCU offering the means to optimize the power consumption in the device, the main features are: Individual peripheral clock disabling. Up to three low power system clocks: CLK2, CLK2/16 and the PLL Free running mode clock (refer to the PRCCU section in the STR73x reference manual for details on the PLL free running mode). 2.2 Disabling peripherals clocks The peripheral clock managing registers (PCGR0 and PCGR1 of the configuration registers) allows each module clock of the device to be switched on/off individually. Refer to the Configuration Registers section in the STR73x reference manual. Note: 1 PLL is automatically disabled when: - The Main Voltage Regulator (MVR) is stopped - Entering LPWFI, STOP or HALT low power modes - When PRCCU_PLLCR DX[2:0] bits are set to 111 and FREEN bit is reset 2 When not using the RC clock, you can disable it by setting bit RCHSE and/or RCSS in the PCU_CTRL register. 5/12

3 STR73x low power modes AN2202 3 STR73x low power modes 3.1 Low power mode characteristics The STR73x low power modes are summarized in the following table: Table 1. Power mode STR73x low power modes Description SLOW Wait For Interrupt (WFI) Low Power WFI (LPWFI) STOP HALT - PLL off and MCLK 1) = CLK2 or CLK2/16 - Free running PLL - Core stopped (MCLK off) - Wake-up by interrupts acknowledged by the interrupt controller (EIC) - MCU state retained (context restored after wakeup) - Core stopped (MCLK off) - Peripherals running at slow clock: CLK2/16 - Wake-up by interrupts acknowledged by the EIC - MCU state retained - Core and peripherals stopped (MCLK off) - Wake-up by the configured external wake-up lines - MCU state retained - Oscillators stopped - Wake up is only possible by means of external reset (H/W pin) or LVD reset (Power-on) as the RC oscillator is off Note: 1 Refer to Figure 3 for the definition of the various clocks (MCLK, CLK1, CLK2, CLK2/16, RC). 3.2 Guidelines for entering/exiting low power modes 3.2.1 SLOW mode To enter SLOW mode, MCLK must be configured as CLK2 or CLK2/16. When using these clock settings, the PLL can be disabled by writing 111 in the DX[2:0] bits in the PRCCU_PLLCR register. Table 2. SLOW mode selection MCLK CSU_CKSEL 1) CK2_16 2) FREEN 3) CLK2 0 1 0 CLK2/16 x 0 0 Free running PLL 1 1 1 Note: 1 CSU_CKSEL is bit 0 in register PRCCU_CFR. 2 CK2_16 is bit 3 in register PRCCU_CFR 6/12

3 STR73x low power modes 3 FREEN is bit 7 in register PRCCU_PLLCR, in the same register the DX(2:0) must be all sets in order to provide the PLL slow frequency. 3.2.2 WFI mode To enter WFI mode, you must clear the WFI bit in the PRCCU_SMR register. To wakeup from WFI mode an interrupt request must be acknowledged by the EIC. 3.2.3 LPWFI mode To enter LPWFI mode you have to: 1. Select the clock which will be used by peripherals during LPWFI: RC or external oscillator with the CMU (CKSEL0 bit in the CMU_CTRL register), this clock can be set as running low (with RCFR bit in CMU_CTRL register) 2. During the LPWFI, the clock used will be divided by 16: CLK2/16 (WFI_CKSEL bit of the PRCCU_CCR register) 3. Select LPWFI mode by setting the LPOWFI bit in the PRCCU_CCR register. 4. Write 0 in the WFI bit of the PRCCU_SMR register to enter LPWFI mode Like WFI mode, to wakeup from LPWFI mode an interrupt request must be acknowledged by the EIC. To further reduce MCU power consumption in LPWFI mode you can: Stop the Main voltage regulator (MVR) by setting bit VRLPW in the PRCCU_VRCTR register. In LPWFI, the FLASH module should enter Power Down mode by setting the LPS bit of FLASH CR0 register status. Note: 1 After exit from LPWFI mode, the Flash and the main voltage regulator are re-enabled automatically if they were switched off during the low power mode. 2 After wakeup, the original MCLK clock configuration must be restored by software. 3.2.4 STOP mode To enter STOP mode you have to: 1. Configure at least one external wake-up line or WUT to wake-up the MCU from STOP mode. (Refer to the WIU & WUT section in the STR73x reference manual) 2. Reset the STOP bit in register WIU_CTRL and the STOP_I bit in the PRCCU_CFR register. 3. To enter STOP mode, write the sequence 1, 0, 1 to the STOP bit in the WIU_CTRL register. 4. In order to avoid executing any valid instructions after a STOP bit setting sequence and before entering STOP mode, it is mandatory to execute a few (at least 6) dummy instructions after the STOP bit setting sequence. 5. To be sure that STOP mode was really entered, immediately after the end of the STOP bit setting sequence (including the dummy instructions), poll the PRCCU STOP_I flag bit and the STOP bit (WIU_CTRL register). If the STOP bit setting sequence has been correctly executed, these bits must be STOP_I = 1 and STOP = 0. If it is not the case you must restart all the sequence from the beginning. 6. When exiting STOP mode, clear the pending wake up interrupt line (WIU_PR register). 7/12

3 STR73x low power modes AN2202 7. On wake-up from STOP mode, the CMU automatically selects the 2MHz RC-Oscillator clock as input clock to the PRCCU. Note: To further reduce power consumption during STOP mode, it is possible to: Disable the main voltage regulator by writing 1 in bit VRLPW in the PRCCU_VRCTR register. Minimize the low power voltage regulator current capability by setting the bit 0 and 1 of the system configuration register 1 (LPVRCC(1:0)). After exit from STOP mode, the Flash and the main voltage regulator are re-enabled automatically if they were switched off during the STOP mode 3.2.5 HALT mode The HALT sequence is initiated with the following procedure: set the EN_HALT bit in the PRCCU_SMR and clear the SRESEN bit in the PRCCU_CCR then set the HALT bit in the PRCCU_CCR. Caution: Wake-up from HALT mode is only possible by means of an external or LVD reset. Note: Minimize the low power voltage regulator current capability by setting the bit 0 and 1 of the system configuration register 1 (LPVRCC(1:0)). 8/12

4 Example application 4 Example application 4.1 Example hardware Figure 4 shows an example schematic for using the STR73x power management features. Figure 4. Example application schematic V DD1 =5V A V DD STR73x V 18 100nF VBIAS 1.3M V DD2 =5V V DD2 =5V P5.8 10nF 10K 1K V DD2 =5V 100nF WUP6 P4.6 LED1 100 10K 100nF V DD2 =5V nrstin XTAL1 XTAL2 15pF 4MHz 15pF Note: 1 WUP6 is configured as an external interrupt pin, it is used to wake up the MCU from WFI, LPWFI or STOP mode. 2 P4.6 is used to indicate that the core is running (GPIO toggling) during RUN/SLOW modes. 3 P5.8 is used to enter HALT or SLOW modes. It is used also to exit from SLOW_RC mode. 4.2 Example software A program is provided with this application note for using the different low power modes, it includes the following source files: 9/12

4 Example application AN2202 Table 3. Software files File main.c 73x_it.c Description Example software for using different low power modes Interrupt service routines The following routines are implemented in the main.c file: Table 4. Low power Mode routines Modes Mode configuration/ Options during the selected low power mode RUN_Mode RUN_ALLON_Mode SLOW_Mode SLOW_RC_Mode WFI_Mode LPWFI_Mode LPWFI_RC_Mode STOP_Mode STOP_WUT_Mode HALT_Mode - RC oscillator off, RTC on, TIM3 on and flash on. - ALL peripheral on. - CLK2, CLK2_16 or free running PLL selectable - CLK (CLK2 with div2 disabled) - Value of MCLK can be modified - Main Voltage Regulator (MVR) stopped (software selectable) - Flash in power down or in low power (software selectable) - WUP6 pin configured as external rising edge interrupt - RC running high clock is used (software selectable) - Main Voltage Regulator (MVR) stopped (software selectable) - Flash in power down or in low power (software selectable) - WUP6 pin configured as external rising edge interrupt - Flash in power down - Main Voltage Regulator (MVR) stopped (software selectable) - Wakeup by WUP6 pin configured as rising edge wakeup - Flash in power down - Main Voltage Regulator (MVR) stopped (software selectable) - Wakeup by the WUT configured as rising edge. Wakeup after 10 second delay - Device halted. Note: To select a low power mode, you have to uncomment the corresponding define code #define xxx_mode and rebuild the main.c file. 4.3 Power consumption measurements All consumption measurements are listed in the STR73x datasheet. 10/12

5 Revision history 5 Revision history Date Revision Changes 05-Jan-2006 1 Initial release 12-09-2006 2 Figure 4 on page 9: Example application schematic updated. Section 3.2.1 on page 6: SLOW mode updated. Section 3.2.4 on page 7: STOP mode updated. Table 4 on page 10: Low power Mode routines updated. 11/12

5 Revision history AN2202 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. 2006 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 12/12