Post Go back to editing

ADSP-SC58x/218x Audio Talkthrough: Example code

Attached is the sample code for Audio Talk through on EVAL-SC589-EZLITE for I2S mode of operation.

Audio_passthrough_I2S.zip
Parents
  • Hi Ksam,

    The code attached in the thread doesn't use Device Drivers and Services.

    You can first start with ADSP-SC58x Hardware reference manual and learn about SPORT, DAI,DMA and other peripherals and infrastructure. If you want to use Device Driver and Services based codes, please go through the CCES help menu and understand various Device Drivers APIs. It is absolutely essential to understand Device Driver's implementation

    Yes, It should be possible to use UCOS 3 with the Device Drivers and services. I am not an expert in UCOS related stuff  but I believe, you need to create a UCOS project. Then create few threads for various devices like ADC and DAC. Configure ADC, DAC and SC589's SPORT inside thread. Use few semaphores for consumer thread to wait till data is read from ADC by SPORT into ADC buffers (SC589's Memory) and perform the necessary filtering and write back to DAC buffers (SC589's Memory). Send these buffers to SPORT for playback through DAC.

    Thanks,

    Sachin

Reply
  • Hi Ksam,

    The code attached in the thread doesn't use Device Drivers and Services.

    You can first start with ADSP-SC58x Hardware reference manual and learn about SPORT, DAI,DMA and other peripherals and infrastructure. If you want to use Device Driver and Services based codes, please go through the CCES help menu and understand various Device Drivers APIs. It is absolutely essential to understand Device Driver's implementation

    Yes, It should be possible to use UCOS 3 with the Device Drivers and services. I am not an expert in UCOS related stuff  but I believe, you need to create a UCOS project. Then create few threads for various devices like ADC and DAC. Configure ADC, DAC and SC589's SPORT inside thread. Use few semaphores for consumer thread to wait till data is read from ADC by SPORT into ADC buffers (SC589's Memory) and perform the necessary filtering and write back to DAC buffers (SC589's Memory). Send these buffers to SPORT for playback through DAC.

    Thanks,

    Sachin

Children
No Data