wuyibin2003 發(fā)表于 2016-11-2 17:09
count++; //每中斷一次,計數寄存器加1
if(count==20) //當定時20次時,即50MS*20=1000ms=1s ...
wuyibin2003 發(fā)表于 2016-11-2 17:09
count++; //每中斷一次,計數寄存器加1
if(count==20) //當定時20次時,即50MS*20=1000ms=1s ...
ahshmj 發(fā)表于 2016-11-2 18:41
void judge() //改變時分秒的值,使分秒都為60進制,時為24進制
{
if(S==60)
king@ 發(fā)表于 2016-11-2 19:24
#include //添加頭文件
#define uint unsigned int
歡迎光臨 (http://www.torrancerestoration.com/bbs/) | Powered by Discuz! X3.1 |