LOW-POWER MODE
11-11-2018
08:57 PM
1,149 Views
frankkong
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am using S12ZVML31. How can I enter and quit the wait/stop mode? Any examples?
2 Replies
11-13-2018
04:27 AM
950 Views

NXP TechSupport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
To enter Stop or Wait mode use STOP or WAIT instruction.
The stop instruction is enabled if S control bit is cleared in the CCR core register.
asm ANDCC #0x7F; // Clear S bit
asm STOP; // MCU STOP mode
For more information, please refer to CPU S12Z RM.
Depending on the PSTP, OSCE bits, the MCU can enter either Full Stop mode or Pseudo Stop mode (Section 8.1.2.3, S12ZVC RM rev.1.9).
Every I-bit maskable interrupt is capable to wake up from Stop or Wait mode provided the peripheral that triggers the interrupt is active in the low power mode.
Regards,
Daniel
Reply
11-14-2018
01:03 AM
950 Views
frankkong
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
Daniel, it works.
