lpcware

LPC822 - I2C pins

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by krishna.mohan on Tue Oct 20 22:44:46 MST 2015

Hi,

I'm using I2C0 in LPC822 microcontroller.
As per the datasheet I2C0-SDA is P0.11, and I2C0-SCL is P0.10.
And in LPC initialization tool , we can choose I2C0-SDA at P0.11 and I2C0-SCL at P0.10. we cant interchange SDA and SCL using pin mappings.

But in periph_i2c_rom_polling.c file,  I2C0-SDA at P0.10 and I2C0-SCL at P0.11 .. How is that possible. Please let me know.

/* Connect the I2C_SDA and I2C_SCL signals to port pins(P0.10, P0.11) */
Chip_SWM_EnableFixedPin(SWM_FIXED_I2C0_SDA);
Chip_SWM_EnableFixedPin(SWM_FIXED_I2C0_SCL);

Regards,
Krishnamohan

Attachments

Outcomes