51单片机,计数溢出
请以下面程序为例解释解释
本文引用地址://m.amcfsurvey.com/article/201611/320238.htm//用T0使隔1秒流水灯亮一次,用T1使隔2秒静态数码管依次显示数字
#include
#include
#define uint unsigned int
#define uchar unsigned char
uchar tcount0,tcount1,temp,num;
uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,
0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e};
void main()
{
}
void t0()
interrupt1//计数溢出,CPU响应中断
{
}
void t1() interrupt 3
{
}
评论