51单片机,计数溢出
请以下面程序为例解释解释
//用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() interrupt 1//计数溢出,CPU响应中断
{
}
void t1() interrupt 3
{
}
51单片机计数溢 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)