| ??? 04/10/10 16:51 Modified: 04/10/10 17:07 Read: times  | 
#174960 - the problem is in the EECON SFR, just what in it? Responding to: ???'s previous message  | 
I am pretty sure the fault is in the EECON SFR, because when I made a software that just toggles EEPROM on and off while displaying "checkpoint" message on the LCD.
 
	lcd_display("Starting",0,0); //Start Checkark
	EPROM_Normal();
	lcd_display("EEPROM ON",0,0); //Enable EEPROM Checkmark
	EPROM_Shutdown();
	lcd_display("EEPROM OFF",1,0); //Disable EEPROM Checkmark, display on line 2
 
only the Starting and EEPROM OFF messages were displayed, the EEPROM ON was completely. the only think that seem to happen was a delay between the "Starting" and "EEPROM OFF" messages (~around 3 seconds delay) heres the EPROM functions for refrence: void EPROM_Normal()
{
EECON=0x02;	//Allow usage of EPROM
//AUXR=0x0C;	//Restore normal R/W Cycles						  
}
void EPROM_Shutdown()
{
EECON=0x00;	//Allow usage of EPROM
//AUXR=0x0C;	//Restore normal R/W Cycles						  
}
 
as you see, I commented out the AUXR to rule him out, leaving just EECON as problem source. can someone please help me out this I really need to finish this project by Wednesday. heres the image of the EECON SFR:  
and heres the AUXR SFR:  
and the Datasheet + additional information is still on the Original post. EDIT: p.s. it seems I mistakenly posted this in the wrong section, can anyone please move this thread to the 8052forum?  | 
| Topic | Author | Date | 
| EEPROM Stuck | 01/01/70 00:00 | |
| I do not know about Atmel, and ... | 01/01/70 00:00 | |
| the problem is in the EECON SFR, just what in it? | 01/01/70 00:00 | |
| EECON Initiate programming | 01/01/70 00:00 | |
      to Joseph Hebert        | 01/01/70 00:00 | 



