Total Noob Needs a Push on another topic.. I2C

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

Total Noob Needs a Push on another topic.. I2C

333 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sun Dec 26 16:12:21 MST 2010
Season's Greetings to all.

I think I've wasted the last 3 days ( christmas included :( .....arrrggg) , trying to get my code, based on the provided I2C example ( very weak one at that !! ) working properly.

Does the I2CEngine in the i2c.c example file support restarts well ?? The i2c interrupt code seems OK !
Or i2c reads greater than 3 bytes ??

i2c engine says.. "see i2cmst.c for more details." ( could not find this!! )

My example code seems to hang after a few reads.
It will not hang for a 2 bytes read.. but when a string of 8 bytes is requested, it fails.
Actually.. even if I ask for 3 or more bytes to be read.

My I2C device is connected well .
( I have even taken everything off the breadboard and soldered all connections with short cable ). Have even changed the pull ups to 2k2, just in case.

Same breakout board works very well with any Pic I hook it up with, also with LPC1768(mbed)... even with 10k pull-ups.

I have even tried to use 100Khz instead of 400Khz. Same issue.
Also tried my hand at modifying the High and Low values of the SCL duty cycle,
because this I2C device requires an asymmetric  low and high .

Thanks !!!

Any pointers appreciated.
0 Kudos
6 Replies

326 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sun Dec 26 17:22:33 MST 2010
Long reads work well too.
Thanks Rob65
Thanks Zero
0 Kudos

326 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sun Dec 26 17:15:37 MST 2010
Ok.. Managed to install V1.10.

It had the same name, and that is why it did not want to install in the first place.
Now, works like a charm.
Let me try the long reads....
0 Kudos

326 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sun Dec 26 17:00:51 MST 2010
I've read that thread, and most others on this Forum.

I had downloaded that zip, but for some reason, the wizard did not want to include it.
I'll try my luck again.

Thanks Zero !!
0 Kudos

326 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sun Dec 26 16:54:36 MST 2010
AFAIR there was a similar problem and updated driver in:

http://knowledgebase.nxp.trimm.net/showthread.php?t=538
0 Kudos

326 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sun Dec 26 16:47:31 MST 2010
edit
0 Kudos

326 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sun Dec 26 16:29:02 MST 2010
What kind of I2C device are we talking about?
0 Kudos