




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 光伏工程合作協議大全
- 分布式醫療系統中的供應鏈分銷策略研究
- 2025至2030中國飄香機市場發展機遇與前景應用領域規模研究報告
- 2025至2031年中國家庭用純水裝置行業投資前景及策略咨詢研究報告
- 2025至2030中國蘇打水行業消費態勢與營銷趨勢研究報告
- 關于教研個人述職報告
- 基層兒保工作年終總結(3篇)
- 區塊鏈技術在智能交通中的應用研究
- 外周靜脈輸液與治療演講
- 區塊鏈在供應鏈管理中的透明度與安全保障措施研究
- 2024年同等學力申碩《英語》試題真題及答案
- 公共資源交易知識培訓
- 《危機管理案例》課件
- DB13-T5687-2023負壓封閉引流術護理規范
- 海綿材料項目可行性研究報告
- 2025年四川成都地鐵運營有限公司招聘筆試參考題庫含答案解析
- 【MOOC】《學術交流英語》(東南大學)章節中國大學慕課答案
- 幼兒園閱讀活動環境創設
- 如何與人有效溝通培訓
- 食品企業生產部門質量獎懲條例
- 《婦產科學》課件-15.3絕經綜合征
評論
0/150
提交評論