AnsweredAssumed Answered

MPC5744 can't enter to STOP0 and HALT0 mode

Question asked by 郭开辉 郭开辉 on Oct 11, 2017
Latest reply on Oct 11, 2017 by Peter Vlna

        First, the official routine code can not enter the STOP0 mode, and then we initialize the system for the RUN0 mode, refer to the data manual write mode conversion there is no way to enter, the mode conversion code is as follows:


    asm(" wrteei 0");   //close all interrupt as reference manual said

    MC_ME.ME.R = 0x00000080;   //enable STOP0 mode
    MC_ME.RUN3_MC.R = 0x001F0031; /* mvron=1 FLAON=RUN XOSCON=1 FIRCON=1 SYSCLK=FIRC */
    MC_ME.MCTL.R = 0xA0005AF0;      /* Enter STOP mode and key */
    MC_ME.MCTL.R = 0xA000A50F;      /* Enter STOP mode and inverted key */
    while (MC_ME.GS.B.S_MTRANS) {}  /* Wait for STOP mode transition to complete */


  How can enter the STOP and HALT mode? hoping to help me solve, thank you!