Shop OBEX P1 Docs P2 Docs Learn Events
EEPROM codes. — Parallax Forums

EEPROM codes.

GabeGabe Posts: 24
edited 2005-10-09 09:20 in BASIC Stamp
SDA PIN 8
DevType CON %1010 << 4 ' device type
DevAddr CON %000 << 1 ' address = %000 -> %111

Rd2432 CON DevType | DevAddr | 1 ' read from 24LC32
T_addr VAR Word
ReadKey VAR Byte


 
FOR T_addr.BYTE1 = $0 TO $7F
FOR T_addr.BYTE0 = $0 TO $FF
I2CIN SDA, Rd2432, T_addr.BYTE1\T_addr.BYTE0, [noparse][[/noparse]ReadKey]
:
:
:

Hi Guys,.

Could you guys enlighten me on how should i change the values in these codes that were originally used for a 256kb external EEPROM?·I'm currently using a 512kb EEPROM. The purpose of this is to read in data from the EEPROM... some sort of initialising the EEPROM for a particular program. It is supposed to feedback to me whether the EEPROM is full, empty, and if there is data in it, there would be a count on how many memory locations are taken up.

Another seperate question, I would like to know, in a typical EEPROM chip, is there a value of $7C stored in the very last memory location?

Thanks in advance for any help,
Gab

Comments

Sign In or Register to comment.