| Electronic Components Datasheet Search |
|
AN2629 Datasheet(PDF) 36 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2629 Datasheet(HTML) 36 Page - STMicroelectronics |
|
36 / 43 page ![]() Using the Stop and Standby mode in battery-operated applications AN2629 36/43 Doc ID 13922 Rev 2 7.2.2 Detailed description The 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, each ADC conversion and storage are gated by the RTC Alarm in the main loop. ● The RTC Alarm wakes up the STM32F10xxx from the WFE or STOP_WFE mode. ● the PC1 I/O shows the time taken by the ADC conversion and RTC Alarm register reload. Figure 7. WFE & STOP WFE Hardware environment Use this example with STM32F10xxx evaluation board: refer to the user manual UM0426: “STM3210B-EVAL evaluation board” to use the STM3210B-EVAL. After connecting the power supply and JTAG tools, the power consumption can be measured by replacing Jumper JP9 by an ammeter. Firmware description ● Launch this example with the used toolchain: The standard tools can be used to run the example. The .uv2 file used to launch the project with the RVMDK toolchain is contained in the RVMDK folder. The .eww file, used to launch the project with the EWARM toolchain, is in the EWARM folder. ● Configure the firmware At the beginning of the main.c, four #define can be selected to parameterize the example: –2 #define select the timing of the loop: #define LOOP_20ms #define LOOP_200ms –2 more #define select the low-power mode: #define WFE #define STOP_WFE – For the example to run, it is necessary to keep one #define of each type. – After compiling the example, the STM32F10xxx Flash memory can be downloaded. RTC alarm ADC WFE or ST OP WFE mode conversion ADC conversion RTC alarm PC1 ai14679 |
|
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 |