Question:
Example code for transmitting and receiving two I2S channel data in ADSP-21569 Ez-kit
Answer:
By default, the ADSP-21569 BSP's Audio_Passthrough_I2S example code is written for transmitting and receiving single I2S channel data. We can modify this code to transmit and receive another I2S channel data using secondary channel in SPORT Tx and Rx.
In ADSP-21569 Ez-kit, the ADC's SDATAOUT2 is connected with DAI1_PIN07 and DAC's DSDATA2 is connected with DAI1_PIN05. We have to route these DAI pins with corresponding SPORT's secondary channel using SRU routing.
Regarding ADC, please change the following registers in order to use the ADC3 and ADC4.
1. Change the value of ADAU1979_REG_CMAP34 register from 0x00 to 0x32 to map the channel 3 and 4 with SDATAOUT2.
2. Change the value of ADAU1979_REG_SAI_OVERTEMP register from 0x30 to 0xF0 to enable channel 3 and 4 Serial Output Drive.
3. Change the value of ADAU1979_REG_BLOCK_POWER_SAI register from 0x33 to 0x3F to enable ADC channel 3 and 4.
Please refer the attached modified example project. This allows user to send and receive two I2S channel data i.e., you can send another I2S data in IP3 and IP4 and receive the same via OP3 and OP4.