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.

EK-TM4C123GXL开发板使用TIMER0_BASE中的TIMER_A和UART0同时使用时出现输出乱码

我使用了TIMER0_BASE中的32位定时器TimerA。如下所示:

然后打开了UART0进行输出的显示,如下图:

这样就开启了UART0和TimerA两个功能,想通过Timer每隔1S利用UART0来输出一个语句。

然后输出时出现了下面的乱码

串口设置的波特率和通过串口调试工具所设置的波特率是一致的。所以想咨询一下,这是怎么回事。

谢谢您!

xjh