cancel
Showing results for 
Search instead for 
Did you mean: 

software i2c not working..

hitsumen
Associate II
Posted on March 09, 2012 at 16:41

Want to read my LIS302 sensor with software I2C (bit banging)

Hardware i2c works.

Here is some code.

Please help me with software i2c...

http://pastebin.com/d0M9jRaY

21 REPLIES 21
emalund
Associate III
Posted on March 21, 2012 at 14:01

Nikolaj,

when dinosaurs roamed the earth the 8051 had no HW I²C and was a very popular I²C 'driver' (it still is, but now many derivatives have HW I²C).

Thus, you can find plenty of working code (albeit for a different processor) at places such as 8052.com

ANYHOW DO NOT CONTINUE untill you have scoped your SCL, I am VERY suspicious of your 'delay' and the use thereof

Erik

stgedas
Associate II
Posted on March 03, 2014 at 18:32

<message removed>