Hello All,
Thank you for the reply's but i already had that information.
I little bit my fault i should mention it in my previous mail.
Al these examples are for another kind of ucontroller and most of them use bit banged routines to implement the I2C bus.
I bought these sonar module on the internet (can 't remeber where, have to ask my friend)
I was looking for an example in combination with a 80c51 microcontroller .
The kit from cygnal has an hardware I2C bus.
i will upload my self written code with comments (not working at the moment ).
I wrote these code based on the examples on those sites that you send me but it doesn't seems to work.
My stop condition is not working although the stop flag is set.
Feel free to look at code and send me some comments .
As i mentioned in my previous mail i'm new in C.
regards,
Gandalf