单片机89c51程序
单片机89c51程序
日期:2008-10-21 17:20:29 人气:2
这是一个数码管显示程序,本人写的,已通过测试,你试试吧
#include
#include
#define uchar unsigned char
#define uint unsigned int
uchar a[]={0xc0,0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x80,0x90};
void delay()
{
uint m;
for(m=0;m<580;m++);
}
uchar x=0,y