基于单片机16x16点阵模拟电梯系统设计-毕设课设资料
Posted Mr song song
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于单片机16x16点阵模拟电梯系统设计-毕设课设资料相关的知识,希望对你有一定的参考价值。
【资源下载】下载地址:点击下载(1247) 百度网盘
#include <reg51.h> //51系列单片机头文件
#define uchar unsigned char //宏定义
#define uint unsigned int //宏定义
/******************************************************
基础定义
*******************************************************/
uchar m=0,n=0;
uchar o,p,d;
uchar time=0;
/******************************************************
数码显示数据定义
*******************************************************/
sbit a=P2^4; //154芯片使能
sbit b=P2^5;
uchar code led[][32]={
{0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x04,0x0C,0x1C,0x3F,0x7F,0x7F,0x3F,0x1C,0x0C,0x04,0x00,0x00,0x00,},//下箭头
{0x00,0x00,0x00,0x00,0x10,0x18,0x1C,0xFE,0xFE,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x60,0x60,0x60,0x7F,0x7F,0x7F,0x60,0x60,0x60,0x00,0x00,0x00,},//1
{0x00,0x00,0x20,0x70,0x78,0x08,0x0C,0x0C,0x0C,0x0C,0x8C,0xDC,0xF8,0x70,0x00,0x00,
0x00,0x00,0x30,0x30,0x38,0x3C,0x3E,0x36,0x33,0x33,0x31,0x31,0x30,0x38,0x00,0x00,},//2
{0x00,0x00,0x20,0x30,0x38,0x0C,0x0C,0x0C,0x8C,0x8C,0x8C,0xF8,0x78,0x20,0x00,0x00,
0x00,0x00,0x18,0x38,0x78,0x60,0x60,0x61,0x61,0x61,0x21,0x33,0x1E,0x1E,0x00,0x00,},//3
{0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0x60,0x30,0xF8,0xF8,0xF8,0x00,0x00,0x00,0x00,
0x00,0x00,0x0E,0x0E,0x0F,0x0D,0x0C,0x6C,0x6C,0x7F,0x7F,0x7F,0x6C,0x6C,0x60,0x00,},//4
以上是关于基于单片机16x16点阵模拟电梯系统设计-毕设课设资料的主要内容,如果未能解决你的问题,请参考以下文章