LPC822 - I2C pins

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC822 - I2C pins

858 Views
lpcware
NXP Employee
NXP Employee
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
Labels (1)
0 Kudos
1 Reply

783 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcmunich on Thu Oct 29 03:32:57 MST 2015
Hi Krishna,
The datasheet and LPC initialization tool are in good shape.
But the periph_i2c_rom_polling example is broken.
0 Kudos