The attached code can be used as a reference to test TWI connections on newly designed board with ADSP SC58x/ ADSP-2158x processors.
The code does the following:
How to modify the code for customized system requirements:
How to test that the code works?
The below screenshot shows how the TWI signals should look like
Thanks, I have now written my TWI Slave code. One thing that I had wrong was the iid in adi_int_InstallHandler(), I had it set to ADI_SPU0_TWIO_ID rather than INTR_TWI0_DATA.
I think I read that all interrupts are interruptable by other interrupts How would I change that? For example, I don't want my I2S interrupt service routine interrupted by a TWI interrupt service.