lpcware

I2C ROM API problem (LPC812)

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by nolex90 on Sun Oct 26 14:32:30 MST 2014
Hello guys, I'm new in the LPC programming.

But I can't use the I2C module.
I tried to modificate the base I2C source file, but I always receive 60001 (NAK) and(TIMEOUT) 60009 error code. I would like to read MPU6050 (It works fine with other MCU). The pullup resistor is 4,4k.

You can find the source files.

I don't know exactly what is the problem. I use 400kbps, and a huge timeout (#define I2C_TIMEOUT 6000000)

Thank you: Matyas

Original Attachment has been moved to: main_11.c.zip

Original Attachment has been moved to: periph_i2c_rom.c.zip

Original Attachment has been moved to: i2c.h.zip

Outcomes