[51] i2c : PCF8575 Read and Write function roblem

Status
Not open for further replies.

chiart

Newbie level 5
Joined
Jul 26, 2011
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,362
Hi,

I'm connecting the PCF8575 with the P89C51RD2 microcontroller. I've managed to communicate with the PCF8575 chip using the i2c lines. However, i'm facing a problem with the read and write function with this chip.

Meaning that, I have no problem in reading the data, also no problem in sending the data, but I'm having problem to read back the data I've already sent.

Is it possible to do read back the data that we've already sent using this chip?

Any help highly appreciated.

Thanks.
 

As long as the port pins are open, you'll read back the previously written data. If a pin is shorted to ground, you read '0' independent of the previous written pin state.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…