Dear Champs,
My customer is trying to add UART communication in McASP examples of PDK 1.0.1(pdk_omapl137_1_0_1 of RTOS SDK 4.0.0.4), but they found an noise in the audio output while UART writing was run.
They added print_UART function into while loop of mcasp_audiodc_test.c(\ti\pdk_omapl137_1_0_1\packages\ti\board\diag\mcasp_audiodc\src) as below.
I'm afraid it takes too much time to execute 'print_UART' function and thus there will be underflow occurred in audio buffer.
Could you please provide your opinion on this and how print_UART function should be added to remove audio noise?
I also attached source files.mcasp_uart.zip
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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)
{
Thanks and Best Regards,
SI.