1447【毕设课设】基于单片机模拟六层电梯控制系统的设计

【资源下载】下载地址如下:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl

电梯内外按键,按下任一按键,系统将根据当前位置响应用户要求;
可显示电梯当前运行状态,包括楼层数的实时显示、电梯升降状态显示:
电梯无人时,默认停在一楼;

1447【毕设课设】基于单片机模拟六层电梯控制系统的设计

 

sbit F1U=P1^1;
sbit F2D=P1^2;
sbit F2U=P1^3;
sbit F3D=P1^4;
sbit F3U=P1^5;
sbit F4D=P1^6;
sbit F4U=P1^7;
sbit F5D=P3^0;
sbit F5U=P3^1;
sbit F1=P2^0;
sbit F2=P2^1;
sbit F3=P2^2;
sbit F4=P2^3;
sbit F5=P2^4;
sbit F6=P2^5;

sbit ledu=P3^7;
sbit ledd=P3^6;
sbit ledx=P2^3;

sbit a1=P2^4;
sbit a2=P2^5;
sbit a3=P2^6;
sbit a4=P2^7;
bit dir=1,stop=0;
unsigned char nf=1;
unsigned char cf=1;
unsigned char df;
unsigned char tf;
unsigned char flag,count=0,i=0;
unsigned int timer1=0,timer2=0;

unsigned char call_floor[7]={0,0,0,0,0};
unsigned char const sequencea[8]={0x2F,0x6F,0x4F,0xcF,0x8F,0x9F,0x1F,0x3F};

  1447【毕设课设】基于单片机模拟六层电梯控制系统的设计

 

上一篇:2020-12-08


下一篇:【单片机】滑稽AT89C52表情实现