求解答这个中断的具体含义是什么,才学单片机 不怎么懂
阿炜死了 2018-03-27 01:51:34 /**************中断服务*******************/
void timer_0 ( void ) interrupt 1 using 1
{
static uchar temp = 0;
TR0 = 0;
if(temp < 100)
{
if(temp < percent_hl)
{
PWM_L = 1;
}
else
{
PWM_L = 0;
}
}
else
{
temp=0;
}
temp ++;
TH0 = (65536 - tim) / 256;
TL0 = (65536 - tim) % 256;
TR0 = 1;
}
void Delay100ms(unsigned int d)
{
unsigned int a,b,c;
for(c=d;c>0;c--)
for(b=100;b>0;b--)
for(a=110;a>0;a--);
}
整个程序是电机调速的 分一二三四档 但是我不懂这个中断程序 请大神帮我详细的解答一下,谢谢!!!万分感激