I'm trying to use the I2C in the LPC82x but I have some troubles. I configure the micro as shown below, however when I'm trying to the the signal with osciloscope (read mode:digital signals) the signals (SDA and SCL) are always high. What I'm doing wrong?
/* Enable the clock to the Switch Matrix */
/* Connect the I2C_SDA and I2C_SCL signals to port pins(P0.10, P0.11) */
/* Enable standard mode/Fast mode for I2C pins */
Chip_IOCON_PinSetI2CMode(LPC_IOCON, IOCON_PIO10, PIN_I2CMODE_STDFAST);
Chip_IOCON_PinSetI2CMode(LPC_IOCON, IOCON_PIO11, PIN_I2CMODE_STDFAST);
/* Disable the clock to the Switch Matrix to save power */
Chip_I2CM_SetBusSpeed(LPC_I2C0, I2C_BITRATE); //I2C_BITRATE=100kHz
After this configurations I call a function to write to a slave device. Which configurations I'm doing worng or are missing?