PIC单片机定时器中断语法错误问题
时间:10-02
整理:3721RD
点击:
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;
}
}
}
语法错误提示
怎么语法错误指向函数名那里
帮顶一下,我也出现这个问题了。