AnsweredAssumed Answered

Sleep mode in S12Z VCA192 controller.

Question asked by Dhankar C Das on Feb 15, 2016
Latest reply on Feb 16, 2016 by MJW

Hi

I am trying to put the controller to sleep mode. In the data sheet it is given that U bit in CCR register has to be set and S bit has to cleared to go to sleep.

Currently we used "asm ANDCC #0x7F;" instruction which only clears the S bit.

ANDCC instruction access only lower 8 bit of CCR. But U bit is 15th bit od CCR.

How can we set the U bit in CCR?

 

The current sequence is

asm ANDCC #0x7F;     

    asm STOP;

Outcomes