Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

AN4157 Scheda tecnica(PDF) 13 Page - STMicroelectronics

Il numero della parte AN4157
Spiegazioni elettronici  STM32F3DISCOVERY peripheral firmware examples
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  STMICROELECTRONICS [STMicroelectronics]
Homepage  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4157 Scheda tecnica(HTML) 13 Page - STMicroelectronics

Back Button AN4157 Datasheet HTML 9Page - STMicroelectronics AN4157 Datasheet HTML 10Page - STMicroelectronics AN4157 Datasheet HTML 11Page - STMicroelectronics AN4157 Datasheet HTML 12Page - STMicroelectronics AN4157 Datasheet HTML 13Page - STMicroelectronics AN4157 Datasheet HTML 14Page - STMicroelectronics AN4157 Datasheet HTML 15Page - STMicroelectronics AN4157 Datasheet HTML 16Page - STMicroelectronics AN4157 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 24 page
background image
AN4157
Peripheral firmware examples description
Doc ID 023629 Rev 1
13/24
Stop mode
●
RTC clocked by LSI
●
Regulator in low-power mode
●
HSI and HSE OFF. LSI if not used as RTC clock source
●
No IWDG
●
Flash memory in deep power-down mode
●
Automatic Wakeup using RTC clocked by LSI
Standby mode
●
RTC OFF
●
IWDG and LSI OFF
●
Wakeup using Wakeup Pin (PA.00)
Standby mode with RTC clocked by LSI
●
RTC clocked by LSI
●
IWDG OFF and LSI OFF if not used as RTC clock source
●
Automatic Wakeup using RTC clocked by LSI
3.13
Standby mode example
3.13.1
Purpose
This example shows how to put the STM32F30x/31x in Standby mode and wake it up from
this mode using RTC Alarm A external reset.
3.13.2
Description
In this example:
●
The SysTick timer is initialized.
●
The SysTick timer interrupt is enabled in the NVIC.
●
The SysTick timer/counter starts in free running mode to generate periodic interrupts.
The SysTick timer interrupt is triggered every 250 ms. In the SysTick interrupt handler,
LED3 is toggled; this is used to indicate whether the MCU is in Standby or Run mode.
●
The EXTI line 0 is configured to generate an interrupt on each rising/falling edge
detected on the PA0 pin. The external interrupt is generated every time the PA0
changes level (GND or VDD).
When a falling or rising edge is detected on the EXTI line, an interrupt is generated. In
the EXTI handler routine, the RTC is configured to generate an Alarm event in 3
seconds, after which the system enters Standby mode and LED3 is Off.
After waking-up from Standby mode, the program execution restarts in the same way as
after a reset; the RTC configuration (clock source, prescaler) is kept and LED3 toggles
again. As a result, there is no need to configure the RTC.



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


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
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