Log in

View Full Version : Help 24LC 24C eeprom



ikselsis
- 18th September 2008, 10:59
Hi
I'm 18f4620 with read and write 24lcxx I2C eeprom but I not read and write 24cxxx eeprom .
And I'm 18f2550 with read and write 24cxx I2C eeprom but I not read and write 24lcxx eeprom .

Help my please

my 18f4620 code

INCLUDE "MODEDEFS.BAS"
DEFINE OSC 20
DEFINE LOADER_USED 1
DEFINE I2C_SLOW 1

model VAR BYTE[10]

basla:

I2CREAD EPDATA,EPCLK,$A0,10,[model[0]]
Pause 10
I2CREAD EPDATA,EPCLK,$A0,11,[model[1]]
Pause 10

goto basla

skimask
- 18th September 2008, 11:46
How do you know you can't read with that code?
There's no output to anything! No LCD, no LEDs, no DEBUG output, no serial output, no nothing!

ikselsis
- 18th September 2008, 12:33
How do you know you can't read with that code?
There's no output to anything! No LCD, no LEDs, no DEBUG output, no serial output, no nothing!

my problem is 100khz , 400khz and 1mhz eeprom, I read and write 100khz eeprom with 18f4620 , I'm not read and write 400khz and 1 mhz eeprom

skimask
- 18th September 2008, 13:22
my problem is 100khz , 400khz and 1mhz eeprom, I read and write 100khz eeprom with 18f4620 , I'm not read and write 400khz and 1 mhz eeprom

Well, again, can't see any code, so really can't tell if something else is messing with your eeprom.
What value pullups do you have on clock and data?

ikselsis
- 18th September 2008, 14:39
my pbp version is 2.46 become the problem here ?

skimask
- 18th September 2008, 15:04
my pbp version is 2.46 become the problem here ?
Hmmm...don't see that question above...
However, I do see a question asking something about pullup values...and something about showing some code.
I don't know...I could be seeing things again...