This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSPM0G3106-Q1:MSPM0G3106-Q1问题

Guru**** 2390735 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1461767/mspm0g3106-q1-mspm0g3106-q1-problem

器件型号:MSPM0G3106-Q1

工具与软件:

MCU 是否可以强制进入睡眠模式? 是否有相应的软件接口调用? 到底应该怎么做? 能否提供详细的解释和相关资料?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    在 UART 外部回送示例中,它们使用__ wfe ()宏来使其休眠,以等待中断:

    int main(void)
    {
        SYSCFG_DL_init();
    
        NVIC_ClearPendingIRQ(UART_0_INST_INT_IRQN);
        NVIC_EnableIRQ(UART_0_INST_INT_IRQN);
    
        /* Optional delay to ensure UART TX is idle before starting transmission */
        delay_cycles(UART_TX_DELAY);
    
        while (1) {
            dataReceived = false;
            txData       = txData + 1;
            DL_UART_Main_transmitData(UART_0_INST, txData);
    
            while (dataReceived == false) {
                __WFE();
            }
            delay_cycles(10000);
        }
    }