You copied the Doc URL to your clipboard.

3.7.12. WFI

Wait for Interrupt.

Syntax

WFI

Operation

WFI suspends execution until one of the following events occurs:

  • An exception.

  • An interrupt becomes pending that would preempt if PRIMASK.PM was clear.

  • A Debug Entry request, regardless of whether debug is enabled.

Note

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

Restrictions

There are no restrictions.

Condition flags

This instruction does not change the flags.

Examples

    WFI ; Wait for interrupt 

Was this page helpful? Yes No