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.

MSP430FR2433在程序运行过程中想关闭UART功能问题

程序运行中想关闭串口,但是调用以下函数后,测功耗发现电流有跳变,若在串口通信发生前将串口IO配置为普通IO,则不会出现电流跳变现象,怀疑未关闭串口,请问如何关闭串口。

EUSCI_A_UART_disable(EUSCI_A0_BASE);   //关闭串口

GPIO_setAsInputPinWithPullDownResistor(GPIO_PORT_P1,GPIO_PIN4 + GPIO_PIN5); //配置串口IO为普通IO。