




版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
LIMITPIN1Ground2PowerSupply3LCDDriveAdjust45H:READ;6EICselect7DATA8HDATA9LDATAStandardVDD--VVDDVLCDDriveVoltage--V--V--V-VLIMITPIN1Ground2PowerSupply3LCDDriveAdjust45H:READ;6EICselect7DATA8HDATA9LDATAStandardVDD--VVDDVLCDDriveVoltage--V--V--V-V0-VStandardSupplyVDD-0VLCDVDD-0VInput0VACCharacteristics(Vdd=5V±10%,Vss=0VMPUEEhighlevelElowlevelEriseEfailAddressholdDatadelay--ACCharacteristics(Vdd=5V±10%,Vss=0VMPUEEhighlevelElowlevelEriseEfailAddressholdDatadelayDataholdDatahold--DATADATADATADATADATASelectsignal1,HighSelectsignal2,HighResetsignal,low-LCDDrivenegativeBackLEDBackLEDMPUWriteMPUReadMPUWriteMPUReadI/OInputbuffercontrolsthestatusbetweentheenableanddisableofchip.UnlesstheCS1orCS2isinactivemode,inputoroutofdataandinstructiondonotexecute.ThereforeinternalstateisnotchangedButRSTBcanoperateregardlessofCS1andCS2.InputInputregisterisprovidedtointerfacewithMPUwhichisdifferentoperatingfrequency.InputregisterstoresthedatatemporarilybeforewritingitintodisplaydataRAM.WhenCS1orCS2isintheactivemode,R/WandRSselecttheinputregister.ThedatafromMPUiswrittenintoinputregisterandthenwriteitintodisplaydataRAM.DataislatchedwhenfallingoftheEsignalandwrittenautomaticallyintothedisplaydataRAMbyinternaloperation.OutputOutputregisterstoresthedatatemporarilyfromdisplaydataRAMwhenCS1orCS2isinactivemodeandR/WandRS=H.StoreddataindisplaydataRAMislatchedinoutputregister.WhenCS1orCS2isinactivemodeandR/W=H,RS=L,statusdata(busycheck)canbereadout.ToreadthecontentsofdisplaydataRAM,twiceaccessofreadinstructionisneeded.Infirstaccess,dataindisplaydataRAMislatchedintooutputregister.Insecondaccess,MPUcanreaddatawhichislatched.ThatistoreadthedataindisplaydataRAM,itneedsdummyread.Butstatusreaddoesnotneeddummy001Statusread(busy10Datawrite(frominputregistertodisplaydata1Dataread(fromtodisplaydataRAMtooutputSystemresetcanbeinitializedbysettingRSTBterminalatlowlevelSystemresetcanbeinitializedbysettingRSTBterminalatlowlevelwhenturningpoweron,instructionfromMPU.WhenRSTBbecomeslow,followingprocedureis-Display-Displaystartlineregisterbecomesetby0.(Z-addressWhileRSTBislowlevel,noinstructionexceptstatusreadcanbeaccepted.ResetstatusappearsadDB4.AfterDB4islow,anyinstructioncanbeaccepted.TheconditionsofpowersupplyatinitialpowerupareshownintableTable1.PowerSupplyInitialBusyBusyflagindicatesthatKS0108Bisoperatingornotoperating.WhenbusyflagisKS0108Bisinternaloperating.Whenbusyflagislow,KS0108Bcanacceptthedataorinstruction.DB7indicatesbusyflagoftheDisplayON/OFFFlip-Thedisplayon/offflip-flopmakeson/offtheliquidcrystaldisplay.Whenflop-flopisreset(logicallow).selectivevoltageornonselectivevoltageappearsonsegmentoutputterminals.Whenflip-flopisset(logicalhigh).nonselectivevoltageappearsonsegmentoutputterminalsregardlessofdisplayRAMdata.Thedisplayon/offflip-flopcanchangestatusbyinstruction.ThedisplaydataatallsegmentdisappearwhileRSTBislow.Thestatusoftheflop-flopisoutputtoDB5byreadXpageXpageregisterdesignatespageoftheinternaldisplaydataRAM.Ithasnotcountfunction.AnaddressissetbyYAddressResetRiseYaddresscounterdesignatesaddressoftheinternaldisplaydataRAM.Anaddressissetbyinstructionandisincreasedby1automaticallybyreadorwriteYaddresscounterdesignatesaddressoftheinternaldisplaydataRAM.Anaddressissetbyinstructionandisincreasedby1automaticallybyreadorwriteoperationsofdisplayDisplayDataDisplaydataRAMstoresadisplaydataforliquidcrystaldisplay.Toexpressonstateofdotmatrixofliquidcrystaldisplay.writedata1.Theotherway.offstatewritesDisplayStartLineThedisplaystartlineregisterindicatesaddressofdisplaydataRAMtodisplaytoplineofliquidcrystaldisplay.Bitdata(DB0:5)ofthedisplaystartlinesetinstructionsislatchedindisplaystartlineregister.ItisusedforscrollingoftheliquidcrystaldisplayDisplayControlThedisplaycontrolinstructionscontroltheinternalstateoftheKS0108B.InstructionisreceivedfromMPUtoKS0108Bforthedisplaycontrol.ThefollowingtableshowsvariousD000011111Controlsthedisplayonoroff.InternalstatusanddisplayRAMdataarenotaffected.SetSetPage000000011101Yaddress(0- SetstheYaddressintheYaddressSetstheXaddressattheXaddressIndicatesthedisplaydatadisplayedatthetopoftheStatus0100000Read 01:Inoperation 0:Display1:Display 01Giveaexample(Only*Ifmodulecan’tproducenegativevoltage,exteriorinputsnegativevoltagefromPIN(VO).Ifitcan,directlyusingorfixedresistancesuchasdrawing,thatmaynotGiveaexample(Only*Ifmodulecan’tproducenegativevoltage,exteriorinputsnegativevoltagefromPIN(VO).Ifitcan,directlyusingorfixedresistancesuchasdrawing,thatmaynot如有,則可如圖直接用電位器或固定電阻,不考慮VEE。Programexample(Only#include<reg51.h>typedefunsignedchartypedefunsignedint ====WriteDisplay10WriteWritesdata(DB0:7)intodisplay instruction,Yaddressisby1ReadDisplay11ReadReadsdata(DB0:7)fromdataRAMtothedatasbitL_SET=sbitL_SET==sbitTESTfloatucharX1[]=};/*歡*/ucharcodeX2};/*迎*/ucharcodeX3};/*使*/ucharcodeX4};/*用*/ucharcodeX5};/*圖*/ucharcodeX6};/*形*/ucharcodeX7};/*點*/uchar};/*點*/ucharcodeX8};/*陣*/ucharcodeX9};/*12*/ucharcodeX10[]={};/*8x*/ucharcodeX11[]={};/*64*/ucharcodeX12[]={};/**/ucharcodeX13[]=};/*全黑*/ucharcodeX14};/*全白ucharcode};/*上邊*/ucharcodeX16[]={};/*下邊*/ucharcodeX17[]={};/*左邊*/ucharcodeX18[]={};/*右邊*/ucharcodeX19[]={};/*左上*/ucharcodeX20[]={};/*右上*/ucharcodeX21[]={};/*左下*/ucharcodeX22[]={};/*右下*/ucharcodeX23[]={};/*空白*/void{PCON=0x80;TMOD=0X21;};/*右下*/ucharcodeX23[]={};/*空白*/void{PCON=0x80;TMOD=0X21;SCON=TH1=0XFa;TL1=0XFa;TR1=1;ESTH0=0;TL0=0;TR0=1;ET0=EA=}void{uchari,j;a
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度物流倉儲配送一體化承包合同
- 2025年度綠色建筑認證與設計合同
- 多重耐藥菌的防控
- 銀行新入職發(fā)言稿
- 先進集體發(fā)言稿
- 2025年安康貨車上崗證理論模擬考試題庫
- 2025年江西貨運叢業(yè)資格證考試題及答案
- 寬容日發(fā)言稿
- 2025年安徽貨車從業(yè)資格證考試題目答案
- 生產(chǎn)產(chǎn)能及設備利用情況統(tǒng)計表
- 硬化性肺泡細胞瘤-課件
- 裕興新概念英語第二冊筆記第42課
- 簡明新疆地方史趙陽
- 狹窄性腱鞘炎中醫(yī)臨床路徑及表單
- Q∕SY 19001-2017 風險分類分級規(guī)范
- 智慧消防綜合解決方案
- 市場營銷組合策略及營銷戰(zhàn)略課件
- 信息技術基礎ppt課件(完整版)
- DGJ 08-70-2021 建筑物、構筑物拆除技術標準
- 2022年義務教育語文課程標準(2022版)解讀【新課標背景下的初中名著閱讀教學質(zhì)量提升思考】
- 屋面網(wǎng)架結(jié)構液壓提升施工方案(50頁)
評論
0/150
提交評論