MC9S12G64 如何进入 STOP MODE

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

MC9S12G64 如何进入 STOP MODE

1,821 Views
songxiangli
Contributor I

请问  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)
   {
   ;
   }
}

Tags (1)
0 Kudos
5 Replies

1,109 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi,

Do you use NXP board or do you have your own design?

All measurements are without output loads, please refer to chapter A.3.1 Measurement Conditions.

Where did you measure it?

Also, the G240-API+STOP-CW51 example is available on this link: S12G Examples Pack 

There is enable ECLK signal for checking run/stop mode

I hope it helps you.

Best regards,

Diana

0 Kudos

1,109 Views
songxiangli
Contributor I

Hi,

  My design,IO is all input and  Pull Device all = 0.

   A.3.1 Measurement Conditions. 

MC9S12G64  is TBD,why ?

无标题.png

0 Kudos

1,109 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi,

Please refer to the actual reference manual.

pastedImage_1.png

I hope it helps you.

Best regards,

Diana

0 Kudos

1,109 Views
songxiangli
Contributor I

please help me。。。。

0 Kudos

1,109 Views
songxiangli
Contributor I

Hi

Now,program is :

void main(void)
{

   DDRJ = 0xff;
   PERJ = 0;
   PTJ = 0;

   DDRP = 0xff;

   DDRT = 0xff;

   DDR01AD = 0;
   ATDDIEN = 0xffff;

   DDRS = 0xff;
   PERS = 0;

   DDRM = 0xff;
   PUCR = 0;


   CPMUPOSTDIV_POSTDIV = 0;
   CPMUCLKS_PSTP = 0;
   CPMUOSC_OSCE = 0;

   CPMUAPICTL_APIFE = 0;
   asm ANDCC #0x7F;
   asm STOP;
   while(1)
   {
   // Delay(10000);
   // PTJ = ~PTJ;
   }
}

same program,MC9S12G64  STOP MODE   current  measure is  250uA, But MC9S12G128 is 80uA,

so,what  the different  between ?

0 Kudos