精選文檔MS12864F圖形點(diǎn)陣液晶顯示模塊使用手冊(cè)_第1頁(yè)
精選文檔MS12864F圖形點(diǎn)陣液晶顯示模塊使用手冊(cè)_第2頁(yè)
精選文檔MS12864F圖形點(diǎn)陣液晶顯示模塊使用手冊(cè)_第3頁(yè)
精選文檔MS12864F圖形點(diǎn)陣液晶顯示模塊使用手冊(cè)_第4頁(yè)
精選文檔MS12864F圖形點(diǎn)陣液晶顯示模塊使用手冊(cè)_第5頁(yè)
已閱讀5頁(yè),還剩22頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、圖形點(diǎn)陣液晶顯示模塊使用手冊(cè)ms12864f一.概述 ms12864f是一種圖形點(diǎn)陣液晶顯示器。它主要采用動(dòng)態(tài)驅(qū)動(dòng)原理由行驅(qū)動(dòng)器、控制器和列驅(qū)動(dòng)器三部分組成了128(列)×64(行)的全點(diǎn)陣液晶顯示。此顯示器采用了smd的硬封裝方式,通過(guò)導(dǎo)電橡膠和壓框連接lcd,使其壽命長(zhǎng),連接可靠。二.特性1.工作電壓為+5v±10% ,可自帶驅(qū)動(dòng)lcd所需的負(fù)電壓。2.全屏幕點(diǎn)陣,點(diǎn)陣數(shù)為128(列)×64(行),可顯示8(/行)×4(行)個(gè)(16×16點(diǎn)陣)漢字,也可完成圖形,字符的顯示。3.與cpu接口采用4條位控制總線和8位并行數(shù)據(jù)總線輸入輸出,適配

2、inter8080系列時(shí)序。4.內(nèi)部有顯示數(shù)據(jù)鎖存器,和用于文本顯示的6×8和8×8的字符庫(kù)。5.簡(jiǎn)單的操作指令。三.外形尺寸1.外形尺寸圖2.主要外形尺寸項(xiàng) 目標(biāo) 準(zhǔn) 尺 寸單 位模 塊 體 積78.0×70.0×14.5mm定 位 尺 寸68.0×65.0mm視 域62.0×44.0mm行 列 點(diǎn) 陣 數(shù)128×64dots點(diǎn) 距 離0.44×0.60mm點(diǎn) 大 小0.39×0.55mm四.硬件說(shuō)明1.引腳特性引腳號(hào)引腳名稱(chēng)級(jí) 別引 腳 功 能 描 述1fg0v壓框地2vss0v電源地3vdd+5v電

3、源電壓4vlcd0-10vlcd驅(qū)動(dòng)負(fù)電壓,要求vdd-vlcd=10v5/wrh/l低電平有效。寫(xiě)操作信號(hào)6/rdh/l低電平有效。讀操作信號(hào)7/ceh/l低電平有效。片選信號(hào)8c/dh/l通道選擇信號(hào)c/d=h 為指令通道c/d=l 為數(shù)據(jù)通道9/reseth/l復(fù)位信號(hào),低有效10db0h/l八位三態(tài)并行數(shù)據(jù)總線11db112db213db314db415db516db617db718fsh/l字體選擇。fs=h, 6×8點(diǎn)陣字體fs=l, 8×8點(diǎn)陣字體19a+5v背光電源,idd960ma20k0v2.原理簡(jiǎn)圖3.背光接線圖led背光1920el背光1920+5v

4、0velel五、ic說(shuō)明及指令表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 dis

5、play 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 c

6、an 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 columns

7、low address columnshigh address 00hhigh address 00htext home address settext area setgraphic home address setgraphic area setmode set1000x0001000x0011000x0111000x10010000xxx10001xxx-"or" mode"exor" mode"and" mode"text attribute" modeinternal cgrom modeexternal

8、 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 lin

9、e 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 increme

10、ntdata 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( l

11、sb )bit 1bit 2bit 3bit 4bit 5bit 6bit 7( msb )六、電氣參數(shù)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-+55°cstorage temperaturetstg-20-+60°c 2.o

12、ptical data ta=25°citemsymbolconditionstandard 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 vo

13、ltage for lcd drive (1/80 duty)vdd-vota=0°c14.214.514.8vta=25°c13.313.613.9vta=50°c12.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 blackenin

14、g 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 characterisicsitemsymbolminm

15、axunitoperating 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.0v±10%, ta=-10

16、+70°c 驅(qū)動(dòng)波形圖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 讀寫(xiě)時(shí)序圖5.el backlight electrical characteristics ta=25°c vdd=5vsymb

17、olparametermintypemaxunitsiinvdd supply current10150mava-boutput voltage across lamp374043v758085vfelva-b output drive frequency6008001000vvddsupply voltage4.512vclload capacitance025nftaoperating temperature050°cnote: el backlight with white lamp.七、功能描述7.1 status read before sending data(read/

18、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:enablesta1ch

19、eck 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 e

20、rror 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

21、 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

22、 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 doesn't have thefunction of increment and decrement. the shift of cursor set by thiscommand. x address, y address are specified follow

23、ing.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 fol

24、low: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. th

25、e 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 setlo

26、w 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 di

27、splay 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-

28、 - - - -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 relationshi

29、p 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

30、 is defined by this command. the display mode don't 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 b

31、uilt-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 cal

32、led "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

33、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: don't cared3d2d1d0function0000normal display 0101reverse display0011inhibit display1000blink of normal display11

34、00blink 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

35、 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 data"auto reset" is nece

36、ssary 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 cod

37、ehexfunctionoperand11000000c0hdata 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 f

38、or 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 b

39、yte 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 b

40、y 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

41、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.八應(yīng)

42、用舉例ms12864f與單片機(jī)8031的一種接口如圖.所示:注:v0為液晶驅(qū)動(dòng)電壓。此圖為模塊內(nèi)自帶負(fù)壓的示例,若外接負(fù)壓,則接到第4pin。利用上圖舉例介紹編程實(shí)例 org 0000h ajmp main org 0003h ajmp int org 0035h ;* data1 equ 30h ;第一參數(shù)單元 data2 equ 31h ;第二參數(shù)/數(shù)據(jù)單元 command equ 32h ;指令代碼單元 c_add equ 8100h ;指令通道地址 d_add equ 8000h ;數(shù)據(jù)通道地址 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

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論