??? 06/04/06 12:16 Read: times |
#117718 - i used this code, but Responding to: ???'s previous message |
i used this code to write into the eprom but when i checked it with top view simulator . its not working. how cna i check the contents of internal eeprom in keil.
void eeprom_write(unsigned int *,unsigned int ); static unsigned char eepromReadyToWrite(void); void main() { eeprom_write(111,100); } void eeprom_write(unsigned int *addr,unsigned int value) { WMCON |= EEMEN_; // enable internal eeprom WMCON |= EEMWE_; // enale eeprom write; *addr = value; while(eepromReadyToWrite() == 0) { } WMCON &= ~EEMWE_; //disable eeprom write } static unsigned char eepromReadyToWrite(void) // check if writing completed { return(WMCON & EERDY_); } |
Topic | Author | Date |
internal eeprom writing and reading | 01/01/70 00:00 | |
This should be a good example | 01/01/70 00:00 | |
i used this code, but | 01/01/70 00:00 | |
search the forum | 01/01/70 00:00 | |
i did | 01/01/70 00:00 | |
Keil forum![]() | 01/01/70 00:00 |