avr单片机+12864液晶动画显示

发布者:WanderlustHeart最新更新时间:2015-07-13 来源: 51hei关键字:avr单片机  12864液晶  动画显示 手机看文章 扫描二维码
随时随地手机看文章
折腾了3天12864液晶,终于有了进展。自己用所学知识完成了一些特殊功能。现在,12864可以完成在指定位置写入文字,绘制128*64的图形,绘制Wide*Height的图形(宽度必须为8的倍数,因为行的数据形式为字节)等。

 下面将源代码贴上:

/*
 * _12864.c
 *
 * Created: 2011/7/30 23:16:04
 *  Author: YIN
 */

#include
#include
// #include "QQ.h"
// #include "chiken.h"
#include "TSJ.h"
#define uint unsigned int
#define uchar unsigned char
#define LCD_RS_0 PORTB&=(~(1< #define LCD_RS_1 PORTB|=(1< #define LCD_RW_0 PORTB&=(~(1< #define LCD_RW_1 PORTB|=(1< #define LCD_EN_0 PORTB&=(~(1< #define LCD_EN_1 PORTB|=(1< #define LCD_PSB PORTB|=(1< #define LCD_DATA_PORT PORTA
#define LCD_DATA_DIR DDRA
#define LCD_CONTROL_DIR DDRB
;uchar Busy_Flag=1;
/*点阵汉字坐标代码,便于根据汉字坐标求出地址*/
uchar Char_Location[4][8]=
{            
 {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87},//第一行汉字位置
 {0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97},//第二行汉字位置
 {0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f},//第三行汉字位置
 {0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f},//第四行汉字位置
};

uchar X_Pos[]={0,1,2,3,4,5,4,3,2,1,0};   //图像显示的坐标,该坐标基于LCD液晶的图形显示说明部分
uchar Y_Pos[]={0,15,5,16,3,20,5,24,8,15,7};

void delay0()       //短暂延时
{
 uint i;
 i=7;
 while(i--);
}

void DelayMS(uint MS)     //延时毫秒(自己估算的,不准确)
{
 uint i,j;
 for (i=0;i   for (j=1100;j>0;j--);
}
// uint LCD_Busy()       //忙标志判断,如果lcd速度较快可不用判忙
// {
//  LCD_DATA_DIR=0x00;
//  LCD_EN_1;
//  LCD_RS_0;
//  LCD_RW_1;
//  Busy_Flag=PINA&0x80;
//  LCD_EN_0;
//  return Busy_Flag;
// }

void LCD_Write_Dat(uchar Data)    //写入数据
{
//  while(LCD_Busy());
 LCD_DATA_DIR=0xff;
 LCD_RS_1;
 LCD_RW_0;
 LCD_EN_1;
 LCD_DATA_PORT=Data;
 LCD_EN_0;
 delay0();
}

void LCD_Write_Com(uchar Com)    //向12864写入命令
{
//  while(LCD_Busy());
 LCD_DATA_DIR=0xff;
 LCD_RS_0;
 LCD_RW_0;
 LCD_EN_1;
 LCD_DATA_PORT=Com;
 LCD_EN_0;
 delay0();
}

void LCD_Write_Chinese(uchar x,uchar y,char *Chn)   //从指定行、列开始写入文字
{
 LCD_Write_Com(Char_Location[x-1][y-1]);   //写入首地址
 DelayMS(1);
 while(*Chn>0)
 {
  LCD_Write_Dat(*Chn);      //写入文字
  Chn++;
 }
}


void DisplayImage(uchar *PIC)      //绘制128*64的图片
{
 uint x=0,j=0,i=0,y=0;
 uint tmp0=0;
 LCD_Write_Com(0x34);
 for(i=0;i<2;i++)      //分两屏,上半屏和下半屏,每次写入一个半屏,2次完成整屏
 {      
  for(y=0;y<32;y++)      //32行,因此,y地址为0-31
  {     
   LCD_Write_Com(0x80+y);  //写入y地址
   LCD_Write_Com(0x80+x);  //x地址,x地址会自动加1,因此只给出初始地址
   for(j=0;j<16;j++) 
    LCD_Write_Dat(~pgm_read_byte(&PIC[tmp0+j])); //读取数据写入LCD
   tmp0+=16;     //tmp0自动加16,下次操作时读取下一行的数据
  }
  x=8;
 }
 LCD_Write_Com(0x36);   //扩充功能设定
 LCD_Write_Com(0x30);   //返回基本功能
}

void Draw_Pic(uchar Wide,uchar Height,uchar PX,uchar PY,uchar *PIC)      //绘制Wide*Height的图片,宽度只能是8的倍数,否则出错
{
 unsigned char j=0,y=0,flag=0,Height1=0;
 unsigned int tmp0=0;
 Height1=Height;
 if(Height>32)
 {
  flag=1;
  Height1=32;
 } 
 LCD_Write_Com(0x34);
  for(y=PY;y   {     
   LCD_Write_Com((0x80+y));  //y地址
   LCD_Write_Com((0x80+PX));  //x地址,x地址会自动加1,因此只给出初始地址
   for(j=0;j<(Wide/8);j++) 
    LCD_Write_Dat(~pgm_read_byte(&PIC[tmp0+j])); //读取数据写入LCD
   tmp0+=(Wide/8);  
  }
 if (flag=1)
 {
  for(y=0;y<(Height-32+PY);y++)      //32行,因此,y地址为0-31
  {     
   LCD_Write_Com((0x80+y));  //y地址
   LCD_Write_Com((0x88+PX));  //x地址,x地址会自动加1,因此只给出初始地址
   for(j=0;j<(Wide/8);j++) 
    LCD_Write_Dat(~pgm_read_byte(&PIC[tmp0+j])); //读取数据写入LCD
   tmp0+=(Wide/8);  
  }
  flag=0;
 } 
 LCD_Write_Com(0x36);   //扩充功能设定
 LCD_Write_Com(0x30);   //返回基本功能
}[page]

void Clear_Draw()
{
 unsigned char x=0,j,i,y;
 unsigned int tmp0=0;
 LCD_Write_Com(0x34);
 for(i=0;i<2;i++)      //分两屏,上半屏和下半屏
 {      
  for(y=0;y<32;y++)      //32行,因此,y地址为0-31
  {     
   LCD_Write_Com((0x80+y));  //y地址
   LCD_Write_Com((0x80+x));  //x地址,x地址会自动加1,因此只给出初始地址
   for(j=0;j<16;j++) 
    LCD_Write_Dat(0x00);  //清屏数据写入LCD
   tmp0+=16;  
  }
  x=8;
 }
 LCD_Write_Com(0x36);   //扩充功能设定
 LCD_Write_Com(0x30);   //返回基本功能

}

void LCD_Init()      //初始化函数
{
 DDRA=0XFF;             //LED IO口设为输出
 DDRC=0XFF;             //数码管段选设为输出
 DDRF |=0X0E;           //LED及数码管锁存IO口设为输出
 PORTF|=0X0E;           
 PORTA=0XFF;
 PORTC=0XFF;            
 PORTF&=0xF1;           //锁存数据关闭数码管及LED 
 DDRB |=0X10;           //PB4设为输出
 PORTB|=0X10;           //关闭PB4外接的LED  
  
 LCD_PSB;    //串行方式传输
 LCD_CONTROL_DIR=0xff;
 LCD_Write_Com(0x30); //3次初始化,进入基本模式
 DelayMS(1);
 LCD_Write_Com(0x30);
 DelayMS(1);
 LCD_Write_Com(0x30);
 DelayMS(1);
 LCD_Write_Com(0x0c); //游标关闭
 DelayMS(1);
 LCD_Write_Com(0x01); //清屏
 DelayMS(1);
}


int main()
{
 uint X_P,Y_P,i;
 LCD_Init();
 while (1)
 {
  Clear_Draw();
  LCD_Write_Chinese(1,1,"LCD12864动画演示");
  LCD_Write_Chinese(2,1,"**→乐趣无穷←**");
  LCD_Write_Chinese(3,1,"**撩字的兔斯基**");
  LCD_Write_Chinese(4,1,"**QQ:165739215**");
  DelayMS(2000);
  LCD_Write_Com(0x01);
  DelayMS(10);
//撩字的兔斯基
  for (i=0;i<11;i++)
  {
   Clear_Draw();
   DelayMS(1);
   X_P=X_Pos[i];
   Y_P=Y_Pos[i];
   Draw_Pic(48,48,X_P,Y_P,t1);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t2);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t3);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t4);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t5);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t6);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t7);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t8);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t9);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t10);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t11);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t12);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t13);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t14);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t15);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t16);
   DelayMS(70); 
   Draw_Pic(48,48,X_P,Y_P,t17);
   DelayMS(70); 
  }
 }
}

 

图片的取模方式如下图:

取模工具为:http://www.51hei.com/f/字模工具PCtoLCD2002中文完美版.rar

 
注意要上图的设置才可以在本程序中显示 .
技术支持:http://www.51hei.com/
 兔斯基的图片代码如下:

/*
 * TSJ.h
 *
 * Created: 2011/8/2 21:55:41
 *  Author: YIN
 */

#include
#include
#ifndef TSJ_H_
#define TSJ_H_
const prog_uchar t1[]={
0xFF,0xFF,0x66,0xFF,0xFF,0xFF,0xFF,0xFF,0x5A,0xFF,0xFF,0xFF,0xFF,0xFF,0x3C,0xFF,
0xFF,0xFF,0xFF,0xFF,0x42,0xFF,0xFF,0xFF,0xFF,0xFF,0x5A,0xFF,0xFF,0xFF,0xFF,0xFF,
0x5A,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0xFB,0xFF,0xFF,0xFF,0xFF,0xFF,0xE4,0x01,0xFF,
0xFF,0xFF,0xFF,0xEC,0xCD,0xFF,0xFF,0xFF,0xFF,0xEC,0xB5,0xFF,0xFF,0xFF,0xFF,0xEC,
0x78,0xFF,0xFF,0xFF,0xFF,0xEC,0x84,0xFF,0xFF,0xFF,0xFF,0xFC,0xB5,0xFF,0xFF,0xFF,
0xFF,0xFC,0xB5,0xFF,0xFF,0xFF,0xFE,0x1C,0x01,0xFF,0xFC,0x03,0xF9,0xFF,0xFB,0xFF,
0xFD,0x9B,0xF7,0xFF,0xF9,0xFF,0xFD,0x6B,0xCF,0xFF,0xFD,0xFF,0xFC,0xF3,0x9F,0xFF,
0xFE,0xFF,0xFD,0x0B,0xBF,0xFF,0xFF,0x7F,0xFD,0x6B,0x7F,0xFF,0xFF,0xBF,0xFD,0x6A,
0xFF,0xFF,0xFF,0xBF,0xFC,0x02,0xE3,0xFF,0xFF,0xDF,0xFF,0xFE,0xFC,0x1F,0xFF,0xDF,
0xFF,0xFD,0xFF,0xFF,0x7F,0xDF,0xFF,0xFD,0xFF,0xFF,0x87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xFF,0xFF,0xBF,0xFF,0xFF,0x7F,0xFF,0xFF,0xDF,0xFF,
0xFC,0xFF,0xFF,0xFF,0xE7,0xFF,0xF9,0xFF,0xFF,0xFF,0xF0,0xFF,0xE3,0xFF,0xFF,0xFF,
0xE3,0x80,0x1F,0xFF,0xFF,0xFF,0xE7,0xFE,0x7F,0xFF,0xFF,0xFF,0xD7,0xFE,0xBF,0xFF,
0xFF,0xFF,0xB7,0xFE,0xDF,0xFF,0xFF,0xFF,0x2F,0xFC,0x5F,0xFF,0xFF,0xFF,0x4F,0xFD,
0x6F,0xFF,0xFF,0xFF,0x4F,0xFD,0xAF,0xFF,0xFF,0xFE,0x8F,0xFD,0xAF,0xFF,0xFF,0xFE,
0x8F,0xFD,0xBF,0xFF,0xFF,0xFE,0xBF,0xFD,0x00,0xFF,0xFF,0xFE,0xBF,0xFD,0x66,0xFF};

#endif /* TSJ_H_ */

由于图片数据比较大,所以全部存储到了flash上,没有存储到ram,具体使用时请参照我的例子。

关键字:avr单片机  12864液晶  动画显示 引用地址:avr单片机+12864液晶动画显示

上一篇:利用单片机实现多路温度测量
下一篇:AVR单片机-数码管2(动态扫描)

推荐阅读最新更新时间:2024-03-16 14:24

PS/2子程序
/******************************************************************** 目 的: 建立PS/2的SimpleSoft测试程序(软件查询读取PS/2接收到的数据) 目标系统: 基于AVR单片机 应用软件: ICCAVR 版 本: Version 1.0 *******************************************************************
[单片机]
通用型1602,12232,12864液晶操作方法
一、液晶概述: 液晶(LiquidCrystal) 是一种高分子材料,因为其特殊的物理、化学、光学特性,20世纪中叶开始广泛应用在轻薄型显示器上。 液晶显示器(LiquidCrystalDisplay,LCD)的主要原理是以电流刺激液晶分子产生点、线、面并配合背部灯管构成画面。为叙述简便,通常把各种液晶显示器都直接叫做液晶。 各种型号的液晶通常是按照显示字符的行数或液晶点阵的行、列数来命名的。比如:1602的意思是每行显示16个字符,一共可以显示两行;类似的命名还有0801, 0802,1601等,这类液晶通常都是字符型液晶,即只 能显示ASCII码字符,如数字、大小写字母、各种符号等。12232液晶属于图
[单片机]
通用型1602,12232,<font color='red'>12864</font><font color='red'>液晶</font>操作方法
AVR单片机特性及开发编译环境
编辑与编译软件:WinAVR 仿真调试软件:AVR Stdio 下载软件:MuCodeISP AVR单片机具有上电复位功能,最小系统无需复位电路。 AVR单片机IO口推拉电流能力都能达到30mA,而51的拉电流能力不到10mA,推电流能力几乎可以忽略。
[单片机]
基于AVR单片机多任务嵌入式Internet系统设计
1 引言 目前,嵌入式系统已经广泛渗透到人们的工作、生活中。从家用电器、信息终端、手持通信设备到仪器仪表、制造工业、过程控制等领域,嵌入式设备已随处可见。另一方面,近几年来Internet技术的飞速发展给嵌入式应用带来了新的契机,在未来嵌入式系统中应用Internet技术具有很大的优势。 目前嵌入式Internet技术的实现主要有下面三种方式 : 第一种方式是EMIT技术,采用支持TCP/IP协议的高性能服务器作为网关(emGateway), 嵌入式设备通过RS-232、RS-485或者CAN总线等与网关服务器连接,间接通过服务器网关连接Internet。经过多年的发展EMIT技术已经在工业设备的网络化中得到了广泛
[单片机]
avr单片机的机器周期与时钟周期
机器周期:从内存中读取一个指令字的时间。简单地说也就是执行一条单周期指令所用的时间。AVR单片机采用哈佛结构(数据和程序分开存储)和精简指令集,一个机器周期等于一个时钟周期。也就是执行一条单周期指令只需要一个时钟脉冲。 时钟周期:数字电路的运行都离不开CLK,也就是时钟脉冲。时钟脉冲的周期就叫时钟周期。由于各器件或功能模块工作的速度要求不一样,像你所说的,又分为CPU时钟周期,ADC时钟周期等。通常我们所说的时钟周期就是CPU时钟周期,单片机通常用外部晶振产生时钟源,所以有了时钟周期等于晶振周期的说法。 CPU时钟周期:提供给CPU的时钟脉冲的周期。由于通常情况下CPU速度最快,所以时钟源直接给CPU提供时钟脉冲,在一个系统里CP
[单片机]
一个avr单片机的汇编程序,注意几个宏指令
//晶振1MHz //LED接PB0 //使用定时器1,1024分频,0.5秒中断一次,LED闪烁一次 程序如下: .include m8def.inc .equ led =0 .equ flash =$60 .org $0000//中断向量表 rest: rjmp START INT0addre: ; External Interrupt0 Vector Address reti INT1addre: ; External Interrupt1 Vector Address reti OC2addre : ; Output Compare2 Interrupt Vector Address reti OVF2addre: ;
[单片机]
AVR单片机——中断系统
中断的优点 中断函数只在中断触发源触发的时候才会执行,其他时间不执行. 如果不使用中断而且如果要根据某个端口的变化而作相应的函数操作,就必须不断地查询端口的信号,而中断不用,只要端口一有变化,就会系统就会自动进入中断函数, 我觉得这就是中断的目的,也是优点. 中断优先级 1) AVR单片机在同一个优先级中,中断向量入口地址越低,其优先级越高。AVR单片机在响应中断以后,会禁止系统响应其余中断。如果程序需要在某个中断服务程序中响应其它中断事件,可以在该中断服务程序中用重新使能全局中断即可。否则,AVR单片机只有在退出中断进程时,才重新使能全局中断。 2) AVR(至少是ATmega16)单片机采用固定的硬件优先
[单片机]
<font color='red'>AVR单片机</font>——中断系统
小广播
添点儿料...
无论热点新闻、行业分析、技术干货……
设计资源 培训 开发板 精华推荐

最新单片机文章
何立民专栏 单片机及嵌入式宝典

北京航空航天大学教授,20余年来致力于单片机与嵌入式系统推广工作。

换一换 更多 相关热搜器件
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved