snooze


Snooze (Snooze)

[Syntax]

-

snooze

[Function]

Temporarily halts operation of the CPU for the period defined by the hardware specifications or when the CPU enters a specific state.

When the specified period has elapsed or the CPU exits the specified state, CPU operation automatically resumes and instruction execution begins from the next instruction.

The SNOOZE state is released under the following conditions:

-

The predefined period of time passes

-

A terminating exception occurs

Even if the conditions for acknowledging the above exceptions are not satisfied (due to the ID or NP value), as long as a SNOOZE mode release request exists, the SNOOZE state is released (for example, even if PSW.ID = 1, the SNOOZE state is released when INT0 occurs).

Note, however, that the SNOOZE mode will not be released if terminating exceptions are masked by the following mask settings, which are defined individually for each function:

-

Terminating exceptions are masked by an interrupt channel mask setting specified by the interrupt controllerNote.

-

Terminating exceptions are masked by a mask setting specified by using the floating-point operation exception enable bit.

-

Terminating exceptions are masked by a mask setting defined by a hardware function other than the above.

Note

This does not include masking specified by the ISPR and PMR registers.

[Description]

-

The assembler generates one snooze machine instruction.

[Flag]

CY

---

OV

---

S

---

Z

---

SAT

---