Post Go back to editing

sport bidirection mode

Category: Hardware
Product Number: ADSP-21593

Hello guys,

In our application, we need the SPORT0A and SPORT0B connect to wxternal codecs. and they will work in TDM16, both half SPORT need a TX and RX, but in code I notice that it seems the "ADI_SPORT_DIRECTION" can only be configured as "ADI_SPORT_DIR_RX" or "ADI_SPORT_DIR_TX". it can't be config as bidirection? or is there any other way to config this feature?

  • Hi,

    Each half SPORT supports up to two transmit or receive channels, thus allowing two unidirectional streams into or out of each half SPORT and providing greater flexibility for serial communications. If full-duplex functionality is desired, two SPORT halves can be combined to enable dual stream bidirectional communication.

    Regards,

    Ranjitha.R

  • Hi,

    It should be like this?

    thanks,

    Siyu

  • Hi,

    Yes, Here you are configuring SPORT0 module for Full duplex communication.


    Please refer the "Audio Talkthrough" code available in SC59x Board support package, were SPORT 4A and 4B are configured to communicate with DAC and ADC. You can take this as reference and modify it as per your requirement.

    download.analog.com/.../ADI_EV-SC59x_EZ-KIT-Rel3.2.0.exe


    Code path: Analog Devices\EV-SC59x_EZ-KIT-Rel3.2.0\EV-SC59x_EZ-KIT\Examples\drivers\adc\Audio_Talkthrough_I2S

    Regards,

    Nandini C