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

EEPROM size Calculation

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



Joined: 10 Feb 2007
Posts: 78

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger

EEPROM size Calculation
PostPosted: Sun Jun 01, 2008 8:20 am     Reply with quote

Hey guys,

I have basic question, how do I calculate the size of the eeprom.

Example

When I look into the datasheet of 24LC256, it says it has 256 Kbhit, but in the driver program it says 32768. I was wondering, how is this number calculated.

Thanks in advance.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sun Jun 01, 2008 8:34 am     Reply with quote

From the datasheet
Quote:
The Microchip Technology Inc. 24AA256/24LC256/
24FC256 (24XX256*) is a 32K x 8 (256 Kbit) Serial
Electrically Erasable PROM
The chip has 256k bits, accessible in the form of 32k (32768) bytes. So both your mentioned values are correct but referring to different quantities.

For some reason the manufacturers of EEPROM always mention the number of bits, I guess because for marketing reasons they like the larger numbers.
Ttelmah
Guest







PostPosted: Sun Jun 01, 2008 2:56 pm     Reply with quote

No, it is because the same core chips are often available as bit wide, byte wide, and 16bit versions. The size in bits determines the die size used, and allows direct size comparisons, without having to worry which output format is involved.

Best Wishes
tranz



Joined: 10 Feb 2007
Posts: 78

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger

PostPosted: Sun Jun 01, 2008 5:51 pm     Reply with quote

Thanks, much appreciated. Smile
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