sleep mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sleep mode

Jump to solution
672 Views
monstor
Contributor II

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

Labels (1)
Tags (1)
0 Kudos
1 Solution
425 Views
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

View solution in original post

0 Kudos
2 Replies
426 Views
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 Kudos
425 Views
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 Kudos