Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN2629 Datasheet(PDF) 36 Page - STMicroelectronics

Part # AN2629
Description  low-power modes
PDF  43 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2629 Datasheet(HTML) 36 Page - STMicroelectronics

Back Button AN2629 Datasheet HTML 32Page - STMicroelectronics AN2629 Datasheet HTML 33Page - STMicroelectronics AN2629 Datasheet HTML 34Page - STMicroelectronics AN2629 Datasheet HTML 35Page - STMicroelectronics AN2629 Datasheet HTML 36Page - STMicroelectronics AN2629 Datasheet HTML 37Page - STMicroelectronics AN2629 Datasheet HTML 38Page - STMicroelectronics AN2629 Datasheet HTML 39Page - STMicroelectronics AN2629 Datasheet HTML 40Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 36 / 43 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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