[an error occurred while processing this directive]
|
while(1)
E-mail:
info@telesys.ru
{
TWCR=(1shiftTWINT)|(1shiftTWSTA)|(1shiftTWEN);//старт на шину и2с
while(!(TWCR&(1shiftTWINT)));
//chek nugno vpisat
TWDR=0x44+1;
TWCR=(1shiftTWINT)|(1shiftTWEN)|(1shiftTWEA);
while(!(TWCR&(1shiftTWINT)));
//TWDR=0xFF;
TWCR = (1 shift TWEN)|(1 shift TWIE)|(1 shift TWINT)|(1 shift TWEA);
while(!(TWCR&(1shiftTWINT)));// вот тут и останавливается
temp=TWDR;
Pauza(250);
TWCR=(1<
}
Ответы