{= 0; (i = 0; i <5; i + +); = 1; (i = 0; i <20; i + +);
}// send 1>>;
}
// priem temperaturi = 0xff; = 0 ;//chitaem znak temperaturi (j = 0; j <8; j + +)
{= 0; (i = 0; i <5; i + +); = 1; (i = 0; i <5; i + +);
} (tin) {ztemp3 = (ztemp3 +1)>> 1;
} ztemp = ztemp3>> 1;
} = 0xff ;//chitaem temperaturu = 0; (j = 0; j <8; j + +)
{= 0; (i = 0; i <5; i + +); = 1; (i = 0; i <5; i + +);
} (tin)
{= (temp3 +1)>> 1;
} temp3>> 1;
}
= temp2>> 1 ;//udaleni 0.5 gradusa
}
}
}
// ---------------------------------------- -------------------------
// Upravlenie scorost (sec100
{= 1;
}// vcluchit obogrev
{= 0;
}// vycluchit obogrev
// ---------------------------------------- ----------------------------
// -------------- LCD out ------------------------ ------------------- (sec100 <16)
{= 1; = 1; = ((lcddat1 [sec100] * 0xf0)>> 4); = 0; = 0; = 1; (k = 1; k <100; k + +); = (lcddat1 [sec100] & 0x0f); = 0;
} if (sec100 <40)
{= 1; = 1; = 2; = 0; = 0; = 1; (k = 1; k <100; k + +); = 0; = 0;
}
еlse if (sec100 <56)
} (sec100 == 98)
{= 1; = 0; = 0; = 0; = 0; = 1; = 1; = 0;
}// sbros LCD
// ---------------------------------------- ------------------ (+ + sec100 == 100)
{= 0; + +; (sec> = 60)
{+ +; (min> = 60)
{+ +; (chas> +24) chas = 0;
}
} ^ = 0x80;// invert P3.7 (+ + sec> = 60)
{= 0;
}
}
} uart (void) interrupt 4 using 1// prerivanie posled port
{(RI)// prinata komanda ili dann
{(SBUF = 1)
{+ +; komanda = 1;
} (komanda == 1)
{[step] = sbuf; (step> = 10)
{= 0; = 0;
}
}
} (comand == 0xf3) && (+ + step <8)
{(step == 0) SBUF == ztemp1; (step == 1) SBUF == temp1;
(step == 2) SBUF == ztemp2; (step == 3) ...