PDA

View Full Version : pls help me



london
- 16th November 2007, 06:24
hi,
I am using 24LC640 EEPROM (SPI). I want the memory organization mapping of this device. I cant find it from the data sheet. I want the starting and ending addresses. Pls anyone tell me with example.
thanks in advance
jeya

mister_e
- 16th November 2007, 07:02
it sure start @ 0, and Section 3.2 state


When the highest address is
reached (1FFFh), the address counter rolls over to
address 0000h allowing the read cycle to be continued
indefinitely.

now, if we use the calc.. it's a 64K device, (64K/8Bits)*1024 = 8192 memory allocation range, so 0 to 8191, 8191= 1FFFh
<hr>
for the code, you'll need to use Shiftin/Shiftout. do a search within the forum for 93C06, 93c45, SPI* maybe you'll find something to begin. Also have a look at the following from Melabs.
http://melabs.com/resources/samples/x1/pbp/spix.bas

All device command are shown in the datasheet, sure you can do it.