/******************************************************************************实现秒表功能说明:用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 ay1 ms(uint coun t)//功能: 延时时间为 1ms//输入参数:count,1ms 计数//说明:总共延时时间为 1ms 乘以 c o unt,cry s tal=12Mhz/********************************************************//* 延迟函数 */void Delay1m s(u i nt count) { uint j; w h il e(c o u n t—-!=0) { for(j=0;j〈80;j++); } }/************************************************************************//*显示函数*//************************************************************************/void di sp(){char i,j=0x f e; char k; f o r(i=0;i〈8;i++) { P2=j; k=f i nd_c...