trying to use internal eeprom for pic18f452

Thread Starter

abo zaynab

Joined May 1, 2018
35
im trying to use the internal eeprom for pic18f452 but in vain . i used the instruction eeprom_write(addrress,data);
got an error msg ''
[PIC18 EEPROM] PC=0x0080. Modification of EECON1 whilst a read or write is in progress (RD or WR set) is not ambiguous and not supported. EECON1 is unmodified. [U1]
then i used the instruction
''EEADR=0x0000;EEDATA=y;EEPGD_bit=0;CFGS_bit=0;WREN_bit=1;GIE_bit=0;EECON2=0x55;EECON2=0xaa;WR_bit=1;delay_ms(20);GIE_bit=1;m1=eeprom_Read(0x0000);delay_ms(20);
didnt save.
 
Top