thanks for your help

mat jensson you have raised a nice point here. I have tried almost every possibility in my coding as well as in my connections, but its not working at all. Please explain me your idea,
i mean what do u mean by marking the read bit? and how can i specify two addresses, can u explain me a bit.

One more thing that i want to share with u all. I get different numbers as output when i connect SDA SCL on different ports.


when i have

SDA = portB.1
SCL= portB.0
output= 2

SDA = portD.1
SCL= portD.0
output= 2

SDA = portC.1
SCL= portC.0
output= 8

I just couldnt get it.



Regards,

Shaiq Bashir