尊敬的香榭丽舍
我的客户尝试在 PDK 1.0.1 (RTOS SDK 4.0.0.4的 pdk_omapl137_1_0_1)的 McASP 示例中添加 UART 通信、但他们在运行 UART 写入时发现音频输出中存在噪声。
他们在 McASP_audiodc_test.c (\ti\pdk_omapl137_1_0_1\packages/ti\board\diag\mcasp_audiodc\src)的 while 循环中添加了 print_uart 函数、如下所示。
恐怕执行'print_UART'函数需要太长时间、因此音频缓冲器中会出现下溢。
您能否提供您对此的看法、以及应如何添加 print_UART 函数以消除音频噪声?
我还附上了来源 files.e2e.ti.com/.../mcasp_5F00_uart.zip
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~μ A
while (1)
{
if (uartTickCount++>= UART_PRINT_COUNTER){
uartPrintMultipler --;
if (uartPrintMultipler =0){
print_UART ("info %s\n"、"UARTWrite test");
uartPrintMultipler = 50;
}
uartTickCount = 0;
}
if (lastFullRxBuf!= lastSentTxBuf)
{
谢谢、此致、
SI