图7.最小系统原理图
附录二:程序清单
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
uchar code LED[]={0xfe,0xff,0xff,0xdf,0xff,0xbf,0xff,0xfe,0xff,0xef}; //义流水灯点亮顺序
void delay(uint x) //延迟函数
{ int i;
while(x--)
for(i=0;i<120;i++);
}
void Port(char c) //定义单片机向串口输出数据子函数
{ SBUF=c;
while(TI==0);
TI=0;
}
定