GB12864DHGAAMLA-V01中文资料

合集下载

12864液晶中文资料

12864液晶中文资料

目 录(一)概述 (1)(二) 外形尺寸图 (1)(三) 模块主要硬件构成说明 (2)(四) 模块的外部接口 (3)(五) 指令说明 (3)(六) 读写操作时序 (5)(七) 应用举例 (6)一. 概述FM12864I是一种图形点阵液晶显示器,它主要由行驱动器/列驱动器及128×64全点阵液晶显示器组成。

可完成图形显示,也可以显示8×4个(16×16点阵)汉字。

主要技术参数和性能:1.电源:VDD:+5V; 模块内自带-10V负压,用于LCD的驱动电压。

2.显示内容:128(列)×64(行)点3.全屏幕点阵4.七种指令5.与CPU接口采用8位数据总线并行输入输出和8条控制线6.占空比1/647.工作温度:-10℃∽+50℃,存储温度:-20℃∽+70℃二. 外形尺寸图1.外形尺寸图2. 外形尺寸表 1ITEM NOMINAL DIMEN UNIT 模块体积 54×50×6.5 mm视域 43.5×29 mm 行列点阵数 128×64 dots 点距离 0.28×0.35 mm点大小 0.32×0.39 mm三.模块主要硬件构成说明 (结构框图)IC3为行驱动器。

IC1,IC2为列驱动器。

IC1,IC2,IC3含有以下主要功能器件。

了解如下器件有利于对LCD模块之编程。

1. 指令寄存器(IR)IR是用于寄存指令码,与数据寄存器数据相对应。

当D/I=0时,在E信号下降沿的作用下,指令码写入IR。

2.数据寄存器(DR)DR是用于寄存数据的,与指令寄存器寄存指令相对应。

当D/I=1时,在下降沿作用下,图形显示数据写入DR,或在E信号高电平作用下由DR读到DB7∽DB0数据总线。

DR和DDRAM之间的数据传输是模块内部自动执行的。

3.忙标志:BFBF标志提供内部工作情况。

BF=1表示模块在内部操作,此时模块不接受外部指令和数据。

配套液晶PDF资料 12864G中文说明书

配套液晶PDF资料 12864G中文说明书
12864 使用说明书 目录
序号 1 2 3 4 5 6 7
内容标题 概述 特点 外形及接口引脚功能 基本原理 技术参数 时序特性 指令功能及硬件接口与编程案例
页码 2 2
3~4 4~5 5~6 6~9 9~23
1
1.概述
12864G 型液晶模块由于使 用方便、显示清晰,广泛应用于各种人机交流面板。 2864G 可以显示 128 列*64 行点阵单色图片,或显示 8 个/行*4 行 16*16 点阵的汉字, 或显示 16 个/行*8 行 8*8 点阵的英文、数字、符号。
9
指令名称
RS
(1)显示开/关
0
(display on/off)
指令表
表 8.
指令码
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
1 0 1 0 1 1 1 0 显示开/关:
1 0:关,1:开
说明
(2)显示初始行设置 0 (Display start line set)
(3)页地址设置
5.技术参数
5.1 最大极限参数(超过极限参数则会损坏液晶模块)
名称
符号
标准值
单位
最小
典型
最大
电路电源
VDD - VSS -0.3
7.0
V
LCD 驱动电压 VDD – V0 VDD - 13.5
VDD + 0.3
V
ห้องสมุดไป่ตู้
静电电压
-
-
100
V
工作温度
-10
+60

储存温度
-20
+70

表 2:最大极限参数
5

12864中文字库液晶模块使用说明书

12864中文字库液晶模块使用说明书

12864中文字库液晶模块使用说明书第 1 页共16 页一、12864液晶显示模块概述1. 12864液晶显示模块是128×64点阵的汉字图形型液晶显示模块,可显示汉字及图形,内置国标GB2312码简体中文字库(16X16点阵)、128个字符(8X16点阵)及64X256点阵显示RAM(GDRAM)。

可与CPU 直接接口,提供两种界面来连接微处理机:8-位并行及串行两种连接方式。

具有多种功能:光标显示、画面移位、睡眠模式等。

2. 外观尺寸:93×70mm(4X8C), 84×44mm(2X8C),110×65mm(2x8 C _2), 116×39mm(2X10),180×65mm(4X16A)3. 视域尺寸:73×39mm(4X8C), 78×25mm(2x8 C _2), 70×20mm(2X8C),85×20mm(2X10), 132×39mm(4X16A),补充说明:外观尺寸可根据用户的要求进行适度调整。

二、模块引脚说明1)表—1:(128X32)、(160X32)模块引脚说明引脚名称 方向 说明 引脚名称方向 说明1 VSS - GND(0V) 11 DB4 I/O 数据42 VDD - Supply Voltage For Logic (+5v) 12 DB5 I/O 数据53 VO - Supply Voltage For LCD (悬空)13 DB6 I/O 数据64 RS(CS) H/L H: Data L: Instruction Code 14 DB7 I/O 数据75 R/W(STD) H/L H: Read L: Write15 PSB H/L 16032此脚为:RESET脚 6 E(SCLK) H,H/L Enable Signal7 DB0 I/O 数据0 16 /RST H/L 16032此脚为空8 DB1 I/O 数据1 17 LEDK - 16032此脚为A9 DB2 I/O 数据2 18 LEDA - 16032此脚为K10 DB3 I/O 数据3 注:以上K为负,A为正4)表—4:(256X64)引脚说明引脚名称 方向 说明引脚名称 方向 说明 1 FG - FRAME GROUND 11 DB0 I/O 数据0 2 VSS - GND(0V)12 DB1 I/O 数据1 3 VDD - Supply Voltage For Logic (+5v) 13 DB2 I/O 数据2 4 NC - 空脚14 DB3 I/O 数据3 5 R/W H/L H: Read L: Write 15 DB4 I/O 数据4 6 E1 H,H/L Enable Signal1 16 DB5 I/O 数据5 7 E2 H,H/L Enable Signal217 DB6 I/O 数据6 8 RS H/L H: Data L: Instruction Code 18 DB7 I/O 数据7 9 NC - 空脚19 NC - 空脚 10 /RST H/L Reset Signal 低电平有效 20 NC - 空脚注 K背光源负极(LED-OV)A背光源正极(LED+5V)三、12864液晶硬件接口1、逻辑工作电压(VDD):4.5~5.5V2、电源地(GND):0V3、LCD 驱动电压(V0):0~-10V4、工作温度(Ta):0~55℃(常温) / -20~70℃(宽温) 保存温度(Tstg):-10~65℃(常温)5、电气特性见附图1 外部连接图(参考附图2)模块有并行和串行两种连接方法(时序如下): 1、8位并行连接时序图MPU 写资料到模块RSR/WEMPU从模块读出资料RSR/WE2、串行连接时序图CS C LS T3、AC电气特性(TA=25℃ VCC=5V)condition Min. Typ. Max. UnitSYMBOL Characteristics Testfrequency Rf=39KΩ480 540 600 KHz Fosc OSCTIME UNIT PARAMETER SYMBOL MESUREFOR WRITE MODE(WRITING DATA FROM MPU TO ST7920)System cycle time TC 13,000 nsAddress setup time TAS 1,500 nsAddress hold time TAH 1,500 nsData setup time TDSW 1,000 nsData hold time TH 20 nsEnable pulsewidth TPW 1,500 nsEnable rise/fall time TR,TF 25 nsFOR READ MODE(READING DATA FROM ST7920 TO MPU)System cycle time TC 13,000 nsAddress setup time TAS 1,500 nsAddress hold time TAH 1,500 nsData setup time TDDR 1,000 nsData hold time TH 20 ns Enable pulsewidth TPW 1,500 ns Enable rise/fall time TR,TF 25 ns四、用户指令集指令表—2:(RE=1:扩充指令集)指令码指令RS RW DB7 DB6 DB5DB4 DB3 DB2DB1DB0说明执行时间(540KHZ )待命模式 0 0 0 0 0 0 0 0 0 1将DDRAM 填满“20H ”,并且设定DDRAM 的地址计数器(AC )到“00H ” 72us卷动地址或IRAM 地址选择 0 0 0 0 0 0 0 0 1 SR SR=1:允许输入垂直卷动地址 SR=0:允许输入IRAM 地址72us反白选择 0 0 0 0 0 0 0 1 R1 R0选择4行中的任一行作反白显示,并可决定反白与否 72us 睡眠模式0 0 0 0 0 0 1 SL X XSL=1:脱离睡眠模式 SL=0:进入睡眠模式72us扩充功能设定0 0 0 0 1 1 X1REG 0RE=1:扩充指令集动作RE=0:基本指令集动作G=1 :绘图显示ONG=0 :绘图显示OFF72us设定IRAM地址或卷动地址0 0 0 1 AC5AC4 AC3 AC2AC1AC0SR=1:AC5—AC0为垂直卷动地址SR=0:AC3—AC0为ICON IRAM地址72us设定绘图RAM地址0 0 1 AC6 AC5AC4 AC3 AC2AC1AC0设定CGRAM地址到地址计数器(AC)72us备注:1、当模块在接受指令前,微处理顺必须先确认模块内部处于非忙碌状态,即读取BF标志时BF需为0,方可接受新的指令;如果在送出一个指令前并不检查BF标志,那么在前一个指令和这个指令中间必须延迟一段较长的时间,即是等待前一个指令确实执行完成,指令执行的时间请参考指令表中的个别指令说明。

LCD12864中文资料.(DOC)

LCD12864中文资料.(DOC)

12864LCD液晶显示屏中文资料一、概述带中文字库的128X64是一种具有4位/8位并行、2线或3线串行多种接口方式,内部含有国标一级、二级简体中文字库的点阵图形液晶显示模块;其显示分辨率为128×64, 内置8192个16*16点汉字,和128个16*8点ASCII字符集.利用该模块灵活的接口方式和简单、方便的操作指令,可构成全中文人机交互图形界面。

可以显示8×4行16×16点阵的汉字. 也可完成图形显示.低电压低功耗是其又一显著特点。

由该模块构成的液晶显示方案与同类型的图形点阵液晶显示模块相比,不论硬件电路结构或显示程序都要简洁得多,且该模块的价格也略低于相同点阵的图形液晶模块。

二、基本特性(1)低电源电压(VDD:+3.0--+5.5V)(2)显示分辨率:128×64点(3)内置汉字字库,提供8192个16×16点阵汉字(简繁体可选)(4)内置 128个16×8点阵字符(5)2MHZ时钟频率(6)显示方式:STN、半透、正显(7)驱动方式:1/32DUTY,1/5BIAS(8)视角方向:6点(9)背光方式:侧部高亮白色LED,功耗仅为普通LED的1/5—1/10(10)通讯方式:串行、并口可选(11)内置DC-DC转换电路,无需外加负压(12)无需片选信号,简化软件设计(13)工作温度: 0℃ - +55℃ ,存储温度: -20℃ - +60℃三、模块接口说明*注释1:如在实际应用中仅使用串口通讯模式,可将PSB接固定低电平,也可以将模块上的J8和“GND”用焊锡短接。

*注释2:模块内部接有上电复位电路,因此在不需要经常复位的场合可将该端悬空。

*注释3:如背光和模块共用一个电源,可以将模块上的JA、JK用焊锡短接。

控制器接口信号说明:1、RS,R/W的配合选择决定控制界面的4种模式:2、E信号● 忙标志:BF BF标志提供内部工作情况.BF=1表示模块在进行内部操作,此时模块不接受外部指令和数据.BF=0时,模块为准备状态,随时可接受外部指令和数据.利用STATUS RD 指令,可以将BF读到DB7总线,从而检验模块之工作状态.● 字型产生ROM(CGROM)字型产生ROM(CGROM)提供8192个此触发器是用于模块屏幕显示开和关的控制。

12864液晶屏全资料

12864液晶屏全资料

一、液晶显示模块概述12864A-1汉字图形点阵液晶显示模块,可显示汉字及图形,内置8192个中文汉字(16X16点阵)、128个字符(8X16点阵)及64X256点阵显示RAM(GDRAM)。

主要技术参数和显示特性:电源:VDD 3.3V~+5V(内置升压电路,无需负压);显示内容:128列× 64行显示颜色:黄绿显示角度:6:00钟直视LCD类型:STN与MCU接口:8位或4位并行/3位串行配置LED背光多种软件功能:光标显示、画面移位、自定义字符、睡眠模式等二、外形尺寸1.外形尺寸图2.主要外形尺寸二、模块引脚说明128X64 引脚说明逻辑工作电压(VDD):4.5~5.5V电源地(GND):0V工作温度(Ta):0~60℃(常温) / -20~75℃(宽温)三、接口时序模块有并行和串行两种连接方法(时序如下):8位并行连接时序图MPU写资料到模块MPU从模块读出资料串行数据传送共分三个字节完成:第一字节:串口控制—格式11111ABCA为数据传送方向控制:H表示数据从LCD到MCU,L表示数据从MCU到LCDB为数据类型选择:H表示数据是显示数据,L表示数据是控制指令C固定为0第二字节:(并行)8位数据的高4位—格式DDDD0000第三字节:(并行)8位数据的低4位—格式0000DDDD串行接口时序参数:(测试条件:T=25℃VDD=4.5V)2、串行连接时序图四、用户指令集备注:1、当模块在接受指令前,微处理顺必须先确认模块内部处于非忙碌状态,即读取BF标志时BF需为0,方可接受新的指令;如果在送出一个指令前并不检查BF标志,那么在前一个指令和这个指令中间必须延迟一段较长的时间,即是等待前一个指令确实执行完成,指令执行的时间请参考指令表中的个别指令说明。

2、“RE”为基本指令集与扩充指令集的选择控制位元,当变更“RE”位元后,往后的指令集将维持在最后的状态,除非再次变更“RE”位元,否则使用相同指令集时,不需每次重设“RE”位元。

12864A液晶模块产品介绍

12864A液晶模块产品介绍

12864A液晶模块产品介绍和注意点单色屏顾名思义就是一种颜色的意思.从液晶行业来理解,就是黑白显示,没有彩色。

液晶屏类型还分为点阵和段码,而点阵又有字符点阵,图片点阵之分。

单色屏中最常见的液晶屏是12864液晶,现在就为大家讲解一下12864液晶屏的原理和基本特性:一、汉字液晶12864的原理12864液晶模块中有带字库的,也有不带字库的,其是一款图形点阵液晶显示器,它由控制器T6963C、行驱动器/ 列驱动器及128×64全图形点阵液晶显示器组成.可完成常用字符及图形显示,也可以显示8×4个(16×16点阵)汉字。

汉字库的128X64是一种具有4位/8位并行、2线或3线串行多种接口方式,内部含有国标一级、二级简体中文字库的点阵图形液晶显示模块;其显示分辨率为128×64,内置8192个16*16点汉字,和128个16*8点ASCII字符集利用该模块灵活的接口方式和简单、方便的操作指令,可构成全中文人机交互图形界面。

可以显示8×4行16×16点阵的汉字也可完成图形显示低电压低功耗是其又一显著特点由该模块构成的液晶显示方案与同类型的图形点阵液晶显示模块相比,不论硬件电路结构或显示程序都要简洁得多,且该模块的价格也略低于相同点阵的图形液晶模块。

二、液晶12864A产品实物图和结构图WYM12864实物图片12864A产品结构图三、液晶12864A基本特性(1)、低电源电压(VDD:+3.0--+5.5V),(2)、显示分辨率:128×64点,(3)、内置汉字字8个16×16点阵汉字(简繁体可选),(4)、内置128个16×8点阵字符,(5)、外形尺寸78*70*11.9,(6)、视域尺寸,(7)、显示区域56.27*38.35,(8)、控制器T6963C, (9)、接口方式并口(6)、显示方式:STN、半透、正显,(10)、驱动方式:1/32DUTY,1/5BIAS,(11)、视角方向:6点,(12)、背光方式:侧部高亮白色LED,功耗仅为普通LED的1/5—1/10,(13)、通讯方式:串行、并口可选,(14)、内置DC-DC转换电路,无需外加负压,(15)、无需片选信号,简化软件设计(16)、工作温度:-20℃70℃(17)、电压5V四、LCD12864A液晶屏使用过程中注意事项几点:(1)模块上装有LCD 屏,必须避免剧烈震动、冲击、挤压和从高处掉落。

12864中文资料

12864中文资料

12864液晶名称含义12864是128*64点阵液晶模块的点阵数简称,业界约定俗成的简称。

基本参数液晶屏类型 STN FSTN模块显示效果:黄绿底黑字蓝底白字白底黑字视角6点钟12点钟驱动方式 1/64 DUTY 1/9 BIAS背光LED白色LED黄绿色控制器KS0108或兼容ST7920 T6963C数据总线 8 位并口/6800 方式串口温度特性工作温度:-20℃~+70℃ 储藏温度:-30℃~+80℃点阵格式 128 x 64基本用途:该点阵的屏显成本相对较低,适用于各类仪器,小型设备的显示领域。

基本用途:该点阵的屏显成本相对较低,适用于各类仪器,小型设备的显示领域。

液晶模组使用注意事项1 当您在你的产品设计中使用本液晶模组,注意液晶的视角与你的产品用途相一致。

2 液晶屏是玻璃为基础的,跌落或与硬物撞击会引起液晶屏破裂或粉碎。

尤其是边角处。

3 尽管在液晶表面的偏振片有抑制反光的表层,应当小心不要划伤表面,一般推荐在液晶表面采用透明塑胶材料的保护屏。

4 如果液晶模组储藏在低于规定的温度以下,液晶材料会凝结而性能恶化。

如果液晶模组储藏在高于规定的温度以上,液晶材料的分子排列方向会转变为液态,可能无法恢复到原来的状态。

超出温度和湿度范围,会引起偏振片剥落或起泡。

因此,液晶模组应储藏在规定的温度范围。

5 如液晶表面遇口水或滴水,应立即擦除,避免长时间过后引起色彩变化或留下污点。

水蒸气会引起ITO电极腐蚀。

6 如果需要清洁液晶屏表面,应该用棉或软布轻快地擦拭,仍不能清除时,呵气之后再擦拭。

7 液晶模组的驱动应遵照规定的额定指标,避免故障及永久损坏。

对液晶材料施加直流电压,会引起液晶材料迅速恶化,应该确保提供交流波形的M信号的连续应用。

特别是,在电源开关时应遵照供电顺序,避免驱动锁存及直流直接加至液晶屏。

8 机械注意事项:a) 液晶模组是在高精度下调试安装的。

避免外力撞击,不要对其改变或修改。

b) 不要篡改金属框的任何突出部分。

LCD12864液晶中文说明书

LCD12864液晶中文说明书

液晶显示模块技术手册J12864 中文/JGD12864 中文/FY12864ZW特色:(1)模组背部自带10K 3*3 硬封可调电位器,可以调到理想对比度(2)LED 背光极性可调,JP4 为液晶背光正负反接处,此模组背光为4 颗LED 灯,非普通背光(3)模组自带原装三星正品防静电电容,抗干扰性更强C6 C7 C8(4)串并口可通过两种方式调节 1 PSB 脚控制 2 JP2 短路到+为并口短路到-为串口(5)自改3.3V 可通过JP3 调节,默认接+级为5V,接-为3.3V,C4 C5 加极性电容即可型号为106A 14FH4,背光电阻33 欧改成3.3 欧+一、液晶显示模块概述12864中文汉字图形点阵液晶显示模块,可显示汉字及图形,内置8192个中文汉字(16X16点阵)、128 个字符(8X16点阵)及64X256点阵显示RAM(GDRAM)。

主要技术参数和显示特性:电源:VDD 3.3V~+5V(内置升压电路,无需负压);显示内容:128 列×64 行显示颜色:黄绿/蓝屏/灰屏显示角度:6:00 钟直视LCD 类型:STN与MCU 接口:8 位或4 位并行/3 位串行配置LED 背光多种软件功能:光标显示、画面移位、自定义字符、睡眠模式等二、外形尺寸外观尺寸:93×70×12.5mm 视域尺寸:73×39mm外形尺寸图11.5外形尺寸ITEM NOMINAL DIMEN UNIT模块体积93×70×12.5mm视域73.0×39.0mm行列点阵数128×64dots点距离0.52×0.52mm点大小0.48×0.48mm。

12864中文详细资料

12864中文详细资料

12864液晶模块文档带中文字库的128X64是一种具有4位/8位并行、2线或3线串行多种接口方式,内部含有国标一级、二级简体中文字库的点阵图形液晶显示模块;其显示分辨率为128×64, 内置8192个16*16点汉字,和128个16*8点ASCII字符集.利用该模块灵活的接口方式和简单、方便的操作指令,可构成全中文人机交互图形界面。

可以显示8×4行16×16点阵的汉字.也可完成图形显示.低电压低功耗是其又一显著特点。

由该模块构成的液晶显示方案与同类型的图形点阵液晶显示模块相比,不论硬件电路结构或显示程序都要简洁得多,且该模块的价格也略低于相同点阵的图形液晶模块。

基本特性:l 低电源电压(VDD:+3.0--+5.5V)l 显示分辨率:128×64点l 内置汉字字库,提供8192个16×16点阵汉字(简繁体可选)l 内置128个16×8点阵字符l 2MHZ时钟频率l 显示方式:STN、半透、正显l 驱动方式:1/32DUTY,1/5BIASl 视角方向:6点l 背光方式:侧部高亮白色LED,功耗仅为普通LED的1/5—1/10l 通讯方式:串行、并口可选l 内置DC-DC转换电路,无需外加负压l 无需片选信号,简化软件设计l 工作温度: 0℃- +55℃,存储温度: -20℃- +60℃模块接口说明注释1:如在实际应用中仅使用串口通讯模式,可将PSB接固定低电平,也可以将模块上的J8和“GND”用焊锡短接。

*注释2:模块内部接有上电复位电路,因此在不需要经常复位的场合可将该端悬空。

*注释3:如背光和模块共用一个电源,可以将模块上的JA、JK用焊锡短接。

2.2并行接口管脚号管脚名称电平管脚功能描述1 VSS 0V 电源地2 VCC 3.0+5V 电源正3 V0 - 对比度(亮度)调整4RS(CS)H/LRS=“H”,表示DB7——DB0为显示数据RS=“L”,表示DB7——DB0为显示指令数据5R/W(SID) H/L R/W=“H”,E=“H”,数据被读到DB7——DB0R/W=“L”,E=“H→L”, DB7——DB0的数据被写到IR或DR6 E(SCLK) H/L 使能信号7 DB0 H/L 三态数据线8 DB1 H/L 三态数据线9 DB2 H/L 三态数据线10 DB3 H/L 三态数据线11 DB4 H/L 三态数据线12 DB5 H/L 三态数据线13 DB6 H/L 三态数据线14 DB7 H/L 三态数据线15 PSB H/L H:8位或4位并口方式,L:串口方式(见注释1)16 NC - 空脚17 /RESET H/L 复位端,低电平有效(见注释2)18 VOUT - LCD驱动电压输出端19 A VDD 背光源正端(+5V)(见注释3)20 K VSS 背光源负端(见注释3)*注释1:如在实际应用中仅使用并口通讯模式,可将PSB接固定高电平,也可以将模块上的J8和“VCC”用焊锡短接。

GB12864ASGBAMDA-V01中文资料

GB12864ASGBAMDA-V01中文资料

JEWEL HILL ELECTRONIC CO.,LTDJEWEL HILL ELECTRONIC CO.,LTD.SPECIFICATIONS FORLCD MODULEModule No. GB12864AOffice Address: Rm. 518,5/F., 101 Shangbu Industrial District,HuaqiangNorthRoad, Shenzhen, ChinaTEL : (86)-755-83362489 83617492FAX: (86)-755-83286396 83365871E-mail: sales@jhlcd@Website: TABLE OF CONTENTSLCM NUMBER SYSTEM (2)1. GENERAL DESCRIPTION (3)2. FEATURES (3)3. MECHANICAL SPECIFICATION (3)4. MECHANICAL DIMENSION (4)5. MAXIMUM RATINGS (5)6. ELECTRICAL CHARACTERISTICS (5)7. MODULE FUNCTION DESCRIPTION (6)8. ELECTRO-OPTICAL CHARACTERISTICS (12)9. RELIABILITY (16)10. PRECAUTIONS FOR USING LCD MODULES (17)11. USING LCD MODULES (19)12. REVISION HISTORY (21)SAMPLE APPROVED REPORT (22)LCM Number SystemNUMBER OF CHAR. PER LINE F: FSTN; X: OTHER VERSION NUMBER: V00~V99IC TYPE:VIEWING DIRECTION:TEMPERATURE RANGE:BACKLIGHT TYPE:SERIAL NUMBER: A~ZGRAPHIC MODULEs: NUMBER OF COMMONs GRAPHIC MODULEs:NUMBER OF SEGMENTs COB & SMT LCMBACKLIGHT COLOR:CHARACTER MODULEs:CHARACTER MODULEs: NUMBER OF LINE G: REFLECTIVE,NONE BACKLIGHT A: TRANSFLECTIVE, EL BACKLIGHT B: TRANSMISSIVE, EL BACKLIGHT C: TRANSFLECTIVE, LED BACKLIGHT D: TRANSMISSIVE, LED BACKLIGHT E: TRANSFLECTIVE, CCFL BACKLIGHT F: TRANSMISSIVE, CCFL BACKLIGHT A: AMBER; B: BLUE; Y: YELLOW-GREEN R: RED; W: WHITE; O: THER COLOR N: NORMAL TEMPERATURE RANGE U: UPPER(12:00); D: DOWN(6:00)L: LEFT(9:00); R: RIGHT(3:00);A: BONDING IC, WITH CONTROLLER B: BONDING IC, WITHOUT CONTROLLER C: SMT IC, WITH CONTROLLER D: SMT IC, WITHOUT CONTROLLER O: OTHER TYPEW: BLACK-WHITE; O: OTHER G: GRAY; Y: YELLOW-GREEN; B: BLUE; LCD COLOR MODE:N: TN; H: HTN; S: STN LCD TYPE:S: SUPER WIDE TEMPERATURE RANGE W: WIDE TEMPERATURE RANGEM: MIDDLE TEMPERATURE RANGE1. GENERAL DESCRIPTIONThe GB12864A is a 128 x 64 Dots Graphics LCD module. It has a STN panel composed of 128 segments and 64 commons. The LCM can be easily accessed by micro-controller via parallel interface.2. FEATURESTransflective and positiveDisplay ModeSTN(Yellow - Green) moduleDisplay Format Graphic 128 x 64 dotsInput Data 8-bit parallel data input from MPUMultiplexing Ratio 1/64DutyBiasBias 1/9Viewing Direction 6 O’clockBacklight LED(Yellow-Green)3. MECHANICAL SPECIFICATIONItem Specifications Unit Dimensional outline 113.0 x 65.0 x 13.0(max) mmResolution 128segs x 64coms dotsViewing area 73.0(W) x 38.5(H) mmActive area 66.52(W) x 33.24(H) mmDots pitch 0.52 (W)×0.52(H) mmDots size 0.48(W)×0.48(H) mm4. MECHANICAL DIMENSION5. MAXIMUM RATINGSItem Symbol Min Max Unit NoteV DD - V ss -0.3 7.0 V Supply voltage V DD - V EE -0.3 24.0 V Input Voltage V IN -0.3 V DD +0.3 VOperating temperature T OPR -10 +60 Storage temperature T STR -20 +70Humidity --- --- 90 %RH6. ELECTRICAL CHARACTERISTICSItem SymbolCondition Min. Typ. Max. UnitSupply Voltage Logic V DD------ 5.0 --- VH level V IH 0.8V DD --- V DDInput VoltageL levelV IL --- V SS --- 0.2V DDVCurrent Consumption(LCD DRIVER)I DD V DD =5.0V; V LCD =12.0V; T amb =25 ;--- --- 1.0 mALCD Driving Voltage V LCDBias=1/9V LCD =V DD -V EE11.7 12.0 12.3 VCurrent Consumption (With LED BackLight)I LEDV DD =5.0V;V LED =4.2V,T amb =25 ;--- --- 350 mA7. MODULE FUNCTION DESCRIPTION7.1. PIN DESCRIPTIONPin No. Symbol Description1 VSSPower supply for Ground (0V)2 VDDPower supply for positive (5V)3 V oLCD driver voltage regulation pin4 D/IData/Instruction register selection; “H”: DATA “L”: Instruction5 R/WRead/write selection signal, ”H”: Read; ”L”: Write6 ERead/write Enable signal input pin7 DB08 DB19 DB210 DB38-bit bi-directional data bus11 DB412 DB513 DB614 DB715 CS1Chip select 116 CS2Chip select 217 /RSTReset signal input pin, Low level is active18 VEEPower supply for negative voltage19 LED+Power supply voltage for backlight positive20 LED-Power supply voltage for backlight negative7.2 TIMING CHARACTERISTICS1. SYSTEM BUS READ/WRITE CHARACTERISTIC2. DISPLAY CONTROL OUTPUT TIMING3. CLOCK TIMING7.3 CIRCUIT BLOCK DIAGRAM7.4 APPLICATION OF LCMReference circuit7.5 TABLE OF COMMAND8. ELECTRO-OPTICAL CHARACTERISTICSItem Symbol Condition Temp Min Typ. Max UnitsNote11.5 12.2 12.125 11.7 12.0 12.3 LCD driving voltageV LCD = = 050 11.9 11.8 12.5 V NOTE1Rise Time (Tr) --- --- -- Decay Time (Tf)0 --- ---- --- Rise Time (Tr) --- 225 340Decay Time (Tf) 25 --- 240 360Rise Time (Tr) --- --- -- Response TimeDecay Time (Tf)= = 0 50 --- --- --msec NOTE2Contrast Ratio Cr= = 0 255 10 --- --- NOTE4Viewing AngleRange( = 0°)(6”) = 90°(3”) =180°(12”) =270°(9”)(25 ) CR ≥240 35 20 30DegNOTE3z For panel only․Electro-Optical Characteristics Measuring Equipment(DMS501)SystemIllumination (D65)․Note 1. Definition of Driving Voltage( Vlcd) :․Note 3. Definition of Viewing Angle and :․Note 4. Definition of Contrast ratio( CR) :Brightness of Non-selected Segment (B2)Brightness of Selected Segment (B1)CR =V,maxCR,maxDriving VoltageB r i gh t n e s s (%)Brightness Curve forSelected Segment0%=90 =270Viewing Direction 6 O’clock DirectionNormal :9. RELIABILITY9.1. MTBFThe LCD module shall be designed to meet a minimum MTBF value of 50000 hours with normal. (25°C in the room without sunlight)9.2. TESTSNO. ITEM CONDITION CRITERION1 High Temperature Operating 50 120Hrs2 Low Temperature Operating 0 120Hrs3High Temperature/Humidity Non-Operating50 ,90%RH ,120 Hrs4 High TemperatureNon-Operating70 120Hrs5 Low TemperatureNon-Operating-20 120Hrs6 Temperature CyclingNon-Operating0 (30Min )↔ 0 (30Min)10 CYCLESNo Defect OfOperational Function InRoom Temperature AreAllowable.IDD of LCM inPre-and post-test shouldfollow specificationNotes: Judgments should be mode after exposure in room temperature for two hours.10. PRECAUTIONS FOR USING LCD MODULES10.1. HANDLING PRECAUTIONS(1) The display panel is made of glass. Do not subject it to a mechanical shock or impact by droppingit.(2) If the display panel is damaged and the liquid crystal substance leaks out, be sure not to get any inyour mouth. If the substance contacts your skin or clothes, wash it off using soap and water.(3) Do not apply excessive force to the display surface or the adjoining areas since this may cause thecolor tone to vary.(4) The polarizer covering the display surface of the LCD module is soft and easily scratched. Handlethis polarizer carefully.(5) If the display surface becomes contaminated, breathe on the surface and gently wipe it with a softdry cloth. If it is heavily contaminated, moisten a cloth with one of the following solvents: - Isopropyl alcohol- Ethyl alcohol(6) Solvents other than those above mentioned may damage the polarizer.Especially, do not use the following:- Water- Ketone- Aromatic solvents(7) Extra care to minimize corrosion of the electrode. Water droplets, moisture condensation or acurrent flow in a high-humidity environment accelerates corrosion of the electrode.(8) Install the LCD Module by using the mounting holes. When mounting the LCD Module, makesure it is free of twisting, warping and distortion. In particular, do not forcibly pull or bend the I/Ocable or the backlight cable.(9) Do not attempt to disassemble or process the LCD Module.(10) NC terminal should be open. Do not connect anything.(11) If the logic circuit power is off, do not apply the input signals.(12) To prevent destruction of the elements by static electricity, be careful to maintain an optimumwork environment.- Be sure to ground the body when handling he LCD Module.- Tools required for assembling, such as soldering irons, must be properly grounded.-To reduce the amount of static electricity generated, do not conduct assembling and other workunder dry conditions.-The LCD Module is coated with a film to protect the display surface. Exercise care when peeling off this protective film since static electricity may be generated.10.2. STORAGE CONDITIONSWhen storing, avoid the LCD module to be exposed to direct sunlight of fluorescent lamps. For stability, to keep it away form high temperature and high humidity environment (The best condition is : 23±5°C, 45±20%RH). ESD protection is necessary for long-term storage also.10.3. OTHERSLiquid crystals solidify under low temperature (below the storage temperature range) leading to defective orientation or the generation of air bubbles (black or white). Air bubbles may also be generated if the module is subject to a low temperature.If the LCD Module have been operating for a long time showing the same display patterns the display patterns may remain on the screen as ghost images and a slight contrast irregularity may also appear.A normal operating status can be recovered by suspending use for some time. It should be noted that this phenomenon does not adversely affect performance reliability.To minimize the performance degradation of the LCD Module resulting from destruction caused by static electricity etc. exercise care to avoid holding the following sections when handling the modules.- Exposed area of the printed circuit board.- Terminal electrode sections.11. Using LCD modules11.1 LIQUID CRYSTAL DISPLAY MODULESLCD is composed of glass and polarizer. Pay attention to the following items when handling.(1) Please keep the temperature within specified range for use and storage. Polarization degradation,bubble generation or polarizer peel-off may occur with high temperature and high humidity.(2) Do not touch, push or rub the exposed polarizers with anything harder than a HB pencil lead (glass,tweezers, etc).(3) N-hexane is recommended for cleaning the adhesives used to attach front/rear polarizers andreflectors made of organic substances, which will be damaged by chemicals such as acetone, toluene, toluene, ethanol and isopropyl alcohol.(4) When the display surface becomes dusty, wipe gently with absorbent cotton or other soft materiallike chamois soaked in petroleum ether. Do not scrub hard to avoid damaging the display surface.(5) Wipe off saliva or water drops immediately, contact with water over a long period of time maycause deformation or color fading.(6) Avoid contacting oil and fats.(7) Condensation on the surface and contact with terminals due to cold will damage, stain orpolarizers. After products are tested at low temperature they must be warmed up in a container before coming is contacting with room temperature air.(8) Do not put or attach anything on the display area to avoid leaving marks on.(9) Do not touch the display with bare hands. This will stain the display area and degrade insulationbetween terminals (some cosmetics are determinate to the polarizers).(10)As glass is fragile, it tends to become or chipped during handling especially on the edges. Pleaseavoid dropping or jarring.11.2 INSTALLING LCD MODULEAttend to the following items when installing the LCM.(1) Cover the surface with a transparent protective plate to protect the polarizer and LC cell.(2) When assembling the LCM into other equipment, the spacer to the bit between the LCM and thefitting plate should have enough height to avoid causing stress to the module surface, refer to the individual specifications for measurements. The measurement tolerance should be ±0.1mm.11.3 ELECTRO-STATIC DISCHARGE CONTROLSince this module uses a CMOS LSI, the same careful attention should be paid for electrostatic discharge as for an ordinary CMOS IC.(1) Make certain that you are grounded when handing LCM.(2) Before removing LCM from its packing case or incorporating it into a set, be sure the module andyour body have the same electric potential.(3) When soldering the terminal of LCM, make certain the AC power source for the soldering irondoes not leak.(4) When using an electric screwdriver to attach LCM, the screwdriver should be of groundpotentiality to minimize as much as possible any transmission of electromagnetic waves produced sparks coming from the commutator of the motor.(5) As far as possible, make the electric potential of your work clothes and that of the workbenches tothe ground potential.(6) To reduce the generation of electro-static discharge, be careful that the air in the work is not toodried. A relative humidity of 50%-60% is recommended.11.4 PRECAUTIONS FOR OPERATION(1) Viewing angle varies with the change of liquid crystal driving voltage (Vo). Adjust Vo to showthe best contrast.(2) Driving the LCD in the voltage above the limit will shorten its lifetime.(3) Response time is greatly delayed at temperature below the operating temperature range. However,this does not mean the LCD will be out of the order. It will recover when it returns to the specified temperature range.(4) If the display area is pushed hard during operation, the display will become abnormal. However, itwill return to normal if it is turned off and then on.(5) Condensation on terminals can cause an electrochemical reaction disrupting the terminal circuit.Therefore, this product must be used and stored within the specified condition of 23±5°C, 45±20%RH.(6) When turning the power on, input each signal after the positive/negative voltage becomes stable.11.5 SAFETY(1) It is recommended to crush damaged or unnecessary LCDs into pieces and wash them off withsolvents such as acetone and ethanol, which should later be burned.(2) If any liquid leaks out of a damaged glass cell and comes in contact with the hands, wash offthoroughly with soap and water.13. REVISION HISTORYrecord Date Version Reviseversion 05-01-011.0 Original2.0 Change specification format 05-11-203.0 Change contact mode 06-08-01SAMPLE APPROVED REPORT。

12864C-1中文字库说明书

12864C-1中文字库说明书

12864C-1液晶中文显示模块(一)概述 (3)(一)(二)外形尺寸1 方框图 (3)2 外型尺寸图 (4)(二)(三)模块的接口 (4)(三)(四)硬件说明 (5)(五) 指令说明 (7)(四)(五)读写操作时序 (8)(五)(六)交流参数 (11)(六)(七)软件初始化过程 (12)(七)(八)应用举例 (13)(八)(九)附录1半宽字符表 (20)2 汉字字符表 (21)一、概述12864C-1是一种具有4位/8位并行、2线或3线串行多种接口方式,内部含有国标一级、二级简体中文字库的点阵图形液晶显示模块;其显示分辨率为128×64, 内置8192个16*16点汉字,和128个16*8点ASCII字符集.利用该模块灵活的接口方式和简单、方便的操作指令,可构成全中文人机交互图形界面。

可以显示8×4行16×16点阵的汉字. 也可完成图形显示.低电压低功耗是其又一显著特点。

由该模块构成的液晶显示方案与同类型的图形点阵液晶显示模块相比,不论硬件电路结构或显示程序都要简洁得多,且该模块的价格也略低于相同点阵的图形液晶模块。

基本特性:●●低电源电压(VDD:+3.0--+5.5V)●●显示分辨率:128×64点●●内置汉字字库,提供8192个16×16点阵汉字(简繁体可选)●●内置 128个16×8点阵字符●●2MHZ时钟频率●●显示方式:STN、半透、正显●●驱动方式:1/32DUTY,1/5BIAS●●视角方向:6点●●背光方式:侧部高亮白色LED,功耗仅为普通LED的1/5—1/10●●通讯方式:串行、并口可选●●内置DC-DC转换电路,无需外加负压●●无需片选信号,简化软件设计●●工作温度: 0℃ - +55℃ ,存储温度: -20℃ - +60℃二、方框图3、外形尺寸图三、模块接口说明*注释1:如在实际应用中仅使用串口通讯模式,可将PSB接固定低电平,也可以将模块上的J8和“GND”用焊锡短接。

12864D液晶,12864A液晶显示模块,12864 KS0108,YB12864

12864D液晶,12864A液晶显示模块,12864 KS0108,YB12864

(3) 显示起始行设置(Display start line)
格式
1
1 L5 L4 L3 L2 L1 L0
该指令设置了显示起始行寄存器的内容。KS0108 有 64 行显示的管理能力,该指令中 L5~L0 为显
示起始行的地址,取值在 0~3FH(1~64)范围内,它规定了显示屏上最顶一行所对应的显示存储器的
退出
(1) 读状态字(read status)
格式 BUSY 0 NO/OFF
RESER 0 0 0 0
z BUSY=1 表示 KS0108 正在处理计算机发来的指令或数据。此时接口电路被封锁,不能接受除读
状态字以外的任何操作。BUSY=0 表示 KS0108 接口控制电路已处于“准备好”状态,等待计算 机的访问。
VCC P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7
31 30 29 P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0
40 39 DB0 38 DB1 37 DB2 36 DB3 35 DB4 34 DB5 33 DB6 32 DB7 31 30 29 28 CS1 27 CS2 26 25 24 23 22 R/W 21 RS
LEDA LEDK
64SEG
KS0108 or Eqv
64SEG
KS0108 or Eqv
LED Backlight
5. 12864D的对比度调节
12864D上有负压电路,生成的负压由Vout脚输出,加过用户主板返回到液晶模块接口的 V0 端,由此调节对比度。一般的对比度调节电路如下。用户也可以在此原理的基础上使用数字定 位器实现对比度的软件调节。
CS3 D/I D0-D7

12864C-1中文字库说明书(注意驱动电压是3.3V)

12864C-1中文字库说明书(注意驱动电压是3.3V)

*注释 1:如在实际应用中仅使用并口通讯模式,可将 PSB 接固定高电平,也可以将模块上的 J8 和“VCC”用焊锡短接。
*注释 2:模块内部接有上电复位电路,因此在不需要经常复位的场合可将该端悬空。
*注释 3:如背光和模块共用一个电源,可以将模块上的 JA、JK 用焊锡短接。
四.模块主要硬件构成说明
将以上 16 位地址连续写入即可
备注;当 IC1 在接受指令前,微处理器必须先确认其内部处于非忙碌状态,即读取 BF 标志时,BF 需为零,方可接受新的指 令;如果在送出一个指令前并不检查 BF 标志,那么在前一个指令和这个指令中间必须延长一段较长的时间,即是等待前 一个指令确实执行完成。
六、读写时序图
反白 选择
0
0
选择 2 行中的任一行作反白显示,并可 0 0 0 0 0 1 R1 R0 决定反白与否。初始值 R1R0=00,第一
次设定为反白显示,再次设定变回正常
睡眠 模式
0
0
0
0
0
0
1 SL X
X
SL=0:进入睡眠模式 SL=1:脱离睡眠模式
扩充 功能 0 设定
0
CL=0/1:4/8 位数据
0
执行动作 I/O 缓冲——>DR DR——>I/O 缓冲 无动作
结果 配合/W 进行写数据或指令 配合 R 进行读数据或指令
● 忙标志:BF BF 标志提供内部工作情况.BF=1 表示模块在进行内部操作,此时模块不接受外部指令和数据.BF=0 时,模块为准备
状态,随时可接受外部指令和数据. 利用 STATUS RD 指令,可以将 BF 读到 DB7 总线,从而检验模块之工作状态.
八、软件初始化

12864I-1中文字库使用使用说明书

12864I-1中文字库使用使用说明书

11、读出 RAM 的值
CODE:
RS
RW
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
H
H D7
D6 D5 D4 D3 D2 D1
D0
功能:从内部 RAM 读取资料(DDRAM/CGRAM/TRAM/GDRAM)
8
LCD 在线液晶显示器技术手册 RT12864I-1
12、待命模式(12H)
CODE:
14、反白选择(14H)
CODE:
RS
RW
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
L
L
LL
L
L
L
H R1
R0
功能:选择 4 行中的任一行作反白显示,并可决定反白的与否
15、睡眠模式(015H)
CODE:
RS
RW
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
L
L
LL
L
L
H SL
X
X
功能:SL=1;脱离睡眠模式
72us
RE=0: 基本指令集动作
设定
CGRA 0
0
0
1
AC AC AC AC AC AC 设定 CGRAM 地址到地址计数器 72us
M地
5 4 3 2 1 0 (AC)

设定
DDRA 0
0
1
AC AC AC AC AC AC AC 设定 DDRAM 地址到地址计数器 72us
M
6 5 4 3 2 1 0 (AC)

12864中文资料

12864中文资料

12864中文资料12864中文资料一、OCM12864液晶显示模块概述OCM12864液晶显示模块是128×64点阵型液晶显示模块,可显示各种字符及图形,可与CPU直接接口,具有8位标准数据总线、6条控制线及电源线。

采用KS0107控制IC。

二、最大工作范围1、逻辑工作电压(Vcc):4.5~5.5V2、电源地(GND):0V3、LCD驱动电压(Vee):0~-10V4、输入电压:Vee~Vdd5、工作温度(Ta):0~55℃(常温) / -20~70℃(宽温)6、保存温度(Tstg):-10~65℃三、电气特性(测试条件Ta=25,Vdd=5.0 /-0.25V)1、输入高电平(Vih):3.5Vmin2、输入低电平(Vil):0.55Vmax3、输出高电平(Voh):3.75Vmin4、输出低电平(Vol):1.0Vmax5、工作电流:2.0mAmax四、接口说明12864-1,12864-2接口说明表1 VSS 0V 逻辑电源地。

2 VDD 5.0V 逻辑电源正。

3 V0 LCD驱动电压,应用时在VEE与V0之间加一2K可调电阻。

4 D/I H/L 数据\指令选择:高电平:数据D0-D7将送入显示RAM;低电平:数据D0-D7将送入指令寄存器执行。

5 R/W H/L 读\写选择:高电平:读数据;低电平:写数据。

6 E H.H/L 读写使能,高电平有效,下降沿锁定数据。

7 DB0 H/L 数据输入输出引脚。

8 DB1 H/L 数据输入输出引脚。

9 DB2 H/L 数据输入输出引脚。

10 DB3 H/L 数据输入输出引脚。

11 DB4 H/L 数据输入输出引脚。

12 DB5 H/L 数据输入输出引脚。

13 DB6 H/L 数据输入输出引脚。

14 DB7 H/L 数据输入输出引脚。

15 CS1 H/L 片选择信号,低电平时选择前64列。

16 CS2 H 片选择信号,低电平时选择后64列。

LCD12864液晶显示器中文说明(DOC)知识交流

LCD12864液晶显示器中文说明(DOC)知识交流

一、液晶显示模块概述12864A-1汉字图形点阵液晶显示模块,可显示汉字及图形,内置8192个中文汉字(16X16点阵)、128个字符(8X16点阵)及64X256点阵显示RAM(GDRAM)。

主要技术参数和显示特性:电源:VDD 3.3V~+5V(内置升压电路,无需负压);显示内容:128列× 64行显示颜色:黄绿显示角度:6:00钟直视LCD类型:STN与MCU接口:8位或4位并行/3位串行配置LED背光多种软件功能:光标显示、画面移位、自定义字符、睡眠模式等二、外形尺寸1.外形尺寸图2.主要外形尺寸项目标准尺寸单位模块体积113.0×65.0×12.8mm定位尺寸105.0×55.0mm视域73.4×38.8 mm行列点阵数128×64dots点距离0.52×0.52 mm点大小0.48×0.48 mm二、模块引脚说明引脚号引脚名称方向功能说明1 VSS - 模块的电源地2 VDD - 模块的电源正端3 V0 - LCD驱动电压输入端4 RS(CS) H/L 并行的指令/数据选择信号;串行的片选信号5 R/W(SID) H/L 并行的读写选择信号;串行的数据口6 E(CLK) H/L 并行的使能信号;串行的同步时钟7 DB0 H/L 数据08 DB1 H/L 数据19 DB2 H/L 数据210 DB3 H/L 数据311 DB4 H/L 数据412 DB5 H/L 数据513 DB6 H/L 数据614 DB7 H/L 数据715 PSB H/L 并/串行接口选择:H-并行;L-串行16 NC 空脚17 /RET H/L 复位低电平有效18 NC 空脚19 LED_A - 背光源正极(LED+5V)20 LED_K - 背光源负极(LED-OV)逻辑工作电压(VDD):4.5~5.5V电源地(GND):0V工作温度(Ta):0~60℃(常温) / -20~75℃(宽温)三、接口时序模块有并行和串行两种连接方法(时序如下):8位并行连接时序图MPU写资料到模块MPU从模块读出资料2、串行连接时序图串行数据传送共分三个字节完成:第一字节:串口控制—格式11111ABCA为数据传送方向控制:H表示数据从LCD到MCU,L表示数据从MCU到LCDB为数据类型选择:H表示数据是显示数据,L表示数据是控制指令C固定为0第二字节:(并行)8位数据的高4位—格式DDDD0000第三字节:(并行)8位数据的低4位—格式0000DDDD串行接口时序参数:(测试条件:T=25℃VDD=4.5V)四、用户指令集指令指令码说明执行时间(540KHZ)RSRWDB7DB6DB5DB4DB3DB2DB1DB清除显示0 0 0 0 0 0 0 0 0 1将DDRAM填满“20H”,并且设定DDRAM的地址计数器(AC)到“00H”4.6ms地址归位0 0 0 0 0 0 0 0 1 X设定DDRAM的地址计数器(AC)到“00H”,并且将游标移到开头原点位置;这个指令并不改变DDRAM的内容4.6ms进入点设定0 0 0 0 0 0 0 1 I/D S指定在资料的读取与写入时,设定游标移动方向及指定显示的移位72us显示状态开/关0 0 0 0 0 0 1 D C BD=1:整体显示ONC=1:游标ONB=1:游标位置ON72us游标或显示移位控制0 0 0 0 0 1S/CR/LX X设定游标的移动与显示的移位控制位元;这个指令并不改变DDRAM的内容72us功能设定0 0 0 0 1 DL XREX XDL=1 (必须设为1)RE=1:扩充指令集动作72us备注:1、当模块在接受指令前,微处理顺必须先确认模块内部处于非忙碌状态,即读取BF标志时BF需为0,方可接受新的指令;如果在送出一个指令前并不检查BF标志,那么在前一个指令和这个指令中间必须延迟一段较长的时间,即是等待前一个指令确实执行完成,指令执行的时间请参考指令表中的个别指令说明。

带字库12864液晶详解

带字库12864液晶详解

12864液晶一、概述带中文字库的128X64是一种具有4位/8位并行、2线或3线串行多种接口方式,内部含有国标一级、二级简体中文字库的点阵图形液晶显示模块;其显示分辨率为128×64,内置8192个16*16点汉字,和128个16*8点ASCII字符集.利用该模块灵活的接口方式和简单、方便的操作指令,可构成全中文人机交互图形界面。

可以显示8×4行16×16点阵的汉字.也可完成图形显示.低电压低功耗是其又一显著特点。

由该模块构成的液晶显示方案与同类型的图形点阵液晶显示模块相比,不论硬件电路结构或显示程序都要简洁得多,且该模块的价格也略低于相同点阵的图形液晶模块。

基本特性:l 低电源电压(VDD:+3.0--+5.5V)l 显示分辨率:128×64点l 内置汉字字库,提供8192个16×16点阵汉字(简繁体可选)l 内置128个16×8点阵字符l 2MHZ时钟频率l 显示方式:STN、半透、正显l 驱动方式:1/32DUTY,1/5BIASl 视角方向:6点l 背光方式:侧部高亮白色LED,功耗仅为普通LED的1/5—1/10l 通讯方式:串行、并口可选l 内置DC-DC转换电路,无需外加负压l 无需片选信号,简化软件设计l 工作温度: 0℃ - +55℃ ,存储温度: -20℃ - +60℃模块接口说明*注释1:如在实际应用中仅使用串口通讯模式,可将PSB接固定低电平,也可以将模块上的J8和“GND”用焊锡短接。

*注释2:模块内部接有上电复位电路,因此在不需要经常复位的场合可将该端悬空。

*注释3:如背光和模块共用一个电源,可以将模块上的JA、JK用焊锡短接。

2.2并行接口管脚号管脚名称电平管脚功能描述1VSS0V电源地2VCC 3.0+5V电源正3V0-对比度(亮度)调整4RS(CS)H/LRS=“H”,表示DB7——DB0为显示数据RS=“L”,表示DB7——DB0为显示指令数据5R/W(SID)H/L R/W=“H”,E=“H”,数据被读到DB7——DB0R/W=“L”,E=“H→L”, DB7——DB0的数据被写到IR或DR6E(SCLK)H/L使能信号7DB0H/L三态数据线8DB1H/L三态数据线9DB2H/L三态数据线10DB3H/L三态数据线11DB4H/L三态数据线12DB5H/L三态数据线13DB6H/L三态数据线14DB7H/L三态数据线15PSB H/L H:8位或4位并口方式,L:串口方式(见注释1)16NC-空脚17/RESET H/L复位端,低电平有效(见注释2)18VOUT-LCD驱动电压输出端19A VDD背光源正端(+5V)(见注释3)20K VSS背光源负端(见注释3)*注释1:如在实际应用中仅使用并口通讯模式,可将PSB接固定高电平,也可以将模块上的J8和“VCC”用焊锡短接。

12864液晶显示资料及程序

12864液晶显示资料及程序

12864液晶显示资料及程序硬件连接方式是:并口直接访问。

这是汉字显示程序:#include<reg51.h>#include<absacc.h>#define uchar unsigned char#define datawr 0x1200 //写数据通道#define comwr 0x1000 //写控制命令通道#define datare 0x1300 //读数据通道#define comre 0x1100 //读忙通道uchar code disp_data[]={" 浙江大学" //第一行,第一页"04级通信工程一班" //第三行" 宁波理工学院" //第二行" 竞赛小组" //第四行"128X64液晶显示器" //第一行,第二页" 测试程序" //第三行" 07年07月25日" //第二行" Tornado "}; //第四行void set12864();void write_command(uchar command);void write_page(uchar data_add);void read_page(uchar data_add);void delays(uchar cont);void main(){while(1){set12864(); //初始化12864write_page(0); //写入一页数据read_page(0x30); //读出一页数据到内部RAMdelays(2); //延时2swrite_page(64); //写入下一页数据delays(2); //延时2s}}//初始化12864子程序void set12864(){write_command(0x30); //功能设定控制字write_command(0x0c); //显示开关控制字write_command(0x01); //清除屏幕控制字write_command(0x06); //进入设定点控制字}//写控制命令子程序void write_command(uchar command){bit flag=1; //12864空闲标志位while(flag) //检查12864是否空闲flag="XBYTE"[comre]&0x80;XBYTE[comwr]=command; //空闲传送控制字}//写一页子程序void write_page(uchar data_add){bit flag=1; //12864空闲标志位uchar num=64; //64个循环,连续写入32个汉字或是64个西文字符write_command(0x80);for(;num>0;num--){while(flag) //检查12864是否空闲flag="XBYTE"[comre]&0x80;XBYTE[datawr]=disp_data[data_add++]; //空闲传送数据}}//读一页子程序void read_page(uchar data_add){bit flag=1; //12864空闲标志位uchar num=64; //64个循环,连续写入32个汉字或是64个西文字符write_command(0x80);for(;num>0;num--){while(flag) //检查12864是否空闲flag="XBYTE"[comre]&0x80;DBYTE[data_add++]=XBYTE[datare]; //空闲传送数据}}//延时cont秒子程序void delays(uchar count){unsigned char h,i,j,k;do{for(h=5;h>0;h--)for(i=4;i>0;i--)for(j=116;j>0;j--)for(k=214;k>0;k--);}while(--count);}这是图象显示程序:#include<reg51.h>#include<absacc.h>#define uchar unsigned char#define uint unsigned int#define datawr 0x1200 //写数据通道#define comwr 0x1000 //写控制命令通道#define datare 0x1300 //读数据通道#define comre 0x1100 //读忙通道uchar code disp_data[] = // 数据表{0x00,0x01,0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00 ,0x00,0x00,0x00,0x00,0x01,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x80,0x00 ,0x00,0x00,0x00,0x00,0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xC0,0x00 ,0x00,0x00,0x00,0x00,0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xE0,0x00 ,0x00,0x00,0x00,0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF0,0x00 ,0x00,0x00,0x00,0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF8,0x00 ,0x00,0x00,0x00,0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x0 0,0x00,0x00,0x00,0x00,0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x8 0,0x00,0x00,0x00,0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF F,0xFF,0xFF,0xFF,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0 3,0xFF,0xFF,0xFF,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0 0,0x07,0xFF,0xFF,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x8 0,0x00,0x0B,0xFF,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x8 0,0x00,0x00,0x1F,0x01,0xFF,0xFF,0xFF,0xFF,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xC 0,0x00,0x00,0x00,0x01,0xFF,0xFF,0xFF,0xF3,0x79,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xC 0,0x00,0x00,0x00,0x03,0xFF,0xFF,0xFF,0xE6,0x62,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xE 1,0x60,0x00,0x68,0x01,0xFF,0xFF,0xFE,0x00,0x60,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xE1 ,0x00,0x00,0x0E,0x01,0xFF,0xFF,0xF8,0x00,0x4B,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF0 ,0x8E,0x08,0x79,0x07,0xFF,0xFF,0xF0,0x00,0x41,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xE6 ,0xC0,0x07,0x61,0xC3,0xFF,0xFE,0xC0,0x00,0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xF F,0xED,0xEF,0x3F,0x83,0xFF,0xFE,0x60,0x00,0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF ,0xFF,0xFF,0xFF,0xC0,0xFF,0xFD,0xFC,0x6C,0x00,0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xF F,0xFF,0xFF,0xFF,0xF0,0x7F,0xF3,0xFF,0xFE,0x60,0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF ,0xFF,0xFF,0xFF,0xFF,0xFF,0xF3,0xFF,0xFF,0x50,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xF F,0xFF,0xFF,0xC9,0xFB,0xFF,0xF1,0xF8,0x8C,0xD8,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xF F,0xFB,0x6F,0xD9,0xC2,0x3F,0xF8,0x40,0x00,0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xF6 ,0xDF,0x1E,0xFF,0xFF,0x7F,0xFC,0x38,0x00,0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0x64 ,0x2F,0x6F,0xFF,0xFD,0x7B,0xFC,0x1F,0xE0,0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0x5 F,0x7C,0xEE,0xFF,0xC7,0xFF,0xBC,0x0F,0xFF,0x00,0x03,0xFF,0xFF,0xFF,0xFF,0xFF,0xD F,0xFE,0xEF,0xFF,0xFF,0xE7,0xDC,0x07,0xE7,0xF8,0x12,0x7F,0xFF,0xFF,0xFF,0xFF,0x4 7,0xFF,0xFF,0xFF,0xFF,0xE7,0x80,0x03,0xF4,0x00,0x00,0x5F,0xFF,0xFF,0xFE,0xFE,0xE30xFF,0xFE,0xC0,0x01,0xC0,0x00,0x00,0x1B,0xFF,0xFF,0xFB,0xFF,0xF F,0xFF,0xFF,0xFF,0x7F,0xEE,0xC0,0x00,0xC0,0x00,0x00,0x03,0xFF,0xFF,0xFF,0xFF,0xFF ,0xFF,0xFF,0xFF,0xFE,0x98,0x00,0x00,0x00,0x00,0x00,0x03,0xFF,0xFF,0xEF,0xFF,0xFF, 0xFF,0xFF,0xFF,0x20,0x0E,0x60,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x8F,0xFF,0xFF, 0xFF,0xFF,0xFF,0x05,0x80,0xE0,0x00,0x00,0x00,0x00,0x01,0xFF,0xFD,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0x09,0x80,0xA0,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x7F,0xFF,0xFF, 0xFF,0xFF,0xFF,0x85,0x2A,0xC0,0x00,0x00,0x00,0x00,0x01,0xFF,0xFB,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFE,0xBF,0xF3,0xC0,0x00,0x00,0x00,0x00,0x00,0xFF,0xF7,0xFF,0xFF,0xFF, 0xFF,0xFF,0xF8,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,0xFF,0xE0,0xFF,0xFF,0xFF, 0xFF,0xFF,0x00,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xC0,0xFF,0xFF,0xFF, 0xFF,0xC0,0x1F,0xFF,0xFF,0x80,0x00,0x40,0x00,0x00,0x00,0xFF,0x80,0xFF,0xFF,0xFF, 0x80,0x07,0xFF,0xFF,0xFF,0xC0,0x00,0xC0,0x00,0x00,0x01,0xFF,0x01,0xFF,0xFF,0xF8 ,0x00,0xFF,0xFF,0xFF,0xFF,0xE0,0x63,0x80,0x00,0x00,0x01,0xFE,0x01,0xFF,0x18,0x00, 0x3F,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,0x01,0xCC,0x01,0xFE,0x00,0x07, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,0x07,0xA0,0x03,0xFC,0x00,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,0x05,0xC0,0x03,0xC8,0x00,0x7F, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,0x19,0x00,0x00,0x88,0x0C,0x07, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x0C,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0xC0, 0x7F,0xFF,0xFF,0xFF,0xFF,0xF8,0x07,0x0F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0 x0F,0xFF,0xFE,0xFF,0xFF,0xD0,0x07,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x0F, 0x03,0xFF,0xF8,0xFF,0xFC,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0 x3F,0xFF,0xC0,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,00xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0 x00,0x1F,0xFE,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x78,0x02,0x00,0x00,0x00,0x00,0 x00,0x0F,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x03,0xF0,0x78,0x00,0x00,0x00,0x00,0 x00,0x02,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF,0xF0,0x00,0x00,0x00,0x00, 0x00,0x00,0x7F,0xF0,0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x1F,0xE0,0x00,0x00,0x00,0x00,0x00,0x3F,0xFF,0x80,0x00,0x00,0x00,0x00,0 x00,0x00,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xFF,0x00,0x00,0x00,0x00,0x00,0 x00,0x00,0x27,0xC0,0x00,0x00,0x00,0x00,0x00,0x01,0xFC,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0 x00,0x00,0x04,0x80,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0 x00,0x00,0x01};void set12864();void setxy(uchar x,uchar y);void write_command(uchar command);void write_16byte(uint data_add);void delays(uchar count);void main(){uchar x,y,i;while(1){y="0x80"; //设置液晶上半部分坐标x="0x80";delays(2); //延时2sset12864(); //初始化12864delays(2);for(i=0;i<32;i++) //写入液晶上半图象部分{ //写入坐标setxy(x,y);write_16byte(i*16); //连续写入16字节数据y++; //y轴地址加1}y="0x80"; //设置液晶下半部分坐标x="0x88";for(i=0;i<32;i++) //写入液晶下半图象部分{setxy(x,y); //写入坐标write_16byte((32+i)*16);//连续写入16字节数据y++; //y轴地址加1}write_command(0x34); //写入扩充指令命令write_command(0x36); //显示图象}}//初始化12864子程序void set12864(){write_command(0x30); //功能设定控制字write_command(0x0c); //显示开关控制字write_command(0x01); //清除屏幕控制字write_command(0x06); //进入设定点控制字}//设置绘图坐标void setxy(uchar x,uchar y){write_command(0x34); //写入扩充指令命令write_command(y); //写入y轴坐标write_command(x); //写入x轴坐标write_command(0x30); //写入基本指令命令}//写控制命令子程序void write_command(uchar command){bit flag="1"; //12864空闲标志位while(flag) //检查12864是否空闲flag="XBYTE"[comre]&0x80;XBYTE[comwr]=command; //空闲传送控制字}void write_16byte(uint data_add){bit flag="1"; //12864空闲标志位uchar num="16"; //16个循环,连续写入16个字节for(;num>0;num--){while(flag) //检查12864是否空闲flag="XBYTE"[comre]&0x80;XBYTE[datawr]=disp_data[data_add++]; //空闲传送数据}}//延时count秒子程序void delays(uchar count){unsigned char h,i,j,k;do{for(h=5;h>0;h--)for(i=4;i>0;i--)for(j=116;j>0;j--)for(k=214;k>0;k--);}while(--count);}圣斗士之家2009-07-28 23:13:30#include#include#define uchar unsigned char#define datawr 0x1200 //写数据通道#define comwr 0x1000 //写控制命令通道#define datare 0x1300 //读数据通道#define comre 0x1100; //读忙通道uchar code disp_data[]={" 浙江大学 " //第一行,第一页"04级通信工程一班" //第三行" 宁波理工学院 " //第二行" 竞赛小组 " //第四行"128X64液晶显示器" //第一行,第二页" 测试程序 " //第三行" 07年07月25日 " //第二行&nbsp; " Tornado "}; //第四行void set12864();void write_command(uchar command);void write_page(uchar data_add);void read_page(uchar data_add);void delays(uchar cont);void main(){while(1){set12864(); //初始化12864write_page(0); &nbsp; //写入一页数据read_page(0x30); //读出一页数据到内部RAMdelays(2); //延时2swrite_page(64); //写入下一页数据delays(2); //延时2s}}//初始化12864子程序void set12864(){write_command(0x30); //功能设定控制字write_command(0x0c); //显示开关控制字write_command(0x01); //清除屏幕控制字write_command(0x06); //进入设定点控制字}//写控制命令子程序void write_command(uchar command){bit flag="1"; //12864空闲标志位while(flag) //检查12864是否空闲flag="XBYTE"[comre]&0x80;XBYTE[comwr]=command; //空闲传送控制字}//写一页子程序void write_page(uchar data_add){bit flag="1"; //12864空闲标志位uchar num="64"; //64个循环,连续写入32个汉字或是64个西文字符 write_command(0x80);for(;num>0;num--){while(flag)//检查12864是否空闲flag="XBYTE"[comre]&0x80;XBYTE[datawr]=disp_data[data_add++]; //空闲传送数据}}//读一页子程序void read_page(uchar data_add){bit flag="1"; //12864空闲标志位uchar num="64"; //64个循环,连续写入32个汉字或是64个西文字符 write_command(0x80);for(;num>0;num--){while(flag) //检查12864是否空闲flag="XBYTE"[comre]&0x80;DBYTE[data_add++]=XBYTE[datare]; //空闲传送数据}}//延时cont秒子程序void delays(uchar count){unsigned char h,i,j,k;do{for(h=5;h>0;h--)for(i=4;i>0;i--)for(j=116;j>0;j--)for(k=214;k>0;k--);}while(--count);}这是图象显示程序:#include#include#define uchar unsigned char#define uint unsigned int#define datawr 0x1200 //写数据通道#define comwr 0x1000&nbsp; //写控制命令通道#define datare 0x1300 //读数据通道#define comre 0x1100 //读忙通道uchar code disp_data[] = // 数据表{0x00,0x01,0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xC0,0x00,0x00,0x00, 0x00,0x00,0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xE0,0x00,0x00,0x00, 0x00,0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF8,0x00,0x00,0x00, 0x00,0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,0x00, 0x00,0x00,0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x80,0x00,0x00, 0x00,0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF F,0xFF,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF F,0xFF,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x03,0xFF,0xF F,0xFF,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x07,0xF F,0xFF,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x0 B,0xFF,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00, 0x1F,0x01,0xFF,0xFF,0xFF,0xFF,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xC0,0x00,0x0 0,0x00,&nb14#inc lude <stdio.h>#inc lude <conio.h>int main(void){int c;int a;a = getchar();printf ("%c",a);/* Note that getc har reads from stdin andis line buffered; this means it w illnot return until you press ENTER. */while ((c = getc har()) != '\n'){printf("%c", c);}return 0;}注:可以利用getchar()函数让程序调试运行结束后等待编程者按下键盘才返回编辑界面,用法:在主函数结尾,return 0;之前加上getchar();即可getchar 的用途是从从标准输入流读取一个字符,读回车符时退出getchar();永远只向缓存中输入一个字符,getchar();的用法很多;一种就是清空回车符这种情况一般发生在在循环中涉及到输入的情况还有一种是某些编译平台(IDE)在运行程序时并没有在程序运行后给人看结果的时间这时候在程序最后加上getchar()就能造成程序的暂停给程序员度结果的机会用getchar时,在键盘上按一个字符后,要按回车才能读取进去;用getch时,在键盘上按一个字符马上就被读取进去,不用按回车,因此可以作为“按任意键继续”的执行语句。

12864中文字库最全资料

12864中文字库最全资料

12864液晶(一) (一)概述 (3)(二)(二)外形尺寸1 方框图 (3)2 外型尺寸图 (4)(三)(三)模块的接口 (4)(四)(四)硬件说明 (5)(五) 指令说明 (7)(五)(五)读写操作时序 (8)(六)(六)交流参数 (11)(七)(七)软件初始化过程 (12)(八)(八)应用举例 (13)(九)(九)附录1半宽字符表 (20)2 汉字字符表 (21)一、概述FYD12864-0402B是一种具有4位/8位并行、2线或3线串行多种接口方式,内部含有国标一级、二级简体中文字库的点阵图形液晶显示模块;其显示分辨率为128×64, 内置8192个16*16点汉字,和128个16*8点ASCII字符集.利用该模块灵活的接口方式和简单、方便的操作指令,可构成全中文人机交互图形界面。

可以显示8×4行16×16点阵的汉字. 也可完成图形显示.低电压低功耗是其又一显著特点。

由该模块构成的液晶显示方案与同类型的图形点阵液晶显示模块相比,不论硬件电路结构或显示程序都要简洁得多,且该模块的价格也略低于相同点阵的图形液晶模块。

基本特性:●●低电源电压(VDD:+3.0--+5.5V)●●显示分辨率:128×64点●●内置汉字字库,提供8192个16×16点阵汉字(简繁体可选)●●内置 128个16×8点阵字符●●2MHZ时钟频率●●显示方式:STN、半透、正显●●驱动方式:1/32DUTY,1/5BIAS●●视角方向:6点●●背光方式:侧部高亮白色LED,功耗仅为普通LED的1/5—1/10 ●●通讯方式:串行、并口可选●●内置DC-DC转换电路,无需外加负压●●无需片选信号,简化软件设计●●工作温度: 0℃ - +55℃ ,存储温度: -20℃ - +60℃二、方框图3、外形尺寸图三、模块接口说明*注释1:如在实际应用中仅使用串口通讯模式,可将PSB接固定低电平,也可以将模块上的J8和“GND”用焊锡短接。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

JEWEL HILL ELECTRONIC CO.,LTDJEWEL HILL ELECTRONIC CO.,LTD.SPECIFICATIONS FORLCD MODULEModule No. GB12864DOffice Address: Rm. 518,5/F., 101 Shangbu Industrial District,HuaqiangNorthRoad, Shenzhen, ChinaTEL : (86)-755-83362489 83617492FAX: (86)-755-83286396 83365871E-mail: sales@jhlcd@Website: TABLE OF CONTENTSLCM NUMBER SYSTEM (2)1. GENERAL DESCRIPTION (3)2. FEATURES (3)3. MECHANICAL SPECIFICATION (3)4. MECHANICAL DIMENSION (4)5. MAXIMUM RATINGS (5)6. ELECTRICAL CHARACTERISTICS (5)7. MODULE FUNCTION DESCRIPTION (6)8. ELECTRO-OPTICAL CHARACTERISTICS (12)9. RELIABILITY (16)10. PRECAUTIONS FOR USING LCD MODULES (17)11. USING LCD MODULES (19)12. REVISION HISTORY (21)SAMPLE APPROVED REPORT (22)LCM Number SystemNUMBER OF CHAR. PER LINE F: FSTN; X: OTHER VERSION NUMBER: V00~V99IC TYPE:VIEWING DIRECTION:TEMPERATURE RANGE:BACKLIGHT TYPE:SERIAL NUMBER: A~ZGRAPHIC MODULEs: NUMBER OF COMMONs GRAPHIC MODULEs:NUMBER OF SEGMENTs COB & SMT LCMBACKLIGHT COLOR:CHARACTER MODULEs:CHARACTER MODULEs: NUMBER OF LINE G: REFLECTIVE,NONE BACKLIGHT A: TRANSFLECTIVE, EL BACKLIGHT B: TRANSMISSIVE, EL BACKLIGHT C: TRANSFLECTIVE, LED BACKLIGHT D: TRANSMISSIVE, LED BACKLIGHT E: TRANSFLECTIVE, CCFL BACKLIGHT F: TRANSMISSIVE, CCFL BACKLIGHT A: AMBER; B: BLUE; Y: YELLOW-GREEN R: RED; W: WHITE; O: THER COLOR N: NORMAL TEMPERATURE RANGE U: UPPER(12:00); D: DOWN(6:00)L: LEFT(9:00); R: RIGHT(3:00);A: BONDING IC, WITH CONTROLLER B: BONDING IC, WITHOUT CONTROLLER C: SMT IC, WITH CONTROLLER D: SMT IC, WITHOUT CONTROLLER O: OTHER TYPEW: BLACK-WHITE; O: OTHER G: GRAY; Y: YELLOW-GREEN; B: BLUE; LCD COLOR MODE:N: TN; H: HTN; S: STN LCD TYPE:S: SUPER WIDE TEMPERATURE RANGE W: WIDE TEMPERATURE RANGEM: MIDDLE TEMPERATURE RANGE1. GENERAL DESCRIPTIONThe GB12864D is a 128 x 64 Dots Graphics LCD module. It has a STN panel composed of 128 segments and 64 commons. The LCM can be easily accessed by micro-controller via parallel interface.2. FEATURESTransflective and positiveDisplay ModeSTN(Yellow - Green) moduleDisplay Format Graphic 128 x 64 dotsInput Data 8-bit parallel data input from MPUMultiplexing Ratio 1/64DutyBiasBias 1/9Viewing Direction 6 O’clockBacklight LED3. MECHANICAL SPECIFICATIONItem Specifications Unit Dimensional outline 54.0 x 50.0 x 9.5(max) mmResolution 128segs x 64coms dotsViewing area 43.0(W) x 29.0(H) mmActive area 40.92(W) x 24.92(H) mmDots pitch 0.32 (W)×0.39(H) mmDots size 0.28(W)×0.35(H) mm4. MECHANICAL DIMENSION5. MAXIMUM RATINGSItem Symbol Min Max Unit NoteV DD - V ss -0.3 7.0 V Supply voltage V LCD -0.3 24.0 V Input Voltage V IN -0.3 V DD +0.3 VOperating temperature T OPR -10 +60 Storage temperature T STR -20 +70Humidity --- --- 90 %RH6. ELECTRICAL CHARACTERISTICSItem SymbolCondition Min. Typ. Max. UnitSupply Voltage Logic V DD------ 5.0 --- VH level V IH 0.8V DD --- V DDInput VoltageL levelV IL --- V SS --- 0.2V DDVCurrent Consumption(LCD DRIVER)I DD V DD =5.0V; V LCD =11.0V, T amb =25 ;--- --- 1.0 mALCD Driving Voltage V LCDBias=1/9V LCD =V DD -V EE10.7 11.0 11.3 VCurrent Consumption (With LED BackLight)I LEDV DD =5.0V;V LED =4.2V,T amb =25 ;--- --- 500 mA7. MODULE FUNCTION DESCRIPTION7.1. PIN DESCRIPTIONPin No. Symbol Description1 VSSPower supply for Ground (0V)2 VDDPower supply for positive (5V)3 V oLCD driver voltage regulation pin4 D/IH: Data L: Instruction5 R/WRead/write selection signal, R/W=”H”: Read; R/W=”L”: Write6 ERead/write Enable signal input pin7 DB08 DB19 DB210 DB38-bit bi-directional data bus11 DB412 DB513 DB614 DB715 CS1Chip select 1, High level is active16 CS2Chip select 2, High level is active17 RSTReset signal input pin, Low level is active18 VEEPower supply for negative voltage19 APower supply voltage for backlight positive20 KPower supply voltage for backlight negative7.2 TIMING CHARACTERISTICS1. SYSTEM BUS READ/WRITE CHARACTERISTIC2. DISPLAY CONTROL OUTPUT TIMING3. CLOCK TIMING7.3 CIRCUIT BLOCK DIAGRAM7.4 APPLICATION OF LCMReference circuit7.5 TABLE OF COMMAND8. ELECTRO-OPTICAL CHARACTERISTICSItem Symbol Condition Temp Min Typ. Max UnitsNote10.5 11.2 11.525 10.7 11.0 11.3 LCD driving voltageV LCD = = 050 10.9 10.8 11.7 V NOTE1Rise Time (Tr) --- --- -- Decay Time (Tf)0 --- ---- --- Rise Time (Tr) --- 225 340Decay Time (Tf) 25 --- 240 360Rise Time (Tr) --- --- -- Response TimeDecay Time (Tf)= = 0 50 --- --- --msec NOTE2Contrast Ratio Cr= = 0 255 10 --- --- NOTE4Viewing AngleRange( = 0°)(6”) = 90°(3”) =180°(12”) =270°(9”)(25 ) CR ≥245 35 20 30DegNOTE3z For panel only․Electro-Optical Characteristics Measuring Equipment(DMS501)SystemIllumination (D65)․Note 1. Definition of Driving Voltage( Vlcd) :․Note 3. Definition of Viewing Angle and :․Note 4. Definition of Contrast ratio( CR) :Brightness of Non-selected Segment (B2)Brightness of Selected Segment (B1)CR =V,maxCR,maxDriving VoltageB r i gh t n e s s (%)Brightness Curve forSelected Segment0%=90 =270Viewing Direction 6 O’clock DirectionNormal :9. RELIABILITY9.1. MTBFThe LCD module shall be designed to meet a minimum MTBF value of 50000 hours with normal. (25°C in the room without sunlight)9.2. TESTSNO. ITEM CONDITION CRITERION1 High Temperature Operating 60 120Hrs2 Low Temperature Operating -10 120Hrs3High Temperature/Humidity Non-Operating60 ,90%RH ,120 Hrs4 High TemperatureNon-Operating70 120Hrs5 Low TemperatureNon-Operating-20 120Hrs6 Temperature CyclingNon-Operating-10 (30Min )↔ 60 (30Min)10 CYCLESNo Defect OfOperational Function InRoom Temperature AreAllowable.IDD of LCM inPre-and post-test shouldfollow specificationNotes: Judgments should be mode after exposure in room temperature for two hours.10. PRECAUTIONS FOR USING LCD MODULES10.1. HANDLING PRECAUTIONS(1) The display panel is made of glass. Do not subject it to a mechanical shock or impact by droppingit.(2) If the display panel is damaged and the liquid crystal substance leaks out, be sure not to get any inyour mouth. If the substance contacts your skin or clothes, wash it off using soap and water.(3) Do not apply excessive force to the display surface or the adjoining areas since this may cause thecolor tone to vary.(4) The polarizer covering the display surface of the LCD module is soft and easily scratched. Handlethis polarizer carefully.(5) If the display surface becomes contaminated, breathe on the surface and gently wipe it with a softdry cloth. If it is heavily contaminated, moisten a cloth with one of the following solvents: - Isopropyl alcohol- Ethyl alcohol(6) Solvents other than those above mentioned may damage the polarizer.Especially, do not use the following:- Water- Ketone- Aromatic solvents(7) Extra care to minimize corrosion of the electrode. Water droplets, moisture condensation or acurrent flow in a high-humidity environment accelerates corrosion of the electrode.(8) Install the LCD Module by using the mounting holes. When mounting the LCD Module, makesure it is free of twisting, warping and distortion. In particular, do not forcibly pull or bend the I/Ocable or the backlight cable.(9) Do not attempt to disassemble or process the LCD Module.(10) NC terminal should be open. Do not connect anything.(11) If the logic circuit power is off, do not apply the input signals.(12) To prevent destruction of the elements by static electricity, be careful to maintain an optimumwork environment.- Be sure to ground the body when handling he LCD Module.- Tools required for assembling, such as soldering irons, must be properly grounded.-To reduce the amount of static electricity generated, do not conduct assembling and other workunder dry conditions.-The LCD Module is coated with a film to protect the display surface. Exercise care when peeling off this protective film since static electricity may be generated.10.2. STORAGE CONDITIONSWhen storing, avoid the LCD module to be exposed to direct sunlight of fluorescent lamps. For stability, to keep it away form high temperature and high humidity environment (The best condition is : 23±5°C, 45±20%RH). ESD protection is necessary for long-term storage also.10.3. OTHERSLiquid crystals solidify under low temperature (below the storage temperature range) leading to defective orientation or the generation of air bubbles (black or white). Air bubbles may also be generated if the module is subject to a low temperature.If the LCD Module have been operating for a long time showing the same display patterns the display patterns may remain on the screen as ghost images and a slight contrast irregularity may also appear.A normal operating status can be recovered by suspending use for some time. It should be noted that this phenomenon does not adversely affect performance reliability.To minimize the performance degradation of the LCD Module resulting from destruction caused by static electricity etc. exercise care to avoid holding the following sections when handling the modules.- Exposed area of the printed circuit board.- Terminal electrode sections.11. Using LCD modules11.1 LIQUID CRYSTAL DISPLAY MODULESLCD is composed of glass and polarizer. Pay attention to the following items when handling.(1) Please keep the temperature within specified range for use and storage. Polarization degradation,bubble generation or polarizer peel-off may occur with high temperature and high humidity.(2) Do not touch, push or rub the exposed polarizers with anything harder than a HB pencil lead (glass,tweezers, etc).(3) N-hexane is recommended for cleaning the adhesives used to attach front/rear polarizers andreflectors made of organic substances, which will be damaged by chemicals such as acetone, toluene, toluene, ethanol and isopropyl alcohol.(4) When the display surface becomes dusty, wipe gently with absorbent cotton or other soft materiallike chamois soaked in petroleum ether. Do not scrub hard to avoid damaging the display surface.(5) Wipe off saliva or water drops immediately, contact with water over a long period of time maycause deformation or color fading.(6) Avoid contacting oil and fats.(7) Condensation on the surface and contact with terminals due to cold will damage, stain orpolarizers. After products are tested at low temperature they must be warmed up in a container before coming is contacting with room temperature air.(8) Do not put or attach anything on the display area to avoid leaving marks on.(9) Do not touch the display with bare hands. This will stain the display area and degrade insulationbetween terminals (some cosmetics are determinate to the polarizers).(10)As glass is fragile, it tends to become or chipped during handling especially on the edges. Pleaseavoid dropping or jarring.11.2 INSTALLING LCD MODULEAttend to the following items when installing the LCM.(1) Cover the surface with a transparent protective plate to protect the polarizer and LC cell.(2) When assembling the LCM into other equipment, the spacer to the bit between the LCM and thefitting plate should have enough height to avoid causing stress to the module surface, refer to the individual specifications for measurements. The measurement tolerance should be ±0.1mm.11.3 ELECTRO-STATIC DISCHARGE CONTROLSince this module uses a CMOS LSI, the same careful attention should be paid for electrostatic discharge as for an ordinary CMOS IC.(1) Make certain that you are grounded when handing LCM.(2) Before removing LCM from its packing case or incorporating it into a set, be sure the module andyour body have the same electric potential.(3) When soldering the terminal of LCM, make certain the AC power source for the soldering irondoes not leak.(4) When using an electric screwdriver to attach LCM, the screwdriver should be of groundpotentiality to minimize as much as possible any transmission of electromagnetic waves produced sparks coming from the commutator of the motor.(5) As far as possible, make the electric potential of your work clothes and that of the workbenches tothe ground potential.(6) To reduce the generation of electro-static discharge, be careful that the air in the work is not toodried. A relative humidity of 50%-60% is recommended.11.4 PRECAUTIONS FOR OPERATION(1) Viewing angle varies with the change of liquid crystal driving voltage (Vo). Adjust Vo to showthe best contrast.(2) Driving the LCD in the voltage above the limit will shorten its lifetime.(3) Response time is greatly delayed at temperature below the operating temperature range. However,this does not mean the LCD will be out of the order. It will recover when it returns to the specified temperature range.(4) If the display area is pushed hard during operation, the display will become abnormal. However, itwill return to normal if it is turned off and then on.(5) Condensation on terminals can cause an electrochemical reaction disrupting the terminal circuit.Therefore, this product must be used and stored within the specified condition of 23±5°C, 45±20%RH.(6) When turning the power on, input each signal after the positive/negative voltage becomes stable.11.5 SAFETY(1) It is recommended to crush damaged or unnecessary LCDs into pieces and wash them off withsolvents such as acetone and ethanol, which should later be burned.(2) If any liquid leaks out of a damaged glass cell and comes in contact with the hands, wash offthoroughly with soap and water.12. REVISION HISTORYrecord Date Version Reviseversion 05-01-011.0 Original2.0 Change specification format 05-11-203.0 Change contact mode 06-08-01SAMPLE APPROVED REPORT。

相关文档
最新文档