| Electronic Components Datasheet Search |
|
AN2629 Datasheet(PDF) 37 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2629 Datasheet(HTML) 37 Page - STMicroelectronics |
|
37 / 43 page ![]() AN2629 Using the Stop and Standby mode in battery-operated applications Doc ID 13922 Rev 2 37/43 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 while 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. 7.3 Using the Standby mode in an applicative way 7.3.1 Context This section describes how to use the Standby mode of the STM32F10xxx, using the firmware found in the Zip file delivered with this application note. The firmware is available in the Standby folder. The Standby folder contains all the subdirectories and files that make up the core of the application example: ● inc subfolder contains the example header files ● src subfolder contains the example source files ● project subfolder contains two projects that compile the example files: – EWARMv5: contains the project for the EWARM toolchain – RVMDK: contains the project for the RVMDK toolchain 7.3.2 Detailed description This example performs a periodic ADC conversion and stores the value in RAM buffer. It uses Auto-Wakeup (AWU) from low-power mode as described in Section 1.2.7: Auto- wakeup (AWU) from low-power mode on page 13. ● At the beginning, functions configure the clock, GPIO, RTC and ADC. These functions are implemented at the end of the main.c and use the STM32F10xxx standard peripheral library. ● The RTC is running and the RTC Alarm wakes up the STM32F10xxx from Standby mode. ● After each wakeup from Standby mode, the STM32F10xxx restarts from the reset state and each ADC conversion is performed after the STM32F10xxx has been configured. ● the PC1 I/O shows the time taken by the ADC conversion and RTC Alarm register reload but not the time taken by the STM32F10xxx to restart. Figure 8. Standby Standby mode conversion ADC conversion RTC alarm PC1 STM32 configuration ADC RTC alarm STM32 configuration ai14680 |
|
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 |