Hi all::::::
i have problem to save data in internal EEPROM of Atmega16......
i am using avr-gcc compiler....
if any one have idea plz do tell me.....
the code is
int EEPROM_write ()
{
while ( EECR & (1<< EEWE) )
{
EEAR = 0x02;
EEDR = n_dist;
EECR = 0x06;
}
return 0;
this function will call when atmega16's external interrupt (INT0) is active....
i dont no about any lib (header file) need to include in code....
reply as soon as possible....
thnx....
}
i have problem to save data in internal EEPROM of Atmega16......
i am using avr-gcc compiler....
if any one have idea plz do tell me.....
the code is
int EEPROM_write ()
{
while ( EECR & (1<< EEWE) )
{
EEAR = 0x02;
EEDR = n_dist;
EECR = 0x06;
}
return 0;
this function will call when atmega16's external interrupt (INT0) is active....
i dont no about any lib (header file) need to include in code....
reply as soon as possible....
thnx....
}