AnsweredAssumed Answered

MC9S12G64  如何进入 STOP MODE

Question asked by songxiang li on Sep 3, 2018
Latest reply on Sep 6, 2018 by songxiang li

请问  MC9S12G64  STOP MODE   下静态电流有多大?如何正确进入STOP模式? 实测有700uA,不知是否进入方式错误。

手册上48 和128 的 在30uA左右。

测试程序如下:

 

#include <hidef.h>
#include "derivative.h"

void main(void)
{

   DDRJ = 0;
   PERJ = 0;
   DDRP = 0;
   DDRT = 0;
   DDR01AD = 0;
   DDRS = 0;
   PERS = 0;
   DDRM = 0;
   //CPMUCLKS_PSTP = 1;
   //CPMUOSC_OSCE = 1;
   asm ANDCC #0x7F;
   asm STOP;
   while(1)
   {
   ;
   }
}

Outcomes