|
#define __EEPUT(ADR,VAL)
{ while (EECR & 0x02);
EEAR = (ADR); EDR = (VAL);
unsigned char sreg = SREG;
__disable_interrupt();
эти две команды нельзя разрывать прерываниями
EECR = 0x04; EECR = 0x02;
SREG = sreg;
}
E-mail: info@telesys.ru