Maker Pro
Maker Pro

Interfacing I2C eeprom with PIC

A

Ankur Kashyap

Jan 1, 1970
0
I have interfaced AT24C16 serial eeprom with AT8951 & PC's parallel
port successfully. I'm employing the same logic for interfacing it
with PIC 16F84 (micro controller from Microchip) but it the controller
is always reading 0xFF from all the addresses. I have connected same
value of pull up resistors (10K) as I did with 8951 interface.

Plz suggest me where I may be wrong.

Ankur Kashyap
 
M

Mario Trams

Jan 1, 1970
0
Ankur said:
I have interfaced AT24C16 serial eeprom with AT8951 & PC's parallel
port successfully. I'm employing the same logic for interfacing it
with PIC 16F84 (micro controller from Microchip) but it the controller
is always reading 0xFF from all the addresses. I have connected same
value of pull up resistors (10K) as I did with 8951 interface.

Plz suggest me where I may be wrong.

Perhaps you make a mistake when controlling the I2C interface of
the PIC?

Regards,
Mario

--
----------------------------------------------------------------------
Digital Force / Mario Trams [email protected]-chemnitz.de
[email protected]
Chemnitz University of Technology http://www.tu-chemnitz.de/~mtr
Dept. of Computer Science Tel.: (+49) 371 531 1660
Chair of Computer Architecture Fax.: (+49) 371 531 1818
----------------------------------------------------------------------
 
C

claudio lorini

Jan 1, 1970
0
I have interfaced AT24C16 serial eeprom with AT8951 & PC's parallel
port successfully. I'm employing the same logic for interfacing it
with PIC 16F84 (micro controller from Microchip) but it the controller
is always reading 0xFF from all the addresses.

Maybe you exeed the maximum i2c speed (400KHz or 100KHz)?
It happened to me very recently (today)...

Ciao Claudio.
 
P

Paul

Jan 1, 1970
0
I have interfaced AT24C16 serial eeprom with AT8951 & PC's parallel
port successfully. I'm employing the same logic for interfacing it
with PIC 16F84 (micro controller from Microchip) but it the controller
is always reading 0xFF from all the addresses. I have connected same
value of pull up resistors (10K) as I did with 8951 interface.

Plz suggest me where I may be wrong.

Ankur Kashyap


Post your code and i will have a look at it
 
Top