void interrupt time0_Isr(){if (TMR0IF == 1){TMR0IF =0;TMR0H = 0xEC; //定时器赋初值TMR0L = 0x78;time0_2ms = 1;if (++count_20ms == 10){count_20ms = 0;time0_20ms = 1;}if (++count_3s == 1500){count_3s = 0;time0_3s = 1;}}}
-
语法错误提示
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>