




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 內蒙古包頭市百靈廟中學2024-2025學年高三下學期月考二英語試題含解析
- 山東省海陽市美寶校2025屆初三下第二次測試(化學試題文)試題含解析
- 咸陽師范學院《自然資源管理》2023-2024學年第二學期期末試卷
- 江蘇省宜興市實驗中學2024-2025學年中考數學試題一輪復習模擬試題含解析
- 山西省朔州市右玉二中學、三中學聯考2025年初三下學期五調考試生物試題含解析
- 江西管理職業學院《電子政務導論》2023-2024學年第二學期期末試卷
- 上海旅游高等專科學校《室內空間色彩設計》2023-2024學年第二學期期末試卷
- 新疆科信職業技術學院《信號分析與處理基礎》2023-2024學年第二學期期末試卷
- 山東省臨朐縣重點名校2024-2025學年初三第二學期期末質量檢測試題化學試題試卷含解析
- 二零二五評估合作協議
- GB/T 5530-2005動植物油脂酸值和酸度測定
- 《職業病防治法》宣傳周職業健康防護知識培訓
- 二次消防改造工程合同協議書范本
- 某智慧城市政務云平臺項目建設方案
- 德勤業務管理流程優化咨詢報告課件
- 深靜脈導管維護流程
- 班級管理(第3版)教學課件匯總全套電子教案(完整版)
- TCVN-2622-越南建筑防火規范(中文版)
- 不負韶華只爭朝夕-一模考試反思 課件-2021-2022學年高中主題班會(共17張PPT)
- DB13(J)∕T 256-2018 農村氣代煤工程技術規程
- 金屬非金屬礦山從業人員安全生產培訓教材課件(PPT 75頁)
評論
0/150
提交評論