多个1616led显示演示程序

多个1616led显示演示程序

ID:14487873

大小:42.00 KB

页数:11页

时间:2018-07-29

多个1616led显示演示程序_第1页
多个1616led显示演示程序_第2页
多个1616led显示演示程序_第3页
多个1616led显示演示程序_第4页
多个1616led显示演示程序_第5页
资源描述:

《多个1616led显示演示程序》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、多个1616LED显示演示程序/*--------------------------------------多个16*16LED显示演示程序MCUAT89C52XAL24MHz2005年5月18日--------------------------------------*///以下程序能实现多个16*16LED屏的多个字符显示,显示方式有整行上移、帘入帘出、左移、右移//#include"reg52.h"#defineBLKN8//列锁存器数(=LED显示字数*2)#defineTOTAL20//待显示字个数,本例共20

2、个#defineCONIOP1//显示控制口sbitG=CONIO^7;//CONIO.7为154译码器显示允许控制信号端口,0时输出,1时输出全为高阻态.sbitCLK=CONIO^6;//CONIO.6为595输出锁存器时钟信号端,1时输出数据,从1到0时锁存输出数据.sbitSCLR=CONIO^5;//CONIO.5为595移位寄存器清零口,平时为1,为0时,输出全为0.unsignedcharidatadispram[(BLKN/2)*32]={0};//显示区缓存,四字共4*32单元////***********

3、***字模表******************//unsignedcharcodeBmp[][32]={{0xEF,0xFF,0xEF,0x03,0x81,0xBB,0xDD,0xBB,0xDD,0xD7,0xEB,0xEF,0xF3,0xD7,0xCD,0xB9,0x3E,0xFF,0xC0,0x07,0xFE,0xF7,0xFD,0xF7,0xFD,0xF7,0xFB,0xF7,0xF7,0xD7,0xEF,0xEF},/*--文字:努--*/{0xFE,0xFF,0xFE,0xFF,0xFE,0xFF,0xFE,0x

4、FF,0x80,0x03,0xFE,0xFB,0xFE,0xFB,0xFE,0xFB,0xFE,0xFB,0xFD,0xFB,0xFD,0xFB,0xFB,0xFB,0xFB,0xFB,0xF7,0xFB,0xEF,0xD7,0xDF,0xEF},/*--文字:力--*/{0xFE,0xF7,0xEF,0x73,0xF3,0x37,0xF7,0x6F,0x80,0x01,0xBF,0xFB,0x70,0x17,0xFF,0xBF,0xFF,0x7F,0x80,0x01,0xFF,0x7F,0xFF,0x7F,0xFF,0x7

5、F,0xFF,0x7F,0xFD,0x7F,0xFE,0xFF},/*--文字:学--*/{0xFF,0xFF,0xC0,0x03,0xFF,0xFB,0xF7,0xFB,0xFB,0xFB,0xFC,0xFB,0xFE,0xEB,0xFF,0x9B,0xFE,0x7B,0xF9,0xFB,0xC7,0xFB,0xEF,0xFB,0xFF,0xFB,0xFF,0xDB,0xFF,0xEA,0xFF,0xF6},/*--文字:习--*///{0xEF,0xDF,0xEF,0xDF,0xDF,0xDF,0xC1,0xDF,0xB

6、F,0xC1,0x83,0xDF,0x6F,0xDF,0xEF,0xDF,0x02,0x03,0xEE,0xFB,0xEE,0xFB,0xEE,0xFB,0xEA,0xFB,0xE6,0x03,0xEE,0xFB,0xFF,0xFF},/*--文字:钻--*/{0xFF,0xFF,0x02,0x01,0xEF,0x77,0xEF,0x77,0xDF,0x77,0xDF,0x77,0x84,0x01,0x97,0x77,0x57,0x77,0xD7,0x77,0xD7,0x77,0xD6,0xF7,0xC6,0xF7,0xDD

7、,0xF7,0xFB,0xF7,0xF7,0xF7},/*--文字:研--*/{0xEF,0xDF,0xEF,0xDF,0xEF,0xDF,0x02,0x01,0xEF,0xDF,0xEB,0xDF,0xE6,0x03,0xCE,0xF7,0x2F,0x77,0xEF,0x6F,0xEF,0x9F,0xEF,0x9F,0xEF,0x6F,0xEE,0xF1,0xA9,0xFB,0xDF,0xFF},/*--文字:技--*/{0xFE,0xFF,0xFE,0xDF,0xFE,0xEF,0xFE,0xFF,0x00,0x01,0

8、xFE,0xFF,0xFC,0x7F,0xFA,0xBF,0xFA,0xDF,0xF6,0xEF,0xEE,0xE7,0xDE,0xF1,0x3E,0xFB,0xFE,0xFE,0xFE,0xFE,0xFF,0xFF},/*--文字:术--*///{0xC3,0x03,0xDB,0x7B,

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。