文档库

最新最全的文档下载
当前位置:文档库 > 用HDG12864L-6的并行8080时序显示图片

用HDG12864L-6的并行8080时序显示图片

/******************************************************************* * 文件名:main.c

* 说 明:用HDG12864L-6的并行8080时序显示图片

*******************************************************************/ #include

#include

#include "main.h"

#include "delay.h"

#define DATA PORTD

#define LCD_PS_PAL (PORTB |= 0x01) //PS=1并行通信

#define LCD_PS_SER (PORTB &= 0xFE) //PS=0 串行通信

#define C86_80 (PORTB &= 0xFD) // C86=0是8080模式

#define C86_68 (PORTB |= 0x02) //C86=1是6800模式,

#define LCD_RD_UP (PORTB |= 0x04) //RD=1写操作

#define LCD_RD_DOWN (PORTB &= 0xFB) //RD=0读操作

#define LCD_WR_READ (PORTB |= 0x08) //WR=1读操作

#define LCD_WR_WRITE (PORTB &= 0xF7) //WR=0写操作

#define A0_DAT (PORTB |= 0x10) //A0=1数据操作

#define A0_CMD (PORTB &= 0xEF) //A0=0命令控制模式

#define CS1_UP (PORTB |= 0x20) //CS1=1片选无效

#define CS1_DOWN (PORTB &= 0xDF) //CS=0 片选

//显示字符串

__flash unsigned char my_qq[] =

//const unsigned char my_qq[] =

{

/*------------------------------------------------------------------------------

; 源文件 / 文字 : D:\Documents and Settings\My Documents\My Pictures\001.bmp ; 宽×高(像素): 128×64

; 字模格式/大小 : 单色点阵液晶字模,纵向取模,字节倒序/1024字节

------------------------------------------------------------------------------*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xE0,0xF0,0xF0,

0xF0,0xF8,0xF8,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xF8,0xF8,0xF0, 0xF0,0xE0,0xC0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0xFC,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0F, 0x07,0x03,0xC3,0xC7,0xC7,0xEF,0xFF,0xFF,0xFF,0x8F,0x87,0xC3,0x03,0x07,0x07,0x1F,

免费下载Word文档免费下载: 用HDG12864L-6的并行8080时序显示图片

(共9页)

TOP相关主题