匆匆上传,没作修改.但运行无问题.#include#include#defineucharunsignedcharuchartable[]="0123456789";#pragmainterrupt_handlermiao:9ucharkey;intnum=55,l=0;intm,h;h=8,m=59;voidmiao(){l=0;if(num==60){num=0;}num++;TCNT1H=0xf0;//比较特殊的是需要重新对计数器赋值,因为一进入中断就将计数寄存器TC