CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Strange problem with 24lc1025 eeprom

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
monsun



Joined: 17 Jan 2012
Posts: 17

View user's profile Send private message

Strange problem with 24lc1025 eeprom
PostPosted: Sat Jan 18, 2014 2:01 pm     Reply with quote

I have strange problem with eeprom 24lc1024, i'm using pic18f67k22. Eeprom is sharing i2c line with ds1307. I was using smaller ones 128 512 etc on this board ealier for many years, but i've needed more space so i tried 24lc1025. I'm using generic eeprom driver attached to pcw v4.128. I can write to first and second half of memory and read from both using single write byte or page write. But when i'm writing to first half some artifacts and strange "copies" of data are self writing in second half. Anyone have problem like this?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jan 18, 2014 3:06 pm     Reply with quote

Quote:

I have strange problem with eeprom 24lc1024
so i tried 24lc1025

Which one are you currently using ?

Quote:
I'm using generic eeprom driver attached to pcw v4.128.

Post the filename of the driver.

Quote:
Eeprom is sharing i2c line with ds1307.

What happens if you remove the ds1307 from the bus ? Do you still
get the same problem with the eeprom ?


Quote:
I can write to first and second half of memory and read from both using single write byte or page write.

Are you using interrupts ? What happens if you disable Global interrupts
when making calls to the eeprom routines ? Do you still get the problem ?

Quote:
i'm using pic18f67k22

What is the Vdd voltage of the PIC, the ds1307 and the eeprom ?
Are you writing to the eeprom very soon after power-up, or possibly
during power-down ? Are you using the BROWNOUT fuse ?

Quote:
But when i'm writing to first half some artifacts and strange "copies" of
data are self writing in second half.

If possible, construct a short test program that shows this problem
and post it.
temtronic



Joined: 01 Jul 2010
Posts: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jan 18, 2014 7:35 pm     Reply with quote

What's the address of the chip? Have you got A2 tied high to Vcc ??


hth
jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group