You copied the Doc URL to your clipboard.

3.7.11. WFE

Wait For Event.

Syntax

WFE

Operation

If the event register is 0, WFE suspends execution until one of the following events occurs:

  • An exception, unless masked by the exception mask registers or the current priority level.

  • An exception enters the Pending state, if SEVONPEND in the System Control Register is set.

  • A Debug Entry request, if debug is enabled.

  • An event signaled by a peripheral or another processor in a multiprocessor system using the SEV instruction.

If the event register is 1, WFE clears it to 0 and completes immediately.

For more information see Power management.

Note

WFE is intended for power saving only. When writing software assume that WFE might behave as NOP.

Restrictions

There are no restrictions.

Condition flags

This instruction does not change the flags.

Examples

    WFE  ; Wait for event 

Was this page helpful? Yes No