Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Spanish  ▼
ALLDATASHEET.ES

X  

PM0223 Datasheet(PDF) 34 Page - STMicroelectronics

No. de pieza PM0223
Descripción Electrónicos  This programming manual provides information for application and system-level software developers
PDF  110 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  STMICROELECTRONICS [STMicroelectronics]
Página de inicio  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0223 Datasheet(HTML) 34 Page - STMicroelectronics

Back Button PM0223 Datasheet HTML 30Page - STMicroelectronics PM0223 Datasheet HTML 31Page - STMicroelectronics PM0223 Datasheet HTML 32Page - STMicroelectronics PM0223 Datasheet HTML 33Page - STMicroelectronics PM0223 Datasheet HTML 34Page - STMicroelectronics PM0223 Datasheet HTML 35Page - STMicroelectronics PM0223 Datasheet HTML 36Page - STMicroelectronics PM0223 Datasheet HTML 37Page - STMicroelectronics PM0223 Datasheet HTML 38Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 34 / 110 page
background image
The STM32L0 Cortex-M0+ Processor
PM0223
34/110
DocID025763 Rev 1
2.5.1
Entering sleep mode
This section describes the mechanisms software can use to put the processor into sleep
mode.
The system can generate spurious wakeup events, for example a debug operation wakes
up the processor. For this reason, software must be able to put the processor back into
sleep mode after such an event. A program might have an idle loop to put the processor
back in to sleep mode.
Wait for interrupt
The Wait For Interrupt instruction, WFI, causes immediate entry to sleep mode. When the
processor executes a WFI instruction it stops executing instructions and enters sleep mode.
See 3.7.12: WFI on page 80 for more information.
Wait for event
The Wait For Event instruction, WFE, causes entry to sleep mode conditional on the value of
a one-bit event register. When the processor executes a WFE instruction, it checks the value
of the event register:
See 3.7.11: WFE on page 79 for more information.
If the event register is 1, this indicates that the processor must not enter sleep mode on exe-
cution of a WFE instruction. Typically, this is because of the assertion of an external event, or
because another processor in the system has executed a SEV instruction, see 3.7.9: SEV
on page 77. Software cannot access this register directly.
Sleep-on-exit
If the SLEEPONEXIT bit of the SCR is set to 1, when the processor completes the execution
of an exception handler and returns to Thread mode it immediately enters sleep mode. Use
this mechanism in applications that only require the processor to run when an interrupt
occurs.
2.5.2
Wakeup from sleep mode
The conditions for the processor to wakeup depend on the mechanism that caused it to
enter sleep mode.
Wakeup from WFI or sleep-on-exit
Normally, the processor wakes up only when it detects an exception with sufficient priority to
cause exception entry.
Some embedded systems might have to execute system restore tasks after the processor
wakes up, and before it executes an interrupt handler. To achieve this set the PRIMASK.PM
bit to 1. If an interrupt arrives that is enabled and has a higher priority than current exception
priority, the processor wakes up but does not execute the interrupt handler until the proces-
sor sets PRIMASK.PM to zero. For more information about PRIMASK, see Exception mask
register on page 17.
0
The processor stops executing instructions and enters sleep mode.
1
The processor sets the register to zero and continues executing instructions
without entering sleep mode.



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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
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