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.

TM4C1294xl 板子上配置串口3问题



1.串口3配置如图uart3所示。

2.在中断处理函数如下:

void  UARTIntHandler(void)
{
    uint32_t ui32Status;

    // Get the interrrupt status.
    ui32Status = ROM_UARTIntStatus(UART3_BASE, true);

    // Clear the asserted interrupts.
    ROM_UARTIntClear(UART3_BASE, ui32Status);

    while(ROM_UARTCharsAvail(UART3_BASE))
    {
   
        ROM_UARTCharPutNonBlocking(UART3_BASE,
                                   ROM_UARTCharGetNonBlocking(UART3_BASE));
    }
}

3.在中断向量表中也添加了中断处理函数

4.调试结果:

没有发送和收到数据时,就进入的中断处理函数里面。

新手求助,怎么情况呀?