LOW-POWER MODE

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LOW-POWER MODE

1,042件の閲覧回数
frankkong
Contributor III

Hello,

      I am using S12ZVML31. How can I enter and quit the wait/stop  mode? Any examples?

タグ(1)
0 件の賞賛
返信
2 返答(返信)

843件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

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

843件の閲覧回数
frankkong
Contributor III

Thanks,

Daniel, it works.

0 件の賞賛
返信