您的当前位置:首页正文

基于51单片机点阵程序

2022-12-14 来源:易榕旅网
#include

#define uchar unsigned char uchar i,j,k=15; sbit xsi=P2^0; sbit xrck=P2^1; sbit xsck=P2^2; sbit ysi=P2^3; sbit yrck=P2^4; sbit ysck=P2^5; sbit kg= P3^2;

uchar code zbm[][32]={

{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},

{0xFF,0xFF,0x07,0xE0,0xF7,0xFE,0xF7,0xFE,0x77,0xF8,0x8F,0xE3,0xFF,0xEF,0xFF,0xFF,

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},/*\"R\

{0x1F,0xFF,0xCF,0xFC,0xF7,0xFB,0xFB,0xF7,0xCD,0xEC,0xCD,0xE9,0xFE,0xDB,0xFE,0xD7,

0xFE,0xD7,0xFE,0xDB,0xCD,0xE9,0xCD,0xEC,0xFB,0xF7,0xF7,0xFB,0xCF,0xFC,0x3F,0xFF},/*\"笑脸.BMP\

{0xFF,0xFE,0x7F,0xFF,0xBF,0xFF,0x0F,0xC0,0xF1,0xFF,0xFF,0xF7,0xBF,0xF9,0xCF,0xEF,

0xD1,0xDF,0x5F,0xC0,0xEF,0xFF,0xAF,0xFD,0xCF,0xFB,0xFF,0xF3,0xFF,0xFF,0xFF,0xFF},/*\"你\

{0xFF,0xDF,0x7F,0xDF,0x77,0xEF,0x77,0xF7,0x77,0xFB,0x61,0xE1,0x77,0xDA,0x17,0xDB,

0xBB,0xDB,0xA3,0xDD,0xB8,0xED,0xBB,0xF1,0xBB,0xFF,0xBF,0xFF,0xBF,0xFF,0xFF,0xFF},/*\"若\

{0xFF,0xFD,0xFF,0xFD,0xFF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F,}, };

void ys (uchar a) //延时 {

uchar b;

for (;a>0;a--)

for (b=100;b>0;b--) ; }

void yfs() //Y轴发数 {

ysck=0; yrck=0; k++;

if (k==16) { k=0; ysi=0; } else ysi=1; ysck=1; P2=P2|0X12;

//相当于 xrck=1; yrck=1; }

void xfs(uchar a) //X轴发数 {

uchar b,a1,a2; a1=~zbm[6][a*2+1]; a2=~zbm[6][a*2]; xsck=0; xrck=0;

for (b=0;b<8;b++) {

a1=a1<<1; xsi=CY; xsck=1; xsck=0; }

for (b=0;b<8;b++) {

a2=a2<<1; xsi=CY; xsck=1; xsck=0; } }

void fs(uchar a) //X轴发数 {

uchar b;

xsck=0; xrck=0;

for (b=0;b<8;b++) {

a=a<<1; xsi=CY; xsck=1; xsck=0; } }

void gdhs(uchar *zz,uchar N,uchar Time) //流动显示N个汉字 滚动函数 { //参数三个:字符串字模首地址、字数、显示流动速度

uchar FontNum,i,j,row; //循环变量,字数计数、16次流动、16列扫描 for(FontNum=0;FontNumfor(i=0;i<16;i++) //字到字流动 16次左移才能完成 {

for(j=0;jfor(row=0;row<16;row++) //显示16*16屏幕一次 {

yfs(); //选通显示列 //行选线,P3 低四位

fs (~*(zz+FontNum*32+(i+row)*2+1)); //以移动偏移为基础获取新数据 fs (~*(zz+FontNum*32+(i+row)*2)); //获取显示数据 循环显示关键算法 ys (12); //适当延时 } } } } }

void wbzd () interrupt 0 //外部中断 {

j++; if (j>1) j=0; ys(10); while (!kg) {

k=15;

for (i=0;i<16;i++) {

yfs(); xfs(i);

ys(10); } }

if (j==0)

gdhs(zbm,24,2); if (j==1)

gdhs(zbm1,58,3); //字数 }

void main () {

EA = 1; //打开总中断 EX0=1; IT0=1; while (1) {

if (j==0)

gdhs(zbm,24,3); //字数 if (j==1)

gdhs(zbm1,58,3); } }

因篇幅问题不能全部显示,请点此查看更多更全内容