2004-01-21 10:37 PM
control internally eeprom like st72c334
2004-01-20 12:06 AM
can you help me about to control the EEPROM internal of the ST72c334, for read and write data access at the eeprom location???'
thank you2004-01-20 01:30 AM
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=false2004-01-20 05:34 PM
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.
2004-01-21 02:02 AM
2004-01-21 10:00 PM
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???2004-01-21 10:37 PM
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