一个可调时间的时钟 搞了一个星期了 没找出哪有问题
#includereg51.h#definesmgP1#definesjP0sbitsheding=P1^3;sbitjiashi=P1^4;codeunsignedcharshumaguan={0x07,0x06,0x05,0x04,0x03,0x02};codeunsignedcharshijian={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};unsignedcharm,s,h,s