Hi,
I'm trying to develop a link between the ADSP 21489 and ADT7411. I have to use the I2C protocol. Could someone point me to a C code example demonstrating an I2C transaction for the ADSP 21489.
Thanks!
Hi,
I'm trying to develop a link between the ADSP 21489 and ADT7411. I have to use the I2C protocol. Could someone point me to a C code example demonstrating an I2C transaction for the ADSP 21489.
Thanks!
This works - greg
// TWI Data | ||
SRU(LOW,DPI_PB11_I); | // Since I2C output is an open drain output the I2C pin is connected to logic level low | |
SRU(TWI_DATA_PBEN_O,DPI_PBEN11_I);//I2C SDATA connected to DPI pin 11. Disables DPI pin 11 as input | ||
SRU(DPI_PB11_O,TWI_DATA_I); | // I2C SDATA input is connected to DPI pin 11 output |
// TWI Clock | |
SRU(LOW,DPI_PB12_I); | |
SRU(TWI_CLK_PBEN_O,DPI_PBEN12_I); //I2C Clock connected to DPI pin 12 | |
SRU(DPI_PB12_O,TWI_CLK_I); |
This works - greg
// TWI Data | ||
SRU(LOW,DPI_PB11_I); | // Since I2C output is an open drain output the I2C pin is connected to logic level low | |
SRU(TWI_DATA_PBEN_O,DPI_PBEN11_I);//I2C SDATA connected to DPI pin 11. Disables DPI pin 11 as input | ||
SRU(DPI_PB11_O,TWI_DATA_I); | // I2C SDATA input is connected to DPI pin 11 output |
// TWI Clock | |
SRU(LOW,DPI_PB12_I); | |
SRU(TWI_CLK_PBEN_O,DPI_PBEN12_I); //I2C Clock connected to DPI pin 12 | |
SRU(DPI_PB12_O,TWI_CLK_I); |