/*******************************************************************
* 文件名: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,
(0xB5,0x14,di); } } HDG12864L-3 语句说明: (1):显示器开关 1 0 1 0 1 1 1 0(1) 0 为关 1 为开,使用前必须用次命令开启 12864 (2):设置...
PRODUCT SPECIFICATION HDG12864L-4 128x64 GRAPHICS...用HDG12864L-6的并行808... 暂无评价 9页 1下载...
(PORTB |= 0x01) //PS=1 并行通信 (PORTB &=...(PORTB &= 0xFD) //C86=0 是 8080 模式 (...用 HDG12864L-1 的串行方式显示汉字 * 参数:空 ...