51单片机程序——数码管显示0~99
#define DataPort P0
#define CtrlPort P1
unsigned char code DuanMa[10]={0xc0,0xf9,0xa4,0xb0, 0x99,0x92,0x82,0xf8,0x80,0x90};// 显示段码值0~9
unsigned char code WeiMa[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};//分别对应相应的数码管点亮,即位码
unsigned char TempData[8];
void Delay(unsigned int t); //函数声明
void Display(unsigned char FirstBit,unsigned char Num);
main()
{
unsigned char num;
unsigned int j;
while(1)
{
}
}
}
void Delay(unsigned int t)
{
}
void Display(unsigned char FirstBit,unsigned char Num)
{
}
51单片机数码管显 相关文章:
- 51单片机数码管显示的数字钟(11-30)
- 51单片机 用数码管显示动态检测结果(11-23)
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)