MS12864F图形点阵液晶显示模块使用手册.doc_第1页
MS12864F图形点阵液晶显示模块使用手册.doc_第2页
MS12864F图形点阵液晶显示模块使用手册.doc_第3页
MS12864F图形点阵液晶显示模块使用手册.doc_第4页
MS12864F图形点阵液晶显示模块使用手册.doc_第5页
已阅读5页,还剩21页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

图形点阵液晶显示模块使用手册MS12864F一.概述 MS12864F是一种图形点阵液晶显示器。它主要采用动态驱动原理由行驱动器、控制器和列驱动器三部分组成了128(列)64(行)的全点阵液晶显示。此显示器采用了SMD的硬封装方式,通过导电橡胶和压框连接LCD,使其寿命长,连接可靠。二.特性1.工作电压为+5V10% ,可自带驱动LCD所需的负电压。2.全屏幕点阵,点阵数为128(列)64(行),可显示8(/行)4(行)个(1616点阵)汉字,也可完成图形,字符的显示。3.与CPU接口采用4条位控制总线和8位并行数据总线输入输出,适配Inter8080系列时序。4.内部有显示数据锁存器,和用于文本显示的68和88的字符库。5.简单的操作指令。三.外形尺寸1.外形尺寸图2.主要外形尺寸项 目标 准 尺 寸单 位模 块 体 积78.070.014.5mm定 位 尺 寸68.065.0mm视 域62.044.0mm行 列 点 阵 数12864dots点 距 离0.440.60mm点 大 小0.390.55mm四.硬件说明1.引脚特性引脚号引脚名称级 别引 脚 功 能 描 述1FG0V压框地2VSS0V电源地3VDD+5V电源电压4VLCD0-10VLCD驱动负电压,要求VDD-VLCD=10V5/WRH/L低电平有效。写操作信号6/RDH/L低电平有效。读操作信号7/CEH/L低电平有效。片选信号8C/DH/L通道选择信号C/D=H 为指令通道C/D=L 为数据通道9/RESETH/L复位信号,低有效10DB0H/L八位三态并行数据总线11DB112DB213DB314DB415DB516DB617DB718FSH/L字体选择。FS=H, 68点阵字体FS=L, 88点阵字体19A+5V背光电源,Idd960mA20K0V2.原理简图3.背光接线图LED背光1920EL背光1920+5V0VELEL五、IC说明及指令表T6963C is LCD controller designed to be used for control LCD driver LCD driver LSIs and display data Memory, It has an 8 bit parallel data busAnd control lines for reading or writing through a MPU I/F.It has 128 words character generator ROM with the capability to controlExternal display RAM of up to 128K bytes. Allocation of text, graphics And external generator RAM can be easily made and the display window canBe freely moved within the allocated memory range. It supports a very board range of LCD formats by selecting differentCombinations on a set of programmable inputs. It can be used in text,graphicModes and has various attribute functions. 指令表:表 2COMMANDCODED1D2FUNCTIONRegister Set001000010010001000100100X address DataLow addressY address 00HHigh addressCursor pointer setOff registerAddress pointer setControlWord set01000000010000010100001001000011Low address ColumnsLow address ColumnsHigh address 00HHigh address 00HText home address setText area setGraphic home address setGraphic area setMode set1000x0001000x0011000x0111000x10010000xxx10001xxx-OR modeEXOR modeAND modeText attribute modeInternal CGROM modeExternal CGRAM modeDisplay Mode100100001001xx101001xx11100101xx100110xx100111xx-Display offCursor on, blink offCursor on, blink onText on, graphic off Text off, graphic onText on, graphic on Cursor Pattern Select1010000010100001101000101010001110100100101001011010011010100111-1 line cursor2 line cursor3 line cursor4 line cursor5 line cursor6 line cursor7 line cursor8 line cursorData autoRead/write101100001011000110110010- - - -Data auto write setData auto read setAuto resetData readWrite110000001100000111000010110000111100010011000101Data-Data-Data-Data write and ADP incrementData read and ADP incrementData write and ADP decrementData read and ADP decrementData write and ADP no variableData read and ADP no variableScreen peek11100000- - Screen peekScreen copy11101000- -Screen copy BitSet/Reset11110XX11111XXX1111X0001111X0011111X0101111X0111111X1001111X1011111X1101111X111-Bit resetBit setBit 0( LSB )Bit 1Bit 2Bit 3Bit 4Bit 5Bit 6Bit 7( MSB )六、电气参数1.ABSOLUTE MAXIMUM RATINGItemSymbolConditionMinTypMaxUnitSupply Voltage(logic)VDD-VSS-0.3-7VSupply Voltage(LCD Drive)VDD-VO-VDD+0.3-VDD-0.3VInput VoltageVI-0.3-VDD+0.3VOperating TemperatureTopr-10-+55CStorage TemperatureTstg-20-+60C 2.OPTICAL DATA Ta=25CItemSymbolConditionStandard ValueUnitmintypmaxSupply voltage(Logic)VDD-VSS-4.7555.25VSupply voltage(LCD Drive)VDD-VO-VSupply currentIDD-12.017.0mAIO-1.82.5mAEL Backlight currentIEL-100-mAInput high voltageVIHHigh level0.7VDD-VDDVInput low voltageVILLow level0-0.3VDDVSupply voltage for LCD Drive (1/80 duty)VDD-VOTa=0C14.214.514.8VTa=25C13.313.613.9VTa=50C12.312.612.9VContrast RatioCR-4-Viewing Angle-CR2-10-20deg60-120degResponse Time ( rise )TrNote 1Ta=25-130200msResponse Time (delay )TdNote 2Ta=25-150230msNOTE 1: Required time for blackening ratio of segment goes up from 0% to 90% when Wave from is switched from one selected one (=10,=90)Note 2: Required time for blackening ratio of segment goes down from 100% to 10% When wave from is switched from one selected one (=10,=90)3.TIMING CHARACTERISICSItemSymbolMinMaxUnitOperating frequencyfSCP-2.75MHZSCP pulse widthTcwh, Tcwl150nsSCP rise/fall timeTr-30nsLP set up timeTlsu150290nsLP hold timeTlhd540nsData set up timeTdsu170-nsData hold timeTdhd80-nsFR delay timeTd090nsCDATA set up timeTcsu450850nsCDATA hold timeTchd450950nsCondition: DV=+5.0V10%, Ta=-10+70C 驱动波形图4.INTERFACE TIMINGItemSymbolMinMaxUnitC/D set up timeTcds100-nsC/D hold timeTcdh10-nsCE,RD,WR pulse widthTce,Trd,Twr80-nsDATA set up timeTds80-nsDATA hold timeTdh40-nsAccess timeTacc-150nsOutput hold timeToh1050ns 读写时序图5.EL Backlight Electrical Characteristics Ta=25C VDD=5VSymbolParameterMinTypeMaxUnitsIINVDD supply current10150mAVA-BOutput voltage across lamp374043V758085VFELVA-B output drive frequency6008001000VVDDSupply voltage4.512VCLLoad capacitance025nFTAOperating temperature050CNote: EL Backlight with white lamp.七、功能描述7.1 STATUS READ Before sending data(read/write),command it is necessary to check the Status.Status checkStatus of T6963c can read from data lines./RD L/WR H/CE LC/D H D0D7 Status wordT6963C status word format is followingMSB LSBSTA7STA6STA5STA4STA3STA2STA1STA0D7D6D5D4D3D2D1D0STA0Check capability of command execution0:Disable 1:EnableSTA1Check capability of data read/write0:Disable 1:EnableSTA2Check capability of auto mode data read0:Disable 1:EnableSTA3Check capability of auto mode data write0:Disable 1:EnableSTA4Not useSTA5Check capability of controller operation 0:Disable 1:EnableSTA6Error flag. Using screen peek/copy command0:No error 1:errorSTA7Check the condition blink0:Disable 1:EnableNote 1:It is necessary to check STA0 and STA1 at the same time, The error Is happened by sending data at executing command. 2:The status check will be enough to check STA0/STA1. 3:STA2/STA3 are valid in auto mode STA0/STA1 are invalid.Status checking flow:7.2 DATA SETIn T6963C,the data have been set and command executes.The order of procedure of command sending7.31 Description of command1. Register setCODEHEXFUNCTIOND1D20010000121HCursor pointer setX addressY address0010001022HOffset register setData00H0010010024HAddress pointer setLow addressHigh address(1) Cursor pointer set The position of cursor is specified by X address. The cursor positionIs moved only by this command. The cursor pointer doesnt have theFunction of increment and decrement. The shift of cursor set by thisCommand. X address, Y address are specified following.X address 00H - - - - 4FH(Low 7bits are valid)Y address 00H - - - - 1FH(Low 5bits are valid)1 Screen driveX address 00H - - - - 4FHY address 00H - - - - 0FH(2) Offset register setThe offset register is used to determine external character generatorRAM area.T6963C has 16 bits address lines as follow:MSB LSBAd15Ad14Ad13Ad12Ad11Ad10Ad9Ad8Ad7Ad6Ad5Ad4Ad3Ad2Ad1Ad0The upper 5 bits (ad15 - ad11) are determined by offset register. TheMiddle 8 bits (ad10 - ad3) are determined by character code. The Lower 3 bit (ad2 - ad10) are determined by vertical counter. TheLower 5 bit of D1(data) are valid. The data format of external characterGenerator RAM.(3) Address pointer setThe address pointer set command is used to indication the start addressFor writing (or reading) to external RAM.The flow chart address pointer set command7.32 Control word setCODEHEXFUNCTIOND1D20100000040HText home address setLow addressHigh address0100000141HText area setColumns00H0100001042HGraphic home address setLow addressHigh address0100001143HGraphic area setColumns00HThe home address and column size are defined by this command(1) Text home address and area setThe starting address of external display RAM for text display isDefined by this command. The text home address shows the left end andMost upper position .The relationship of external display RAM address and display positionExample:Text home address: 0000HText area: 00A0HMD2=0, MD3=0: 80 COLUMNDUAL=0, MDS=1, MD0=1, MD1=0: 28 LINESDisplay plane:0000H0001H- - - - -004EH004FH1 Line00A0H00A1H- - - - -00EEH00EFH2 Line:10E0H10E1H- - - - -112EH112FH28 Lines(2) Graphic home address and area setThe starting address of external display RAM for Graphic display isDefined by this command. The graphic home address shows the left end mostUpper line.The relationship of external display RAM address and display position.Example:Graphic home address: 0000HGraphic area: 0020HMD2=H, MD3=H: 32 COLUMNSDUAL=H, MDS=L, MD0=H, MD1=H: 2 LINESExample:Display plane:0000H0001H- - - - -001EH001FH0020H0021H- - - - -003EH003FH:01E0H01E1H01FEH01FFH7.33 MODE SET The display mode is defined by this command. The display mode dont have changed until to send next this command. Logically OR,EXOR,AND of text and graphic display can be displayed.When internal character generator mode is selected, character code 00H - 7FH are selected from built-in character generator ROM. The character code 80H-FFH are automatically selected external character generator RAM.NOTE: Only text display is attributed, because attributed data is located.Attribute functionReverse display, Character blink and Inhibit are called Attribute.The attribute data is written in the graphic area defined by control word set command. The mode set command selects text display only and graphic the mode set command selects text display only and graphic display cannot be displayed. The attribute data of the 1ST character in text areaIs written at the IST 1 byte in graphic area, and attribute data of n-th 1byte in graphic area. Attribute function is defined as follow.Attribute RAM 1byte XXXXD3D2D1D0 X: dont careD3D2D1D0FUNCTION0000Normal display 0101Reverse display0011Inhibit display1000Blink of normal display1100Blink of reverse display1011Blink of inhibit display7.34 DATA AUTO READ/WRITE CODEHEXFUNCTIONOPERAND10110000B0HData auto write set-10110001B1HData auto read set-10110010B2HAuto reset-This command is convenient to send full screen data from external display RAM. After setting auto mode , Data write(or read) command is not necessary between each data. Data auto write (or read) command should follow the Address pointer set and address pointer is automatically increment by + 1 after each data. After sending (or receiving) all dataAuto reset is necessary to return normal operation because all data is regarded Display data and no command can be accepted in the auto mode.Note: status check for auto mode(STA2,STA3 should be checked between each Data. Auto reset should be performed after checking (STA3=1 STA2=1)7.35 DATA READ WRITE CODEHEXFUNCTIONOPERAND11000000C0HData write and ADP incrementData11000001C1HData read and ADP incrementData11000010C2HData write and ADP decrementData11000011C3HData read and ADP decrementData11000100C4HData write and ADP nonvariableData11000101C5HData read and ADP nonvariableDataThis command is used for data write from MPU to external display RAM, AND data read external display RAM to MPU. Data write/data read should be executed after setting address by address pointer set command. Address Pointer can be automatically increment by setting this command.Note: this command is necessary for each 1 byte data. Please refer following flow chart.NOTE:(1) After power on, it is necessary to reset. /RESET is kept L between5 CLOCK up(oscillation clock).(2) When /HALT has been L, the oscillation is stopped. It is necessaryTo turn off power supply for LCD, because LCD goes down by DC bias.(3) The HALF function contains the RESET function.(4) After state of RESET/HALT. TERMINAL HALT RESET D0-D7FFD0-d7FFR/wHH/ceH (NOTE 1)H (NOTE 1)Ad0-ad15H (NOTE 2)H (NOTE 2)/ce0,/ce1H (NOTE 1)H (NOTE 1)ED,HODFinal DataFinal DataHSCPLLLPLLCDATAHHFRHHCH1LK0CH2LVENDDSPONLLXOHOSC CLOCK L: Level L F: Floating (High impedance) KO: Internal state (TEXT data access) normally openVEND: End signal of V-counter(Line count) if MDS=H, T2=L, HEND (end signal of H-count) normally open.Note 1: In Attribute mode, H or L by state of Graphinc pointer.Note 2: In Attribute mode, DATA of Graphinc pointer.八应用举例MS12864F与单片机8031的一种接口如图.所示:注:V0为液晶驱动电压。此图为模块内自带负压的示例,若外接负压,则接到第4PIN。利用上图举例介绍编程实例 ORG 0000H AJMP MAIN ORG 0003H AJMP INT ORG 0035H ;* DATA1 EQU 30H ;第一参数单元 DATA2 EQU 31H ;第二参数/数据单元 COMMAND EQU 32H ;指令代码单元 C_ADD EQU 8100H ;指令通道地址 D_ADD EQU 8000H ;数据通道地址 LI1 EQU 33H LI2 EQU 34H ;* BUSY1: PUSH DPH PUSH DPL MOV DPTR,#C_ADD MOVX A,DPTR POP DPL POP DPH RET ;* BUSY: LCALL BUSY1 JNB ACC.0, BUSY1 JNB ACC.1, BUSY1 RET ;* WRITE_COMMAND:PUSH DPH PUSH DPL LCALL BUSY MOV A,COMMAND MOV DPTR,#C_ADD MOVX DPTR,A POP DPL POP DPH RET WRITE_DATA: PUSH DPH PUSH DPL LCALL BUSY MOV A,DATA2 MOV DPTR,#D_ADD MOVX DPTR,A POP DPL POP DPH RET MS

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论