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 support@ccsinfo.com

Strange EEprom Errors..

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



Joined: 09 Sep 2005
Posts: 16

View user's profile Send private message

Strange EEprom Errors..
PostPosted: Fri Oct 07, 2005 2:39 am     Reply with quote

Hi all, i'm experimenting some unusual and very strange errors with an EEprom...
I'm using a 16f877A and a 25lc640 eeprom and I have written some routines to write to and to read from the eeprom without using the spi_write and the spri_read routines.
I tested the addresse between 1 and 10 and it seemed to work all right (writing and reading) but when I try to write in the range between 1 and 50 (repeat 0xAA from address 1 to address 50) this is what I found in the EEprom:
AA AA AA AA AA AA AA AA
AA AA AA AA AA AA AA AA
AA 80 AA 80 AA FF AA 80
AA 80 AA 80 AA FF AA 80
E6 E6 E6 E6 E6 E6 E6 E6
E6 E6 E6 E6 E6 E6 E6 E6
AA AA

and the scheme repeats itself until address 80 and then I found only E6s...
Maybe it is an error in the write and read functions, anyway, does anyone of you know if there are differences in the structure of a 25lc640 that can justify these strange effects?

Thank you all, Pota
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Fri Oct 07, 2005 8:31 am     Reply with quote

Quote:

I have written some routines to write to and to read from the eeprom without using the spi_write and the spri_read routines.


The only way to access the 25LC640 Serial EEPROM is using SPI protocol. If you had
written your own routines to access it, how do you imagine we can help you?

Post a short code example that demostrate the found error.

Best wishes,

Humberto
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Fri Oct 07, 2005 8:49 am     Reply with quote

Humberto wrote:
Quote:

I have written some routines to write to and to read from the eeprom without using the spi_write and the spri_read routines.


The only way to access the 25LC640 Serial EEPROM is using SPI protocol. If you had
written your own routines to access it, how do you imagine we can help you?

Post a short code example that demostrate the found error.

Best wishes,

Humberto

What, you can't read minds? Surprised
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Fri Oct 07, 2005 9:08 am     Reply with quote

Quote:


What, you can't read minds?



Unfortunately NO. Sad

Instead I would be drinking a Martini in Malibu Mr. Green and not reading this forum.

regards,

Humberto


Last edited by Humberto on Sat Oct 08, 2005 7:16 am; edited 1 time in total
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Fri Oct 07, 2005 1:50 pm     Reply with quote

Makes perfect sense to me. I think I'll hold off on helping and let him learn more by struggling to find the answer himself.

Ronald

What does a Mathematician do when he gets constipated?


He works it out with a pencil. Shocked
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Fri Oct 07, 2005 2:39 pm     Reply with quote

Suppose thats better that a slide-rule
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Fri Oct 07, 2005 7:18 pm     Reply with quote

Quote:

He works it out with a pencil.

Quote:

Suppose thats better that a slide-rule..


Why do yours suppose he doesn´t use a cientific calculator ? Shocked

Humberto
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