Hi, I'm trying to use the slave transmit FIFO so I can send data to another logging device.
I'm having problems with no data being transmitted on the bus even though the FIFO is full. I think it's a problem with my setup commands.
Slightly Abriged Code:
ulI2CController=I2C0_BASE; SysCtlPeripheralEnable(SYSCTL_PERIPH_I2C0); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); while(!SysCtlPeripheralReady(SYSCTL_PERIPH_I2C0)){} while(!SysCtlPeripheralReady(SYSCTL_PERIPH_GPIOB)){} GPIOPinConfigure(GPIO_PB2_I2C0SCL); GPIOPinTypeI2CSCL(GPIO_PORTB_BASE, GPIO_PIN_2); GPIOPinConfigure(GPIO_PB3_I2C0SDA); GPIOPinTypeI2C(GPIO_PORTB_BASE, GPIO_PIN_3); I2CSlaveInit(I2C0_BASE, 42); I2CSlaveFIFOEnable(I2C0_BASE,I2C_SLAVE_TX_FIFO_ENABLE); I2CTxFIFOConfigSet(I2C0_BASE,I2C_FIFO_CFG_TX_SLAVE); while(1) { I2CFIFODataPut(I2C0_BASE, 5); }