#include
#include
#define uint unsigned int
#define uchar unsigned char
sbit weixuan=P2^7;
sbit duanxuan=P2^6;
uint number1,number2,aa,number; //number1:T0计满次数;number2:T1计满次数;number:显示的秒数;aa:P0端口显示赋值
uint no1,no2,no3,no4,no5;
void delay(uint);
void display(uint,uint,uint,uint,uint);
uchar code table[]={
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71};
void main()
{
}
//延时函数主体
void delay(uint s)
{
}
void display(uint no1,uint no2,uint no3,uint no4,uint no5)
{
}
//定时器T0方式一中断服务程序
void T0_time_no1() interrupt 1
{
}
//定时器T1方式一中断服务程序
void T1_time_no1() interrupt 3
{
}
上一篇:51单片机 独立键盘控制
下一篇:51单片机 定时器T0方式1 控制流水灯
推荐阅读最新更新时间:2024-03-16 14:38