{
delay(20);
{
while(s1==0); TR2=1; }
if(s1==0)
}
if(s2==0) {
delay(20);
{
while(s2==0); TR2=0; }
if(s2==0)
}
if(s3==0) {
delay(20);
{
wei1=1; wei2=1; wei3=1; wei4=1; wei1=0;
if(s3==0)
P0=table[haomiaoshi]; delay_1ms(); wei1=1; wei2=0;
P0=table[haomiaoge]; delay_1ms(); wei2=1;
}
}
}
void main() {
T2CON=0x00; //T2MOD=0x01; TH2=216; TL2=240; RCAP2H=216; RCAP2L=240; EA=1; ET2=1; TR2=0; fen=0; miao=0;
times1=0; while(1) {
shurufen(fen);
void T2_ISR(void) interrupt 5 { TF2=0; times1++;
shurumiao(miao); shuruhaomiao(times1); display(); anjian();
}
}
times2++;
if(times1>=100) {
times1=0; if(miao>59) miao=0;
miao++;
}
if(times2>=6000) {
times2=0; if(fen>60) fen=0; }
fen++;
}