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

Drivers for the 24LC256 and FM25256 are the same..?

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



Joined: 08 Sep 2003
Posts: 492
Location: India

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

Drivers for the 24LC256 and FM25256 are the same..?
PostPosted: Wed Sep 05, 2007 3:03 am     Reply with quote

Hi,

I have just got the FM 25256 working (FRAM ), I used a set of drivers that were posted in the Code Library in this forum and I found that it did not work, but when I used the drivers for the 24LC256 EEPROM (found in PICC folder), I was able to read and write to the FRAM.

Is it OK to use the 24LC256 EEPROM drivers for the FRAM or does it need any tweaks for better operation ???

thanks
arunb

Note: Iam using byte read and writes
Ttelmah
Guest







PostPosted: Wed Sep 05, 2007 4:46 am     Reply with quote

They should work fine. You can slightly speed things up, by getting rid of the reading and testing of the busy status bit on the write. On the EEPROM, the code needs to wait here, till the chip is ready. On the FRAM, once the data is transferred, the write is immediately completed, faster than the I2C bus can transfer a byte.

Best Wishes
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Sep 05, 2007 10:33 am     Reply with quote

Quote:
I have just got the FM25256 working (FRAM). I used the drivers for the 24LC256 EEPROM.


The FM25256 has an SPI interface. The 24LC256 has an i2c interface.
http://www.ramtron.com/doc/Products/Nonvolatile/Detail.asp?ID=30&gr=5
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

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

RE:
PostPosted: Wed Sep 05, 2007 11:19 pm     Reply with quote

Hi,

Your are quite right, the part number I have is FM 24C256 which is a I2C based device, thank you for pointing out the error.

arunb
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