Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
12 years, 1 month ago.
i2c fast mode (1Mbps) with LPC1768
I wish to run i2c in fast mode using pins p27 & p28.
UM10360 recommends setting the SDADRV0 & SCLDRV0 of I2CPADCFG register to "1".
How do I configure this register?
2 Answers
12 years, 1 month ago.
Maire,
I think this question has been answered a few times before. While the LPC1768 is capable of 1Mbps, the pins you need are not available, and are used elsewhere.
12 years, 1 month ago.
Thank you for your response David.
I have i2c running on pins 27 & 28, up to 700kbps without configuring these registers.
I was hoping to be able to run at 1Mbps by setting bits 0 & 2 of register I2CPADCFG.
"8.5.21I (UM10360.pdf) 2C Pin Configuration register (I2CPADCFG - 0x4002C07C) The I2CPADCFG register allows configuration of the I2C pins for the I2C0 interface only, in order to support various I2C-bus operating modes. For use in standard or Fast Mode I2C, the 4 bits in I2CPADCFG should be 0, the default value for this register. For Fast Mode Plus, the SDADRV0 and SCLDRV0 bits should be 1."
Just to satisfy my own curiosity, could you tell me the code I would insert into my program to do this?