sleep mode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,292件の閲覧回数
monstor
Contributor II

which MCU would have sleep mode and the function is as similar as S12DP512?

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,045件の閲覧回数
iggi
NXP Employee
NXP Employee

Hi,

Sleep mode is actually called Stop mode and it is a functionality that every MCU has. On all S12(X) devices in order to enter Stop mode, two instructions must be executed:

asm ANDCC #0x7F; //clear S bit in CPU Condition Code Register (CCR) - enable the stop mode.

asm STOP;          // stop mode

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,046件の閲覧回数
iggi
NXP Employee
NXP Employee

Hi,

Sleep mode is actually called Stop mode and it is a functionality that every MCU has. On all S12(X) devices in order to enter Stop mode, two instructions must be executed:

asm ANDCC #0x7F; //clear S bit in CPU Condition Code Register (CCR) - enable the stop mode.

asm STOP;          // stop mode

0 件の賞賛
返信
1,045件の閲覧回数
monstor
Contributor II

Really thanks for your reply.

We need to exist the STOP mode by external interrupt. E.g. nXIRQ or IRQ. Can we wake up the MCU by any internal interrupt? Let say timer?

I want to implement a periodical mode for power saving.

0 件の賞賛
返信