1、文件型号 MS12864F文件类型 服务文件版 本 02.3图 形 点 阵 液 晶 显 示 模 块 使 用 手 册MS12864FFM12864F128SEG/64COM DOT MXTIX LCD DRIVER 2一.概述MS12864F 是一种图形点阵液晶显示器。它主要采用动态驱动原理由行驱动器、控制器和列驱动器三部分组成了 128(列)64( 行) 的全点阵液晶显示。此显示器采用了 SMD 的硬封装方式,通过导电橡胶和压框连接 LCD,使其寿命长,连接可靠。二.特性1.工作电压为+5V10% ,可自带驱动 LCD 所需的负电压。2.全屏幕点阵,点阵数为 128(列)64(行),可显示 8
2、(/行)4(行)个(1616 点阵)汉字,也可完成图形,字符的显示。3.与 CPU 接口采用 4 条位控制总线和 8 位并行数据总线输入输出,适配Inter8080 系列时序。4.内部有显示数据锁存器,和用于文本显示的 68 和 88 的字符库。5.简单的操作指令。三.外形尺寸1.外形尺寸图FM12864F128SEG/64COM DOT MXTIX LCD DRIVER 22.主要外形尺寸项 目 标 准 尺 寸 单 位模 块 体 积 78.070.014.5 mm定 位 尺 寸 68.065.0 mm视 域 62.044.0 mm行 列 点 阵 数 12864 dots点 距 离 0.440
3、.60 mm点 大 小 0.390.55 mm四.硬件说明1.引脚特性引脚号 引脚名称 级 别 引 脚 功 能 描 述1 FG 0V 压框地2 VSS 0V 电源地3 VDD +5V 电源电压4 VLCD 0-10V LCD 驱动负电压,要求 VDD-VLCD=10V5 /WR H/L 低电平有效。写操作信号6 /RD H/L 低电平有效。读操作信号7 /CE H/L 低电平有效。片选信号C/D=H 为指令通道8 C/D H/L 通道选择信号C/D=L 为数据通道9 /RESET H/L 复位信号,低有效10 DB011 DB112 DB213 DB314 DB415 DB516 DB617
4、DB7H/L 八位三态并行数据总线FS=H, 68 点 阵字体18 FS H/L 字体选择。FS=L, 88 点阵字体19 A +5V 背光电源,I dd960mAFM12864F128SEG/64COM DOT MXTIX LCD DRIVER 220 K 0VFM12864F128SEG/64COM DOT MXTIX LCD DRIVERJune 2004 22.原理简图3.背光接线图19 20 19 20LED 背光 +5V 0VEL 背光 EL EL五、IC 说明及指令表T6963C is LCD controller designed to be used for control
5、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 g
6、enerator RAM can be easily made and the display window canFM12864F128SEG/64COM DOT MXTIX LCD DRIVERJune 2004 2Be 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,gra
7、phicModes and has various attribute functions. 指令表:表 2COMMAND CODE D1 D2 FUNCTIONRegister Set001000010010001000100100X addressDataLow addressY address00HHigh addressCursor pointer setOff registerAddress pointer setControlWord set01000000010000010100001001000011Low addressColumnsLow addressColumnsHig
8、h address00HHigh address00HText home address setText area setGraphic home address setGraphic area setMode set1000x0001000x0011000x0111000x10010000xxx10001xxx-“OR“ mode“EXOR“ mode“AND“ mode“Text attribute“ modeInternal CGROM modeExternal CGRAM modeDisplay Mode100100001001xx101001xx11100101xx100110xx1
9、00111xx-Display offCursor on, blink offCursor on, blink onText on, graphic off Text off, graphic onText on, graphic onCursorPattern Select1010000010100001101000101010001110100100101001011010011010100111-1 line cursor2 line cursor3 line cursor4 line cursor5 line cursor6 line cursor7 line cursor8 line
10、 cursorData autoRead/write101100001011000110110010-Data auto write setData auto read setAuto resetData readWrite1100000011000001110000101100001111000100Data-Data-Data-Data write and ADP incrementData read and ADP incrementData write and ADP decrementData read and ADP decrementData write and ADP no F
11、M12864F128SEG/64COM DOT MXTIX LCD DRIVERJune 2004 211000101 - - variableData read and ADP no variableScreen peek 11100000 - - Screen peekScreen copy 11101000 - - Screen copyBitSet/Reset11110XX11111XXX1111X0001111X0011111X0101111X0111111X1001111X1011111X1101111X111-Bit resetBit setBit 0( LSB )Bit 1Bi
12、t 2Bit 3Bit 4Bit 5Bit 6Bit 7( MSB )六、电气参数1.ABSOLUTE MAXIMUM RATINGItem Symbol Condition Min Typ Max UnitSupply Voltage(logic)VDD-VSS - -0.3 - 7 VSupply Voltage(LCD Drive)VDD-VO - VDD+0.3 - VDD-0.3VInput Voltage VI - -0.3 - VDD+0.3 VOperating TemperatureTopr - -10 - +55 CStorage TemperatureTstg - -20
13、 - +60 C2.OPTICAL DATA Ta=25CStandard ValueItem Symbol Conditionmin typ maxUnitSupply voltage(Logic) VDD-VSS - 4.75 5 5.25 VSupply voltage(LCD Drive) VDD-VO - - - - VIDD - - 12.0 17.0 mASupply currentIO - - 1.8 2.5 mAEL Backlight current IEL - - 100 - mAInput high voltage VIH High level 0.7VDD - VDD
14、 VInput low voltage VIL Low level 0 - 0.3VDD VTa=0C 14.2 14.5 14.8 VTa=25C 13.3 13.6 13.9 VSupply voltage for LCD Drive (1/80 duty) VDD-VOTa=50C 12.3 12.6 12.9 VContrast Ratio CR - 4 - - -10 - 20 degViewing Angle - CR2 60 - 120 degResponse Time ( rise ) Tr Note 1 Ta=25- 130 200 msFM12864F128SEG/64CO
15、M DOT MXTIX LCD DRIVERJune 2004 2Response Time (delay ) Td Note 2 Ta=25- 150 230 msNOTE 1: Required time for blackening ratio of segment goes up from 0% to 90% whenWave from is switched from one selected one (=10,=90)Note 2: Required time for blackening ratio of segment goes down from 100% to 10% Wh
16、en wave from is switched from one selected one (=10,=90)3.TIMING CHARACTERISICSItem Symbol Min Max UnitOperating frequency fSCP - 2.75 MHZSCP pulse width Tcwh, Tcwl 150 nsSCP rise/fall time Tr - 30 nsLP set up time Tlsu 150 290 nsLP hold time Tlhd 5 40 nsData set up time Tdsu 170 - nsData hold time
17、Tdhd 80 - nsFR delay time Td 0 90 nsCDATA set up time Tcsu 450 850 nsCDATA hold time Tchd 450 950 nsCondition: DV=+5.0V10%, Ta=-10+70C驱动波形图4.INTERFACE TIMINGFM12864F128SEG/64COM DOT MXTIX LCD DRIVERJune 2004 2Item Symbol Min Max UnitC/D set up time Tcds 100 - nsC/D hold time Tcdh 10 - nsCE,RD,WR pul
18、se width Tce,Trd,Twr 80 - nsDATA set up time Tds 80 - nsDATA hold time Tdh 40 - nsAccess time Tacc - 150 nsOutput hold time Toh 10 50 ns读写时序图5.EL Backlight Electrical CharacteristicsTa=25C VDD=5VSymbol Parameter Min Type Max UnitsIIN VDD supply current 10 150 mA37 40 43 VVA-B Output voltage across l
19、amp75 80 85 VFEL VA-B output drive frequency 600 800 1000 VVDD Supply voltage 4.5 12 VCL Load capacitance 0 25 nFTA Operating temperature 0 50 CNote: EL Backlight with white lamp.七、功能描述7.1 STATUS READBefore sending data(read/write),command it is necessary to check the Status.Status checkStatus of T6
20、963c can read from data lines./RD LFM12864F128SEG/64COM DOT MXTIX LCD DRIVERJune 2004 2/WR H/CE LC/D HD0D7 Status wordT6963C status word format is followingMSB LSBSTA7 STA6 STA5 STA4 STA3 STA2 STA1 STA0D7 D6 D5 D4 D3 D2 D1 D0STA0 Check capability of command execution 0:Disable 1:EnableSTA1 Check cap
21、ability of data read/write 0:Disable 1:EnableSTA2 Check capability of auto mode data read 0:Disable 1:EnableSTA3 Check capability of auto mode data write 0:Disable 1:EnableSTA4 Not useSTA5 Check capability of controller operation 0:Disable 1:EnableSTA6 Error flag. Using screen peek/copy command 0:No
22、 error 1:errorSTA7 Check the condition blink 0:Disable 1:EnableNote 1:It is necessary to check STA0 and STA1 at the same time, The errorIs 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.Statu
23、s 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 commandSTAU0=1RENYOSTA3=1YERUN2OIMDComandseigStuchkD wrioaditeENENDComand writeStus chkDarieCond igite:Incsfvr2nig,li)Tf.ftFM12864F128SEG/64COM DOT MXTIX LCD
24、 DRIVERJune 2004 21. Register setCODE HEX FUNCTION D1 D200100001 21H Cursor pointer set X address Y address00100010 22H Offset register set Data 00H00100100 24H Address pointer set Low address High address(1) Cursor pointer set The position of cursor is specified by X address. The cursor positionIs
25、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
26、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 LSBAd15 Ad14 Ad13 Ad12 Ad11 Ad10 Ad9 Ad8 Ad7 Ad6 Ad5 Ad4 Ad3 Ad2 Ad1 Ad0The upper 5 bits (ad15 - ad11) are deter
27、mined 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 i
28、s used to indication the start addressFor writing (or reading) to external RAM.The flow chart address pointer set commandAdrespointSau chkLwts odretStau chkCmn24HsENDAdres pointcmad seFM12864F128SEG/64COM DOT MXTIX LCD DRIVERJune 2004 27.32 Control word setCODE HEX FUNCTION D1 D201000000 40H Text ho
29、me address set Low address High address01000001 41H Text area set Columns 00H01000010 42H Graphic home address set Low address High address01000011 43H Graphic area set Columns 00HThe home address and column size are defined by this command(1) Text home address and area setThe starting address of ex
30、ternal 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
31、LINESDisplay plane:0000H 0001H - - - - - 004EH 004FH 1 Line00A0H 00A1H - - - - - 00EEH 00EFH 2 Line:10E0H 10E1H - - - - - 112EH 112FH 28 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 show
32、s 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:0000H 0001H - - - - - 001EH 001FH0020H 0021H - - - - - 003EH 003
33、FH:01E0H 01E1H 01FEH 01FFH7.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 - 7F
34、H 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 function“Reverse display“, “Character blink“ and “Inhibit“ are called “Attr
35、ibute“.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 FM12864F128SEG/6
36、4COM DOT MXTIX LCD DRIVERJune 2004 2text 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 X X X X D3 D2 D1 D0 X: dont careD3 D2 D1 D0 FUNCTION0 0 0 0 Normal display 0 1 0 1 Reverse display0
37、 0 1 1 Inhibit display1 0 0 0 Blink of normal display1 1 0 0 Blink of reverse display1 0 1 1 Blink of inhibit display7.34 DATA AUTO READ/WRITE CODE HEX FUNCTION OPERAND10110000 B0H Data auto write set -10110001 B1H Data auto read set -10110010 B2H Auto reset -This command is convenient to send full
38、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 rece
39、iving) all data“Auto 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 eachAuto mdesarSchk1Lw tsAdrepoint 24HSauchk1DatuowrieB0Hisply dnSchk2t
40、ilaeAuto rsB2HENDSchkGRAPHICTE“OR“AND“EXORFM12864F128SEG/64COM DOT MXTIX LCD DRIVERJune 2004 2Data. Auto reset should be performed after checking (STA3=1 STA2=1)7.35 DATA READ WRITE CODE HEX FUNCTION OPERAND11000000 C0H Data write and ADP increment Data11000001 C1H Data read and ADP increment Data11
41、000010 C2H Data write and ADP decrement Data11000011 C3H Data read and ADP decrement Data11000100 C4H Data write and ADP nonvariable Data11000101 C5H Data read and ADP nonvariable DataThis command is used for data write from MPU to external display RAM, AND data read external display RAM to MPU. Dat
42、a 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.
43、/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 RESETD0-D7 F FD0-d7 F FR/w H H/ce H (NOTE 1) H (NOTE 1)Ad0-ad15 H (NOTE 2) H (NOTE 2)DatwriestSu chkLodts1Adres point 24HauchkU S1Witau chkDwrieC0ENStaus chek1DrdApoint rCHENFM12864F128SEG/64COM DOT MXTIX LCD DRIVERJune 2004