/******************************************************************************实现秒表功能说明:用5键控制
清零 按S2 启动 只有在清零或没有开始得情况下才有效 按S 3 停止 只有在启动得情况下才有效 按S4 暂停 只有在启动得情况下才有效 按S 5 继续 只有在暂停得情况下才有效 按 S6 清零 只有在停止得情况下才有效采纳中断控制方式
******************************************************************************/#i n c l ude〈re g5 2、h〉#i nc lu de〈intr in s、h〉#d e f i ne uch ar un s ign e d char#d e fine uint un s igned in tchar c ent=0;c ha r secon d=0;c har m i nite=0;bit s2=0; b it s3=0; b i t s 4=0; bit s5=0; bit s 6=0; /*共阳数码管字型码*//*0,1,2,3,4,5,6,7,8,9,p、,灭*/ c h ar co d e dis_c od e[]={0xc0,0xf9,0xa4,0x b0,0x99,0x92,0x82,0x f 8,0x80,0x 9 0,0 x0 c,0xf f,0x b f}; /*P点显示代码序号*/ cha r data fi nd_co d e[]={0,0,12,0,0,1 2,0,0};/********************************************************///函数名: void Del a