




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
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};/*全白u(yù)charcode};/*上邊*/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)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 幼兒園急救及衛(wèi)生知識
- 簡易商鋪租賃協(xié)議
- 設(shè)計師高級感打造指南
- 2025西安體育學(xué)院輔導(dǎo)員考試試題及答案
- 深圳積分入戶新政策
- 庫存系統(tǒng)的規(guī)劃與設(shè)計
- 親子閱讀活動實踐與感悟
- 多用電表電路分析與設(shè)計
- 2025年中文系文學(xué)考試試卷及答案
- 平面圖形創(chuàng)意設(shè)計作業(yè)
- 簡明新疆地方史趙陽
- 12.注漿法施工技術(shù)(PPT版共60)
- 醫(yī)院檢驗科冰箱溫度登記表
- 常見異常心電圖識別及處理課件
- TCVN-2622-越南建筑防火規(guī)范(中文版)
- 重慶交通大學(xué)-黃璇-答辯通用PPT模板
- 中國醫(yī)院質(zhì)量安全管理 第4-13部分:醫(yī)療管理住院患者健康教育 T∕CHAS 10-4-13-2020
- 新滬教牛津版七年級上冊英語全冊教案
- 《航空專業(yè)英語》課件維修專業(yè)基礎(chǔ)英語R1
- 【課件】第17課實驗與多元——20世紀(jì)以來的西方美術(shù)課件高中美術(shù)人教版(2019)美術(shù)鑒賞
- 2024年義務(wù)教育國家課程設(shè)置實施方案
評論
0/150
提交評論