• 大小: 4KB
    文件类型: .c
    金币: 1
    下载: 0 次
    发布日期: 2021-06-14
  • 语言: 其他
  • 标签: 16*128点阵  

资源简介

利用单片机在16*128点阵上显示八个汉字

资源截图

代码片段和文件信息

/*-----------------------------------------------
  名称:595控制4汉字点阵屏
  论坛:www.doflye.net
  编写:shifang
  日期:2009.5
  修改:无 51单片机
  内容:屏上连接电源,P0.0-P0.3连接A、B、C、D,OE使能端一般接VCC或者GND,用IO引脚PWM控制可以调节屏的整体亮度
------------------------------------------------*/
#include

sbit T_STR = P0^5;      //锁存引脚,一般标识位STR
sbit T_IO  = P0^6;       //数据引脚,屏上标识R1或者G1
sbit T_CLK = P0^4;      //时钟引脚,标识位CLK

sbit ACC0 = ACC^0;
sbit ACC1 = ACC^1;
sbit ACC2 = ACC^2;
sbit ACC3 = ACC^3;
sbit ACC4 = ACC^4;
sbit ACC5 = ACC^5;
sbit ACC6 = ACC^6;
sbit ACC7 = ACC^7;
unsigned char tab[8];
unsigned char DIS[]={0123456789101112131415};

/*-----------------------------------------------
             16x16汉字取模数据
------------------------------------------------*/
unsigned char code hztest[]=    //取模选择字节倒序 ,正序得出的字是反的,可以在软件中设置自动倒叙
{
0x000x000x100x020x100x020xFC0x1F0x100x120xF00x120x1E0x530x900x54
0x580x600x000x000x200x320x440x620x000x000x000x000x000x000x000x00/*“热“0*/
0x000x000xFE0x230x100x240xF00x250x880x240xB40x240x500x240x200x24
0x180x180x240x100x440x220x460x240x000x000x000x000x000x000x000x00/*“烈“1*/
0x800x000x000x010xF80x7F0x040x030x040x010x040x210xE40x1F0x040x03
0x840x040x840x080x420x180x3E0x600x000x000x000x000x000x000x000x00/*“庆“2*/
0x000x000x980x000x800x1F0xBE0x100xD00x100x880x100x3C0x0F0x0A0x0A
0x080x090x080x490x880x480x480x780x000x000x000x000x000x000x000x00/*“祝“3*/
0x000x000x100x0C0x100x060x100x010xD00x000x100x200xFC0x1F0x100x01
0x100x020x100x0C0xD00x700x300x000x000x000x000x000x000x000x000x00/*“长“4*/
0x000x000x800x000xFC0x1F0x400x080xF80x070x260x3A0x100x040xFC0x1F
0x120x240xF00x070x100x040xF00x070x000x000x000x000x000x000x000x00

评论

共有 条评论

相关资源