cancel
Showing results for 
Search instead for 
Did you mean: 

control internally eeprom like st72c334

bonollo
Associate II
Posted on January 22, 2004 at 07:37

control internally eeprom like st72c334

6 REPLIES 6
bonollo
Associate II
Posted on January 20, 2004 at 09:06

can you help me about to control the EEPROM internal of the ST72c334, for read and write data access at the eeprom location???'

thank you
marco32
Associate II
Posted on January 20, 2004 at 10:30

To read or write to the EEPROM you must first select the LAT bit in the EECSR register. After that you can read or write to the EEPROM like a normal RAM.

See the Atachment

________________

Attachments :

EEPROM.asm : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0Gu&d=%2Fa%2F0X0000000bWR%2F5Tq.c5LjljVCWpGRJR5.Pm0cjEy.g8FPCmewTISyZ0o&asPdf=false
jatin
Associate II
Posted on January 21, 2004 at 02:34

Data EEPROM Read/Write operation can be controlled using LAT bit of EEPROM contol/status register(EECSR). For read operation LAT=0 and for write operation LAT=1. Data EEPROM programming flowChart is explained in the 72334 datasheet.

luca239955_st
Associate III
Posted on January 21, 2004 at 11:02

if you use C, the compiler (+linker and libraries) will take care of everything for you.

Luca

bonollo
Associate II
Posted on January 22, 2004 at 07:00

Ok thanks all for the help but an interrupt like

@interrupt void eeromWrited (void)

{

ClrBit(stato_EERom,_eeWaitFlag);

}

dont't like function very well how???
sjo
Associate II
Posted on January 22, 2004 at 07:37

Check interrupt vector is at 0xFFE4, global interrupts are enabled (rim) and bit 2 of the control/status register is set.

As it looks like you are using cosmic, jusr define a eeprom segment in your linker file and cosmic will do the rest, eg.

+seg .eeprom -b 0x0C00 -m256

then declare variables as:

@eeprom unsigned char data;

Cosmic does not support eeprom interrupt though.

Regards

sjo