i have pin1 and pin2 to and pin3 and pin7 to gnd.
why you say that i should have pin3 to VDD? the address is:
$A0=%10100000 the data sheet says (show attach file) that I have pin1,2,3 to GND
i have pin1 and pin2 to and pin3 and pin7 to gnd.
why you say that i should have pin3 to VDD? the address is:
$A0=%10100000 the data sheet says (show attach file) that I have pin1,2,3 to GND
Sorry, I was looking at the 24LC515 datasheet instead of the 512.
You should be ok wired that way.
<br>
DT
Luca,
After looking at the Image in you're first post for a while longer, I think I found the problem. I hope.
Something I missed the first time was that you're using an 18F458. That chip has Comparators multiplexed with the PORTD pins, and they default to analog mode. You can kind of see the results in the Variables window of the image. Both SDA and SCL are 0, instead of the 1 that they should be since I2C idles HIGH.
You can just add a ...
CMCON = 7
and you should be smiling again.
Also, the 24LC512 is a 400khz device, so I2C_SLOW isn't required.
<br>
Last edited by Darrel Taylor; - 8th December 2005 at 04:13.
DT
thanks a lot Darrel now the i2cread works very fine...thanks thanks thanks luca
Bookmarks