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.

Problem when I using UART and I2S simultaneously on C5535 eZdsp

Hi,

i merged the two examples (aic3204+uart) from spectrumdigital test code and board support library (CCS 4.2) for the eZdsp5535.

I would like to send the samples from aic3204 left channel to UART.

I noticed that when I call the function EZDSP5535_I2S_init(); UART stop working. I monitored the TX pin with a oscilloscope and there is no activity.

In the exactly moment I call  EZDSP5535_I2S_init(), TX goes to zero. If I don't call EZDSP5535_I2S_init(), UART works OK, but off course I don' get samples from AIC3204.

aic3204_loop_linein.c

/* Initialize I2S */

EZDSP5535_I2S_init();

/* Play Loop for 5 seconds */
for ( sec = 0 ; sec < 5 ; sec++ )
{
  for ( msec = 0 ; msec < 1000 ; msec++ )
  {
  for ( sample = 0 ; sample < 48 ; sample++ )
 {
   /* Read 16-bit left channel Data */
   EZDSP5535_I2S_readLeft(&data1);

   EVM5515_UART_putChar(data1 & 0xFF);
   EVM5515_UART_putChar(data1 >> 8);
  }

}

Thanks for your help!

Rafael

  • Rafael,

     Make sure the EBSR register is only set once.  Some of the examples (and CSL code) set it during initialization to conflicting values.

     Also, make sure peripheral reset (register PSRCR) is only used once.

    Bill